[lfs-support] Error: invalid file name When Booting For the First Time

Pierre Labastie pierre.labastie at neuf.fr
Sat Nov 23 01:43:28 PST 2013


Le 23/11/2013 03:39, Alan Feuerbacher a écrit :
> Having had no success this past week in getting an LFS system running under
> UEFI booting with LVM volume management and GPT partitioning, I decided to
> install a fresh copy of LFS on a new hard drive. I did my best to follow the
> LFS book (development version) exactly, and this evening was able to try to
> boot the new system. No success yet. I got this error message when Grub
> came up:
> 
> error: invalid file name 'vmlinuz-3.12-lfs-SVN-20131105'
> 
> I don't know where things have gone south, so perhaps someone else can help
> figure it out.
> 
> I have three 2TB hard drives running right now:
> /dev/sda contains Fedora19
> /dev/sdb contains the new LFS system
> /dev/sdc contains the UEFI LFS system from last week
> 
> I installed Grub to /dev/sdb with this:
> 
> grub-install /dev/sdb
> 
> /boot is mounted on /dev/sdb1
> 
> Below are some listings of (I hope) all the relevant disk and boot
> information.
> 
> Contents of /boot/grub/grub.cfg:
> ##########
> # Begin /boot/grub/grub.cfg
> set default=0
> set timeout=5
> 
> insmod ext2
> set root=(hd1,1)
> menuentry "GNU/Linux, Linux 3.12-lfs-SVN-20131105" {
> linux vmlinuz-3.12-lfs-SVN-20131105 root=/dev/sdb1 ro
> }
> ##########
> 
> I was not sure whether the linux line should be:
> linux vmlinuz-3.12-lfs-SVN-20131105 root=/dev/sdb1 ro
> or this:
> linux /vmlinuz-3.12-lfs-SVN-20131105 root=/dev/sdb1 ro
> I tried both, and got the same "invalid file name" error.
> 
> Listing of /boot:
> ##########
> -rw-r--r-- 1 root root 86838 Nov 20 22:10 config-3.12
> drwxr-xr-x 4 root root 4096 Nov 22 20:43 grub
> drwx------ 2 root root 16384 Nov 18 05:27 lost+found
> -rw------- 1 root root 881184 Nov 22 20:38 shellx64.efi
> -rw------- 1 root root 881184 Nov 22 20:38 Shellx64.efi
> -rw-r--r-- 1 root root 3166833 Nov 20 22:10 System.map-3.12
> -rw-r--r-- 1 root root 6341328 Nov 22 20:39 vmlinuz-3.12
> -rw-r--r-- 1 root root 6341328 Nov 22 20:39 vmlinuz-3.12-lfs
> -rw-r--r-- 1 root root 6341328 Nov 20 22:09 vmlinuz-3.12-lfs-SVN-20131119
> -rw-r--r-- 1 root root 6341328 Nov 22 20:40 vmlinuz-3.12-lfs.x86_64
> ##########
> 
> Listing of /boot/grub:
> ##########
> -rw-r--r-- 1 root root 206 Nov 22 20:43 grub.cfg
> -rw-r--r-- 1 root root 1024 Nov 22 19:20 grubenv
> drwxr-xr-x 2 root root 12288 Nov 22 19:20 i386-pc
> drwxr-xr-x 2 root root 4096 Nov 22 19:20 locale
> ##########
> 
> My disks according to lsblk:
> ##########
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> sda 8:0 0 1.8T 0 disk
> ├─sda1 8:1 0 500M 0 part
> └─sda2 8:2 0 1.8T 0 part
> ├─fedora-root 253:0 0 50G 0 lvm
> ├─fedora-swap 253:1 0 7.7G 0 lvm [SWAP]
> └─fedora-home 253:5 0 1.8T 0 lvm /fedorahome
> sdb 8:16 0 1.8T 0 disk
> ├─sdb1 8:17 0 1G 0 part /boot
> ├─sdb2 8:18 0 16G 0 part [SWAP]
> ├─sdb3 8:19 0 100G 0 part /
> ├─sdb4 8:20 0 1K 0 part
> ├─sdb5 8:21 0 200G 0 part /home
> └─sdb6 8:22 0 195G 0 part /opt
> sdc 8:32 0 1.8T 0 disk
> ├─sdc1 8:33 0 1G 0 part
> └─sdc2 8:34 0 500G 0 part
> ├─vglfs-swap 253:2 0 16G 0 lvm
> ├─vglfs-root 253:3 0 100G 0 lvm /lfsefiroot
> └─vglfs-home 253:4 0 384G 0 lvm /lfsefihome
> sr0 11:0 1 1024M 0 rom
> ##########
> 
> Fdisk's listing of /dev/sdb :
> ##########
> Device Boot Start End Blocks Id System
> /dev/sdb1 * 2048 2099199 1048576 83 Linux
> /dev/sdb2 2099200 35653631 16777216 82 Linux swap / Solaris
> /dev/sdb3 35653632 245368831 104857600 83 Linux
> /dev/sdb4 245368832 1084229631 419430400 5 Extended
> /dev/sdb5 245370880 664801279 209715200 83 Linux
> /dev/sdb6 664803328 1073747967 204472320 83 Linux
> ##########
> 
> Filesystem table:
> ##########
> # Begin /etc/fstab
> 
> # file system mount-point type options dump fsck
> # order
> 
> /dev/sdb1 /boot ext4 defaults 1 2
> /dev/sdb2 swap swap defaults 0 0
> /dev/sdb3 / ext4 defaults 1 1
> /dev/sdb5 /home ext4 defaults 1 2
> /dev/sdb6 /opt ext4 defaults 1 2
> proc /proc proc nosuid,noexec,nodev 0 0
> sysfs /sys sysfs nosuid,noexec,nodev 0 0
> devpts /dev/pts devpts gid=5,mode=620 0 0
> tmpfs /run tmpfs defaults 0 0
> devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
> 
> # End /etc/fstab
> ##########
> 
> As always, any help is appreciated.
> 
> Alan
> 
> 
Hi Alan,

I do not see "vmlinuz-3.12-lfs-SVN-20131105" (as mentioned in
/boot/grub/grub.cfg) in the listing of the /boot directory...

I think the line in grub.cfg could be:
linux /vmlinuz-3.12-lfs-SVN-20131119 root=/dev/sdb3 ro

with 3 changes:
vmlinuz  -> /vmlinuz
20131105 -> 20131119
/dev/sdb1 -> /dev/sdb3

The last one is because your root filesystem is on /dev/sdb3. root=... tells
the kernel where / is.

Regards
Pierre



More information about the lfs-support mailing list