Re: External USB HD showing up late in /dev

2009-03-25 Thread Emanoil Kotsev
Mark McCorkell wrote: > I switched back to the standard set of Debian modules for the time > being, as I don't have the time or experience (yet!) to resolve the > issue but I did find this rather long discussion > (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=401916) indicating > that it's bee

Re: External USB HD showing up late in /dev

2009-03-25 Thread Mark McCorkell
Davide Mancusi wrote: Hi .*, I have an external USB hard disk that I use for automated backups. I have written the following udev rules: SUBSYSTEMS=="usb", ATTRS{serial}=="574341535530323537353839", KERNEL=="sd?", SYMLINK+="exthd", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{serial}=="

Re: External USB HD showing up late in /dev

2009-03-21 Thread Emanoil Kotsev
Davide Mancusi wrote: > On Sat, 21 Mar 2009 12:31:50 +0100 > Emanoil Kotsev wrote: >> Upto 2.6.26 I know there is a delay_use option for usb_storage. >> It's set to 5sec by default. I didn't look for such an option in >> 2.6.28, but as delay_use is doing nothing I assume it was either >> removed

Re: External USB HD showing up late in /dev

2009-03-21 Thread Davide Mancusi
On Sat, 21 Mar 2009 12:31:50 +0100 Emanoil Kotsev wrote: > Upto 2.6.26 I know there is a delay_use option for usb_storage. > It's set to 5sec by default. I didn't look for such an option in > 2.6.28, but as delay_use is doing nothing I assume it was either > removed or replaced. > > What you desc

Re: External USB HD showing up late in /dev

2009-03-21 Thread Emanoil Kotsev
Davide Mancusi wrote: > Hi .*, > > I have an external USB hard disk that I use for automated > backups. I have written the following udev rules: > SUBSYSTEMS=="usb", ATTRS{serial}=="574341535530323537353839", > KERNEL=="sd?", SYMLINK+="exthd", GROUP="plugdev" SUBSYSTEMS=="usb", > ATTRS{seri

Re: External USB HD showing up late in /dev

2009-03-18 Thread Jimmy Johnson
Davide Mancusi wrote: This looks like some kind of race condition between kernel and udev, but I don't really understand why udev doesn't pick on the new devices automatically, as soon as the kernel creates them. I have tried to add WAIT_FOR="/dev/exthd1" to my udev rule, but it didn't h

Re: External USB HD showing up late in /dev

2009-03-18 Thread Mark McCorkell
Davide Mancusi wrote: The problem is that sometimes, when init calls fsck, /dev/exthd1 has not appeared yet, fsck bombs and init drops me to an emergency shell. This happens about 50% of the times. Then I use the emergency prompt to check if /dev/exthd1 actually exists, and, again, 50% of the tim

Re: External USB HD showing up late in /dev

2009-03-18 Thread Stefan Monnier
> an emergency shell. This happens about 50% of the times. Then I use the > emergency prompt to check if /dev/exthd1 actually exists, and, again, > 50% of the times it doesn't; the /dev/sd?1 file is always there, > though. When /dev/exthd1 doesn't exist, a "udevadm trigger" will bring > it up. If

External USB HD showing up late in /dev

2009-03-18 Thread Davide Mancusi
Hi .*, I have an external USB hard disk that I use for automated backups. I have written the following udev rules: SUBSYSTEMS=="usb", ATTRS{serial}=="574341535530323537353839", KERNEL=="sd?", SYMLINK+="exthd", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{serial}=="574341535530323537353839