まずは、USBメモリがどのデバイスに割り当てられたか確認する必要があります。
1.USBメモリを差込、以下のコマンドを実行します
# dmesg
usb 5-1: new full speed USB device using uhci_hcd and address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Vendor: BUFFALO Model: ClipDrive Rev: 1.11
Type: Direct-Access ANSI SCSI revision: 02
usb-storage: device scan complete
SCSI device sda: 516096 512-byte hdwr sectors (264 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 516096 512-byte hdwr sectors (264 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
この例だと、下から2行目に「sda: sda1」と表示され、デバイス名は「sda1」と分かります。
2.USBメモリをマウントするディレクトリを作成します。(一回のみ。)
「/mnt/flash」と言うディレクトリにマウントする物とします
# mkdir /mnt/flash
3.USBメモリをマウントをマウント
マウント方法
【# mount -t vfat /dev/デバイス名 マウント先】
上記の例だとデバイス名が「sda1」でマウント先が「/mnt/flash」なので以下の様になります。
# mount -t vfat /dev/sda1 /mnt/flash
4.USBメモリの内容確認
# ls -l /mnt/flash
計 50076
drwxr-xr-x 2 root root 4096 12月 8 18:17 ???
-rwxr-xr-x 1 root root 409088 12月 7 14:55 ?????.doc
-rwxr-xr-x 1 root root 21813 3月 1 2005 README.txt
-rwxr-xr-x 1 root root 18941 3月 1 2005 RELEASE.NOTES.txt
drwxr-xr-x 2 root root 4096 12月 8 15:07 mydata
-rwxr-xr-x 1 root root 22016 12月 6 15:21 fedora_doc.tar
-rwxr-xr-x 1 root root 10501485 2月 3 2005 backup_01.tar.Z
-rwxr-xr-x 1 root root 10762000 2月 3 2005 backup_02.tar.Z
-rwxr-xr-x 1 root root 9794709 3月 8 2005 backup_03.tar.Z
-rwxr-xr-x 1 root root 10043511 2月 3 2005 backup_04.tar.Z
-rwxr-xr-x 1 root root 9677555 3月 8 2005 backup_05.tar.Z
5.USBメモリの取り外し
アンマウント方法
【# umount マウント先】
上記の例だと「/mnt/flash」にマウントしたので以下の様になります。
# umount /mnt/flash |