Want to know what /dev your USB memory stick is ? A couple simple commands will take care of that for you..
Issue the following command and then plug in your drive, so you can watch it being detected.
Code:
it-lenny:~# tail -f /var/log/messages
Feb 11 05:45:58 it-etch -- MARK --
Feb 11 06:05:59 it-etch -- MARK --
Feb 11 06:25:59 it-etch -- MARK --
Feb 11 06:45:59 it-etch -- MARK --
Feb 11 07:05:59 it-etch -- MARK --
Feb 11 07:26:00 it-etch -- MARK --
Feb 11 07:46:00 it-etch -- MARK --
Feb 11 08:06:00 it-etch -- MARK --
Feb 11 08:07:00 it-etch syslogd 1.5.0#5: restart.
Feb 11 08:26:00 it-etch -- MARK --
Feb 11 08:30:30 it-etch kernel: usb 6-7: new high speed USB device using ehci_hcd and address 19
Feb 11 08:30:30 it-etch kernel: usb 6-7: configuration #1 chosen from 1 choice
Feb 11 08:30:30 it-etch kernel: scsi18 : SCSI emulation for USB Mass Storage devices
Feb 11 08:30:35 it-etch kernel: Vendor: USB 2.0 Model: Flash Disk Rev: 1100
Feb 11 08:30:35 it-etch kernel: Type: Direct-Access ANSI SCSI revision: 00
Feb 11 08:30:35 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Feb 11 08:30:35 it-etch kernel: sdb: Write Protect is off
Feb 11 08:30:35 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Feb 11 08:30:35 it-etch kernel: sdb: Write Protect is off
Feb 11 08:30:35 it-etch kernel: sdb: sdb1
Feb 11 08:30:35 it-etch kernel: sd 18:0:0:0: Attached scsi removable disk sdb
Feb 11 08:30:35 it-etch kernel: sd 18:0:0:0: Attached scsi generic sg1 type 0
As you can see the system identified the USB Flash drive I plugged in is /dev/sdb
My listing shows there is already a partition on my USB drive (
sdb1) and I know the default file system for flash drives is fat32.
if I wanted to reformat the USB drive as fat32 from the command line I would use mkdosfs.
http://wiki.linuxquestions.org/wiki/Mkdosfs