USB Flash Drives are usually formatted FAT32 by default
USB support is already in most kernels by default
You can test like this..
tail -F /var/log/messages
That will tail the Messages log and then Follow the log file for any NEW messages that appear.
Afte you have issued that command plug in your USB device and see if any new messages appear on the screen. If they do then the system has detected your USB device and should assign a designator to it.
Code:
itg-debian:~# tail -F /var/log/messages
Nov 17 09:44:35 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59806 PROTO=2
Nov 17 09:45:57 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:46:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59807 PROTO=2
Nov 17 09:48:53 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59808 PROTO=2
Nov 17 09:49:57 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:51:03 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59809 PROTO=2
Nov 17 09:53:12 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59810 PROTO=2
Nov 17 09:53:56 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:55:21 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59811 PROTO=2
Nov 17 09:56:07 localhost kernel: DROPPED IN= OUT=eth0 SRC=192.168.0.188 DST=85.214.65.100 LEN=76 TOS=0x10 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=123 DPT=123 LEN=56
Nov 17 09:57:06 localhost kernel: usb 2-2: new full speed USB device using address 4
Nov 17 09:57:06 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Nov 17 09:57:06 localhost kernel: Vendor: OTi Model: Flash Disk Rev: 1.89
Nov 17 09:57:06 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 17 09:57:06 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
Nov 17 09:57:06 localhost kernel: sda: assuming Write Enabled
Nov 17 09:57:06 localhost kernel: /dev/scsi/host2/bus0/target0/lun0: p1
Nov 17 09:57:06 localhost kernel: Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Nov 17 09:57:06 localhost kernel: Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
Nov 17 09:57:07 localhost scsi.agent[24436]: sd_mod: loaded sucessfully (for disk)
Nov 17 09:57:08 localhost usb.agent[24427]: usb-storage: already loaded
I Issued the command, plugged in my device it was detected as hda so I would mount it with the typical
mount /dev/hda1 /mnt/mountpoint
As you can see it is also using the sd_mod and usb_storage modules to support the device.
This works pretty much the same for USB Drives, Memory card readers, etc..
Here is the output from a memory card reader..
Code:
Nov 17 10:01:12 localhost kernel: usb 2-2: new full speed USB device using address 6
Nov 17 10:01:12 localhost kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Nov 17 10:01:12 localhost kernel: Vendor: ICSI Model: SD Card Rev: 2.7C
Nov 17 10:01:12 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0, type 0
Nov 17 10:01:12 localhost kernel: Vendor: ICSI Model: CF Card Rev: 2.7C
Nov 17 10:01:12 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 17 10:01:12 localhost scsi.agent[25233]: sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 1
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg1 at scsi4, channel 0, id 0, lun 1, type 0
Nov 17 10:01:12 localhost kernel: Vendor: ICSI Model: SM Card Rev: 2.7C
Nov 17 10:01:12 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sdc at scsi4, channel 0, id 0, lun 2
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 2, type 0
Nov 17 10:01:12 localhost kernel: Vendor: ICSI Model: SM Card Rev: 2.7C
Nov 17 10:01:12 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 17 10:01:13 localhost scsi.agent[25333]: sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:13 localhost kernel: Attached scsi removable disk sdd at scsi4, channel 0, id 0, lun 3
Nov 17 10:01:13 localhost kernel: Attached scsi generic sg3 at scsi4, channel 0, id 0, lun 3, type 0
Nov 17 10:01:13 localhost scsi.agent[25364]: sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:13 localhost scsi.agent[25314]: sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:14 localhost usb.agent[25377]: usb-storage: already loaded
Notice each card slot on the Memory card reader gets a different drive designation..
Hope that helps.