-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux parted Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to parted on Linux, covering Arch Linux, CachyOS, and other distributions including disk partitioning, GPT/MBR tables, and advanced partition management.
- Understanding parted
- parted Installation
- parted Basics
- Creating Partitions
- Managing Partitions
- Troubleshooting
parted is GNU partition editor.
Features:
- GPT support: Works with GPT partition tables
- MBR support: Works with MBR partition tables
- Resize: Can resize partitions
- Advanced: More features than fdisk
Uses:
- Create partitions: Make new partitions
- Resize partitions: Change partition size
- Move partitions: Relocate partitions
- Create tables: Initialize partition tables
Arch/CachyOS:
# Install parted
sudo pacman -S parted
# Usually pre-installedDebian/Ubuntu:
sudo apt install partedFedora:
sudo dnf install partedStart parted:
# Open disk
sudo parted /dev/sda
# Interactive mode
# Type 'help' for commandsList partitions:
# In parted
print
# Or command line
sudo parted /dev/sda printChoose device:
# In parted
select /dev/sda
# Or start with device
sudo parted /dev/sdaInitialize table:
# In parted
mklabel gpt
# Or MBR
mklabel msdosNew partition:
# In parted
mkpart primary ext4 1MiB 10GiB
# Format:
# mkpart [type] [fs-type] [start] [end]Change size:
# In parted
resizepart 1 20GiB
# Resize partition 1 to 20GBRemove:
# In parted
rm 1
# Delete partition 1Check disk:
# Print partition table
sudo parted /dev/sda print
# Check for errors
sudo parted /dev/sda checkThis guide covered parted usage, partition management, and disk partitioning for Arch Linux, CachyOS, and other distributions.
- fdisk Guide - fdisk partitioning
- cfdisk Guide - cfdisk partitioning
- Disk Utilities - Disk tools
-
parted Documentation:
man parted
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.