All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <chris.friesen@genband.com>
To: Wallak <wallak@free.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linix-3.6.3 sda, sdb drives in reverse order (with a USB 2.0 drives and a monolithic kernel configuration)
Date: Fri, 26 Oct 2012 14:21:56 -0600	[thread overview]
Message-ID: <508AF0E4.7030701@genband.com> (raw)
In-Reply-To: <508AE7D7.309@free.fr>

On 10/26/2012 01:43 PM, Wallak wrote:
> Chris Friesen wrote:
>> On 10/25/2012 04:49 PM, Wallak wrote:
>>> I've a very annoying behavior with the linux-3.6.x kernels release, and
>>> a monolithic configuration. The USB 2.0 drives are mapped first with
>>> /dev/sda, /dev/sdb... devices, and than the SATA AHCI drives come after.
>>> This is out of order with the BIOS configuration and breaks a program
>>> like lilo. This is also annoying when we use a static partition mapping.
>>>
>>> Linux-3.5 works fine. Where this bug come from ? Is this a patch to get
>>> the old, and classical behavior ?
>>
>> As you have discovered it's fragile to rely on /dev/sd* names since a
>> BIOS update, kernel update, or motherboard replacement could
>> conceivably cause them to change.
>>
>> Better to use something like partition labels that you control and
>> that don't change.
>>
>> Chris
>>
> You are right, when we have a configuration with a lot of drvies and
> adapters SATA, old SCSI,.. etc. the order may change. But having the
> main SATA hard drive defined, as the BIOS boot device, behind external
> and removable USB drives is in my opinion a bug.And may lead to security
> issues (drives with the same label, etc...).
>
> Using =LABEL, or =UUID with a bootloader like grub or lilo, save the the
> boot device mapped drive partition number , and so booting on an older
> kernel like linux 3.5 will fail. If we remove the external USB drive,
> the boot process will fail too...
>
> So such a bug have to be fix.

If you specify "root=LABEL=<label>" as part of the kernel boot args in 
grub does it not check the label at boot time?

Chris

  reply	other threads:[~2012-10-26 20:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25 22:49 Linix-3.6.3 sda, sdb drives in reverse order (with a USB 2.0 drives and a monolithic kernel configuration) Wallak
2012-10-25 23:11 ` Chris Friesen
2012-10-26 19:43   ` Wallak
2012-10-26 20:21     ` Chris Friesen [this message]
2012-10-26 23:57       ` Wallak
2012-10-28  3:17         ` Wallak
2012-10-28  3:22           ` Andi Kleen

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=508AF0E4.7030701@genband.com \
    --to=chris.friesen@genband.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wallak@free.fr \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.