ThisCalculator

Everyday

Active vs Inactive Partition: Key Differences

Updated · Standard formula, shown below

Active vs Inactive Partition: Key Differences

An active partition is the primary partition on a hard drive that the computer’s BIOS or UEFI firmware uses to find and launch the operating system boot loader. An inactive partition is any other partition that is not marked as the bootable system partition. This article explains what active and inactive partitions are, how they work, how to manage them, and common issues you may encounter.

Background: Why Partitions and the Active Flag Exist

Hard drives are divided into partitions so that one physical disk can hold multiple file systems, operating systems, or data areas. The Master Boot Record (MBR) partitioning scheme, used for decades, stores a 16-byte flag for each primary partition called the “active” or “boot” flag. This flag tells the BIOS which partition contains the boot loader (such as NTLDR for older Windows, or GRUB for Linux). The UEFI/GPT scheme, which is now standard on most modern computers, does not use the active flag in the same way; instead, it relies on the EFI System Partition (ESP) and boot entries stored in NVRAM. However, many tools and operating systems still support the active flag for compatibility with MBR disks.

How the Active Partition Works

When you power on a computer, the firmware (BIOS or UEFI) performs a Power-On Self-Test (POST), then looks for a bootable device. On a BIOS-based system with an MBR disk, the firmware reads the first sector of the disk (the MBR) and scans the partition table for a primary partition marked as active. If it finds one, it loads the first sector of that partition (the volume boot record) into memory and executes it. That boot record then loads the operating system’s boot loader, which starts the OS kernel.

Only primary partitions can be marked as active; logical drives inside an extended partition cannot be active. Also, only one partition per disk can be active at a time. If no partition is active, the BIOS typically displays an error like “No bootable device found” or “Missing operating system.” If more than one partition is marked active, the behavior is undefined, but most BIOSes will use the first one found.

Active vs Inactive: What the Flag Actually Does

The active flag does nothing else besides indicating where the boot loader lives. An inactive partition is simply a partition without that flag. You can store data, install another OS, or keep a recovery partition on an inactive partition; it just won’t be used for booting at startup. The flag does not affect whether the partition is accessible or writable; it only matters during the boot process. For example, a Windows installation on a second hard drive will not boot if that drive’s partition is not active, even if the OS files are intact.

How to Choose Which Partition to Mark Active

If you are setting up a dual-boot system with MBR disks, you need to decide which OS you want to boot by default. You can change the active partition using tools like DiskPart (Windows), fdisk (Linux), or the Disk Management GUI. Here are the general steps for Windows DiskPart:

  • Open Command Prompt as Administrator.
  • Type diskpart and press Enter.
  • Type list disk to see all disks.
  • Type select disk X (replace X with the disk number).
  • Type list partition to see partitions on that disk.
  • Type select partition Y (replace Y with the partition number).
  • Type active and press Enter.
  • Type exit to close DiskPart.

On Linux, you can use fdisk on the whole disk (e.g., sudo fdisk /dev/sda), then use the a command to toggle the bootable flag on a partition. Always back up your data before changing partition flags, as an incorrect setting can prevent your system from booting.

Common Problems and Misconceptions

One common misconception is that the active partition is the same as the “system” or “boot” partition. In Windows terminology, the system partition is the one that holds the boot files (and is usually active), while the boot partition holds the OS files. They can be the same or different. Another issue is that after cloning a disk, the active flag may not be set on the new disk, causing it not to boot. You can fix this by using DiskPart or a third-party tool to mark the correct partition as active.

Another problem is that on UEFI systems with GPT disks, the active flag is not used; instead, the firmware uses the EFI System Partition (ESP). If you try to mark a partition as active on a GPT disk, Windows Disk Management may not offer the option, and DiskPart will return an error. This is normal; you should not try to force it.

Comparison: MBR vs GPT and the Active Flag

The Master Boot Record (MBR) scheme supports up to four primary partitions, or three primary and one extended partition. The active flag is only meaningful in MBR. The GUID Partition Table (GPT) scheme, which is required for UEFI boot on most modern systems, does not have an active flag. Instead, the UEFI firmware reads boot entries from NVRAM, which point to the EFI System Partition (ESP). The ESP is a FAT32 partition that contains boot loaders for various operating systems. This design allows multiple OSes to coexist without changing a flag; you select the boot entry in the UEFI boot menu.

If you are using an older BIOS that supports GPT, you may still be able to boot from GPT disks, but the active flag is not used. Some BIOSes have a compatibility support module (CSM) that can emulate BIOS boot from GPT, but this is not standard.

Safety and Best Practices

Changing the active partition is generally safe if you know which partition contains the boot loader for the OS you want to start. However, making the wrong partition active can lead to a non-bootable system. To recover, you can boot from installation media and use the repair options to fix the boot configuration. Always ensure you have a backup of important data before modifying partition tables. Also, be aware that some third-party disk tools may not properly handle the active flag, so use reputable software.

Frequently Asked Questions

Can I have two active partitions on the same disk?

Technically, the MBR partition table can have multiple partitions with the active flag set, but the BIOS will only use the first one it encounters. This can cause unpredictable behavior, so it is best to have only one active partition per disk.

Does the active partition affect data storage?

No. The active flag only affects the boot process. You can store files on an active partition just like any other partition. However, it is usually the system partition, so it may contain OS files and be less suitable for personal data.

What is the difference between active partition and boot partition in Windows?

In Windows, the system partition is the active partition that contains boot files (like bootmgr and the BCD store), while the boot partition contains the Windows operating system files (like C:\Windows). They can be on the same partition or different partitions.

How do I know which partition is active?

In Windows Disk Management, the active partition is labeled as “System” or “Active” in the Status column. In DiskPart, you can type list partition and the active one will have an asterisk (*) next to it. In Linux fdisk, the active partition has a boot flag (*) in the Boot column.

Can I mark a logical drive as active?

No. Only primary partitions can be marked as active. Logical drives are inside an extended partition and cannot be bootable directly.

What happens if no partition is active?

If no partition is active, the BIOS cannot find a boot loader, and you will see an error like “No bootable device” or “Missing operating system.” You can fix this by booting from a rescue disk and setting the correct active partition.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.