LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2022, 04:22 AM   #16
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled

Quote:
With Lilo, you need to edit lilo.conf
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 View Post
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.

Last edited by arfon; 05-20-2022 at 02:08 PM.
 
Old 05-20-2022, 04:40 AM   #17
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
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.
 
1 members found this post helpful.
Old 05-20-2022, 04:43 AM   #18
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,119

Rep: Reputation: Disabled
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!

Best of luck,

--
Pete
 
2 members found this post helpful.
Old 05-20-2022, 05:18 AM   #19
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
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.

Last edited by arfon; 05-21-2022 at 05:01 AM.
 
2 members found this post helpful.
Old 05-20-2022, 05:47 AM   #20
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by pchristy View Post
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.
 
2 members found this post helpful.
Old 05-20-2022, 05:55 AM   #21
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
Yep, I WILL have to learn grub I think that it's inevitable that Slackware will make it default.

Maybe I'll play with it on my ONE mutli-boot computer.

If I screw up grub's configuration will the BIOS UEFI selection still work?
 
Old 05-20-2022, 06:01 AM   #22
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,180

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by pchristy View Post
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.
 
1 members found this post helpful.
Old 05-20-2022, 10:26 AM   #23
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by arfon View Post
hitest, you are AWESOME! You fixed the grub problem.
You're welcome!
 
1 members found this post helpful.
Old 05-21-2022, 04:46 AM   #24
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
How do you remove grub and re-install lilo on Linode Slackware 15?

ANSWER:

If you are using the LISH consoles, use the GLISH console, NOT the WEBLISH. The weblish misbehaves with ncurses.

Code:
slackpkg remove grub

liloconfig >> simple >>  [ENTER] [ENTER] (choose all default options, ignore errors and warnings.)

reboot

Last edited by arfon; 05-21-2022 at 04:48 AM.
 
Old 05-22-2022, 04:55 PM   #25
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by arfon View Post
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.
 
Old 05-23-2022, 01:04 AM   #26
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 372

Original Poster
Rep: Reputation: Disabled
luvr-

So I originally asked about removing grub(2) from Linode's new Slack15 disk images and installing elilo because my train of thought went-

"All of Linode's previous Slackware images use lilo, they must have switched to grub because their VMs now use UEFI"...

It turns out that Linode's VMs DON'T use UEFI, lilo is what works. Apparently, the image builder just likes grub.

Remove the grub package and run the regular Slackware lilo setup script and it works fine.
Code:
slackpkg remove grub
liloconfig

IF they had used UEFI, I'm pretty sure that:
Code:
slackpkg remove grub
eliloconfig
...would work.

Last edited by arfon; 05-23-2022 at 01:07 AM.
 
Old 05-23-2022, 08:19 AM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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.
 
1 members found this post helpful.
Old 05-28-2022, 01:39 AM   #28
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
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?
 
Old 05-28-2022, 04:41 AM   #29
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by baumei View Post
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.
 
  


Reply



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
LiveSlack and multilib and GRUB and ELILO kjhambrick Slackware 2 11-16-2021 04:20 AM
Using GRUB to boot when ELILO fails gouttegd Slackware - Installation 1 12-04-2019 04:03 AM
[SOLVED] elilo/grub? gregors Slackware 8 08-05-2018 12:02 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

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

All times are GMT -5. The time now is 03: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