I recently removed Ubuntu from my system and installed Fedora 35 KDE spin. I want to get rid of Ubuntu GRUB since Ubuntu itself no longer exists on my system. I changed the boot order to boot Fedora GRUB first, but I want to completely remove Ubuntu’s one.
Output of lsblk in case it is needed:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /mnt/sda1
sr0 11:0 1 1024M 0 rom
zram0 252:0 0 7.5G 0 disk [SWAP]
nvme0n1 259:0 0 232.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 1G 0 part /boot
├─nvme0n1p3 259:3 0 121.4G 0 part /home
└─nvme0n1p4 259:4 0 110G 0 part /
/dev/sda is my secondary HDD used for backups, it has no OS on it.
okey hence you can see fedora grub right.
Okey remember most of the times it is not a big issue. So you don’t need to worry about a grub is a small file and don’t create any issues in system
So I will sudo rm -rf /boot/efi/EFI/ubuntu
Edit: Ubuntu GRUB was successfully removed without bricking my system (at least from the UEFI entries), so I will mark this as the solution.
The problem was actually solved, which is also reflected by sudo efibootmgr:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2001,2002,0000,3000,2004
Boot0000* Fedora
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot3000* Internal Hard Disk or Solid State Disk
Thanks for the help. If the solution I accepted is risky or not correct please correct me.
I don’t know if a more polite way could be this command sudo efibootmgr -b <bootnum> -B
Where -b specifies the boot entry number and -B delete that boot entry.
Maybe under the hood such command delete the directory as you did by hand
I don’t know about it, maybe it will just delete the efi entry and leave the ubuntu folder?
Thats probably safer than handling sudo rm -rf <anything>, it just takes a mistyped space to cause unintended damage.