From: Paul Hartman <paul.hartman+gentoo@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Can't find init due to inconsistent drive order
Date: Mon, 1 Jul 2013 17:54:53 -0500 [thread overview]
Message-ID: <CAEH5T2NgSzp6U5jFAinQwf-AOmJiNM7yweHLFDJ3tUjzyeuF-g@mail.gmail.com> (raw)
In-Reply-To: <kqstnb$n0l$1@ger.gmane.org>
On Mon, Jul 1, 2013 at 4:52 PM, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I've just recently run into a problem where sometimes when a machine
> boots, the kernel can't find init. This appears to be because my grub
> configuration line says "root=/dev/sda5" and _sometimes_ the drive
> that contains my root partition is sdb instead of sda. AFAICT, for the
> past 30 years the linux kernel was 100% consistent in the order that
> hard drives were labelled -- but recently that has seems to have
> changed.
I wonder if it could be related to parallel initialization of disks. I
think there's a kernel toggle for that. I wonder if sometimes one
drive spins up faster than the other. (If that's even how it works...)
I have experienced situations where the drive names change depending
on what devices were plugged into the computer when it was turned on,
especially external hard drives, card readers or flash drives, or if a
disc in the CDROM drive. Not sure if that is due to the way the
computer's BIOS handled things during POST, or the way the linux
kernel does its thing.
> Are we really expected now to set up an initrd just so that the kernel
> can find the root partition??
As far as I know, the answer is "yes".
FWIW, I always resisted making an initrd until very recently, but
wanted to use UUID in my bootup on my new system. I used this command
(which I re-run whenever I deploy a new kernel):
dracut -H -o i18n -o resume -o usrmount --force /boot/initramfs.img
And then added one line to my grub2 config:
initrd /initramfs.img
and it just simply works... though it's still a bit of black magic to
me, and every time I reboot I feel a bit of nervousness when I see
"Loading initial ramdisk..." and don't breathe until it succeeds. :)
next prev parent reply other threads:[~2013-07-01 22:55 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 21:52 [gentoo-user] Can't find init due to inconsistent drive order Grant Edwards
2013-07-01 22:54 ` Paul Hartman [this message]
2013-07-02 2:48 ` [gentoo-user] " Grant Edwards
2013-07-01 22:57 ` [gentoo-user] " Alan McKinnon
2013-07-02 2:44 ` [gentoo-user] " Grant Edwards
2013-07-02 2:53 ` Canek Peláez Valdés
2013-07-02 3:00 ` Grant Edwards
2013-07-02 9:14 ` [gentoo-user] " Stroller
2013-07-02 14:23 ` [gentoo-user] " Grant Edwards
2013-07-02 14:30 ` Randolph Maaßen
2013-07-02 14:42 ` Grant Edwards
2013-07-02 14:58 ` Randolph Maaßen
2013-07-02 20:36 ` Grant Edwards
2013-07-02 15:08 ` Bruce Hill
2013-07-02 15:16 ` Grant Edwards
2013-07-02 15:25 ` Neil Bothwick
2013-07-02 20:38 ` Grant Edwards
2013-07-02 20:43 ` Randolph Maaßen
2013-07-02 16:57 ` Grant Edwards
2013-07-02 17:19 ` Neil Bothwick
2013-07-02 17:46 ` Grant Edwards
2013-07-02 19:07 ` Paul Hartman
2013-07-02 20:27 ` Grant Edwards
2013-07-02 22:30 ` Paul Hartman
2013-07-02 14:34 ` Wang Xuerui
2013-07-02 14:42 ` Daniel Frey
2013-07-02 15:09 ` Grant Edwards
2013-07-02 15:21 ` Neil Bothwick
2013-07-02 20:40 ` Grant Edwards
2013-07-02 23:35 ` Neil Bothwick
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=CAEH5T2NgSzp6U5jFAinQwf-AOmJiNM7yweHLFDJ3tUjzyeuF-g@mail.gmail.com \
--to=paul.hartman+gentoo@gmail.com \
--cc=gentoo-user@lists.gentoo.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