Nepedia
Back to Discover
Advanced Reader
💻

Disk partitioning

technology Maturity 7-9 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Disk partitioning is the process of dividing a single physical storage device into multiple distinct regions. These regions are known as partitions. Each partition functions as a separate logical disk to the operating system. This process is usually the first step in preparing a newly installed disk. Before any file system can be created, a specific partitioning scheme must be selected. The disk maintains a partition table to track these regions. This table stores the exact locations and sizes of every partition. The operating system reads this table before performing any other tasks on the disk.

GParted 1.3.1 screenshot
GParted 1.3.1 screenshot

To manage these regions, system administrators use specialized software called a partition editor. These tools allow users to create, resize, delete, and manipulate partitions. One primary reason for partitioning is the ability to use different file systems for different tasks. For example, you can separate user data from critical system data. This separation prevents the system partition from becoming completely full. If a system partition fills up, it can render the entire operating system unusable. Partitioning also simplifies the process of backing up specific sets of data. However, choosing the correct size for each partition can be difficult. Improper sizing might leave one partition with too much empty space while another is nearly full.

Different operating systems utilize various partitioning schemes and naming conventions. In Microsoft Windows environments, the primary partition often contains the operating system and applications. This partition is frequently assigned the drive letter C:. Windows 2000 and later versions include a tool called Disk Management. This program allows users to create, delete, and resize FAT and NTFS partitions. Windows Vista and Windows 7 use a 1 MB partition alignment scheme. This specific alignment is fundamentally incompatible with older systems like Windows 2000, XP, or DOS.

GParted 1.3.1 screenshot
GParted 1.3.1 screenshot

Unix-like systems, such as Linux, macOS, and Solaris, also support multiple partitions. Each partition can be formatted with a specific file system or used as a swap partition. A swap partition provides extra space for the system to use when memory is low. In Linux, a common minimal setup uses three distinct partitions. The first is the root directory, mounted on "/", which holds system files. The second is the home directory, mounted on "/home", which holds user data. The third is the swap partition. Using this method protects data; if one file system becomes corrupted, data in other partitions may remain intact.

GRUB with ubuntu and windows vista
GRUB with ubuntu and windows vista

Historically, disk segmentation has been used for decades. In 1966, IBM used a method called "minidisk" in its CP-67 operating system. Data General later used the term "partition" for subregions in its Nova computers. These partitions each contained their own directory. In 1983, IBM released PC DOS version 2.0, which used the term to describe dividing block storage devices. Today, the term is used universally, though sometimes called slices, sections, or virtual drives. In the Solaris operating system, partitions are often called slices, similar to pieces of a cake.

GRUB with ubuntu and windows vista
GRUB with ubuntu and windows vista

Modern computers frequently use the GUID Partition Table, or GPT. This is part of the Unified Extensible Firmware Interface (UEFI) standard. GPT is used for the layout of partition tables on physical hard disks. Many modern operating systems support this standard, though Windows does not support it on BIOS-based computers. Before GPT became common, many PCs used the Master Boot Record (MBR) scheme. Under MBR, a disk can contain at most four primary partitions. Alternatively, it can hold three primary partitions and one extended partition. The MBR contains 16-byte entries that describe each partition's type and location.

Users can also create multi-boot systems using partitioning. A multi-boot system allows a user to boot into more than one operating system. These operating systems are stored in separate partitions or on separate storage devices. At startup, a menu appears to let the user choose which system to load. This is different from a virtual machine, which runs as a program inside an already running operating system. Finally, it is possible to recover lost partitions. When a partition is deleted, its entry is removed from the table, but the data remains on the disk. Specialized recovery utilities can sometimes locate these lost file systems and recreate the partition table.

699 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:GParted 1.3.1 screenshot.png
GParted 1.3.1 screenshot.png
File:GRUB with ubuntu and windows vista.png
GRUB with ubuntu and windows vista.png
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.