[SOLVED] How do you remove grub and go back to elilo?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I haven't had to edit lilo.conf in years. After a kernel update, I just run 'lilo' and it works.
Quote:
Originally Posted by pchristy
for elilo (as I recall - been a while since I used it as I prefer grub, and elilo is no longer maintained) you need to put the chosen kernel and initrd in a special folder in /boot.
For elilo I don't edit anything or move anything, I just run eliloconfig and it works.
As for grub, now that I know about grub-mkconfig -o /boot/grub/grub.cfg, I'll just run that after an update.
I have resisted every change for as long as I could. Because of that, I haven't found a single machine that elilo hasn't worked on. I'm not saying that you're wrong about elilo not working, I'm just saying that I didn't adopt it until I had to and it seems alot of bugs were worked out. There's a benefit to being a late-adopter.
When Slackware defaults to grub, I'll adopt grub but as long as lilo and elilo still suit my needs, I'm sticking with them.
I have no problem with elilo on my Lenovo, which looks like a tower but apparently is a laptop internally.
You need to remember that UEFI files are normal files on a normal (vfat) partition. Once you have that partition mounted on /boot/efi, you can use standard file-handling commands to manage the bootloader(s). You don't need to install anything in the mbr or whatever. If you have GRUB installed, the UEFI boots GRUB64.efi. If you have elilo, it boots elilo.efi.
For an elilo multiboot, you need to copy over the textmenu chooser file from /usr/doc/elilo/examples. Then copy your kernel and initrd to the same partition and edit edit elilo.conf to find them.
Ah! Must be the way your update method works. Perhaps it does all that for you, automatically. Certainly on a stock Slackware install you would need to do as I suggested.
BTW, if you want to customise grub, the way to do it is to edit the /etc/default/grub file, and then run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
This way you can easily restore your preferred default settings if they get overwritten by an update.
By way of example, here's my /etc/default/grub file:
Code:
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
#GRUB_DEFAULT=0
GRUB_DEFAULT="saved"
GRUB_SAVEDEFAULT="true"
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT=3
#GRUB_FORCE_HIDDEN_MENU="false"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
#GRUB_GFXMODE=1024x768x32
GRUB_GFXMODE=1920x1080x32
GRUB_GFXPAYLOAD_LINUX=keep
# Font used on the graphical terminal:
#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
#Uncomment to re-enable os_prober
GRUB_DISABLE_OS_PROBER=false
Setting the default to "saved" will make it boot whatever you chose to run last time. This is very handy if you are dual booting with (shudder) windoze. Windoze will often reboot several times when updating, and setting the default to "saved" means it will reboot back into windows and can be left unattended to reboot.
Setting the timeout to 3 and the style to "hidden" means that only a very brief and small prompt will be visible for you to hit the "esc" key and enter the full menu to select what you want to boot (assuming you want to change).
The GFXMODE is to set the monitor resolution for the menu, and the GFXPAYLOAD item hands that same resolution to the kernel when it starts to boot. Without the GFXPAYLOAD item, you won't get the initial "penguin" screen on some systems.
Finally, setting "GRUB_DISABLE_OS_PROBER=false" will enable grub to search for other operating systems (windoze, etc) and allow them to be booted from grub.
Small tweaks, but those are my personal preferences.
Remember to run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
after you have edited /etc/default/grub, and don't be tempted to edit /boot/grub/grub.cfg directly as it may well get overwritten!
Good for you! Then administrate your server as you like.
I do.
Quote:
The single beef I have with you is your claim regarding Slackers' widely ignorance of handling Grub2 - even in the official communications with Linode. That's not true. The Slackers widely know how to setup Grub2.
I said "many", would you care to tell me the numerical percentage that "many" equals? I didn't say a "majority"... I didn't say "most"... I didn't even say "widely". Your butt-hurt over your perceived wrong is what bugs me.
Quote:
That's not true.
...and it is true. Before I posted on here, I asked some of my Slackware using friends and you know what they said (paraphrase): "I don't know that grub stuff I don't run Debian."
Quote:
I may be blunt, BUT to be able to help you, I do not need to know your embarrassing messages sent to Linode
I didn't twist your arm to read the message, you could have just scrolled on by.
Quote:
- where apparently you claim that we are a bunch of ignorant people,
Yes, not knowing how to use something that is NOT part of a default Slackware setup (that MANY of us don't use) is the height of ignorance, we should all be ashamed. Slackware maintainers don't make it the default boot manager because they want us to learn to configure it ourselves.
But what REALLY bugs me is your belief that people who don't need grub, don't use grub, haven't drank the grub Koolaid and therefore don't know grub are "a bunch of ignorant people". That is the height of hypocrisy and snobbism.
Quote:
BUT IF:
- you are allowed/entitled to insert/remove EFI boot variables in your server?
- your server can boot from the default /boot/efi/EFI/Boot/Bootx64.efi executable?
- you installed the ELILO in your system?
- did your server runs in the SecureBoot mode or not?
- lastly, but not last: you are certain that the GRUB2 instance (from the EFI partition) is the Slackware's one or not?
The funny thing is that IF you had provided this information initially and not played the "he called me stupid" victim, THAT would have been useful.
Fact of the matter is, you have made multiple posts and the only one helpful is the one about encryption. All the others are about your perception of me calling you stupid to strangers.
The correct answer here is don't respond to my posts. EVEN if you know the answer, I don't want to hear it from you. If you see my name, scroll by.
Since 2004, you have not helped me once and I don't see it happening in my future.
To everyone else who has responded, I thank you for the input.
don't be tempted to edit /boot/grub/grub.cfg directly as it may well get overwritten!
Note that Slackware does not run any grub2 scripts, so editing grub.cfg directly is perfectly fine.
Only users who opt for grub-mkconfig must write /etc/default/grub, rest of us do what we want with grub.cfg.
This is because Slackware maintainer was kind enough to let us do what we want with it.
If you want my honest opinion, writing "DO NOT EDIT" into a conf file is as useless as writing the word "CAT" on a dog,
If that uselessness was forced upon us by the installer, I'd just rip it out and use grub-legacy.
By way of example, here's my /etc/default/grub file:
Code:
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.
#GRUB_DEFAULT=0
GRUB_DEFAULT="saved"
GRUB_SAVEDEFAULT="true"
You can also select a submenu item as follows :
Code:
GRUB_DEFAULT="1>6"
This will automatically select the 6th item (here it is the generic kernel) in the Grub submenu after selecting the 1st item in the top-level menu, with indexes starting at 0.
As an aside, I eventually worked out how to configure Grub, and found it much easier when dealing with more complex disk setups. LVM on top of mdadm RAID-1, for example.
Last edited by Gerard Lally; 05-20-2022 at 07:27 AM.
Can anyone tell me how to get rid of grub and go back to elilo?
I know nothing about elilo (I’m a GRUB user), and I’m only just becoming familiar with UEFI, so I’m anything but an expert with respect to your question, but if you know how to get elilo installed in a working state, then I it is my understanding you could just do so. If my understanding is correct, then UEFI should subsequently allow you to boot either GRUB or elilo (but how to do so appears to be highly system-dependent). Then, once you are satisfied that the elilo option works fine, you should be able to delete the files that provide GRUB support from your EFI System Partition and GRUB should be gone (though you may have to take some additional action to remove it from whichever boot selection mechanism that your system uses).
I hope I’m making some kind of sense here, but if I don’t, then I hope someone else can shed some light on this issue, and enlighten me, too.
There was no need to remove the grub package that comes with a default installation of slackware that uses the lilo bootlaoder unless there is limited storage space. Liloconfig will configure the lilo.conf configuration file and install lilo boot code into the mbr replacing the grub boot code. "slackpkg remove grub" does not remove /boot/grub folder, /etc/grub.d folder, or the /etc/default/grub file.
Last edited by colorpurple21859; 05-23-2022 at 08:21 AM.
On my new Linode-server (which has Slackware installed) I ran "mount", and I see "/dev/sda" is mounted on "/", and I see there is no EFI partition mounted. Also, the Linode configuration webpage for this server makes no mention of an EFI partition.
In "/dev/sda" I noticed there is no partition number specified, so I ran "gdisk". As I suspected, there is NO partition table. From previous experience I realize it is not a problem to have no partition table, however I wonder where LILO (or GRUB) puts the master boot record?
In "/dev/sda" I noticed there is no partition number specified, so I ran "gdisk". As I suspected, there is NO partition table. From previous experience I realize it is not a problem to have no partition table, however I wonder where LILO (or GRUB) puts the master boot record?
For LILO it wouldn't be a problem. One of the options in any LILO install is to put it into the first sector of your root partition, where it would normally be chainloaded by some other bootloader. So it could equally go into the first sector of an unpartitioned disk. But GRUB2 is bigger than LILO. Normally a GRUB stub goes into the MBR and the rest of it gets shoehorned into a gap between the MBR and the first partition. I don't know what the equivalent would be in your case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.