LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2022, 09:09 AM   #1
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
How ro disable GRUB and install GRUB tools ?


I am making yet another multiboot usb using GRUB, this time I want to start some isos which are set to start from syslinux and I checked Grubs manual at https://www.gnu.org/software/grub/ma...-manual-config:
Quote:
6.4 Multi-boot manual config

First create a separate GRUB partition, big enough to hold GRUB. Some of the following entries show how to load OS installer images from this same partition, for that you obviously need to make the partition large enough to hold those images as well.

Mount this partition on/mnt/boot and disable GRUB in all OSes and manually install self-compiled latest GRUB with:

grub-install --boot-directory=/mnt/boot /dev/sda

In all the OSes install GRUB tools but disable installing GRUB in bootsector, so you’ll have menu.lst and grub.cfg available for use. Also disable os-prober use by setting:

GRUB_DISABLE_OS_PROBER=true

in /etc/default/grub

Then write a grub.cfg (/mnt/boot/grub/grub.cfg).
Where I do not understand the texts in bold type (disable GRUB in all OSes;install GRUB tools)or better said I don't know how to do it.

I did search around before posting but the only possibly related finding was an article about EndeavourOs grub-tolls package which did not help me.

In the /etc/default/grub file in several of my installed distros I could not find one single reference to disabling GRUB itself.

Can some one tip me out of my ignorance ? Thanks in advance.

Last edited by fredmyra; 12-21-2022 at 09:14 AM.
 
Old 12-21-2022, 10:38 AM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You should be looking at chain-loading syslinux from Grub. Link is a bit old but may help: https://unix.stackexchange.com/quest...linux-cfg-menu
I think the stuff you found is aimed at installing multi-boot Linux on a drive and sharing a /boot partition and grub config among them, so when you update one distro the changes are written to the shared /boot and grub files.

I assume you are booting live distros on the USB and not installing them into their own partitions on it.

Last edited by uteck; 12-21-2022 at 10:38 AM. Reason: typos
 
1 members found this post helpful.
Old 12-21-2022, 11:05 AM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
If live booting ISOs from the flash drive then I wonder if it would be easier to use ventoy, which is capable of booting many different OSes for you from the drive where it is installed.
https://www.ventoy.net/en/download.html
 
Old 12-21-2022, 05:55 PM   #4
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
posted by uteck:
You should be looking at chain-loading syslinux from Grub. Link is a bit old but may help: https://unix.stackexchange.com/quest...linux-cfg-menu
I think the stuff you found is aimed at installing multi-boot Linux on a drive and sharing a /boot partition and grub config among them, so when you update one distro the changes are written to the shared /boot and grub files.

I assume you are booting live distros on the USB and not installing them into their own partitions on it.
Thanks uteck! I have been reading a lot about chainloading Syslinux, and yes I am trying to multiboot from a pen drive, which I have been able to do for a couple years, but now I am trying to include "more difficult" distros.

In all the many texts I searched there was no reference to those two expressions. English is not my native language and perhaps it is just a problem of understanding what would be obvious to native speakers.
 
Old 12-21-2022, 06:03 PM   #5
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
posted by computersavvy
If live booting ISOs from the flash drive then I wonder if it would be easier to use ventoy, which is capable of booting many different OSes for you from the drive where it is installed.
https://www.ventoy.net/en/download.html
Thanks computersavvy!
I am sure Ventoy is an efficient tool that would make it easier, but my interest is learning more and this kind of difficulty is great for motivating me to search and read.

Besides I am curious if anybody knows what those expressions mean, language is my field of work.

Last edited by fredmyra; 12-21-2022 at 06:03 PM. Reason: typo
 
Old 12-23-2022, 01:17 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,851
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Only one bootloader is needed for a PC that contains only Linux distros or other OSes whose kernels are loadable by a Linux bootloader. If you put a self-built Grub on a filesystem the BIOS can read from, then none of the Linux distros need any bootloader installed.

