A hard drive partition refers to sections of a hard drive's storage space. Most operating systems allow users to divide a hard drive into multiple partitions, effectively turning one physical hard drive into several smaller logical drives.

Reasons for Using Hard Disk Partitioning

It is common for users to divide a hard disk into multiple partitions, so that data can be organized more efficiently. On a computer running Microsoft Windows, the operating system and applications are typically stored on one partition of the hard disk, and user data on another. In the event of problems with Windows, the operating-system partition can be reformatted and reinstalled without affecting the data partition.

Users might choose to partition a hard drive into several partitions because smaller partitions often have a smaller cluster size. The cluster size is the smallest unit of data that a partition can store. A large partition may have a 16KB cluster size, meaning a file with only one character would take up 16KB of space on the disk. On a smaller partition, that same file might only take up 4KB. This can be useful if you need to store many small files.

If the hard disk is larger than the maximum partition size supported by the operating system, the user might need to break it up into multiple partitions.

Read More: Repartition Hard Drive

Create a hard drive partition

Most operating systems use the fdisk command to create disk partitions. Many also have graphical tools that do the same thing, such as the GParted partition manager.

Hard Disk Partitioning and File Systems

You don't actually store data within partitions on the disk.

You store file systems on your disk partitions, and data within those file systems.

Some operating systems blur the distinction between a partition and a file system.

Partition Table

Partition information is stored in the reserved area at the beginning of the hard drive, in the Partition Table.

Extended partition

A traditional partition table can only hold information for four partitions, which means that a hard drive could have no more than four partitions.

To overcome this limitation, extended partitions were created.

An extended partition is used to store information about other partitions. By using an extended partition, you can have more than four partitions on a hard drive.

These four primary partitions are often called main partitions.

Partitions formatted as extended are often called logical partitions.

Partition Type

When a partition is created, a special byte pattern is written to identify the partition type.

Because a disk may be shared by multiple operating systems, there is a tendency for these values to have consistent meanings.

The following table lists some of the partition types in use.

Partition ID Partition Type
00 Unused
01 FAT12 DOS
02 XENIX root
03 XENIX user
04 FAT16 DOS (≤ 32 MB)
05 Extended DOS
06 FAT16 DOS (≥ 32 MB)
07 OS/2 HPFS, NTFS WinNT
08 AIX
09 AIX bootable
0A OS/2 Boot Manager
0B Win95 FAT32
0C Win95 FAT32 LBA
0E Win95 FAT16 LBA
0F Win95 extended LBA
35 OS/2 JFS
39 Plan 9
40 Venix 80286
51 Novell
52 CMS
63 Unix System V, Mach, GNU HURD
64 Novell Netware 286
65 Novell Netware 386
75 PIC/IX
80 MINIX up to 1.4a
81 MINIX, Linux
82 Solaris x86, Linux swap
83 Linux native
85 Linux extended
93 Amoeba
94 Amoeba Bad Block Table
A5 FreeBSD, NetBSD, BSD/386, 386BSD
A6 OpenBSD
A7 NeXTSTEP
B7 BSDI fs
B8 BSDI swap
BE Solaris bootable
BF Solaris x86
C7 Syrinx
DB CP/M
E1 DOS access
E3 DOS R/O
EB BeOS BFS
FB VMware file system
FC VMware swap
F2 DOS secondary
FF Xenix bad block table