UEFI: How to Detect EFI Partition by GUID?

Abstract: Identify EFI System Partitions using blkid type=efi or fdisk to locate boot files and resolve UEFI boot failures.

Created: 2026-08-29 by

To detect an EFI System Partition (ESP) by GUID, use the blkid command with the type filter type=efi or query the partition attribute flags. The ESP is identified by its specific filesystem type and FAT32 format, not by a unique partition GUID like NTFS volumes. Boot files such as GRUB or systemd-boot are stored directly on this partition to facilitate the UEFI firmware's boot process.

Understanding the EFI System Partition Structure

The EFI System Partition (ESP) is a fundamental component of the Unified Extensible Firmware Interface (UEFI) architecture. Unlike legacy BIOS systems that rely on Master Boot Record (MBR) sectors and active partition flags, UEFI systems require a dedicated partition formatted with a FAT filesystem, typically FAT32. This partition serves as the repository for bootloader executables, configuration files, and drivers required during the early stages of system initialization.

It is crucial to distinguish between the partition's identifier and its content. While Windows often refers to volume identifiers using Globally Unique Identifiers (GUIDs) within the NTFS file system metadata, the ESP itself is defined by its partition type code. In GPT (GUID Partition Table) schemes, this type code is 0xEF00. In MBR schemes, it is marked as type 0x0C or 0x0E. The detection process relies on reading these structural markers rather than searching for a specific data GUID inside the partition.

Detecting the ESP Using Linux Tools

On Linux systems, several command-line utilities can identify the ESP without needing to mount it first. The most reliable method involves using blkid, which queries block device attributes from the kernel.

Run the following command to list all partitions with the EFI type:

sudo blkid -t TYPE=efi

This output will display the device path (e.g., /dev/sda1) along with additional attributes such as the UUID and label. The key indicator here is the TYPE="vfat" combined with the implicit understanding that the partition was flagged as EFI during disk creation. If you need to verify the partition table type specifically, you can inspect the GPT headers using fdisk:

sudo fdisk -l /dev/sda | grep "EFI System"

This grep pattern searches for the human-readable description associated with the 0xEF00 type code in the partition table listing. This method is robust across different distributions and does not depend on specific bootloader installations.

Verifying Boot File Presence

Detecting the partition is only half the equation; ensuring it contains valid boot files is essential for troubleshooting. The presence of the ESP does not guarantee a working boot environment. You should mount the detected partition and check for the standard directory structure expected by modern UEFI implementations.

  • Linux Systems: Look for the /boot/efi directory containing a EFI folder. Inside, you should find subdirectories for your bootloader, such as EFI/ubuntu, EFI/debian, or EFI/systemd.
  • Windows Systems: Check for \EFI\Microsoft\Boot\bootmgfw.efi.

If the partition exists but lacks these files, the system may fail to boot even if the partition is correctly identified. This scenario often occurs after dual-boot setups where one OS overwrites the other's bootloader entries or when cloning drives incorrectly.

Cloning Linux Drive: Boot UUID and UEFI Files Connection via SATA/USB Freezes demonstrates how drive cloning can disrupt these delicate file structures. When cloning a drive, the partition GUID remains consistent, but the bootloader files must be present and correctly linked. If the clone fails to copy the ESP contents, the new drive will have the correct partition signature but no executable boot code, leading to "No Bootable Device" errors.

Relationship Between OS Partitions and ESP

A common misconception is that the Operating System partition itself has a GUID that the UEFI firmware reads directly. This is incorrect. The UEFI firmware reads the NVRAM variables (stored in non-volatile memory) which point to specific file paths on the ESP. For example, a boot entry might specify \EFI\ubuntu\grubx64.efi.

The OS partition (usually ext4 on Linux or NTFS on Windows) contains the kernel, initramfs, and system binaries. It is mounted later in the boot process by the bootloader. Therefore, detecting the ESP by its GUID or type code is independent of the OS partition's identity. However, they are logically connected because the bootloader on the ESP configures the kernel parameters located on the OS partition.

If you are managing multiple operating systems, each OS installer typically adds its own entry to the UEFI NVRAM. The ESP acts as a shared resource. Conflicts arise when installers overwrite the default boot order or delete entries for other operating systems. Understanding this separation helps in diagnosing why a system might detect the partition correctly but still fail to load the OS.

Troubleshooting Detection Issues

If blkid or fdisk fails to show an EFI partition, consider the following scenarios:

  1. Legacy BIOS Mode: Ensure the system is booted in UEFI mode. Some older machines may emulate UEFI but use MBR layouts that do not strictly adhere to the ESP specification.
  2. Corrupted Partition Table: Use testdisk to scan for lost partitions. A corrupted GPT header can hide the EFI flag.
  3. Missing Mount Point: The partition might exist but not be mounted. Use mount to see current mounts, but remember that detection via blkid works regardless of mount status.

In cases where the partition is missing entirely, you may need to create one. This involves shrinking the existing partition table and creating a new 512MB partition with type ef00. After creation, format it with mkfs.vfat -F 32 and ensure the bootloader is installed to it.

Can't Make BCD File on Linux: Troubleshooting Guide highlights related issues where boot configuration files are missing or corrupted. While BCD is primarily a Windows concept, the principle applies universally: the existence of the partition is necessary but not sufficient. The files within must be valid. Regular backups of the ESP content are recommended to prevent data loss during system updates or reinstallation.

Frequently Asked Questions

Is the EFI partition GUID unique across all drives?

No, the term "GUID" in this context usually refers to the partition type code (0xEF00) or the partition unique GUID assigned by GPT. Each partition gets a unique ID, but the *type* is standardized. You detect the partition by its type, not by comparing its unique ID against a master list.

Can I boot without an EFI partition?

Not in native UEFI mode. UEFI firmware requires a FAT-formatted partition to store bootloaders. You can boot UEFI systems via legacy CSM (Compatibility Support Module) which mimics BIOS behavior, but this relies on MBR active flags, not the ESP.

Why does blkid show vfat but not efi?

Some older versions of util-linux or specific configurations might not report the TYPE=efi attribute explicitly. Instead, look for TYPE="vfat" and cross-reference with fdisk to confirm the partition type is EF00. Always verify both filesystem type and partition table type.

What happens if I delete the EFI partition?

The system will fail to boot immediately. The OS files remain intact on their respective partitions, but the firmware loses the pointer to the bootloader executable. You would need to recreate the partition, restore the bootloader files, and update NVRAM entries.

Does Windows use the same EFI partition as Linux?

Yes, in dual-boot setups, Windows and Linux typically share the same EFI System Partition. Each OS installs its bootloader into separate subdirectories (e.g., EFI/Microsoft and EFI/ubuntu) to avoid conflicts.

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