Linuxで外付けHDDを使う
マウントの方法
1、USBに挿す
2、# dmesg
usb 1-3: USB disconnect, address 2
usb 1-3: new high speed USB device using address 3
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Maxtor 6 Model: B300R0 Rev: BAH4
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 586114704 512-byte hdwr sectors (300091 MB)
sda: assuming drive cache: write through
sda: sda1 < sda5 >
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
USB Mass Storage device found at 3
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.
SELinux: initialized (dev sda5, type vfat), uses genfs_contexts
SELinux: initialized (dev sda5, type vfat), uses genfs_contexts
とかが出る。 -> /dev/sda5
3、# su
4、# mount -t vfat /dev/sda5 /mnt/usb_hdd/ だとrootしか使えないので
# mount -t vfat -o gid=500,uid=500 /dev/sda5 /mnt/usb_hdd/
アンマウント
# umount /mnt/usb_hdd