LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-20-2024, 01:35 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Rep: Reputation: 179Reputation: 179
eliloconfig not working


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 filesystem
While 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/efi
I 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?
 
Old 02-20-2024, 02:08 PM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,865

Rep: Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528Reputation: 1528
In the copied file system, is /etc/mtab a file? If it is, what does it contain? (eliloconfig uses mount to tell where the root and efi partitions are, and if mtab is not a link to /proc/mounts, it will contain leftovers from your previous system.)
 
2 members found this post helpful.
Old 02-20-2024, 08:44 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by Petri Kaukasoina View Post
In the copied file system, is /etc/mtab a file? If it is, what does it contain? (eliloconfig uses mount to tell where the root and efi partitions are, and if mtab is not a link to /proc/mounts, it will contain leftovers from your previous system.)
Genius! That was it! What I did initially to copy was boot from the DVD and mounted /dev/sda2 (the old MBR boot drive) and /dev/sdb3 (the new UEFI drive), then did a 'cp -arv' from sda2 to sdb3. After reading your post, when I chroot'ed to the UEFI drive (I'm leaving incidental steps out), and this time checked /etc/mtab, sda2 was in there as well a sdb3 (and sdb1 and sda1 as the efi partitions). I deleted the references to sdb, and changed sda2 to sda3, then did eliloconfig again. That worked! Except it still put chooser=simple in elilo.conf. No big deal on that -- probably a bug in the Slackware eliloconfig.

It never occurred to me that eliloconfig would look at the mtab file! I'll definitely make a note of this in my documentation. I guess the assumption is that the UEFI system is being installed from scratch and is sda. I suppose I could have switched the SATA cables so the UEFI drive would come up as sda, but again, who knew!

Thanks!

Last edited by mfoley; 02-20-2024 at 08:47 PM.
 
  


Reply

Tags
boot failure, eliloconfig, slackware, uefi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] setup eliloconfig fails because of missing /sys/firmware/efi average_user Slackware - Installation 8 06-07-2022 09:22 PM
Can I safely omit eliloconfig step in setup and do some changes related to eliloconfig script? gustav3000 Slackware 7 09-08-2021 10:29 PM
Slackware64-14.2(current) 03FEB2016 eliloconfig and PXE boot installation kingbeowulf Slackware - Installation 1 02-21-2016 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration