On Fri, Feb 15, 2008 at 02:49:44AM +0800, Jerome BENOIT wrote:
I have an external SATA hard drive plugged via esata to my Debian box,
whereas my internal hard drive is also a SATA hard drive.
when my box is rebooted, sometimes the external SATA hard drive is chosen
as internal hard drive, so I have to reboot again.
I have tried to fix this issue with udev, but without success.
I guess that I missed something: how can we fix the trouble ?
Here we go again. This is a recurring problem with the sd* drives
getting assigned in different orders with each boot.
The solution is to add a label to each of the filesystems on your
drives. You don't have to reformat as each filesystem's utilities
provides a way to do this. For ext2/3 its tune2fs and look for the
lable option in the man page. Once you label everything, you have to
change the references:
1. for boot, the kernel command line has to be root=LABEL=[label]
2. for /etc/fstab, change referennces to e.g. /dev/sda1 to
LABEL=[label].
Then reboot.
Doug.