linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: walt <w41ter@gmail.com>
To: linux-scsi@vger.kernel.org
Subject: Re: Question about scsi device names
Date: Tue, 16 Jun 2009 16:26:58 -0700	[thread overview]
Message-ID: <h199nr$g7a$1@ger.gmane.org> (raw)
In-Reply-To: <a43edf1b0906161235h124f3ca0y6f62419c38fcaa84@mail.gmail.com>

Billy Crook wrote:
> ... the letter naming of block
> devices in /dev/ is arbitrary and should be presumed unreliable.  It
> is dependant on the order in which the devices were detected.  In your
> case, it is likely that modules are being loaded in another order than
> before.  This could happen for a variety of reasons including module
> renames, removals, or additions.
>
> To reliably reference block devices, use LABEL=, or UUID= in fstab, or
> /dev/disk/by-*/* anywhere else...

Thanks, that's helpful info.  The reason this came up is that the sata
disk on the onboard controller is the boot disk, and it's annoying to
have the boot fail because the ESATA disk is powered on or off, as the
case may be.

The kernel chooses the root partition based on its own value of rdev,
I believe, and that's what I'm trying to set properly.  I've been trying
various different combos of the label and /dev/disk/foo/bar but in the
end rdev just winds up being /dev/sda or /dev/sdb, regardless of what I
type.

Do you know of any way to get around this problem?

Thanks!


> On Thu, Jun 11, 2009 at 19:36, walt<w41ter@gmail.com>  wrote:

>> I have a machine with two sata disks, one connected to the
>> onboard sata controller, the other to an add-on ESATA board
>> plugged into the PCIX slot.
>>
>> When I boot a kernel from the 2.6.28 series, the onboard
>> controller's disk gets dubbed /dev/sdb, and the ESATA disk
>> is /dev/sda.
>>
>> When I boot the same machine with a more recent kernel like
>> Linus's 2.6.30 series, the device names are reversed...


  reply	other threads:[~2009-06-16 23:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12  0:36 Question about scsi device names walt
2009-06-16 19:35 ` Billy Crook
2009-06-16 23:26   ` walt [this message]
2009-06-17 14:19     ` Konrad Rzeszutek
2009-06-17 19:56       ` walt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h199nr$g7a$1@ger.gmane.org' \
    --to=w41ter@gmail.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).