Understanding Hard Disk Partitions
Understanding Hard Disk Partitions
Understanding Hard Disk Partitions
Partition Table
Primary Partition #1
Primary Partition #2
Primary Partition #3
Primary Partition #4 (Extended
Partition)
Logical Partition #1
Logical Partition #1
As you can see, this partition table is broken up into 4 primary partitions. The fourth partition, though, has been
flagged as an extended partition. This allows us to make more logical partitions under that extended partition
and therefore bypassing the 4 partition limit.
Each hard drive also has one of its possible 4 partitions flagged as an active partition. The active partition is a
special flag assigned to only one partition on a hard drive that the Master Boot Record (MBR) uses to boot your
computer into an operating system. As only one partition may be set as the active partition, you may be
wondering how people can have multiple operating systems installed on different partitions, and yet still be able
to use them all. This is accomplished by installing a boot loader in the active partition. When the computer
starts, it will read the MBR and determine the partition that is flagged as active. This partition is the one that
contains the boot loader. When the operating system boots off of this partition the boot loader will start and
allow you to choose which operating systems you would like to boot from.
Types of partitions
There are also several partition types. Below is a listing of partitions with a brief description.
Note
Some of these partitions may not be available in your partition utility.
Partition Description
AIX partition (boot) A partition used with the AIX (advanced interactive executive) operating system.
Apple File System (APFS) A partition used with Apple computers. These can be formatted as encrypted,
partition case-sensitive, or encrypted and case-sensitive.
As defined by Microsoft, a boot partition contains the files required for a system
Boot partition
startup. Also see: System partition
BSD/OS partition (OpenBSD) A partition is used with the BSD (Berkeley Software Distribution) operating system.
DOS partition (12-bit, 16-bit) A partition used with older versions of MS-DOS.
DOS extended partition A partition extended from one or more of the original MS-DOS partitions.
DRDOS (hidden) A partition used with the DR. DOS operating system.
Extended partition A partition that is extended from one or more of the primary partitions.
Hibernation partition A partition used with older hibernation programs.
An HPFS (high-performance file system) partition used with IBM OS/2 and
HPFS partition (OS/2 IFS)
Microsoft NT 3.x
Linux (Linux native, Linux A partition used with various variants of the Linux operating systems.
swap, Linux extended,
ext2fs)
A partition for Apple computers using macOS 10.12 and earlier. These can be
Mac OS Extended partition formatted as journaled, journaled and encrypted, case-sensitive and journaled,
and case-sensitive, journaled, and encrypted.
MINIX A partition used with the MINIX operating system.
When using Microsoft fdisk, a NON-DOS partition indicates a partition is not native
NON-DOS partition
to the Microsoft operating system. For example, this could be a Linux partition.
NEC DOS A partition used with the old NEC DOS variant.
NEXTSTEP A partition used with the NeXTSTEP operating system.
Novell NetWare A partition used with the Novell NetWare operating system.
A partition used with Microsoft Windows NT 4.x, Windows 2000, Windows XP, and
NTFS (NTFS file system)
later versions.
Partition Magic
A partition created using the Partition Magic utility by PowerQuest.
(PowerQuest)
A partition created by the PC ARMOUR security utility. When created, this
PC-ARMOUR
partition is commonly protected by a password.
In a Microsoft operating system, the Primary Partition refers to the main or first
Primary
partition used for the Microsoft operating system.
Solaris X86 A partition used with the Sun Solaris X86 platform operating system.
As defined by Microsoft, a system partition is a partition containing the system32
System partition
directory. Also see: boot partition.
Tandy DOS A partition used with the old Tandy DOS variant.
Unix System V (SCO, IRIX, ISC,
A partition used with various Unix operating systems.
Unix, UnixWare, etc...)
VMware (VMware Swap) A partition used by VMware.
Xenix (Xenix /usr) A partition used with the Xenix operating system.
Does a hard drive require a partition?
A hard drive must have at least one partition. The first partition on a hard drive is the primary partition, and if
it's the computer's only one, it is assigned the C: drive letter. Additional partitions are only needed if you want
more than one drive letter assigned to the device or need to separate the storage space into smaller segments.
What is a Partition?
Many drives come with a single partition already set up, but all storage devices are just treated as a mass of
unallocated, free space when they contain no partitions. To actually set up a file system and save any files to the
drive, the drive needs a partition.
The partition can contain all of the storage space on the drive or just some of it. On many storage devices, a
single partition will often take up the entire drive.
Partitions are necessary because you can't just start writing files to a blank drive. You must first create at least
one container with a file system. We call this container a partition. You can have one partition that contains all
the storage space on the drive or divide the space into twenty different partitions. Either way, you need at least
one partition on the drive.
After creating a partition, the partition is formatted with a file system -- like the NTFS file system on Windows
drives, FAT32 file system for removable drives, HFS+ file system on Mac computers, or the ext4 file system on
Linux. Files are then written to that file system on the partition.
Why You Can Make Multiple Partitions and When You Might Want To
You probably don't want multiple partitions on your USB flash drive -- a single partition will allow you to treat
the USB drive as a single unit. If you have multiple partitions, multiple different drives would appear when you
plugged your USB drive into your computer.
However, you may want multiple partitions for other reasons. Each partition can be isolated from the others and
even have a different file system. For example, many Windows computers come with a separate recovery
partition where the files you need to restore your Windows operating system to its factory default settings are
stored. When you restore Windows, the files from this partition are copied to the main partition. The recovery
partition is normally hidden so you can't access it from Windows and mess it up. If the recovery files were stored
on the main system partition, it would be easier for them to be deleted, infected, or corrupted.
Some Windows geeks love creating a separate partition for their personal data files. When you reinstall
Windows, you can wipe your system drive and leave your data partition intact. If you want to install Linux on
your Windows computer, you can install it to the same hard drive -- the Linux system will be installed to one or
more separate partitions so Windows and Linux won't interfere with each other.
Linux systems are generally set up with multiple partitions. For example, Linux systems have a swap partition
that functions like the page file on Windows. The swap partition is formatted with a different file system. You
can set up partitions however you like with Linux, giving different system directories their own partition.
How to Partition
Partitioning with graphical tools is fairly easy if you know what you're doing. While installing an operating
system -- Windows or Linux -- your operating system installer will offer a partitioning screen where you can
create, delete, format, and resize partitions. (Note that deleting or formatting a partition will erase all the data
on it!)
You can also use tools like the Disk Management tool in Windows and GParted on Linux to manage partitions on
your system drive or other drives. You can't always modify a partition while it's in-use -- for example, you can't
delete a Windows system partition while you're running Windows from it! -- so you may need to boot from a
Linux live CD or use an operating system installer disk to make many changes.
These tools allow you to partition your system drives as well as other internal drives, external drives, USB drives,
SD cards, and other storage media.