Gentoo Archives: gentoo-user

From: Tom H <tomh0665@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] booting - I don't anystand how the (Linux) world works anymore
Date: Sat, 25 Jun 2016 20:19:34
Message-Id: CAOdo=SwXNpaxcKkmWxzr=e+LksYOs46jAKX8hgFxxSsHKustvw@mail.gmail.com
In Reply to: [gentoo-user] booting - I don't anystand how the (Linux) world works anymore by Helmut Jarausch
1 On Sat, Jun 25, 2016 at 2:33 PM, Helmut Jarausch <jarausch@××××××.be> wrote:
2 >
3 > I'm a dino since I still use grub-1 but I prefer recent kernels (currently
4 > 4.70-rc4)
5 >
6 > I don't understand the 'root=' option on the boot line like
7 > kernel /boot/vmlinuz-4.7.0-rc4 root=/dev/sda1
8 >
9 > Here my bad experience:
10 >
11 > Having booted by SystemRescueCD from the cdrom device, my root device is
12 > labelled /dev/sda1
13 > BUT trying to use that on the kernel boot line fails (the kernel cannot
14 > find the root file system)
15 >
16 > By trial and error I've found that I have to use root=/dev/sdb1
17 >
18 > but if I plug in an external drive (via USB) this doesn't work any more.
19 >
20 > So, I came up with root=UUID=uuid_number of the root file system.
21 >
22 > But to my surprise I now got a kernel panic
23 > syncing: VFS: unable to mount root fs on unknown block(0,0)
24 >
25 > So, please tell me what I'm missing?
26
27 Are you using an initramfs? You can't use "root=UUID=uuid" if you don't.
28
29 You can use "root=PARTUUID=partuuid" where
30
31 on an msdos-labeled disk:
32
33 # findmnt / -o TARGET,SOURCE,PARTUUID
34 TARGET SOURCE PARTUUID
35 / /dev/sda1 0006c8d7-01
36
37 on a gpt-labeled disk:
38
39 # findmnt / -o TARGET,SOURCE,PARTUUID
40 TARGET SOURCE PARTUUID
41 / /dev/sda3 41e9268f-484a-43e2-ae81-54d8c84119e0

Replies

Subject Author
Re: [gentoo-user] booting - I don't anystand how the (Linux) world works anymore Helmut Jarausch <jarausch@××××××.be>