Re: error: file '/vmlinuz-6.16.1-lfs-12.4' not found
"Eric Clothier" ([email protected] via lfs-support Mailing List) <[email protected]> Mon, 6 Apr 2026 07:51:57 -0400
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <CAAGwWFXr-fbd3-oi84cNeFLfY3FbnFTHy8dR2nfG=bDrXccOLQ@mail.gmail.com> |
This is a multi-part message in MIME format... ------------=_1775476336-23901-21960 Content-Type: multipart/alternative; boundary="000000000000c58e6a064ec94bdb" --000000000000c58e6a064ec94bdb Content-Type: text/plain; charset="UTF-8" On Mon, Apr 6, 2026, 04:27 "enrico" <[email protected]> wrote: > Hello support forum, > > I am done building LFS 12.4, following the directions of the LFS book. All > software packages have been installed with no errors, and I tested all > packages with success. The problem I have is the one in the subject: I > cannot > boot into LFS.. > > I am using UEFI so I used the grub instruction per the "Using grub to set > up > the boot process with UEFI." page in BLFS. > > Here is my /etc/fstab file > > # file system mount-point type > options dump fsck > # > /dev/nvme0n1p6 /boot/efi vfat > codepage=437,iocharset=iso8859-1 0 1 > /dev/nvme0n1p7 /boot ext2 > defaults,noatime > 0 0 > /dev/nvme0n1p8 / ext4 defaults > 0 1 > /dev/nvme0n1p2 none swap defaults > 0 0 > > > here is my grub.cfg > > Begin /boot/grub/grub.cfg > set default=0 > set timeout=5 > > insmod part_gpt > insmod ext2 > set root=(hd0,gpt7) >>>>>>>>> this is the /boot partition (/dev/nvme0n1p7) > > insmod efi_gop > insmod efi_uga > if loadfont /grub/fonts/unicode.pf2; then > terminal_output gfxterm > fi > > menuentry "GNU/Linux, Linux 6.16.1-lfs-12.4" { > linux /vmlinuz-6.16.1-lfs-12.4 root=/dev/nvme0n1p8 ro > Here you point to "vmlinuz-6.16.1-lfs-12.4"... } > > menuentry "Firmware Setup" { > fwsetup > } > > "Note > > From GRUB's perspective, the kernel files are relative to the partition > used. > If you used a separate /boot partition, remove /boot from the above linux > line. You will also need to change the set root line to point to the boot > partition. " >>>>>>I followed these instructions when setting my grub.cfg. > > > > here is my /boot directory: > > (lfs chroot) root:/boot/grub# ls /boot > config-6.16.1 efi grub lost+found System.map-6.16.1 vmlinuz-6.16.1- > lfs-12.4-systemd. But here the kernel file is "vmlinuz-6.16.1-lfs-12.4-systemd"... > I never deviated from the book. but followed the instructions to the > letter. > > This is my second LFS build; the previous one (LFS 12.2) was done on a > laptop > with no UEFI, and I had no issues with booting. This is my first attempt > with > UEFI. > > I would appreciate if someone could explain me what I am doing wrong: my > take > is that the grub.cfg file is not correct, despite following the book > instructions. I read many posts on the web regarding the grub.cfg file, and > still cannot come up with my own solution. > > Thank you in advance for your support. > > Enrico. > That is your problem, GRUB is looking for a file that does not exist. Add the "-systemd" to your "/boot/grub/grub.cfg" on the "linux" line, and I'd wager that will fix your problem. - Eric > --000000000000c58e6a064ec94bdb 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 Mon, Apr 6, 2026, 04:27 "= ;enrico" <<a href=3D"mailto:[email protected]"= >[email protected]</a>> wrote:<br></div><blockquote= class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli= d;padding-left:1ex">Hello support forum,<br> <br> I am done building LFS 12.4, following the directions of the LFS=C2=A0 book= . All<br> software packages have been installed with no errors, and I tested all<br> packages with success. The problem I have is the one in the subject: I cann= ot<br> boot into LFS..<br> <br> I am using UEFI so I used the grub instruction per the "Using grub to = set up<br> the boot process with UEFI." page in BLFS.<br> <br> Here is my /etc/fstab file<br> <br> =C2=A0# file system=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 mount-point= =C2=A0 type<br> options=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 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> <br> <br> here is my grub.cfg<br> <br> Begin /boot/grub/grub.cfg<br> set default=3D0<br> set timeout=3D5<br> <br> insmod part_gpt<br> insmod ext2<br> set root=3D(hd0,gpt7) >>>>>>>>> this is the /boo= t partition (/dev/nvme0n1p7)<br> <br> insmod efi_gop<br> insmod efi_uga<br> if loadfont /grub/fonts/unicode.pf2; then<br> =C2=A0 terminal_output gfxterm<br> fi<br> <br> menuentry "GNU/Linux, Linux 6.16.1-lfs-12.4" {<br> =C2=A0 linux=C2=A0 =C2=A0/vmlinuz-6.16.1-lfs-12.4 root=3D/dev/nvme0n1p8 ro<= br></blockquote></div><div dir=3D"auto"><br></div><div class=3D"gmail_quote= gmail_quote_container" dir=3D"auto"><blockquote class=3D"gmail_quote" styl= e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></block= quote></div><div dir=3D"auto">Here you point to "vmlinuz-6.16.1-lfs-12= .4"...</div><div dir=3D"auto"><br></div><div class=3D"gmail_quote gmai= l_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"> }<br> <br> menuentry "Firmware Setup" {<br> =C2=A0 fwsetup<br> }<br> <br> "Note<br> <br> From GRUB's perspective, the kernel files are relative to the partition= used.<br> If you used a separate /boot partition, remove /boot from the above linux<b= r> line. You will also need to change the set root line to point to the boot<b= r> partition. " >>>>>>I followed these instructions whe= n setting my grub.cfg.<br> <br> <br> <br> here is my /boot directory:<br> <br> (lfs chroot) root:/boot/grub# ls /boot<br> config-6.16.1=C2=A0 efi=C2=A0 grub=C2=A0 lost+found=C2=A0 System.map-6.16.1= =C2=A0 vmlinuz-6.16.1-<br> lfs-12.4-systemd.</blockquote></div><div dir=3D"auto"><br></div><div class= =3D"gmail_quote gmail_quote_container" dir=3D"auto"></div><div dir=3D"auto"= >But here the kernel file is "vmlinuz-6.16.1-lfs-12.4-systemd"...= </div><div dir=3D"auto"><br></div><div class=3D"gmail_quote gmail_quote_con= tainer" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 = 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> I never deviated from the book. but followed the instructions to the letter= .<br> <br> This is my second LFS build; the previous one (LFS 12.2) was done on a lapt= op<br> with no UEFI, and I had no issues with booting. This is my first attempt wi= th<br> UEFI.<br> <br> I would appreciate if someone could explain me what I am doing wrong: my ta= ke<br> is that the grub.cfg file is not correct, despite following the book<br> instructions. I read many posts on the web regarding the grub.cfg file, and= <br> still cannot come up with my own solution.<br> <br> Thank you in advance for your support.<br> <br> Enrico.<br></blockquote></div><div dir=3D"auto"><br></div><div dir=3D"auto"= ><div dir=3D"auto">That is your problem, GRUB is looking for a file that do= es not exist. Add the "-systemd" to your "/boot/grub/grub.cf= g" on the "linux" line, and I'd wager that will fix your= problem.</div><div dir=3D"auto"><br></div><div dir=3D"auto">- Eric</div></= div><div class=3D"gmail_quote gmail_quote_container" dir=3D"auto"><blockquo= te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so= lid;padding-left:1ex"></blockquote></div></div> --000000000000c58e6a064ec94bdb-- ------------=_1775476336-23901-21960 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 ------------=_1775476336-23901-21960--