-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux cfdisk Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to cfdisk on Linux, covering Arch Linux, CachyOS, and other distributions including disk partitioning with a user-friendly interface.
- Understanding cfdisk
- cfdisk Installation
- cfdisk Interface
- Creating Partitions
- Managing Partitions
- Troubleshooting
cfdisk is curses-based disk partitioner.
Features:
- User-friendly: Menu-driven interface
- Visual: See partitions clearly
- Easy: Simpler than fdisk
- Safe: Preview before applying
Uses:
- Create partitions: Make new partitions
- Delete partitions: Remove partitions
- Resize partitions: Change partition size
- Format partitions: Set filesystem type
Arch/CachyOS:
# Install util-linux (includes cfdisk)
sudo pacman -S util-linux
# Usually pre-installedDebian/Ubuntu:
sudo apt install util-linuxFedora:
sudo dnf install util-linuxStart cfdisk:
# Open disk
sudo cfdisk /dev/sda
# Interactive menu appearsMain menu:
- New: Create new partition
- Delete: Delete partition
- Resize: Resize partition
- Type: Change partition type
- Write: Write changes
- Quit: Exit without saving
Move around:
- Arrow keys: Navigate menu
- Enter: Select option
- Tab: Switch between sections
Steps:
- Select free space
- Choose "New"
- Enter partition size
- Select partition type
- Write changes
Common types:
- Linux: Standard Linux partition
- Linux swap: Swap partition
- EFI System: UEFI boot partition
Remove:
- Select partition
- Choose "Delete"
- Confirm deletion
- Write changes
Change size:
- Select partition
- Choose "Resize"
- Enter new size
- Write changes
Check installation:
# Check cfdisk
which cfdisk
cfdisk --version
# Install if missing
sudo pacman -S util-linuxWrite changes:
# Make sure to select "Write"
# In cfdisk menu
# Then "Quit"This guide covered cfdisk usage, partition management, and disk partitioning for Arch Linux, CachyOS, and other distributions.
- fdisk Guide - fdisk partitioning
- Disk Utilities - Disk tools
- Filesystem Management - Filesystem setup
-
cfdisk Documentation:
man cfdisk
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.