Accidentally Deleted UEFI Partition: Can't Boot Linux Mint

Abstract: Recover Linux Mint boot failure after deleting the UEFI partition by recreating the EFI System Partition and reinstalling GRUB.

Created: 2026-08-03 by

You can recover from an accidentally deleted UEFI partition by booting a Linux Mint live USB, creating a new FAT32 EFI System Partition, mounting it correctly, and reinstalling GRUB. This process restores the bootloader files without affecting your existing data or operating system installations.

Understanding the Damage

The Unified Extensible Firmware Interface (UEFI) relies on a specific partition type known as the EFI System Partition (ESP). This partition is formatted with FAT32 and contains the bootloader binaries, such as shimx64.efi, grubx64.efi, and MokManager.efi. When you delete this partition, the firmware loses its reference point for loading the operating system kernel. Unlike Legacy BIOS, which looks for a specific sector on the disk, UEFI reads directly from the file system of the ESP. Without these files, the computer cannot hand off control to Linux Mint, resulting in a "No Boot Device Found" or similar error.

Recovery is straightforward because the actual Linux root filesystem and user data remain intact on other partitions. You only need to reconstruct the small boot container. It is crucial to identify the correct disk device before proceeding. Using hardcoded names like /dev/sda1 is dangerous because device assignments change between boots or when external drives are connected. Always use lsblk or fdisk -l to identify your target disk dynamically, typically represented as $DISK in our instructions.

Boot from Live Media

Insert the Linux Mint installation USB drive and reboot your computer. Access the boot menu, usually by pressing F12, F9, Esc, or Del during startup, depending on your motherboard manufacturer. Select the USB drive to boot into the live environment. Once the desktop loads, open a terminal window. This environment provides all the necessary tools, including parted, mkfs.vfat, and grub-install, to repair your system.

If you have dual-booted systems, ensure you know which partition belongs to your Linux installation. Refer to How is the grub boot menu presented if the gpt looks for efi system partition to understand how GPT structures guide the bootloader search. In a standard setup, your Linux root partition is likely ext4 or btrfs, while the new ESP will be fat32.

Create the New EFI Partition

First, identify your main hard drive. Run lsblk to list block devices. Identify the disk containing your Linux installation, for example, sda or nvme0n1. We will refer to this base disk as $DISK. Do not include the partition number (e.g., use sda, not sda1).

  1. Identify free space: Check the current partition table with sudo fdisk -l $DISK. Look for unallocated space at the end of the disk. If you deleted the old ESP, there should be a gap. If no space exists, you may need to shrink another partition using gparted or parted.
  2. Create the partition: Use parted to create a new partition. For example:
    sudo parted $DISK mkpart primary fat32 1MiB 513MiB
    sudo parted $DISK set 1 esp on
    Replace 1 with the actual partition number created. The size should be at least 512MB to accommodate future updates and multiple OS bootloaders.
  3. Format the partition: Format the new partition as FAT32. Let's assume the new partition is $ESP_PART (e.g., sda1).
    sudo mkfs.vfat -F 32 /dev/$ESP_PART
    Verify the UUID if needed, but GRUB does not strictly require it for basic functionality.

Mount Filesystems Correctly

Proper mounting order is critical for chroot environments. A common mistake is binding the virtual filesystems before mounting the root partition. The correct sequence ensures that the temporary environment sees the real hardware.

  1. Mount the root partition: Mount your Linux root filesystem first. Assume it is $ROOT_PART (e.g., sda2).
    sudo mount /dev/$ROOT_PART /mnt
    If you have separate home or boot partitions, mount them now under /mnt/home or /mnt/boot.
  2. Bind virtual filesystems: Now bind the essential system directories. This allows the chroot environment to access devices, processes, and temporary files.
    sudo mount --types proc /proc /mnt/proc
    sudo mount --rbind /sys /mnt/sys
    sudo mount --make-rslave /mnt/sys
    sudo mount --rbind /dev /mnt/dev
    sudo mount --make-rslave /mnt/dev
    The --make-rslave flag is vital. It ensures that mount events inside the chroot do not propagate to the host system and vice versa, preventing potential conflicts with udev rules.
  3. Mount the new ESP: Finally, mount the newly created EFI partition to /mnt/boot/efi. Note that some distributions expect the ESP at /boot/efi rather than just /boot. Check your /etc/fstab in the live session if unsure, but /boot/efi is standard for Mint.
    sudo mkdir -p /mnt/boot/efi
    sudo mount /dev/$ESP_PART /mnt/boot/efi

Reinstall GRUB

Now that the environment is set up, chroot into your installed system. This changes your root directory to the mounted Linux installation, allowing you to run commands as if you were booted normally.

sudo chroot /mnt

Inside the chroot, reinstall GRUB to the new EFI partition. Replace $DISK with your base disk name (e.g., sda, not sda1).

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=linuxmint --recheck

This command copies the necessary EFI binaries to the new partition and registers the bootloader with the UEFI firmware. If you encounter errors related to Secure Boot, note that most modern Linux distributions support Secure Boot out of the box. However, if you previously disabled Secure Boot in your BIOS, ensure it remains disabled, or sign the kernels if you wish to keep it enabled. Refer to Understanding the Loading of Modules by initramfs in Linux if you face module loading issues after reboot, as the initramfs must correctly locate the root device.

After successful installation, update the GRUB configuration to reflect any changes.

update-grub

Exit the chroot environment with exit and unmount the partitions in reverse order: umount /mnt/boot/efi, then umount /mnt/sys, umount /mnt/dev, and finally umount /mnt. Reboot your system and remove the USB drive. Your Linux Mint installation should now appear in the boot menu.

Frequently Asked Questions

Will deleting the UEFI partition erase my personal files?

No, deleting the EFI System Partition only removes bootloader files, not your documents, photos, or applications stored on the root partition. Your data remains safe on the ext4 or btrfs partition, provided you do not accidentally format that specific partition during recovery.

Why did I get an error about 'esp' flag not being set?

The UEFI firmware specifically looks for a partition with the EFI System Partition attribute flag set. If you created a partition without setting this flag using parted set N esp on, the firmware will ignore it. Always verify the flag is active before rebooting.

Can I use Windows Boot Manager instead of GRUB?

While possible, it is generally not recommended for Linux Mint users. GRUB provides better integration with Linux features like hibernation and custom kernel parameters. Mixing boot managers can lead to complex configuration issues, as detailed in Non-sense Situation and Limiting Issue When Dual Booting Ubuntu into a Windows Pre-installed HP Laptop.

What if my system still doesn't boot after reinstalling GRUB?

Check your BIOS/UEFI settings to ensure the new "linuxmint" entry is selected as the primary boot option. Sometimes, the firmware retains the old, deleted entry. Navigate to the Boot Order menu, find the Linux Mint entry, and move it to the top. Also, verify that Fast Boot is disabled in BIOS settings.

Is it safe to enable Secure Boot after this recovery?

Yes, Linux Mint supports Secure Boot. After reinstalling GRUB, the signed shim loaders are in place. You can enable Secure Boot in your BIOS without disabling it, as the bootloader keys are properly registered. If you experience black screens, try disabling Secure Boot temporarily to rule out key signing issues.

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