Hard disks, USB drives, SD cards — anything with storage space must be partitioned. An unpartitioned drive can’t be used until it contains at least one partition, but a drive can contain multiple partitions.
Partitioning isn’t something most users will need to bother with, but you may need to work with partitions when installing an operating system or setting up a new drive.
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.
Primary, Extended, and Logical Partitions
When partitioning, you’ll need to be aware of the difference between primary, extended, and logical partitions. A disk with a traditional partition table can only have up to four partitions. Extended and logical partitions are a way to get around this limitation.
Each disk can have up to four primary partitions or three primary partitions and an extended partition. If you need four partitions or less, you can just create them as primary partitions.
However, let’s say you want six partitions on a single drive. You’d have to create three primary partitions as well as an extended partition. The extended partition effectively functions as a container that allows you to create a larger amount of logical partitions. So, if you needed six partitions, you’d create three primary partitions, an extended partition, and then three logical partitions inside the extended partition. You could also just create a single primary partition, an extended partition, and five logical partitions — you just can’t have more than four primary partitions at a time.
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.
How Partitions Appear as Disks, But Don’t Offer the Same Performance Benefits
Operating systems display separate partitions as separate drives. For example, if you have a single drive with 500 GB of storage on your computer, you’d have a C:\ drive with 500 GB of space available to you in Windows. But, if you partitioned that drive in half, you’d have a C:\ drive with 250 GB of space and a D:\ drive with 250 GB of space displayed in Windows Explorer.
These drives may look like separate physical devices, but they don’t function that way. Although they appear as different disks, they’re still the same physical piece of hardware. There’s only so much speed to go around. You don’t gain the performance benefits from using two separate partitions that you do from using two separate physical drives.
Most people won’t have to worry about this, as drives generally come with a single partition set up, operating systems partition automatically, and so on. However, it’s helpful to know how partitions work when you need to get your hands dirty.
- › How to Change Your Default Email App on iPhone and iPad
- › How to Move iPhone Apps From the App Library to a Home Screen
- › What’s the Difference Between Chromecast and Android TV?
- › What Is Apple One, and How Much Does the Subscription Cost?
- › How to Add Widgets to Your iPad’s Home Screen on iPadOS 14