If you have Hotplug enabled, it makes life easier..
Plug in your thumbdrive, and then type
dmesg
You should see some information like
Code:
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: Flash/SM Model: Super Talent 2.0 Rev: 2040
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Here, i notice that my pen drive is called
sda. To mount, create a folder in your /mnt directory,
Code:
cd /mnt
mkdir pendrive
And then, mount your pendrive
Code:
mount /dev/sda1 /mnt/pendrive
That should do the trick.
EDIT: Make sure your pendrive is not formatted as NTFS, otherwise you won't be able to write anything to it.
EDIT: To automate the proccess, assuming your pendrive is formatted as fat or fat32, edit your fstab
add the following line
Code:
/dev/sda1 /mnt/pendrive vfat defaults 1 0
and save
Now all you have to type is
Code:
mount /mnt/pendrive