public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] booting - I don't anystand how the (Linux) world works anymore
Date: Sat, 25 Jun 2016 21:51:43 +0200	[thread overview]
Message-ID: <08789349-f812-e211-61b5-4159f8f13aae@gmail.com> (raw)
In-Reply-To: <YseLVsRteFjBS+5CTTP64t@7zc0huhpDvqcKwT48Q8b0>

On 25/06/2016 20:33, Helmut Jarausch wrote:
> Hi,
> 
> I'm a dino since I still use grub-1 but I prefer recent kernels
> (currently 4.70-rc4)
> 
> I don't understand  the   'root=' option on the boot line like
> kernel /boot/vmlinuz-4.7.0-rc4 root=/dev/sda1
> 
> Here my bad experience:
> 
> Having booted by SystemRescueCD from the cdrom device, my root device is
> labelled  /dev/sda1
>  BUT trying to use that on the kernel boot line fails (the kernel cannot
> find the root file system)
> 
> By trial and error I've found that I have to use   root=/dev/sdb1
> 
> but if I plug in an external drive (via USB) this doesn't work any more.
> 
> So, I came up with    root=UUID=uuid_number of the root file system.
> 
> But to my surprise I now got  a kernel panic
> syncing: VFS: unable to mount root fs on unknown block(0,0)
> 
> So, please tell me what I'm missing?
> 
> Many thanks!!!
> Helmut
> 
> 


I've run into this with my last 3 laptops. grub, systemrescue and most
other things that run before my kernel is booted usually find the SSD as
the first drive (what a running kernel would call sda), and the spinning
rust is sdb.


When the kernel eventually boots and does device discovery, it decides
the spinning rust is the primary drive (sdb) - the opposite way around.

So why does this happen? screwed if I know, BUT, the the kernel has
never guaranteed it will always find and enumerate devices the same way
every time always. This might account for why SystemRescueCD and your
installed system do opposite things[1]. We don't know *why* it's sdb,
but we know at grub time that it is. SO use whatever that software
thinks the thing is called :-)



[1] It's also one of the reasons persistent device naming came into
udev, to try guarantee the same device will always have the same name


-- 
Alan McKinnon
alan.mckinnon@gmail.com



  parent reply	other threads:[~2016-06-25 19:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-25 18:33 [gentoo-user] booting - I don't anystand how the (Linux) world works anymore Helmut Jarausch
2016-06-25 19:19 ` Jeremi Piotrowski
2016-06-25 20:08   ` Helmut Jarausch
2016-06-25 19:20 ` [gentoo-user] " James
2016-06-25 19:39 ` [gentoo-user] " David W Noon
2016-06-25 20:18   ` Helmut Jarausch
2016-06-25 21:06     ` David W Noon
2016-06-25 19:46 ` Rich Freeman
2016-06-25 20:23   ` Helmut Jarausch
2016-06-25 19:51 ` Alan McKinnon [this message]
2016-06-25 20:15   ` Rich Freeman
2016-06-25 20:19 ` Tom H
2016-06-25 20:24   ` Helmut Jarausch
2016-06-27 17:14     ` Tom H

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=08789349-f812-e211-61b5-4159f8f13aae@gmail.com \
    --to=alan.mckinnon@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