Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies