fparted Documentation 💾¶
Welcome to the official manual and technical documentation for fparted!
fparted is a modern, high-reliability storage and partition management application engineered specifically for rooted Android devices, Android-x86, Bliss OS, and Linux.
Whether you're looking to partition a high-speed MicroSD card for your custom ROM, format a USB OTG drive with exFAT for cross-platform file transfers, repair a corrupted ext4 filesystem, or make a bit-for-bit raw image backup of your Android recovery partition, fparted brings desktop-grade storage tools directly to your device.
🎯 What Can You Do with fparted?¶
-
:material-chart-box-outline: Visual Partition Management
Create, resize, move, label, and delete partitions with real-time visual feedback and guaranteed pixel-perfect graph allocation.
-
:material-harddisk: Full Filesystem Suite
Format, inspect, check (
fsck), repair, and label ext4, FAT32, exFAT, NTFS, Btrfs, XFS, F2FS, Bcachefs, and Linux Swap. -
:material-lock-outline: LUKS Encryption
Create, open, map, and secure password-protected encrypted containers with LUKS1 and LUKS2 dm-crypt technology.
-
:material-content-copy: Bit-for-Bit Raw Imaging
Stream raw disk images (
.img) to Internal Storage or external drives using Android's Storage Access Framework (SAF) and native direct C/JNI I/O. -
:material-keyboard-outline: Desktop & Samsung DeX Ready
Enjoy comprehensive keyboard shortcuts, top menu bars, and mouse hover tooltips for large screens, tablets, and Android-x86/Bliss OS.
-
:material-palette-outline: Material You Theming
Seamlessly extracts your active wallpaper palette on Android 12+ for clean, personalized dark and light themes.
🛡️ The fparted Safety Promise¶
Partitioning tools operate directly on raw hardware blocks. A single misplaced sector offset or broken shell argument can permanently destroy operating system partitions or personal memories.
To protect your hardware and data, fparted is built upon five strict safety invariants:
- Two-Phase Operations Queue: No command runs immediately when you click a button. Actions are staged into an undoable virtual queue and previewed on the interactive partition graph. You can inspect every step before confirming.
- Zero Shell String Interpolation: Feature widgets never execute raw terminal commands or concatenate unquoted strings. All arguments are passed as typed vectors, centrally POSIX single-quoted, and executed with a deterministic environment (
LC_ALL=C,PATH=/data/data/vn.shadichy.parted/files/usr/bin). - Cryptographically Verified Toolchain: All native utilities (
parted,e2fsprogs,dosfstools, etc.) are linked specifically for Android's Bionic C library and verified against SHA-256 manifests. System$PATHor untrustedtoyboxbuiltins are never substituted. - Strict Root Gate: The application tests the exact canonical path
/system/bin/suupon startup. Missing root triggers a non-dismissible Exit dialog to protect against undefined behavior. - Deterministic Integer Math: The partition graph allocator uses pure integer largest-remainder (Hare-Niemeyer) mathematics, mathematically guaranteeing zero layout overflows across any screen resolution or aspect ratio.
🧭 Navigating the Documentation¶
- How to Use (Step-by-Step User Guides): Friendly, tutorial-style walkthroughs for first-time launch, managing partitions, formatting drives, backing up raw images, and working with encrypted volumes.
- Architecture & Safety Invariants: Deep technical breakdown of the startup state machine, root probe contracts, Repo A release assets, and command execution pipelines.
- Storage & Device Discovery: How
fpartedprobes hardware block devices (MMC, UFS, NVMe, USB, loop devices) and validates canonical paths. - Partitions & Layout Mathematics: Detailed explanations of GPT/MBR partition tables, 3-case move algorithms, and sector alignment.
- Filesystem Capabilities: Full matrix detailing create, label, check, repair, grow, and shrink support across 15+ filesystems.
- Troubleshooting & FAQ: Answers to common questions, root authorization tips for KernelSU/APatch/Magisk, and error code references.
- Upstream Credits: Recognizing the foundational open-source engineering from Termux, GNU Parted, e2fsprogs, Flutter, and the Linux kernel storage community.