Re: Kernel panic, Unable to mount root fs

"Willem Oldeman" ([email protected] via lfs-support Mailing List) <[email protected]> Mon, 16 Mar 2026 17:04:33 +0100
Newsgroups gmane.linux.lfs.support
Message-ID <CAEe8HHtS_WVLzt15-2RwFraHjGrpXfRyvy1yWK17gukuyydN+g@mail.gmail.com>
This is a multi-part message in MIME format...

------------=_1773677095-1253-16420
Content-Type: multipart/alternative; boundary="00000000000098074a064d2660e5"

--00000000000098074a064d2660e5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks Bruce :-)

I'm going for the initrd.img, I'm working on mkinitramfs from the BLFS
section.
The cpio package (dependency for mkinitramfs) is still a challenge.
Let me tinker for a while.

-Willem

On Sun, Mar 15, 2026 at 7:47=E2=80=AFPM Bruce Dubbs <
[email protected]> wrote:

> On 3/15/26 1:34 PM, Willem Oldeman ([email protected] via lfs-support
> Mailing
> List) 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
> <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 fin=
e.
> > - 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 <
> 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=3D1024x768x32
> >      search --no-floppy --fs-uuid --set=3Droot 85dd9c2b-a614-4f09-xxxx
> >      linux /boot/vmlinuz-6.18.10-lfs-13.0-systemd \
> >          root=3Duuid=3D85dd9c2b-a614-4f09-9069-xxxx \
> >          ro \
> >          nomodeset \
> >          nouveau.modeset=3D0 \
> >
> modprobe.blacklist=3Dnouveau,nvidia,nvidia_drm,nvidia_modeset,nvidia_uvm
> > }
> >
> > Where do I go wrong?
> > Any hints are welcome :-)
>
> You cannot use root=3Duuid without an initrd.  Look at the host
> /dev/disk/by-partuuid/
> to find the partition uuid and use:
>    root=3DPARTUUID=3D<appropriate partition uuid>
>
> Note that 85dd9c2b-a614-4f09-9069-xxxx  is an invalid uuid anyway.
> Also the search line and gfxpayload line are meaningless for LFS.
>
>    -- Bruce
>
>
> --
> http://lists.linuxfromscratch.org/sympa/info/lfs-support
> Unsubscribe: See the above information page



--=20
Met vriendelijke groet,

Willem Oldeman
Enschede

--00000000000098074a064d2660e5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks=C2=A0Bruce :-)</div><div><br></div><div>I&#39;=
m going for the initrd.img, I&#39;m working on mkinitramfs from the BLFS se=
ction.<br></div><div>The cpio package (dependency for=C2=A0mkinitramfs) is =
still a challenge.</div><div>Let me tinker for a while.</div><div><br></div=
><div>-Willem</div></div><br><div class=3D"gmail_quote gmail_quote_containe=
r"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Mar 15, 2026 at 7:47=E2=80=
=AFPM Bruce Dubbs &lt;<a href=3D"mailto:[email protected].=
org">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">On 3/15/26 1:34 PM, Willem Oldem=
an (<a href=3D"mailto:[email protected]" target=3D"_blank">wha.oldeman@=
gmail.com</a> via lfs-support Mailing <br>
List) wrote:<br>
&gt; Dear LFS community,<br>
&gt; <br>
&gt; I am building an LFS 13.0 system, but I=C2=A0run into an issue booting=
 it.=C2=A0Version 13.0- <br>
