Udev creates the external usb hard disk device node too late
Hi all,
on my debian lenny OS I have an external usb hard disk I would like to automount it at boot.
So I edited the /etc/fstab file in order to automount /dev/sdb1. It worked without problem.
Then I recompiled the kernel and, as consequence, /dev/sdb1 changed to /dev/sdc1. I started playing with udev in order to match the now called /dev/sdc1 and to change its name in /dev/maxtor (being maxtor the brand of the hard disk). Obviously I edited also /etc/fstab: /dev/sdb1 is now /dev/maxtor.
The boot automount doesn't work anymore. On the boot sequence I can read the message "Mounting local filesystem...mount: special device /dev/maxtor does not exist FAILED".
But when I log into the system I can run the command "mount /dev/maxtor /mnt/maxtor" and it works! So, IMHO, my udev rule is correct otherwise also the manual mount wouldn't work, right?
How can I fix this? I have to tell to udev to create /dev/maxtor BEFORE the boot automount process.
Thank you in advance,
Daniele
Update: I tried to delete my udev rule and to edit /etc/fstab changing /dev/maxtor in /dev/sdc1 (the name udev gave to my hard disk after kernel recompile, before was /dev/sdb1) and it didn't work: on boot process I always see the "Mounting local filesystem...mount: special device /dev/sdc1 does not exist FAILED".
Then I tried to change /dev/sdc1 in /dev/sdb1 in /etc/fstab and to reboot with the old original kernel and int this way it works. This is a weird problem, now it seems related to kernel change. With my compiled kernel, the OS seems to have lost the capacity to detect my device node correctly...any clues???
Last edited by pastoreerrante; 05-24-2010 at 12:48 AM.
Reason: Update
|