Ubuntu – How to prevent Ubuntu from overwriting grub bootloader after update

bootloaderdual-bootgrub2

Is there any way I can stop Ubuntu from overwriting bootloader?

It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.

Thanks.

Best Answer

Grub remembers where to reinstall.

To see what drive grub2 uses see this line - grub-pc/install_devices, check what it is now:

sudo debconf-show grub-pc

to get grub2 to remember where to reinstall on updates, grub-pc is for BIOS and grub-efi is for UEFI, if you unselect everything then the command above should change to a blank or grub will not reinstall.

sudo dpkg-reconfigure grub-pc
sudo dpkg-reconfigure grub-efi-amd64

Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions

http://ubuntuforums.org/showthread.php?t=2189643

You can also just change to install grub to a partition. We suggest never to install to a partition as it does not work well, but if really booting with another copy of grub that is not really an issue.

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

https://help.ubuntu.com/community/MaintenanceFreeCustomGrub2Screen

Related Question