[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I remove grub from other distro?



mailinglist.skid704 composed on 2025-08-11 07:26 (UTC):

> I have Debian and Ubuntu installed in dual boot configuration, And I wish to remove grub from one of them How do I do that?

Boot distro whose Grub you wish to keep.

If /boot/efi/EFI/ does not exist, ensure the Grub you just booted from is the one
you wish to keep. If it is not, and you wish the other to be included in your
remaining Grub menu, ensure GRUB_DISABLE_OS_PROBER="true" is /not/ present in
/etc/default/grub, then reinstall Grub.

Boot "other distro".

Determine which grub packages are installed:

	dpkg-query -l | grep grub

Remove the packages that were listed:

	sudo apt-get purge <gruba> <grubb> <grubc> ... <grubz>

If /boot/efi/EFI/ exists and still contains a directory of the name of the distro
you are removing grub from:

	sudo rm -R <that directory>

If rm -R was applicable, then also remove the line item in /etc/fstab that mounts
a vfat filesystem to /boot/efi/.

If /boot/efi/EFI/ exists, you may be better off with less drastic actions:
1-sudo rm -R <that directory> as above
2-remove the vfat line from the OS whose Grub you wish no longer used as above
3-use efibootmgr to remove the Boot####* entry for that OS.
-- 
Evolution as taught in public schools is, like religion,
	based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata


Reply to: