On Friday, 18 בJuly 2008, Noam Rathaus wrote:
> I have a strange problem where my external HD is assigned to /dev/sdb and my 
> SATA disk is assigned to /dev/sda
> 
> But every once in a while, they decide to switch places (during boot), any 
> idea how I can "fix" this - so they do not switch places?

Nothing is strange. The only reason most people don't know this
can happen is that they use very simple configurations (e.g:
one or two IDE disks). Anyone working with several controllers
with several disks (e.g: SCSI, Fiber-channel), not to mention
SAN devices got used to this for years.

As Hetz already mentioned, there are two solutions:
 1. Identify via volume labels [BTW: this is the default RedHat
    since old Red Hat 9.0 IIRC].
 2. Identify via volume UUID [support is newer than labels].

To find the mapping of your drives to LABELS and or UUID:
 1. ls -l /dev/disk/by-uuid
 2. ls -l /dev/disk/by-label
 3. blkid /dev/sda2

Cheers,

-- 
Oron Peled                             Voice/Fax: +972-4-8228492
[EMAIL PROTECTED]                  http://www.actcom.co.il/~oron
Free software: each person contributes a brick, but ultimately each
person receives a house in return.
           -- Brendan Scott

================================================================To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to