Tutorials/Tips

How to keep your Boot EFI partition clean of old Linux bootloader folders

This tutorial shows how to delete bootloader folders of Linux distributions that you have deleted from a dual-boot system.

Imagine for a moment that you set up a Windows-Linux dual-boot system. Later, you deleted the original Linux distribution and installed another Linux distribution in its place.

The dual-boot setup still works beautifully, but traces of the old Linux distribution still exists on a partition of the hard drive reserved for bootloader folders on a UEFI system. That partition is what Windows called EFI System partition.

On Linux, I like to call it the Boot EFI partition because it’s mounted at /boot/efi. If you’re logged into the Linux side of such a dual-boot system, you can view all the bootloader folders on the Boot EFI partition, and delete any that are no longer needed.

Take, for example, the computer I used for Dual-boot Ubuntu 16.04 and Windows 10 on a PC with UEFI firmware and Dual-boot Fedora 25, Windows 10 on a computer with UEFI firmware, and How to Dual-boot Manjaro 16.10, Windows 10 on a computer with UEFI firmware. Though Fedora 25 and Manjaro 16.10 have since been deleted, their GRUB files are still around.

Related Post:  How to send bulk email to your students using R

You could delete them while logged into Windows 10 in the same fashion used at How to delete GRUB files from a Boot EFI partition in Windows 10, it’s a lot easier to accomplish the task while you’re logged into the current Linux side.

It simply involves logging into the Linux side, navigating to the /boot/efi/EFI directory, list its contents and deleting the unwanted folder(s), using the commands shown in the following code block. Just be absolutely sure that you do not delete the Microsoft folder. The same goes for the folder of the existing Linux distribution.:

Related Post:  Download the beautiful Canopee wallpaper for KDE Plasma 5.9

If it would make more sense, the following is a screenshot of the steps I used.

Delete GRUB from /boot/efi partition
Figure 1: Deleting old GRUB files from the /boot/efi partition of a dual boot setup

If you’ve used How to delete GRUB files from a Boot EFI partition in Windows 10 to perform the same operation from the Windows side of such a setup, it should be obvious that it’s much easier from the Linux side.

LinuxBSDos needs your donation to continue!

I hope this article has saved you valuable time and effort to fix a problem that would have taken more time than is necessary. That makes me happy, and why I love doing this. But because more people than ever are reading articles like this with an adblocker, ad revenues have fallen to a level that's not enough to cover my operating costs. That's why I want to ask you a favor: To make a one-time or recurring donation to support this site and keep it going. It's a small favor, but every one counts. And you can make your donation using Patreon or directly via Paypal. Thank you for whatever donation you're able to make.

Donate via Patreon. Donate via Paypal.

Aside from donation, you may also signup to receive an email once I publish new content. Your email will not be shared or traded to anyone. And you can unsubscribe at any time.

Please share:

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


Leave a Comment

Your email address will not be published. Required fields are marked *

*