[Fwd: Re: sata and esata: trouble]
-------- Original Message --------
Subject: Re: sata and esata: trouble
Date: Fri, 15 Feb 2008 16:17:59 +0800
From: Jerome BENOIT <email@example.com>
To: S Scharf <firstname.lastname@example.org>
References: <47B48D48.email@example.com> <20080214200402.GA7828@titan.hooton> <firstname.lastname@example.org>
S Scharf wrote:
On Thu, Feb 14, 2008 at 3:04 PM, Douglas A. Tutty <email@example.com
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
> whereas my internal hard drive is also a SATA hard drive.
> when my box is rebooted, sometimes the external SATA hard drive
> 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
I think thats the wrong solution. That will fix the boot, but sda might
be the external disk and
sdb the internal one.
I believe you can write a udev rule to force the internal disk to sda
I think this is indeed the best solution, nevertheless I do not know
how to implement such persistent rules.
On my Lenny box, there are persistent rules for the ethernet cards and the cds,
but not for the hard drive:
for the cds, symbolic links are added, and this does not work for the sd*;
on the contrary, the ethernet card are renamed:
can we write persistent for the sd* similar to the one for the ethernet cards ?
Thanks in advance,