Safely Delete EFI System Partition and Allow Extension Volume

Abstract: Shrink the EFI System Partition to reclaim space without breaking UEFI bootability on Ubuntu.

Created: 2026-08-22 by

You cannot safely delete the EFI System Partition (ESP) on a UEFI system without making it unbootable. If you need space, do not delete the partition entirely; instead, shrink it to its minimum size of 100-300 MB and extend your root volume using gparted or fdisk. This preserves the boot files required for Ubuntu to start while reclaiming wasted disk space.

Understanding the Role of the ESP

The EFI System Partition is a critical component of the Unified Extensible Firmware Interface (UEFI) standard. Unlike older BIOS systems that relied on Master Boot Records (MBR), UEFI systems store bootloader information in FAT32-formatted partitions. When you install Ubuntu on an SSD with UEFI enabled, the installer creates this small partition, typically mounted at /boot/efi. It contains the GRUB bootloader, kernel images, and essential drivers needed to initialize the hardware before handing control over to the operating system. Deleting this partition removes the instructions your computer needs to start up. If you proceed with deletion, the next time you power on your machine, the firmware will fail to locate a valid boot loader. You will be greeted by an error screen or dropped into a shell interface where manual intervention is required to restore bootability. This process is complex, risky, and often impossible if you lack a live USB rescue environment. Therefore, the goal should never be total removal but rather optimization of existing resources. For more context on how different storage configurations interact with system stability, you might find it helpful to review Understanding and Sharing Secure Boot Keys on Tech Support Sites, as secure boot settings also rely on the integrity of the EFI partition structure.

Assessing Your Current Disk Layout

Before making any changes, you must understand exactly how your disk is partitioned. Open a terminal and run the command lsblk -f or sudo fdisk -l. Look for a partition labeled efi or boot that is formatted as FAT32. Note its current size and mount point. Most default Ubuntu installations allocate between 512 MB and 1 GB to this partition, which is significantly more than necessary for modern Linux distributions. Check the usage within the partition by running df -h /boot/efi. You will likely see that only a few megabytes are used. This confirms that the majority of the space is idle. The strategy here is to reduce the partition size to a safe minimum, such as 260 MB, which provides ample room for multiple kernels and bootloader updates, while freeing up contiguous space for your logical volumes. Ensure you have a recent backup of your data. While shrinking a partition is generally safe, any operation involving disk geometry carries a slight risk of data corruption if interrupted. Do not attempt these steps on a production server without proper safeguards.

Distinguishing Between UEFI and Legacy BIOS

It is crucial to verify that your system is actually using UEFI. Some users confuse the two modes. Run ls /sys/firmware/efi/efivars. If the directory exists and lists files, you are in UEFI mode. If the command returns "No such file or directory," you are likely in Legacy BIOS mode, and the partition you are seeing is simply a standard ext4 or FAT32 boot partition, not a true EFI System Partition. In Legacy mode, you can delete or resize this partition more freely, provided you update the MBR accordingly. However, most modern systems use UEFI, so we assume that is your case. If you were mistakenly told to switch to Legacy Boot to delete the partition, stop immediately. Converting from UEFI to Legacy requires reinstalling the operating system or performing a complex chroot-based migration. There is no simple toggle switch that converts an installed UEFI system to Legacy without breaking the bootloader configuration. Stick to optimizing the UEFI layout.

Safely Shrinking the EFI Partition

To reclaim space, use a graphical tool like GParted, which handles partition resizing safely by moving data around. Boot from an Ubuntu Live USB stick to ensure no partitions are mounted and in use. Open GParted and select your SSD device from the dropdown menu. Locate the FAT32 partition identified earlier. Right-click it and select "Resize/Move." Reduce the size to approximately 260 MB. Leave enough free space immediately after the EFI partition for your next step. Apply the changes and wait for the operation to complete. This process does not touch your main Ubuntu installation data stored in the larger ext4 or LVM volumes. Once finished, reboot back into your installed system. After resizing, you may notice the partition appears smaller in lsblk. This is expected. The filesystem itself has been shrunk, but the underlying block device remains intact. You now have unallocated space adjacent to your EFI partition.

Extending Your Root Volume

With the unallocated space available, you can expand your root filesystem. If you are using standard partitions, open GParted again from the Live USB. Select the partition containing your root directory (usually ext4). Right-click and choose "Resize/Move." Drag the right edge to consume the unallocated space created by shrinking the EFI partition. Click "Apply" to execute the change. If you are using Logical Volume Manager (LVM), the process involves slightly more commands but achieves the same result. First, identify your physical volume and volume group using vgs and pvs. Then, extend the physical volume to include the new space: sudo pvresize /dev/sdaX (replace X with your partition number). Finally, extend your logical volume and filesystem: sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv followed by sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv. This method allows you to maximize your SSD capacity without compromising the ability to boot your system. It respects the structural requirements of UEFI while addressing the common complaint of "wasted" space on small EFI partitions.

Frequently Asked Questions

What happens if I accidentally delete the EFI partition?

Your system will become unbootable because the firmware cannot find the GRUB bootloader. You will need a Live USB to chroot into your installation and reinstall the bootloader using grub-install and update-grub. This is a recovery procedure, not a routine maintenance task.

Can I merge the EFI partition with my root partition?

No, they serve different purposes and use different filesystems. The EFI partition must be FAT32 and separate from the ext4 root partition. Merging them would violate the UEFI specification and prevent the system from starting. Keep them distinct but close together on the disk.

Is 100 MB enough for the EFI partition?

While 100 MB is technically possible, it is risky. Multiple kernel versions, secure boot keys, and vendor-specific drivers can quickly fill it up. We recommend at least 260 MB to ensure you do not run out of space during major system updates, which could break future boots.

Does shrinking the EFI partition affect Secure Boot?

No, Secure Boot relies on the signature verification of the bootloader files, not the partition size. As long as the files remain intact and correctly signed, reducing the partition size has no impact on security features. Ensure you do not move the partition far from its original sector if using certain proprietary firmware implementations.

How do I check if my Ubuntu is using UEFI or Legacy?

Run ls /sys/firmware/efi/efivars in the terminal. If the folder exists, you are using UEFI. If it says "No such file or directory," you are in Legacy BIOS mode. Most computers manufactured after 2012 use UEFI by default.

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