USB memory mounting with fstab

From LinuxNewbie

I want to be able to easily mount my usb memory. I added this to my fstab:

/dev/sda1       /usb            vfat    defaults,umask=002,user,noauto 0    2

The default place for it to appear is sda, and it is partition 1. (** See Note at bottom of page)
I made a directory /usb as the mount point. You can choose different.

mkdir /usb

It is a fat16, so the type is vfat. That is fat16/32 with long filenames, etc.
Options:
defaults except
umask of 002. user=rwx,group=rwx,others=rx
user allows mere mortals to mount the device (non-root)
noauto means it doesn't mount on boot

0 <dump>
2 <pass>
I looks once by don't know now.


i have a kingston Data Traveller model KUSBDTI/256FE. i used /dev/sdc1 because both sda & sdb is occupy by my sata drives. everything else is the same as shown above. it gave me error. is there any other way? when this drive plug into my fc3, it is working fine. so does in windows xp.

here is the error message: -- # mount /mnt/kingston/ -- mount: wrong fs type, bad option, bad superblock on /dev/sdc1, -- or too many mounted file systems -- (aren't you trying to mount an extended partition, -- instead of some logical partition inside?)

-- /etc/fstab entry -- /dev/sdc1 /mnt/kingston vfat default,noauto,user,umask=022 0 2

Revantine

From command line without modifying fstab, try:

mount -t vfat /dev/sdc1 /mnt/kingston
mount -t vfat /dev/sdd1 /mnt/kingston
mount -t vfat /dev/sde1 /mnt/kingston
mount -t vfat /dev/sdf1 /mnt/kingston

and see if one succeeds


CyzarX

03-16 14:54 CyzarX fdisk -l /dev/sdc 03-16 14:54 CyzarX Disk /dev/sdc: 252 MB, 252182528 bytes 03-16 14:54 CyzarX 32 heads, 16 sectors/track, 962 cylinders 03-16 14:54 CyzarX Units = cylinders of 512 * 512 = 262144 bytes 03-16 14:54 CyzarX Device Boot Start End Blocks Id System 03-16 14:54 CyzarX /dev/sdc1 * 1 962 246264 e W95 FAT16 (LBA)

** Note: in the 2.6 kernel series there is a new usb block driver for pendrives, etc.
If this new driver is compiled into your kernel, then your usb device will be available on /dev/usb1 instead of /dev/sda1
Check your logs as you insert the pendrive, it should be obvious which of the two locations to try. If in doubt, ask in the channel.