Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0, 0)
Date: Wed, 25 Nov 2020 17:15:35
Message-Id: a72059ce-9c76-c9a9-50ee-0a1f571bcbd6@sys-concept.com
In Reply to: Re: [gentoo-user] kernel panic - not syncing: VFS: unable to mount root fs on unknown-block (0, 0) by Michael
1 On 11/25/2020 02:50 AM, Michael wrote:
2 > On Wednesday, 25 November 2020 06:30:05 GMT thelma@×××××××××××.com wrote:
3 >
4 >> On 11/24/2020 10:08 PM, thelma@×××××××××××.com wrote:
5 >>> I'm getting a kernel panic when booting a new system.
6 >>>
7 >>> kernel panic - not syncing: VFS: unable to mount root fs on unknown-block
8 >>> (0,0)
9 >>>
10 >>> fstab:
11 >>> LABEL=boot /boot vfat
12 > noauto,noatime 1 2
13 >>> root=UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b /
14 > ext4 noatime 0 1
15 >>> LABEL=swap none swap
16 > sw 0 0
17 >>>
18 >>> I even use: emerge --ask sys-kernel/genkernel
19 >>> genkernel all
20 >>>
21 >>> So all the driver are compile-in (nothing should be missing)
22 >>>
23 >>> ls -al /boot/vmlinu* /boot/initramfs*
24 >>> -rwxr-xr-x 1 root root 11221820 Nov 24 21:30
25 >>> /boot/initramfs-5.4.72-gentoo-x86_64.img -rwxr-xr-x 1 root root 9036672
26 >>> Nov 24 10:56 /boot/vmlinuz-5.4.72-gentoo -rwxr-xr-x 1 root root 8513920
27 >>> Nov 24 21:18 /boot/vmlinuz-5.4.72-gentoo-x86_64
28 >> This problem is solved, it seems to me I was booting old kernel.
29 >> Removing old kernel and re-running:
30 >> grub-mkconfig -o /boot/grub/grub.cfg
31 >>
32 >> Solved the problem.
33 >
34 > Glad you got your new disk booting.
35 >
36 > Worth mentioning your fstab syntax is not entirely correct. According to 'man
37 > fstab' you can specify a device with LABEL=<label>, as long as you have set
38 > up a filesystem label with e.g. mkfs, or tune2fs. So, your "LABEL=boot" is
39 > correct.
40 >
41 > UUID on the other hand is meant to be specified like so:
42 >
43 > UUID=<uuid>
44 >
45 > In your case it would be:
46 >
47 > UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b
48 >
49 > instead of it being preceded by "root=".
50
51 The "genkernel all" is working but I need to find out which option is it
52 that allow booting the drive. The genkernel.conf is different from
53 standard kernel .config
54
55 Removing options from genkernel is not easy.

Replies