GNU/Linux Desktop Survival Guide by Graham Williams |
|||||
The standard Mass Storage Device protocol is used for USB devices such as hard disk drives, flash memory drives, memory card readers, and digital cameras. Such devices have a standard VFAT (MSWindows) file system.
The USB mass storage device is treated as a SCSI device so simply mount the SCSI device:
# mount -t auto /dev/sda1 /mnt |
You should now be able to see and use the device as any other disk. If you already have a SCSI device then the USB device might be /dev/sdb1!
The kernel module usb-storage drives USB mass storage devices and should be automatically loaded by hotplug. The kernel module vfat is also required, and if it does not autoload then you will need to:
# modprobe vfat |
You can run dmesg to check that the USB device has been found.
A sample setup of four USB devices includes a USB mouse, HP
Printer/Scanner/Copier with a card reader, a digital camera, and a
flash memory drive (3System USB flash disk). The /etc/fstab
includes:
/dev/sda1 /hpcard auto rw,user,noauto 0 0 /dev/sdb1 /camera auto rw,user,noauto 0 0 /dev/sdc1 /flash auto defaults,user,noauto 0 0 |
The devices look like any other hard drive device so you can run fdisk on it and reorganise partitions:
# fdisk /dev/sda |
You can also format the partition(s) on the device, usually with a DOS/FAT filesystem:
$ mkfs -t vfat /dev/sda1 |