Re: Kernel panic, Unable to mount root fs
"Eric Clothier" ([email protected] via lfs-support Mailing List) <[email protected]> Sun, 15 Mar 2026 14:42:49 -0400
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <CAAGwWFUA=-QuMHXz-hdG-TTJROwArKd20ZOt4NoKtmaY3gssJg@mail.gmail.com> |
This is a multi-part message in MIME format... ------------=_1773600185-1253-16243 Content-Type: multipart/alternative; boundary="000000000000b4aeb8064d14789b" --000000000000b4aeb8064d14789b Content-Type: text/plain; charset="UTF-8" On Sun, Mar 15, 2026, 14:35 Willem Oldeman < [email protected]> wrote: > Dear LFS community, > > I am building an LFS 13.0 system, but I run into an issue booting > it. Version 13.0-systemd. > > I followed the steps in > https://www.linuxfromscratch.org/lfs/view/stable-systemd/index.html > but my system doesn't want to boot into LFS yet. > When booting LFS, I get an error: Kernel Panic "Please reboot your > computer. VFS: Unable to mount root fs on unknown-block(0,0)". > > Current setup: > - Ubuntu 24.04 on an Asus laptop, using an nvme drive. Ubuntu loads fine. > - For now, I want to keep Ubuntu in place as the "mother", since it works. > - I do not follow > https://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter10/grub.html, > because I do not want to break the mother. > - The nvme drive has been repartitioned, nvme0p1 through nvme0p3 are for > Ubuntu, new partitions nvme0n1p4 (root) and nvme0n1p5 (home) were added for > LFS. > - I have added the entry /etc/grub.d/42_lfs (on mother system) with > contents: > > #!/bin/sh > exec tail -n +3 $0 > menuentry "Linux From Scratch 13.0 (console safe mode)" { > insmod part_gpt > insmod ext2 > set gfxpayload=1024x768x32 > search --no-floppy --fs-uuid --set=root 85dd9c2b-a614-4f09-xxxx > linux /boot/vmlinuz-6.18.10-lfs-13.0-systemd \ > root=uuid=85dd9c2b-a614-4f09-9069-xxxx \ > ro \ > nomodeset \ > nouveau.modeset=0 \ > > modprobe.blacklist=nouveau,nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm > } > > Where do I go wrong? > Any hints are welcome :-) > > -Willem > -- > Willem, what filesystem did you use for your root partition, and did you make sure that support for that filesystem is built into the kernel as opposed to a module? - Eric > --000000000000b4aeb8064d14789b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div class=3D"gmail_quote gmail_quote_container" dir=3D"a= uto"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 15, 2026, 14:35 Will= em Oldeman <<a href=3D"mailto:[email protected]">lf= [email protected]</a>> wrote:<br></div><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p= adding-left:1ex"><div dir=3D"ltr"><div>Dear LFS community,</div><div><br></= div><div>I am building an LFS 13.0 system, but I=C2=A0run into an issue boo= ting it.=C2=A0Version 13.0-systemd.</div><div><br></div><div>I followed the= steps in=C2=A0</div><div><a href=3D"https://www.linuxfromscratch.org/lfs/v= iew/stable-systemd/index.html" target=3D"_blank" rel=3D"noreferrer">https:/= /www.linuxfromscratch.org/lfs/view/stable-systemd/index.html</a></div><div>= </div><div>but my system doesn't want to boot into LFS yet.</div><div>W= hen booting LFS, I get an error: Kernel Panic "Please reboot your comp= uter. VFS: Unable to mount root fs on unknown-block(0,0)".</div><div><= br></div><div>Current setup:</div><div>- Ubuntu 24.04 on an Asus laptop, us= ing an nvme drive. Ubuntu loads fine.</div><div>- For now, I want to keep U= buntu in place as the "mother", since it works.</div><div>- I do = not follow=C2=A0<a href=3D"https://www.linuxfromscratch.org/lfs/view/stable= -systemd/chapter10/grub.html" target=3D"_blank" rel=3D"noreferrer">https://= www.linuxfromscratch.org/lfs/view/stable-systemd/chapter10/grub.html</a>, b= ecause I do not want to break the mother.</div><div>- The nvme drive has be= en repartitioned, nvme0p1 through nvme0p3 are for Ubuntu, new partitions=C2= =A0nvme0n1p4 (root) and=C2=A0nvme0n1p5 (home) were added for LFS.</div><div= >- I have added the entry /etc/grub.d/42_lfs (on mother system) with conten= ts:</div><div><br></div><div>#!/bin/sh</div><div>exec tail -n +3 $0<br>menu= entry "Linux From Scratch 13.0 (console safe mode)" {<br>=C2=A0 = =C2=A0 insmod part_gpt<br>=C2=A0 =C2=A0 insmod ext2<br>=C2=A0 =C2=A0 set gf= xpayload=3D1024x768x32<br>=C2=A0 =C2=A0 search --no-floppy --fs-uuid --set= =3Droot 85dd9c2b-a614-4f09-xxxx<br>=C2=A0 =C2=A0 linux /boot/vmlinuz-6.18.1= 0-lfs-13.0-systemd \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 root=3Duuid=3D85dd9c2b-= a614-4f09-9069-xxxx \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ro \<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 nomodeset \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nouveau.modeset=3D= 0 \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 modprobe.blacklist=3Dnouveau,nvidia,nvid= ia_drm,nvidia_modeset,nvidia_uvm<br>}<br><br></div><div>Where do I go wrong= ?</div><div>Any hints are welcome :-)</div><div><br></div><div>-Willem</div= ></div> --<br></blockquote></div><div dir=3D"auto">Willem, what filesystem did you = use for your root partition, and did you make sure that support for that fi= lesystem is built into the kernel as opposed to a module?</div><div dir=3D"= auto"><br></div><div dir=3D"auto">- Eric</div><div class=3D"gmail_quote gma= il_quote_container" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D= "margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquot= e></div></div> --000000000000b4aeb8064d14789b-- ------------=_1773600185-1253-16243 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page ------------=_1773600185-1253-16243--