I am booting four operating systems: Windows 7, Ubuntu, Kali Linux, and Linux Mint. They were installed in that order, with Linux Mint most recently and Windows 7 first. I am able to edit the /etc/default/grub file and update grub with sudo update-grub, but only configurations saved in the config file for Linux Mint are used. Is there a way to specify which configuration file grub uses or a way to set the default?


Yes you can add some custom menu entries in /etc/grub.d/40_custom

This is just an example one I am currently using. More can also be added.

menuentry "NetBSD on sda1" {
insmod ufs2
set root=(hd0,msdos1)
knetbsd /netbsd --root=wd0a

Setting the default menu entry for your setup you could just modify and change the GRUB_DEFAULT= entry


Choose which ever you want to be default.

GRUB_DEFAULT=0 (Windows) GRUB_DEFAULT=1 (Ubuntu) GRUB_DEFAULT=2 (Kali) GRUB_DEFAULT=3 (Linux Mint)


You can only have one bootloader in the MBR (Master Boot Record) at a time.

Since Linux Mint was installed more recently, if you selected to install GRUB during the installation, it was installed on your drive and overwrote the previous one. If you want to use another distribution's configuration file, you would have to reinstall GRUB through that distribution on your main drive.

In Ubuntu, for example, you can do this with grub-install.

  • Be careful not to assume the OP is using MBR. Even in 2016 with Windows 7, EFI was becoming more common. Now (2020) with windows 10, MBR is much less common and EFI the default. EFI does support multiple boooaders where MBR didnt. grub install would of course still work, but otherwise this answer might be quite misleading. – Philip Couling Jan 19 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.