error: file '/vmlinuz-6.16.1-lfs-12.4' not found
"\"enrico\"" ([email protected] via lfs-support Mailing List) <[email protected]> Mon, 6 Apr 2026 08:27:27 +0000
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1775464057-1253-21899
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7BIT
Content-length: 2353
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
}
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.
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.
------------=_1775464057-1253-21899
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
------------=_1775464057-1253-21899--