| 17 | |
| 18 | Some USB flash drives may be formatted without having a partition table. In this case the mount command is: |
| 19 | {{{ |
| 20 | mount –t vfat /dev/sda /mnt/fl1 |
| 21 | }}} |
| 22 | |
| 23 | If a second USB flash drive is connected before the first one is unmounted or if the first one is removed without an proper unmount the drive will appear as sdb1 or sdb. |
| 24 | |
| 25 | {{{ |
| 26 | mount –t vfat /dev/sdb1 /mnt/fl1 |
| 27 | }}} |
| 28 | |
| 29 | or without partition table: |
| 30 | |
| 31 | {{{ |
| 32 | mount –t vfat /dev/sdb /mnt/fl1 |
| 33 | }}} |
| 34 | |
| 35 | To find out the status of connected USB devices you may view the virtual file /proc/bus/usb/devices |
| 36 | {{{ |
| 37 | $ cat /proc/bus/usb/devices |
| 38 | |
| 39 | T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1 |
| 40 | B: Alloc= 0/800 us ( 0%), #Int= 1, #Iso= 0 |
| 41 | D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 |
| 42 | P: Vendor=1d6b ProdID=0002 Rev= 2.06 |
| 43 | S: Manufacturer=uClinux 2.6.29 ehci_hcd |
| 44 | S: Product=Freescale On-Chip EHCI Host Controller |
| 45 | S: SerialNumber=fsl-ehci.0 |
| 46 | C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA |
| 47 | I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub |
| 48 | E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms |
| 49 | |
| 50 | T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 4 |
| 51 | D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 |
| 52 | P: Vendor=0451 ProdID=2046 Rev= 1.25 |
| 53 | C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA |
| 54 | I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub |
| 55 | E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms |
| 56 | |
| 57 | T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 |
| 58 | D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 |
| 59 | P: Vendor=0781 ProdID=5150 Rev= 0.10 |
| 60 | S: Manufacturer=SanDisk Corporation |
| 61 | S: Product=Cruzer Mini |
| 62 | S: SerialNumber=20043515110EDEA28110 |
| 63 | C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA |
| 64 | I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage |
| 65 | E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms |
| 66 | E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms |
| 67 | }}} |
| 68 | In the example above there is a SanDisk Cruzer Mini flash drive attached. |