How to Identify and Delete Linux Boot Loader/GRUB from Non-Linux HDD

Abstract: Remove orphaned GRUB boot files and firmware entries from the EFI System Partition on a non-Linux drive.

Created: 2026-09-15 by

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.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More