Fritz Whittington wrote:
On or about 2004-01-07 23:20, Ryan Sather whipped out a trusty #2 pencil and scribbled:
I'm having problems with a Lexar JumpDrive. When I plug it in, it creates an entry is fstab like this:
/dev/sda /mnt/diskonkey auto noauto,owner,kudzu 0 0
When I try and mount it using the Disks menu from the Gnome desktop, I get:
Nautilus was unable to mount the selected volume. and mount: I could not determine the filesystem type, and none was specified
If I mount it manually using : mount -t vfat /dev/sda1 /mnt/diskonkey it works fine
If it makes any difference, the command: usbmodules --device /proc/bus/usb/001/008 gives me: usb-storage
How can I change the device and mountpoint that it defaults to?
---- Ryan
I note that the entry in fstab seems incorrect. It should have /dev/sda1 instead of /dev/sda. This might be caused by a partition table that is not quite what is expected. What do you get from the command:
fdisk -l /dev/sda
If you can back up the contents, then try doing a mkfs -t vfat /dev/sda1 on it (while unmounted). This should fix up the partition table if that's what is causing the problem.
You might put a regular entry for /dev/sda1 (without the "kudzu" parm) into fstab. This entry should survive unplugging it. If you then edit this entry to change auto to vfat, then it should mount from the Disks menu.
fdisk -l /dev/sda
Disk /dev/sda: 64 MB, 64487424 bytes 4 heads, 32 sectors/track, 984 cylinders Units = cylinders of 128 * 512 = 65536 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 983 62896 6 FAT16
In /var/log/messages:
Jan 8 20:09:04 foo kernel: hub.c: new USB device 00:04.2-2, assigned address 9
Jan 8 20:09:08 foo usb.agent[14099]: missing kernel or user mode driver usb-storage
Jan 8 20:09:08 foo kernel: SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
Jan 8 20:09:08 foo kernel: sda: Write Protect is off
Jan 8 20:09:08 foo kernel: sda: sda1
Jan 8 20:09:09 foo kernel: cdrom: This disc doesn't have any tracks I recognize!
Jan 8 20:09:12 foo devlabel: devlabel service started/restarted
After mkfs -t vfat /dev/sda1 /var/log/messages shows:
Jan 8 20:18:53 foo kernel: hub.c: new USB device 00:04.2-2, assigned address 10
Jan 8 20:18:56 foo usb.agent[15416]: missing kernel or user mode driver usb-storage
Jan 8 20:18:56 foo kernel: SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
Jan 8 20:18:56 foo kernel: sda: Write Protect is off
Jan 8 20:18:56 foo kernel: sda: sda1
Jan 8 20:18:56 foo kernel: cdrom: This disc doesn't have any tracks I recognize!
Jan 8 20:18:58 foo devlabel: devlabel service started/restarted
If I try to mount it using from Gnome menu I only get one of the errors: Nautilus was unable to mount the selected volume.
It works fine when I manually add the fstab entry. I was just trying to figure out a way to get it to work automatically.
Thanks
Ryan