LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 12-03-2019, 07:07 PM   #1
gouttegd
LQ Newbie
 
Registered: Nov 2019
Location: London, UK
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
Using GRUB to boot when ELILO fails


Hi fellow Slackers,

Just for your information, I want to report the case of a machine where ELILO (version 3.16, as provided in Slackware-current as of November 2019) seems completely unable to boot a Linux kernel, while GRUB (version 2.04) has no trouble doing so.

The machine in question is fairly recent. So recent, in fact, that the 14.2 installer fails to boot on it, which is why I decided to use -current. After installing Slackware-current, I installed ELILO, created the initial ramdisk and made sure that all the required files were in place in /boot/efi/EFI/Slackware (the ELILO binary itself, its configuration file, the kernel, and the initrd). I had done that on my previous machine a few years ago and it had worked fine, so I was not expecting any issue.

But this time, upon rebooting all I got was ELILO printing a single line (“Loading the kernel and the initrd”) and then nothing else, even after several minutes. The machine was stuck.

I thus used the USB installer stick again to boot on the newly installed system and decided to test GRUB. Since I was (and still am) not familiar with GRUB (I had always avoided it until then, being happy with (E)LILO), it took me quite a while (and several botched attempts) to figure out what to do, so in case this may help someone, here’s what I ultimately did:

First, install GRUB to the EFI partition (mounted as /boot/efi) and create a UEFI boot entry for it:

Code:
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub --boot-directory=/boot/efi
Then, create a simple configuration for GRUB in /boot/efi/grub/grub.cfg:

Code:
set default=0
set timeout=10
set root=(hd1,gpt1) # Location of the EFI filesystem: second disk, first GPT partition
insmod all_video # Needed for some reason

menuentry "Slackware64-current (stock kernel)" {
  echo "Loading the kernel and initial ramdisk."
  # Paths are relative to the root of the EFI filesystem as defined above
  linux  /EFI/Slackware/vmlinuz
  initrd /EFI/Slackware/initrd.gz
}
And lo and behold, upon rebooting, it worked just fine!

I don’t know why ELILO failed where GRUB succeeded, or if there was anything I could have done to make ELILO work. But I guess it’s possible that ELILO, whose development seems to have completely stopped a few years ago, is just slowly becoming too old for some shiny new hardware.

So if you run into a similar issue while using ELILO, maybe just give GRUB a shot. It’s not as complicated as some distributions make it look and it may just work.
 
Old 12-04-2019, 05:03 AM   #2
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,948

Rep: Reputation: 595Reputation: 595Reputation: 595Reputation: 595Reputation: 595Reputation: 595
Debian, Fedora, Mageia, Mint, openSUSE, Ubuntu and I'm sure many others still keep their kernels in /boot/. This is the first I've seen anyone keep them on a (FAT) ESP partition.

The complications of a normal Grub installation are mostly about avoiding boot failure as storage devices and operating systems are added, moved or removed, plus boot menu and automatic menu configuration. In the end, it's a bootloader, something to load (a selected) kernel and initrd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] elilo/grub? gregors Slackware 8 08-05-2018 01:02 PM
Allow hibernation on efi based hardware using elilo naikin Slackware 7 07-23-2016 10:42 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 11:56 PM
At boot I get ELILO Boot: markw10 Mandriva 2 08-28-2009 12:56 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM

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

All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration