[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[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 <jgmbenoit@mailsnare.net>
Reply-To: jgmbenoit@mailsnare.net
Organization: none
To: S Scharf <ss11223@gmail.com>
References: <[🔎] 47B48D48.9090905@mailsnare.net>	 <[🔎] 20080214200402.GA7828@titan.hooton> <[🔎] 78582fa40802141220k17328ff3o994c97dce6879429@mail.gmail.com>

Hello List,

S Scharf wrote:


On Thu, Feb 14, 2008 at 3:04 PM, Douglas A. Tutty <dtutty@porchlight.ca <mailto:dtutty@porchlight.ca>> 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.

    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.

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,
Jerome


Stuart

--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


Reply to: