Re: sata and esata: trouble
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jerome BENOIT wrote:
> Hello List,
>
> thanks for the replies
>
> Douglas A. Tutty wrote:
>> 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.
>
> I known that is a recurring problem: unfortunately I had not grab
> rigth answer from Google, hance my email to the list.
>
It's not entirely clear why do you have a problem, i.e. why do you have
to reboot.
If it is what I suspect, perhaps you could try assigning a label to your
root partition fs and then using LABEL instead of /dev/xxx for the
kernel's root parameter.
For example (given your / is /dev/sda1 and that's where /boot is too):
# tune2fs -L myroot /dev/sda1
Then edit /boot/grub/menu.lst and replace under ## default kernel options:
# kopt=root=/dev/sda1
with
# kopt=root=LABEL=myroot
Run
# update-grub
Or, instead of menu.lst and update-grub, you can test the kernel option
by pressin e, while at grub boot menu and editing the kernel line
temporarily for that particular boot.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHtj3rejaFVltl6E8RApbsAKCOR9T3eAk4Pdd6byO51ZgSPUI93wCdFF7B
s9b02UcPwVs7rYEM10DYRc8=
=DJiQ
-----END PGP SIGNATURE-----
Reply to: