USBメモリを読み書き
USBメモリを刺して起動、または起動後 USBメモリを刺すするとコンソールにカーネルメッセージが出る
code:terminal
DSM232:/ # sd 3:0:0:0: sda Assuming drive cache: write through
sd 3:0:0:0: sda Assuming drive cache: write through
sd 3:0:0:0: sda Assuming drive cache: write through
/dev/sda として USBメモリが見えるので、以下のようにして読み書き
code:terminal
DSM232:/ # fdisk -l
Disk /dev/sda: 62.1 GB, 62109253632 bytes
64 heads, 32 sectors/track, 59232 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 2 59232 60652544 c Win95 FAT32 (LBA)
DSM232:/ # ls /mnt
jffs2
DSM232:/ # mkdir /mnt/sda1
DSM232:/ # mount /dev/sda1 /mnt/sda1
DSM232:/ # ls /mnt/sda1
DSM232:/ # ls /mnt/sda1
dsm232.bin
DSM232:/ # echo hello > /mnt/sda1/hello.txt
DSM232:/ # ls /mnt/sda1
dsm232.bin hello.txt
DSM232:/ # cat /mnt/sda1/hello.txt
hello
DSM232:/ #