An open source partition manager lets you safely create, resize, move, or delete disk partitions on Linux, Windows, or macOS without paying for proprietary tools. It achieves full control over your storage layout using trusted, community-maintained software like GParted or KDE Partition Manager. Before starting, ensure you have backed up critical data—partitioning carries inherent risk of data loss if interrupted or misconfigured.
What You'll Need
- A computer with at least one internal or external hard drive or SSD
- A working operating system (Linux, Windows, or macOS) or a live USB/CD with a Linux distribution containing the partition manager (e.g., Ubuntu Live, GParted Live)
- Adequate free space or unallocated space on the target drive (no partitioning can occur on a full disk)
- A backup of all important data on the drive(s) you plan to modify
- Physical access to the machine (remote partitioning is unsupported and unsafe)
Step-by-Step
- Choose your open source partition manager. For most users, GParted is the most beginner-friendly and widely supported option. Download the GParted Live ISO (or use the GParted app if you're on Linux). For KDE users, KDE Partition Manager (part of KDE Plasma) is a solid alternative. Both are free, open source, and actively maintained.
- Create bootable media if using the live environment. On Windows, use Rufus: insert a USB drive (4 GB minimum), open Rufus, select the GParted Live ISO, choose ISO mode, then click Start. On Linux, use `dd` (e.g., `sudo dd if=~/Downloads/gparted-live.iso of=/dev/sdX bs=4M status=progress && sync`) or Etcher. On macOS, use BalenaEtcher or the `dd` command in Terminal (with caution).
- Boot from the live media. Insert the USB or CD, restart the computer, and enter the boot menu (commonly F12, F10, Esc, or Option on Mac during startup). Select the USB/CD device. Once GParted Live loads, choose "Boot with default settings" and wait for the desktop and GParted window to appear.
- Select the correct drive. In the GParted window’s top-right corner, verify you’ve selected the intended drive (e.g., /dev/sda for the primary internal drive). Double-check the size, partition labels, and filesystem types to avoid modifying the wrong disk. You can right-click any partition to view details like mount point and usage.
- Apply pending operations. GParted does not make changes immediately—it queues actions. To resize a partition, right-click it, choose "Resize/Move", adjust sliders or enter exact values (e.g., shrink from 200 GB to 150 GB), then click Resize/Move. To create a new partition, right-click unallocated space, choose "New", set filesystem (e.g., ext4 for Linux, ntfs for cross-platform use), label, and size, then click Add. To delete, right-click and choose Delete. After confirming all desired actions, click the green checkmark to apply.
- Wait for operations to complete. GParted will display a progress bar for each queued task (e.g., moving data, creating filesystems). Do not interrupt power or close the window—this can corrupt data. Large operations (e.g., moving a 500 GB partition) may take 30 minutes or more. When finished, a summary of successful actions appears.
- Reboot and update your system. Click Close, then reboot when prompted. On Linux, after booting into your installed OS, run `sudo update-grub` (for GRUB users) if you modified partitions containing the boot loader. On Windows or macOS, ensure the system boots normally and check Disk Management (Windows) or Disk Utility (macOS) to verify changes.
Common Mistakes
- Skipping backups: Even "safe" operations like resizing carry risk during power loss or software bugs. Always back up first.
- Modifying system partitions without understanding dependencies: Resizing the Windows System Reserved partition or macOS EFI can break booting. Never touch partitions you don’t recognize.
- Confusing device names: /dev/sda is the first SATA drive; /dev/nvme0n1 is the first NVMe drive. Using the wrong device name (e.g., /dev/sdb instead of /dev/sda) will destroy data on the wrong disk.
- Ignoring unallocated space: To create a new partition, you must have unallocated space. This often requires shrinking an existing partition first—do not attempt to create space from a mounted partition.
- Forgetting alignment: New partitions should be aligned to 2048 sectors (1 MiB) for SSD efficiency. GParted does this by default, but manual entry of odd sizes (e.g., 1000001 MB) can misalign partitions.
Tips
- Use ext4 for Linux-only storage—it’s reliable and journalized. For shared drives, NTFS works across Windows/macOS/Linux with drivers, while exFAT is simpler but less robust for large files.
- Leave 1–2 GB of unallocated space at the start of the disk for future boot loader updates or hybrid MBR/GPT needs.
- On laptops, ensure the battery is charged above 80% or the device is plugged in—battery drain during partitioning can cause corruption.
- Check filesystem integrity before resizing: Run `fsck` on Linux (`sudo fsck /dev/sda1`) or chkdsk on Windows (`chkdsk C: /f`) to fix errors that could stall GParted.
- For multi-boot systems, keep the EFI System Partition (ESP) untouched unless you’re experienced—it’s typically 100–550 MB, FAT32, and labeled "boot" or "ESP".
Troubleshooting
If GParted fails, the error message (e.g., "Error fsyncing/closing /dev/sda", "Input/output error", or "The kernel refuses to resize the filesystem") usually points to the cause. First, check for hardware issues: run `smartctl -a /dev/sda` (on Linux) to verify disk health, or listen for clicking sounds. If the disk is failing, stop immediately and replace it.
- "Device or resource busy" error: The partition is in use. Reboot into the live environment again—this is the safest fix. On a running system, unmount the partition first with `sudo umount /dev/sdaX`.
- Partition table corruption: If GParted shows "Unrecognized partition table type", try `sudo gdisk /dev/sda` (on Linux) to repair GPT, or use TestDisk for MBR recovery. Back up the disk header first with `sudo dd if=/dev/sda of=~/mbr_backup bs=512 count=1`.
- Boot failure after changes: If the system won’t start, boot from the live USB again. For GRUB issues, reinstall the bootloader using `sudo grub-install /dev/sda` followed by `sudo update-grub`. For Windows, use a recovery USB to run `bootrec /fixmbr` and `bootrec /fixboot`.
- Partition appears unallocated but data is still there: This often means the partition table was updated but the filesystem wasn’t. Use `testdisk` to recover the partition table without data loss.
Frequently Asked Questions
Is it safe to resize a partition with open source tools?
Yes, when done correctly. GParted and KDE Partition Manager have robust algorithms and have been used for over a decade. However, no tool is 100% risk-free—always back up first, avoid interruptions, and resize only when the filesystem is healthy.
Can I use GParted on a Mac?
Yes. Boot a GParted Live USB on Intel-based Macs (not Apple Silicon, which lacks native UEFI support for Linux). Note that modifying APFS or HFS+ partitions may require additional drivers; for macOS drives, Apple’s Disk Utility is often simpler unless you need advanced Linux compatibility.
Does this work on SSDs?
Absolutely. Modern open source partition managers handle SSDs correctly, including TRIM support during operations. Alignment is handled automatically—no manual tweaks are needed.
Can I partition a drive while the OS is running?
On Linux, you can resize unmounted partitions via command-line tools (e.g., `resize2fs`), but GParted’s GUI is safer for beginners. On Windows/macOS, most partitioning requires a reboot to a special environment (like GParted Live) because system files are in use. Never force-resize a mounted system partition.
What if I accidentally delete a partition?
Stop using the drive immediately. Boot from a live USB and use TestDisk to scan for lost partitions. It often recovers recent deletions if the disk hasn’t been written to since. If TestDisk fails, try `photorec` for file recovery—but restoring the partition table is faster if possible.
Do I need technical skills to use these tools?
Basic computer literacy is enough for common tasks like shrinking a data partition. Avoid complex scenarios (dual-boot setups, LVM, encrypted volumes) until you’re confident. GParted’s interface is intuitive: drag sliders, click checkmarks, and read prompts carefully.