Linux · System Tools
parted
Parted is a command‑line tool for creating, resizing, and managing disk partitions on Linux.
- License
- GPL-3.0
- Latest version
- 3.8
What is parted?
Parted has been part of the GNU project since 2000, and is bundled in major distributions like Debian, Fedora, Ubuntu, Arch, and openSUSE. It offers a stable, scriptable interface for partitioning tasks that were traditionally handled by GUI tools such as EaseUS Partition Master. The tool is mature, with regular updates and a strong community.
Parted is aimed at sysadmins, advanced users, and anyone who needs reliable partition manipulation without a graphical front‑end. It works directly with block devices and supports GPT, MBR, and other partition tables.
Compared with Windows tools, Parted feels more utilitarian: there is no visual diagram, but it provides precise control and can be used in scripts or headless servers. The learning curve is steeper, but the trade‑off is flexibility and reliability.
Best for: Advanced users and system administrators who need a reliable, scriptable partitioning tool on Linux.
Key features of parted
- Supports GPT, MBR, and other partition schemes
- Can create, delete, resize, and move partitions
- Handles file systems like ext2/3/4, FAT, NTFS, XFS, Btrfs
- Offers a command‑line interface for scripting
- Provides a text UI (curses) for interactive use
- Can be integrated into boot scripts or automation tools
- Supports partition table checks and repairs
- Allows partition flags manipulation
Pros
- Free and open source
- Cross‑platform support across major Linux distros
- Scriptable for automation
- No GUI overhead
- Strong community and documentation
Cons
- No graphical interface by default
- Requires command‑line knowledge
- Lacks advanced visual tools for beginners
- Error handling can be cryptic for new users
Windows programs parted replaces
How to install parted on Linux
sudo apt install partedsudo apt install partedsudo dnf install partedsudo pacman -S partedsudo zypper install partedTips for Windows users
When moving from EaseUS Partition Master, note that Parted works on raw block devices (e.g., /dev/sda) rather than partition names. Use the print command to list partitions, mklabel to set the table type, and mkpart to create partitions. Shortcuts like Ctrl‑C cancel commands. Workflow differs: you build a sequence of commands in a script or use the interactive curses mode, rather than dragging and dropping. File formats are the same (NTFS, ext4, etc.), so you can copy data after resizing.
parted: frequently asked questions
Can Parted resize a mounted partition?
No, Parted cannot resize a partition that is currently mounted. Unmount it first, or use a live CD for system partitions.
Does Parted support LVM or Btrfs volumes?
Parted can create and delete Btrfs partitions, but it does not manage LVM volumes directly; use LVM tools for that.
How do I check the integrity of a partition table?
Use the check command in Parted to scan the partition table for errors.
Is there a GUI for Parted?
The core tool is command‑line only, but many distributions provide GUI wrappers like GParted that use Parted as the backend.
Updated