To remove a stray GRUB boot loader from a non-Linux hard drive, first identify the correct EFI System Partition using diskpart in Windows or lsblk in Linux. Mount this partition, navigate to the \EFI\BOOT or \EFI\Mint directory, and delete the specific boot files. Finally, clean up the firmware boot entries with efibootmgr on Linux or by adjusting the boot order in your UEFI BIOS settings.
Understanding the Dual Boot Architecture
When you install Linux Mint alongside Windows 10, the installer typically looks for an existing EFI System Partition (ESP). If your system has multiple drives, it is common for the ESP to reside on the primary Windows drive (usually an SSD) while the Linux root filesystem lives on a secondary HDD or another SSD. In some cases, users may have previously installed Linux on a different drive that was later removed, leaving behind orphaned boot files and firmware entries.
The GRUB bootloader does not live on the Linux partition itself when using UEFI. Instead, it consists of small binary files located in the \EFI directory of the ESP. These files are responsible for handing control over to the Linux kernel. Because modern systems use UEFI rather than legacy BIOS, the concept of a Master Boot Record (MBR) is largely obsolete for booting operating systems. Therefore, commands like bootrec /fixmbr are not only ineffective but potentially dangerous if misapplied, as they can overwrite critical partition table data on GPT disks.
Identifying the Correct Drive and Partition
The first step is to locate the exact partition that contains the boot files. You must be careful not to confuse the Windows System Reserved partition with the actual EFI System Partition. On Windows, open Command Prompt as Administrator and run diskpart. Inside the tool, type list disk to see all storage devices. Select the disk containing your Windows installation with select disk X, then type list volume.
Look for a volume with a size between 100MB and 500MB that has no drive letter assigned. This is likely your ESP. Assign it a temporary letter by typing select volume Y followed by assign letter=S. Now you can access it via File Explorer at drive S:. Alternatively, if you are booted into Linux Mint, you can use the terminal command sudo lsblk -f to view file systems and mount points. The partition marked as boot or esp is your target.
Removing Orphaned Boot Files
Once you have mounted the EFI System Partition, you need to identify which folder corresponds to the Linux distribution you wish to remove. Common names include Mint, Ubuntu, debian, or grub. Navigate to S:\EFI\ and list the directories. If you are removing a previous Linux Mint installation, look for the Mint folder. Delete this entire directory and its contents. Be extremely cautious to only delete folders related to the unwanted OS; do not delete the Microsoft folder or the BOOT folder unless you are performing a complete wipe of the ESP.
If you are unsure which folder belongs to which OS, check the grub.cfg file inside the suspected directory. Open it with a text editor and look for paths pointing to Linux kernels (vmlinuz) or initrd images. If these paths reference partitions that no longer exist or belong to the drive you are cleaning, that is the correct folder to delete. After deletion, ensure the folder is permanently removed from the recycle bin to free up space.
Cleaning Up Firmware Boot Entries
Deleting the files is not enough; the UEFI firmware still remembers the old boot entry. To remove it, you must use efibootmgr, a standard Linux utility for managing NVRAM variables. Boot into Linux Mint and open a terminal. Run sudo efibootmgr to list all current boot options. You will see a list of entries with numbers, such as BootOrder: 0001,0002,0000. Identify the entry corresponding to the deleted Linux installation by its label, which might read "Linux Mint" or "ubuntu."
Once identified, note its boot number. For example, if the entry is Boot0003* Linux Mint, the number is 0003. Remove it by running sudo efibootmgr --bootnum 0003 --delete-bootnum. This command updates the NVRAM immediately. Verify the change by running sudo efibootmgr again to ensure the entry is gone. This step prevents the firmware from attempting to load non-existent binaries during startup.
Verifying System Stability
After cleaning the files and NVRAM, reboot your computer. Enter the UEFI setup (usually by pressing F2, Del, or F12 during power-on) and verify the boot order. Ensure that Windows Boot Manager is listed as the primary boot option. Save changes and exit. Your system should now boot directly into Windows 10 without showing any GRUB menu or Linux options. If you encounter errors, re-check that no residual files remain in the \EFI directory.
For users planning to reinstall Linux later, consider reviewing how to properly configure dual boot priorities to avoid similar conflicts. Proper partition management ensures that future installations correctly place boot loaders in the shared ESP without cluttering the firmware interface.
Frequently Asked Questions
Can I delete the EFI folder entirely?
No, you should never delete the entire EFI folder. It contains essential boot managers for Windows and other operating systems. Only delete subfolders corresponding to the specific Linux distribution you want to remove, such as Mint or Ubuntu.
What happens if I delete the wrong partition?
Deleting the wrong partition can render your Windows installation unbootable. Always verify the partition size and contents before deleting. If you accidentally delete Windows boot files, you will need a Windows Installation Media USB to repair the boot sector using recovery tools.
Is it safe to use efibootmgr on a Windows-only system?
efibootmgr is a Linux utility. You cannot run it directly in Windows. However, you can achieve similar results by entering your BIOS/UEFI setup menu and manually deleting the unwanted boot entry from the Boot Order list, though this method varies by manufacturer.
Why does my computer still show a GRUB menu after deleting files?
This usually means the NVRAM entry was not deleted. Even if the files are gone, the firmware may still try to load them. Use efibootmgr to remove the entry, or enter your BIOS settings and reset the boot order to default, ensuring Windows Boot Manager is first.
How do I find the EFI partition if I am in Windows?
Use the DiskPart utility. Open Command Prompt as admin, run diskpart, then list volume. Look for a small volume (100-500MB) with no drive letter. Assign it a letter temporarily to access its contents via File Explorer.