eliloconfig not working
by mfoley from LinuxQuestions.org on (#6JS0Q)
I thought I had all this UEFI stuff figured out, but apparently not. I've copied the root partition of a MBR boot drive to a new drive formatted to GPT. The partition table is:
Code:Disklabel type: gpt
Disk identifier: DC1E26F4-1500-4546-ABC5-F6F585289369
Device Start End Sectors Size Type
/dev/sda1 2048 411647 409600 200M EFI System
/dev/sda2 411648 12994559 12582912 6G Linux swap
/dev/sda3 12994560 1782579166 1769584607 843.8G Linux filesystemWhile booted from the Slackware installation ISO in UEFI mode, I did:
Code:mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
mount /dev/sda1 /boot/efiI then ran eliloconfig. I got the menu to "Istall ELILO on the EFI System Partition", then to select a chooser (I picked "Install a boot menu entry"), but after clicking OK, I got the message, "Could not open disk /dev/sdb: No such file or directory."
That's the first problem, why this message? There is no /dev/sdb device!
Even so, eliloconfig did create the /boot/efi/EFI/Slackware/ files, including elilo.conf:
Code:chooser=simple
delay=1
timeout=1
#
image=vmlinuz
label=vmlinuz
read-only
append="root=/dev/sda2 vga=normal ro"This is not my selected "chooser" and I don't know where it got /dev/sda2. I edited that to /dev/sda3 and copied /boot/vmlinuz-huge-4.4.301 to /boot/efi/EFI/Slackware/vmlinuz. I then tried booting off /dev/sda (not DVD), but it wouldn't boot. It went right to the BIOS setup screen.
So what possibly many things have I done wrong?
Code:Disklabel type: gpt
Disk identifier: DC1E26F4-1500-4546-ABC5-F6F585289369
Device Start End Sectors Size Type
/dev/sda1 2048 411647 409600 200M EFI System
/dev/sda2 411648 12994559 12582912 6G Linux swap
/dev/sda3 12994560 1782579166 1769584607 843.8G Linux filesystemWhile booted from the Slackware installation ISO in UEFI mode, I did:
Code:mount /dev/sda3 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
mount /dev/sda1 /boot/efiI then ran eliloconfig. I got the menu to "Istall ELILO on the EFI System Partition", then to select a chooser (I picked "Install a boot menu entry"), but after clicking OK, I got the message, "Could not open disk /dev/sdb: No such file or directory."
That's the first problem, why this message? There is no /dev/sdb device!
Even so, eliloconfig did create the /boot/efi/EFI/Slackware/ files, including elilo.conf:
Code:chooser=simple
delay=1
timeout=1
#
image=vmlinuz
label=vmlinuz
read-only
append="root=/dev/sda2 vga=normal ro"This is not my selected "chooser" and I don't know where it got /dev/sda2. I edited that to /dev/sda3 and copied /boot/vmlinuz-huge-4.4.301 to /boot/efi/EFI/Slackware/vmlinuz. I then tried booting off /dev/sda (not DVD), but it wouldn't boot. It went right to the BIOS setup screen.
So what possibly many things have I done wrong?