cannot mount usb hard drive when it's in sleep mode

Bug #37589 reported by Breuil Cyril
12
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
Medium
Unassigned
udev (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

at boot udev don't always see my usb hard drive. When he is sleeping udev don't wait he wakes up and doesn't mount it and i have to mount it after the boot. When the hard drive is not sleeping it works fine. In breezy i never had this problem.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This is either a hal or kernel bug I'd guess -- udev doesn't get involved with the mounting of removable devices. Either the kernel is not noticing the disk while it's "sleeping", in which case it's a kernel bug (unlikely) or hal isn't causing it to be mounted on boot reliably.

Reassigning to hal where Martin will ask you to do all the usual debug stuff, he'll be able to tell you whether it's kernel or not.

Revision history for this message
Breuil Cyril (cyrilb856) wrote :

My usb hard drive is always plugged to my computer so it's at boot that he should be mount. I have a special rules for him in my /etc/udev/rules.d/10-local.rules :
BUS="usb", SYSFS{product}=="Seagate Mass Storage ", NAME="ddusb"

and a line in fstab :
/dev/ddusb /mnt/dd_usb vfat rw,gid=1000,uid=1000,umask=002,auto,user 0 0

at boot during the mount of all other device I got this message :
/dev/ddusb is not a block device

and after the boot I have to mount him using : sudo mount /dev/ddusb sometimes it works fine and sometimes I got the same message :
cyril@ubuntu1:~$ sudo mount /dev/ddusb
mount: /dev/ddusb n'est pas un périphérique de type bloc

if I stop and relaunch my hard-drive it is automatically mount.

With breezy and the same configuration on a separate partition I never have this problem and my hard drive is always mount at boot.

MAYBE it can be link with this kde-bug I reported : http://bugs.kde.org/show_bug.cgi?id=124670

Revision history for this message
Martin Pitt (pitti) wrote :

With your manual configuration, the whole automounting magic is not involved at all. Can you please try to remove the udev rule and the fstab entry and check that it works fine then? If not, can you please do

  lshal > hal.txt
  dmesg > dmesg.txt
  ls -l /dev/sd* > devices.txt

and attach the resulting three text files here?

Thanks!

Changed in hal:
status: Unconfirmed → Needs Info
Revision history for this message
Breuil Cyril (cyrilb856) wrote :

it works fine without my udev and fstab rules.
So i can't use them anymore?

What is the other (new) way to differiencate my external device and mount them where and how i want?

Revision history for this message
Breuil Cyril (cyrilb856) wrote :

after another try my hard drive is not mount after boot. i gives the files requested in attachment.

Revision history for this message
Breuil Cyril (cyrilb856) wrote : hal

results of lshal > hal.txt command

Revision history for this message
Breuil Cyril (cyrilb856) wrote : dmesg

results of dmseg > dmesg.txt command

Revision history for this message
Breuil Cyril (cyrilb856) wrote : devices

results of ls -l /dev/sd* > devices.txt command

Revision history for this message
Martin Pitt (pitti) wrote : Re: at boot usb hard drive is not always mount

It should work with your udev and fstab configuration, too; I just wanted to get the debug information under Ubuntu's default configuration.

So, if the device is not automatically mounted, and even 'mount' fails to do it, then the cause is really the sleeping, which would again make it a kernel bug.

Revision history for this message
Martin Pitt (pitti) wrote :

Closing udev task

Changed in udev:
status: Unconfirmed → Rejected
Changed in hal:
status: Needs Info → Unconfirmed
Revision history for this message
Breuil Cyril (cyrilb856) wrote :

what can i do know? is there anything to help or only wait?

Revision history for this message
Ben Collins (ben-collins) wrote :

From the dmesg, it's clear that the device is being detected. Not sure what else I can do. Can you test this on a fresh install or liveCD?

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Breuil Cyril (cyrilb856) wrote :

i'll try on my laptop! i've just install kubuntu DF6 this day.

Revision history for this message
Breuil Cyril (cyrilb856) wrote :

After test it doesn't work on this fresh df6 install ...

Revision history for this message
Breuil Cyril (cyrilb856) wrote :

fix in feisty. Kernel seems waiting for usb hard drive wake up.

Changed in linux-source-2.6.15:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.