&gt; systemd.<br>
&gt; <br>
&gt; I followed the steps in<br>
&gt; <a href=3D"https://www.linuxfromscratch.org/lfs/view/stable-systemd/in=
dex.html" rel=3D"noreferrer" target=3D"_blank">https://www.linuxfromscratch=
.org/lfs/view/stable-systemd/index.html</a> &lt;https:// <br>
&gt; <a href=3D"http://www.linuxfromscratch.org/lfs/view/stable-systemd/ind=
ex.html" rel=3D"noreferrer" target=3D"_blank">www.linuxfromscratch.org/lfs/=
view/stable-systemd/index.html</a>&gt;<br>
&gt; but my system doesn&#39;t want to boot into LFS yet.<br>
&gt; When booting LFS, I get an error: Kernel Panic &quot;Please reboot you=
r computer. VFS: <br>
&gt; Unable to mount root fs on unknown-block(0,0)&quot;.<br>
&gt; <br>
&gt; Current setup:<br>
&gt; - Ubuntu 24.04 on an Asus laptop, using an nvme drive. Ubuntu loads fi=
ne.<br>
&gt; - For now, I want to keep Ubuntu in place as the &quot;mother&quot;, s=
ince it works.<br>
&gt; - I do not follow <a href=3D"https://www.linuxfromscratch.org/lfs/view=
/stable-systemd/chapter10/" rel=3D"noreferrer" target=3D"_blank">https://ww=
w.linuxfromscratch.org/lfs/view/stable-systemd/chapter10/</a> <br>
&gt; grub.html &lt;<a href=3D"https://www.linuxfromscratch.org/lfs/view/sta=
ble-systemd/chapter10/" rel=3D"noreferrer" target=3D"_blank">https://www.li=
nuxfromscratch.org/lfs/view/stable-systemd/chapter10/</a> <br>
&gt; grub.html&gt;, because I do not want to break the mother.<br>
&gt; - The nvme drive has been repartitioned, nvme0p1 through nvme0p3 are f=
or Ubuntu, new <br>
&gt; partitions=C2=A0nvme0n1p4 (root) and=C2=A0nvme0n1p5 (home) were added =
for LFS.<br>
&gt; - I have added the entry /etc/grub.d/42_lfs (on mother system) with co=
ntents:<br>
&gt; <br>
&gt; #!/bin/sh<br>
&gt; exec tail -n +3 $0<br>
&gt; menuentry &quot;Linux From Scratch 13.0 (console safe mode)&quot; {<br>
&gt;=C2=A0 =C2=A0 =C2=A0 insmod part_gpt<br>
&gt;=C2=A0 =C2=A0 =C2=A0 insmod ext2<br>
&gt;=C2=A0 =C2=A0 =C2=A0 set gfxpayload=3D1024x768x32<br>
&gt;=C2=A0 =C2=A0 =C2=A0 search --no-floppy --fs-uuid --set=3Droot 85dd9c2b=
-a614-4f09-xxxx<br>
&gt;=C2=A0 =C2=A0 =C2=A0 linux /boot/vmlinuz-6.18.10-lfs-13.0-systemd \<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 root=3Duuid=3D85dd9c2b-a614-4f09-906=
9-xxxx \<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ro \<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nomodeset \<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 nouveau.modeset=3D0 \<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 modprobe.blacklist=3Dnouveau,nvidia,=
nvidia_drm,nvidia_modeset,nvidia_uvm<br>
&gt; }<br>
&gt; <br>
&gt; Where do I go wrong?<br>
&gt; Any hints are welcome :-)<br>
<br>
You cannot use root=3Duuid without an initrd.=C2=A0 Look at the host /dev/d=
isk/by-partuuid/<br>
to find the partition uuid and use:<br>
=C2=A0 =C2=A0root=3DPARTUUID=3D&lt;appropriate partition uuid&gt;<br>
<br>
Note that 85dd9c2b-a614-4f09-9069-xxxx=C2=A0 is an invalid uuid anyway.<br>
Also the search line and gfxpayload line are meaningless for LFS.<br>
<br>
=C2=A0 =C2=A0-- Bruce<br>
<br>
<br>
-- <br>
<a href=3D"http://lists.linuxfromscratch.org/sympa/info/lfs-support" rel=3D=
"noreferrer" target=3D"_blank">http://lists.linuxfromscratch.org/sympa/info=
/lfs-support</a><br>
Unsubscribe: See the above information page</blockquote></div><div><br clea=
r=3D"all"></div><br><span class=3D"gmail_signature_prefix">-- </span><br><d=
iv dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr">Met vriendelijke =
groet,<div><br></div><div>Willem Oldeman</div><div>Enschede</div></div></di=
v>

--00000000000098074a064d2660e5--

------------=_1773677095-1253-16420
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
------------=_1773677095-1253-16420--