Curious Minds

Clear answers to science and history questions

How to Partition a Hard Disk: Step-by-Step Guide

· 7 min read · Science

Partitioning a hard disk means dividing one physical drive into separate logical sections, each with its own file system and drive letter. This lets you keep the operating system, personal files, and backups apart, install a second operating system, or set aside space that a virtual machine or recovery tool can use. On most modern systems you can do it without reinstalling anything, but the process is not risk-free: partitioning changes the drive's partition table, and a mistake or power loss mid-operation can make data unreachable. The single most important preparation is a complete backup of anything you cannot afford to lose, stored on a different physical drive or in cloud storage. Also check how much free space exists, confirm whether the disk uses the older MBR scheme or the newer GPT scheme, and make sure the machine is plugged into mains power if it is a laptop.

What You'll Need

  • A working computer with the target disk attached, internally or via a USB enclosure.
  • Administrator rights on Windows, or root/sudo access on Linux and macOS.
  • An external drive or cloud account large enough to hold a backup of the data you care about.
  • Free unallocated space on the disk, or the willingness to shrink an existing partition to create it.
  • Optionally, a bootable USB stick with a partitioning tool such as GParted, useful when the system partition itself must be resized.
  • Reliable mains power; never repartition a laptop running on battery.

Step-by-Step

  1. Back up first. Copy important files to a separate drive. Partitioning tools usually preserve data when shrinking or creating partitions, but a power cut, a bug, or a misclick can corrupt the partition table. A backup turns a disaster into an inconvenience.
  2. Identify the correct disk. Open Disk Management on Windows (right-click Start, choose Disk Management) or run lsblk on Linux. Note the disk number, capacity, and current partition layout. Confirm you are acting on the intended drive, not the one holding your operating system or your backup.
  3. Check the partition style. In Disk Management, right-click the disk label and open Properties, then the Volumes tab, to see whether it is MBR or GPT. This matters because MBR disks are limited to four primary partitions and 2 TB of addressable space, while GPT supports far more partitions and much larger disks.
  4. Free up space. If the disk is already full, you must shrink an existing partition before you can create a new one. Right-click the partition, choose Shrink Volume, and enter the amount to remove. Windows will only shrink as far as unmovable files allow, so defragmenting or disabling hibernation and the page file can sometimes free more room.
  5. Create the new partition. Right-click the unallocated space and choose New Simple Volume. Follow the wizard: assign a drive letter, choose a file system (NTFS for Windows-only use, exFAT for cross-platform external drives), and set the allocation unit size to the default unless you have a specific reason to change it.
  6. Format the partition. Formatting prepares the file system. A quick format is fine for a new partition; a full format writes zeros across the surface and takes much longer on large drives. Formatting erases anything already on that partition, so double-check the selection.
  7. Verify the result. The new volume should appear in File Explorer with its own letter and capacity. Copy a small test file to it, then delete it, to confirm the file system is writable.
  8. Repeat or adjust as needed. On Linux, the equivalent workflow uses fdisk or parted to edit the partition table, then mkfs to create a file system, then mount to attach it. On macOS, Disk Utility's Partition button handles the same job graphically. Always unmount a partition before resizing it.

Common Mistakes

The most frequent error is partitioning the wrong disk. Disk numbers in Disk Management and device names in Linux do not always match what you expect, especially on machines with several drives. Read the capacity and model string before clicking anything.

Another common mistake is assuming that shrinking a partition is always possible. Windows cannot move certain system files, so a drive that looks half empty may refuse to shrink beyond a small amount. Disabling hibernation, moving the page file, or using a third-party tool that can relocate unmovable files often solves this.

People also confuse formatting with partitioning. Creating a partition does not erase the rest of the disk, but formatting the wrong partition does erase its contents. Similarly, deleting a partition removes the volume and its file system, though the underlying data may remain recoverable until it is overwritten.

Finally, many users ignore the MBR limit. On an MBR disk, creating a fifth primary partition is impossible; the tool will offer an extended partition containing logical drives instead. If you need more than four partitions, convert the disk to GPT, which normally requires erasing it first unless a conversion tool is used.

Tips

Leave a reasonable amount of free space inside every partition. File systems slow down and fragment when they are nearly full, and Windows needs room for updates and temporary files. A common guideline is to keep at least 15 to 20 percent of a system partition free.

Use meaningful volume labels. A drive called "Backup 2024" is far easier to identify than "New Volume (E:)" when you are troubleshooting at a glance.

For external drives that will move between Windows, macOS, and Linux, exFAT is the most broadly compatible file system. NTFS works well on Windows and is readable on most Linux systems, while macOS can read NTFS but writes to it only with extra software.

Keep a note of the original partition layout, including sizes and letters. If something goes wrong, that record makes recovery and reassembly much easier.

Troubleshooting

The Shrink option is greyed out. This usually means the partition is not formatted with a supported file system, or the disk is not basic. Check that the volume is NTFS and that the disk is not a dynamic disk.

Windows will not shrink as much as expected. Unmovable files near the end of the volume block the operation. Disable hibernation, reduce the page file, or use a partitioning tool that can move those files.

The new partition does not appear. Open Disk Management and look for unallocated space or a volume without a drive letter. Assign a letter, and if the volume is unformatted, format it.

The disk shows as unallocated after an interrupted operation. Do not write anything new to the disk. Use recovery software to scan for lost partitions, or restore from your backup. Writing new data can overwrite the very structures recovery tools need.

The computer will not boot after resizing the system partition. Boot from installation media and use its repair tools, or restore the backup. This is why the backup step comes first.

Frequently Asked Questions

Does partitioning delete my files?

Creating a new partition in unallocated space does not touch existing files. Shrinking a partition normally preserves its data. Formatting or deleting a partition does erase its contents, so back up before any operation that touches an existing volume.

Can I partition a disk without reinstalling the operating system?

Yes. On Windows, Disk Management can shrink an existing volume and create a new one while the system runs. Resizing the partition that holds the running operating system sometimes requires a reboot or a bootable tool, but a reinstall is not necessary.

How many partitions can a hard disk have?

An MBR disk supports up to four primary partitions, or three primary plus an extended partition containing logical drives. A GPT disk supports many more, commonly 128 on Windows, and is not limited to 2 TB volumes.

Is it better to use one partition or several?

It depends on your needs. Separate partitions make it easier to reinstall an operating system without touching personal files, and they can simplify backups. A single large partition is simpler and avoids wasted space, and modern file systems handle large volumes well.

What happens if I convert MBR to GPT?

Windows offers a conversion tool, but it typically requires the disk to be empty, so data must be backed up first. Conversion changes the partition table layout, and an interrupted conversion can leave the disk unbootable.

Can I undo a partition change?

You can delete the new partition and extend the original one back into the freed space, provided the space is adjacent and the file system supports it. Data written to the new partition is lost when it is deleted, so move anything important first.

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions