View Full Version : OS-prober for grub (modified)

May 5th, 2018, 09:32 PM
Wondering if anyone has seen a file for OS-probing in /etc/grub.d folder that does NOT create the additional menu options for "Advanced options" with each OS. I only run a dual boot system, and I am basically intrigued by Ubuntu seemless implementation of Grub for bootloader among other things that takes a lot of the guess work out of the picture. However what I would really like to see when running update-grub is a more narrowed list of options at the grub boot screen which could include Ubuntu, Advanced Ubuntu, and my Rescue Partition.

Right now in addition to those there is another entry which says Advanced Rescue Partition.

I realize that modifying the script for os-prober is always an option, but what about a different script altogether that serves the same purpose as probing for OS but without this feature of creating useless additional entries in the bootloader configuration file?

May 5th, 2018, 09:47 PM
First thing I do is turn off os-prober in grub configuration settings and add my own 4-0_custom with whatever I want to boot. Sometimes I do copy some settings from a saved copy of grub that os-prober creates.

sudo nano /etc/default/grub
#Add this line:
sudo update-grub

Copy the entries from this:
sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
gedit /boot/grub/grub.cfg
Copy them to and edit to have only entries you want:
sudo -H gedit /etc/grub.d/40_custom
sudo -H gedit /etc/grub.d/40_custom
sudo nano -B /etc/grub.d/40_custom
Then do:
sudo update-grub

Lots more details:

How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan