public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] OT:  How does kernel determine drive order?
@ 2007-11-05  4:38 Anthony E. Caudel
  2007-11-05  5:17 ` Jarry
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony E. Caudel @ 2007-11-05  4:38 UTC (permalink / raw
  To: Gentoo Mailing List

How does the kernel (2.6.22) determine the order of SATA drives (sda,
sdb, etc.) when it boots up?

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05  4:38 [gentoo-user] OT: How does kernel determine drive order? Anthony E. Caudel
@ 2007-11-05  5:17 ` Jarry
  2007-11-05 11:35   ` Stroller
  2007-11-05 17:43   ` Anthony E. Caudel
  0 siblings, 2 replies; 7+ messages in thread
From: Jarry @ 2007-11-05  5:17 UTC (permalink / raw
  To: gentoo-user

Anthony E. Caudel wrote:
> How does the kernel (2.6.22) determine the order of SATA drives (sda,
> sdb, etc.) when it boots up?

I just checked my computer, and sda is the drive plugged in
the first sata-port, and sdb the one in the second port
(according to the info in motherboard manual).

Maybe it is something similar as with p-ata drives, where hda
is always the master drive on the first pata channel...

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05  5:17 ` Jarry
@ 2007-11-05 11:35   ` Stroller
  2007-11-05 17:45     ` Anthony E. Caudel
  2007-11-05 17:43   ` Anthony E. Caudel
  1 sibling, 1 reply; 7+ messages in thread
From: Stroller @ 2007-11-05 11:35 UTC (permalink / raw
  To: gentoo-user


On 5 Nov 2007, at 05:17, Jarry wrote:

> Anthony E. Caudel wrote:
>> How does the kernel (2.6.22) determine the order of SATA drives (sda,
>> sdb, etc.) when it boots up?
>
> I just checked my computer, and sda is the drive plugged in
> the first sata-port, and sdb the one in the second port
> (according to the info in motherboard manual).
>
> Maybe it is something similar as with p-ata drives, where hda
> is always the master drive on the first pata channel...

What he said.

But if you're having a problem with it, or want to change the driver  
order, then take a poke around in /etc/udev/rules.d/.

Stroller.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05  5:17 ` Jarry
  2007-11-05 11:35   ` Stroller
@ 2007-11-05 17:43   ` Anthony E. Caudel
  2007-11-05 17:56     ` Albert Hopkins
  1 sibling, 1 reply; 7+ messages in thread
From: Anthony E. Caudel @ 2007-11-05 17:43 UTC (permalink / raw
  To: gentoo-user

Jarry wrote:
> Anthony E. Caudel wrote:
>> How does the kernel (2.6.22) determine the order of SATA drives (sda,
>> sdb, etc.) when it boots up?
>
> I just checked my computer, and sda is the drive plugged in
> the first sata-port, and sdb the one in the second port
> (according to the info in motherboard manual).
>
> Maybe it is something similar as with p-ata drives, where hda
> is always the master drive on the first pata channel...
>
> Jarry
For my mobo (Asus A8N-SLI Premium), sda is plugged into SATA slot 3. 
Interestingly, it is NOT the first drive listed in the BIOS either.

I think, but not sure, that the kernel looks at the buses to determine
the drive order.

Maybe someone can confirm?

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05 11:35   ` Stroller
@ 2007-11-05 17:45     ` Anthony E. Caudel
  2007-11-06  0:31       ` Stroller
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony E. Caudel @ 2007-11-05 17:45 UTC (permalink / raw
  To: gentoo-user

Stroller wrote:
>
> On 5 Nov 2007, at 05:17, Jarry wrote:
>
>> Anthony E. Caudel wrote:
>>> How does the kernel (2.6.22) determine the order of SATA drives (sda,
>>> sdb, etc.) when it boots up?
>>
>> I just checked my computer, and sda is the drive plugged in
>> the first sata-port, and sdb the one in the second port
>> (according to the info in motherboard manual).
>>
>> Maybe it is something similar as with p-ata drives, where hda
>> is always the master drive on the first pata channel...
>
> What he said.
>
> But if you're having a problem with it, or want to change the driver
> order, then take a poke around in /etc/udev/rules.d/.
>
> Stroller.
But would this be relevant?  The kernel boot order is set at boot time,
long before udev comes up.

Tony

-- 
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05 17:43   ` Anthony E. Caudel
@ 2007-11-05 17:56     ` Albert Hopkins
  0 siblings, 0 replies; 7+ messages in thread
From: Albert Hopkins @ 2007-11-05 17:56 UTC (permalink / raw
  To: gentoo-user


On Mon, 2007-11-05 at 11:43 -0600, Anthony E. Caudel wrote:
> Jarry wrote:
> > Anthony E. Caudel wrote:
> >> How does the kernel (2.6.22) determine the order of SATA drives (sda,
> >> sdb, etc.) when it boots up?
> >
> > I just checked my computer, and sda is the drive plugged in
> > the first sata-port, and sdb the one in the second port
> > (according to the info in motherboard manual).
> >
> > Maybe it is something similar as with p-ata drives, where hda
> > is always the master drive on the first pata channel...
> >
> > Jarry
> For my mobo (Asus A8N-SLI Premium), sda is plugged into SATA slot 3. 
> Interestingly, it is NOT the first drive listed in the BIOS either.
> 
> I think, but not sure, that the kernel looks at the buses to determine
> the drive order.
> 
> Maybe someone can confirm?

>From what I've heard/read, you cannot guarantee device ordering of
SCSI(-like) devices.  It's recommended that you use disk labels/UUIDs
(and initramfs/initrd for / device).

My BIOS actually lets you select with drives show up in the BIOS as well
as what order.  On one machine I have 8 drives but only 1 configured in
the BIOS (the boot drive).  However at the Linux level it shows up
as /dev/sdj or something like that.  But I think if I had a usb stick in
plugged in while it's being booted it might show up as something
different.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] OT:  How does kernel determine drive order?
  2007-11-05 17:45     ` Anthony E. Caudel
@ 2007-11-06  0:31       ` Stroller
  0 siblings, 0 replies; 7+ messages in thread
From: Stroller @ 2007-11-06  0:31 UTC (permalink / raw
  To: gentoo-user


On 5 Nov 2007, at 17:45, Anthony E. Caudel wrote:
>>>>
>>>> How does the kernel (2.6.22) determine the order of SATA drives  
>>>> (sda,
>>>> sdb, etc.) when it boots up?
>> ...
>> But if you're having a problem with it, or want to change the driver
>> order, then take a poke around in /etc/udev/rules.d/.
>
> But would this be relevant?  The kernel boot order is set at boot  
> time,
> long before udev comes up.

Doh! Good point. I assume you're right.

Stroller.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-06  0:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05  4:38 [gentoo-user] OT: How does kernel determine drive order? Anthony E. Caudel
2007-11-05  5:17 ` Jarry
2007-11-05 11:35   ` Stroller
2007-11-05 17:45     ` Anthony E. Caudel
2007-11-06  0:31       ` Stroller
2007-11-05 17:43   ` Anthony E. Caudel
2007-11-05 17:56     ` Albert Hopkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox