Gentoo Archives: gentoo-user

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

Replies