PDA

View Full Version : usbdisk listed in fstab but wont automount



merlinv12
22nd July 2006, 06:21 AM
Hi Guys

I've been searching everywhere for some info on my problem but I cant seem to find anyone with a problem similar to this.

I am running AMD64 FC4 2.6.17

When I plug my cruzer min 512MB stick into the usb port it seems to be detected by the system
dmesg:

usb 1-6: new high speed USB device using ehci_hcd and address 26
usb 1-6: configuration #1 chosen from 1 choice
scsi23 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 26
usb-storage: waiting for device to settle before scanning
Vendor: SanDisk Model: Cruzer Mini Rev: 0.1
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 23:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete

and it even lists the device with mount points in fstab:
/dev/sda1 /media/usbdisk vfat pamconsole,exec,noauto,utf8,managed 0 0

but it doesn't actually mount the device as indicated by the fact that the mount doesnt show up in /etc/mtab .

It seems to be doing something because it creates the directory usbdisk under media. And destroyes it when I pull out the usbdisk, but when I look inside the usbdisk dir it is empty.

Only 3 ways I can mount the usbdisk now
1. manually type it into the console
2. stop hal daemon put the usbdisk into the usb port, restart hal daemon service. Then pull out the usbdisk and then replug it back in, it then will automount, but only once.
3. open /etc/fstab in kedit and hit save, then it mounts the usbdisk

I should mention that only the usb is giving me this problem. CD's and DVD's seem to get mounted without any problems.

I know that the usbdisk is good b/c this problem persisted even when i tried 2 other different usbdisks from other manufacturers and all 3 usbdisks work in XP and OSX.

I think HAL is causing me problems, but I have no idea how to go about fixing it. Any help will be useful. Also fstab-sync in console gives me the following error:
error: libhal_ctx_init_direct: (null): (null)

Any help would be appreciated

Linux_Weary
22nd July 2006, 07:23 AM
My usb device isn't even listed in fstab and it automounts and works fine. I wonder where it is listed?

I have AMD64 and 2.6.17. The difference is FC5.

Dan
22nd July 2006, 02:14 PM
Check in the /etc/mtab and /media.

Dan

merlinv12
22nd July 2006, 04:02 PM
Ya, it seems that FC is moving away from fstab and further towards HAL which is even more prominent in FC5. Several of the threads I have read say that fstab is slowly becoming decrepate. The easiest way to know if your device is mounted is mount -l which will list all the devices in /etc/mtab.

Another wierd thing I discovered is that if I open up disk management in kde when my usbdisk is in the drive it shows up in there but is not mounted. I have to hit the mount key to mount it and have the icon pop up on the desktop.

My problem seems to be that the mount point is written to fstab, its just that kde nor any other software don't know what to do with that line that is added to fstab to automount the device. I have a feeling somewhere in my kde apps management I have to physically tell it to automount the usbdisk, but I have yet to find that. If anyone else has, let me know.

merlinv12
23rd July 2006, 05:36 AM
another update.

I tried my usbdisk in gnome and it automounts without a problem, so it is only in kde that it wont automount.

aussie.ian
23rd July 2006, 12:42 PM
Try removing the line from fstab. I added my usb disk to fstab and had to manually mount it . I removed it from fstab and drive now auto mounts via /media/disk-1.

merlinv12
23rd July 2006, 06:32 PM
That was one of the first things I tried, the problem is that the removable drive entries is controlled by fstab-sync. I checked /var/log/messages and this is what it says:

Jul 23 14:25:02 rossa kernel: usb 1-6: new high speed USB device using ehci_hcd and address 5
Jul 23 14:25:02 rossa kernel: usb 1-6: configuration #1 chosen from 1 choice
Jul 23 14:25:02 rossa kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 23 14:25:07 rossa kernel: Vendor: SanDisk Model: Cruzer Mini Rev: 0.1
Jul 23 14:25:07 rossa kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 23 14:25:07 rossa kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Jul 23 14:25:07 rossa kernel: sda: Write Protect is off
Jul 23 14:25:07 rossa kernel: sda: assuming drive cache: write through
Jul 23 14:25:07 rossa kernel: SCSI device sda: 1000944 512-byte hdwr sectors (512 MB)
Jul 23 14:25:07 rossa kernel: sda: Write Protect is off
Jul 23 14:25:07 rossa kernel: sda: assuming drive cache: write through
Jul 23 14:25:07 rossa kernel: sda: sda1
Jul 23 14:25:07 rossa kernel: sd 2:0:0:0: Attached scsi removable disk sda
Jul 23 14:25:07 rossa scsi.agent[3930]: disk at /devices/pci0000:00/0000:00:10.4/usb1/1-6/1-6:1.0/host2/target2:0:0/2:0:0:0
Jul 23 14:25:08 rossa fstab-sync[3973]: added mount point /media/usbdisk for /dev/sda1

So, it seems like my drive is mounted in /media/usbdisk but when I check that folder it is empty, and there is no entry in /etc/mtab of such a mount point.

What is wierd is that this only happens in KDE. It works fine in gnome.

aussie.ian
23rd July 2006, 11:53 PM
When I removed the entry from fstab, I unplugged the drive, removed the line from fstab, rebooted then just plugged it in again and it worked. Sorry I can't be more helpful, I'm new to Fedora and just tried what worked when I was using Suse10.