On UEFI PCs, I use openSUSE Tumbleweed's Grub2-efi in its own /boot/grub2/ and the ESP filesystem. Other distros simply don't have a bootloader installed, or if they do, their fstabs exclude the ESP, which makes their bootloaders functionally sterile, leaving booting to be fully handled by TW's Grub and myself. Symlinks are used for booting all kernels and initrds in TW's /boot/grub2/custom.cfg, which I maintain with little effort due to use of the symlinks. By virtue of /etc/grub.d/06_custom, TW's Grub's auto-generated menu includes my custom.cfg entries at its top.
 
1 members found this post helpful.
Old 12-24-2022, 06:39 AM   #7
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
posted by mrmazda:
Only one bootloader is needed for a PC that contains only Linux distros or other OSes whose kernels are loadable by a Linux bootloader. If you put a self-built Grub on a filesystem the BIOS can read from, then none of the Linux distros need any bootloader installed.

On UEFI PCs, I use openSUSE Tumbleweed's Grub2-efi in its own /boot/grub2/ and the ESP filesystem. Other distros simply don't have a bootloader installed, or if they do, their fstabs exclude the ESP, which makes their bootloaders functionally sterile, leaving booting to be fully handled by TW's Grub and myself. Symlinks are used for booting all kernels and initrds in TW's /boot/grub2/custom.cfg, which I maintain with little effort due to use of the symlinks. By virtue of /etc/grub.d/06_custom, TW's Grub's auto-generated menu includes my custom.cfg entries at its top
This is valuable info, all new to me.
I am still a bit uncomfortable with symlinks and this will probably will be the right motivation to read more about it and trying it out.

If I understand it right I should place symlinks for kernel and initrd for each "secondary" distro in a custom.cfg file. No configfiles involved, right?

Will that also take care of distros booting under syslinux by default ?

Thanks a lot for your support. Much appreciated!
 
Old 12-24-2022, 09:18 AM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,851
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
Quote:
Originally Posted by fredmyra View Post
I am still a bit uncomfortable with symlinks and this will probably will be the right motivation to read more about it and trying it out.
Some distros create the symlinks, e.g. Debians put them for both current and prior kernels in /, while openSUSE and Mageia put them in /boot/ only for current kernel/initrd. If you want them for prior kernels, before each new kernel addition, simply rename the old ones, e.g. vmlinuz -> vmlinuz-prv, giving you vmlinuz for current and vmlinuz-prv in /boot/, and no need for fussing over convoluted version string management in custom.cfg or anywhere else.
Quote:
If I understand it right I should place symlinks for kernel and initrd for each "secondary" distro in a custom.cfg file.
Only for distros you wish to boot, and for which you didn't install a bootloader, or whose bootloader you don't wish to need. Strictly speaking it's not necessary, as os-prober enabled on your main Grub can find and and have them included in your standalone grub[2].cfg, but only when you run its generator. It won't get automatically run of its own accord according to when the other distros add or remove kernels. Using symlinks and custom.cfg make this of no concern.
Quote:
No configfiles involved, right?
None needed, though for convenience you could keep one/some for chainloading to, such as if you keep installed multiple kernel types, or lots of old kernel versions for bisecting.
Quote:
Will that also take care of distros booting under syslinux by default ?
Kernels are kernels and initrds are initrds. AFAICT, they have no need to care what loads them.
 
1 members found this post helpful.
Old 12-28-2022, 05:28 PM   #9
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
@ mrmazda:
Again, valuable information.
Thanks for taking your time to clarify it all for me.
 
  


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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
nilfs-tools - how can I install nilfs-tools on my fedora14 PC? Siopa Fedora - Installation 2 06-05-2011 10:59 PM
how to install the OE tools.............angstrom distribution tools in my ubuntu vinodhkumarvk Linux - Software 1 09-02-2010 11:48 AM
how to disable Text-to-speechmanager on startup, and disable fsck after 20 boots Kristian2 Slackware 2 02-25-2009 10:55 AM
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 - Newbie

All times are GMT -5. The time now is 02:57 PM.

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