PARTCLONE(8)
PARTCLONE(8) π
okay bestie, welcome to the Partclone User Manual β this is partclone(8), and it's literally the utility for clone and restore a partition. Buckle up. π
β¨ NAME β¨
partclone β The utility for clone and restore a partition. π
πΈ SYNOPSIS πΈ
partclone.[fstype] {[-c | --clone]} {[-r | --restore]}
{[-b | --dev-to-dev]} {[-s | --source] source}
{[[-o | --output] [-O | --overwrite]] target}
[[-dX | --debug=X]] [[--restore_raw_file]]
[[-z | --buffer_size]] [[-N | --ncurses]]
[[-q | --quiet]] [[-f | --UI-fresh]] [[-F | --force]]
[[-I | --ignore_fschk]] [[-i | --ignore_crc]]
[[-C | --nocheck]] [[-R | --rescue]]
[[-L | --logfile] logfile] [[-X | --compresscmd]]
[[-D | --domain]] [[--offset_domain]]
[[-aX | --checksum-mode=X]]
[[-kX | --blocks-per-checksum=X]]
[[-K | --no-reseed]] [[-w | --skip_write_error]]
[[-E | --offset=X]] [[-T | --btfiles]]
[[-t | --btfiles_torrent]] [[-n | --note]]
[[-B | --no_block_detail]] [[--binary-prefix]]
[[--prog-second]] [[--json-status] FILE]
[[--json-fresh] N] [[--write-direct-io]]
[[--read-direct-io]]
yes, the synopsis literally includes-K | --no-reseedand-X | --compresscmd, bestie β keep those exact, iykyk. π
π¦ DESCRIPTION π¦
partclone.[fstype] is part of the Partclone project. Partclone gives you utilities to back up used blocks, and it's designed for higher filesystem compatibility by using existing libraries β for example, e2fslibs is used to read the used block of an ext2 partition. β¨
Partclone's supported filesystems include btrfs, ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs, and zfs for LINUX. It also supports some non-Linux operating systems, like: NTFS, FAT, and EXFAT (for Windows), HFS plus (APPLE MAC OS), UFS2 (FreeBSD), VMFS (VMWare Vsphere), and MINIX (MINIX3). π
All partclone utils can be run like partclone.[fstype], and it's very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp. π
Here's the filesystem-to-utility glow-up table, but make it a list because we're cute like that:
- File System:
btrfsβ partclone.[fstype]:partclone.btrfsπ - File System:
ext2, ext3, ext4β partclone.[fstype]:partclone.[ext2 | ext3 | ext4]πΈ - File System:
reiserfs 3.5β partclone.[fstype]:partclone.reiserfsπ¦ - File System:
reiser 4β partclone.[fstype]:partclone.reiser4β¨ - File System:
xfsβ partclone.[fstype]:partclone.xfsπ - File System:
ufs | ufs2β partclone.[fstype]:partclone.ufsπ - File System:
jfsβ partclone.[fstype]:partclone.jfsπ - File System:
hfs plusfsβ partclone.[fstype]:partclone.[hfs+ | hfsplus]π - File System:
vmfsβ partclone.[fstype]:partclone.[vmfs | vmfs5]π - File System:
ntfsβ partclone.[fstype]:partclone.ntfsπ₯ - File System:
fat12, fat16, fat32β partclone.[fstype]:partclone.[fat12 | fat16 | fat32]π - File System:
exfatβ partclone.[fstype]:partclone.exfatπ - File System:
minixβ partclone.[fstype]:partclone.minixπ§ - File System:
f2fsβ partclone.[fstype]:partclone.f2fsπΈ - File System:
nilfs2β partclone.[fstype]:partclone.nilfs2π¦ - File System:
apfsβ partclone.[fstype]:partclone.apfsβ¨ - File System:
zfs (stripe pool)β partclone.[fstype]:partclone.zfsπ - File System:
openzfs (stripe pool)β partclone.[fstype]:partclone.openzfsπ - File System:
others (Not Supported FS)β partclone.[fstype]:partclone.imagerπ
π OPTIONS π
The program follows the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. π«Ά
-s FILE,--source FILEβ Source FILE. The FILE could be an image file (made by partclone) or a device, depending on your action. Normally, backup source is a device, and restore source is an image file. Receiving data from a pipeline is supported ONLY for restoring β just ignore-s, or use-to mean receive data from stdin. π-o FILE,--output FILEβ Output FILE. The FILE could be an image file (partclone will generate it) or a device, depending on your action. Normally, backup output goes to an image file and restore output goes to a device. Sending data to a pipeline is also supported ONLY for back-up β just ignore-o, or use-to mean send data to stdout. π-O FILE,--overwrite FILEβ Overwrite FILE, overwriting if it exists. β οΈ-W FILE,--restore_raw_file FILEβ create special raw file for loop device. π-c,--cloneβ Save partition to the special image format. β¨-r,--restoreβ Restore partition from the special image format. π¦-b,--dev-to-devβ Local device-to-device copy on-the-fly; source and output are both devices. π₯-D,--domainβ Create GNU Ddrescue domain log file from source device. This is a human-readable file in which+marks used block areas and?marks free areas. π--offset_domain=Xβ Add X (in bytes) to all positions reported in the domain log file. π--restore_raw_fileβ Creating special raw file for loop device. π-L FILE,--logfile FILEβ put special path to record partclone log information. (default/var/log/partclone.log) πΈ-R,--rescueβ Continue after disk read errors. π-C,--no_checkβ Don't check device size and free space. π«Ά-N,--ncursesβ Using Ncurses Text User Interface. π-I,--ignore_fschkβ Ignore filesystem check. β¨-i,--ignore_crcβ Ignore crc check error. π¦-F,--forceβ Force progress. π₯-f sec,--UI-fresh secβ put special second to different interval. π-z size,--buffer_size sizeβ Read/write buffer size (default:1048576) π-q,--quietβ Disable progress message. π€«-dlevel,--debug levelβ Set the debug level[1|2|3]π-x,--compresscmd CMDβ Start CMD as an output pipe to compress the cloned image. π-aX,--checksum-mode=Xβ Checksum formula to use to add error detection. where X: π0: No checksum (no slowdown, smallest image)1: CRC32 (Fast to compute, basic detection)2: xxHash64 extremely fast non-cryptographic hash algorithm3: xxHash128 Strong and extremely fast, best detection
-kX,--blocks-per-checksum=Xβ Write one checksum for every X blocks. β¨-w,--skip_write_errorβ Continue restore while write errors. π--write-direct-ioβ Writing data to TARGET partition without cache. π₯--read-direct-ioβ Reading data from SOURCE partition without cache. π¦-B,--no_block_detailβ Show progress message without block detail. π--binary-prefixβ Show progress with bit size (default is MB, GB...) πΈ--prog-secondβ Show progress in seconds (default is minute) β±οΈ--json-status[=FILE]β Write progress status to FILE in JSON format, periodically refreshed, so external tools can poll the clone/restore status (default FILE:/var/log/partclone.json) π--json-fresh=Nβ JSON status update interval in seconds (default:1, minimum:1) π«Ά-E,--offset=Xβ Add offset X (bytes) to OUTPUT. π-T,--btfilesβ Restore block as file for ClonezillaBT. π-t,--btfiles_torrentβ Restore block as file for ClonezillaBT but only generate torrent. π-n,--note NOTEβ Display Message Note (128 words). π-h,--helpβ Show summary of options. π-v,--versionβ Show version of program. β
π FILES π
/var/log/partclone.logβ The log file of partclone. πΈ/var/log/partclone.jsonβ The default JSON progress status file written when--json-statusis given without FILE. π
π EXAMPLES π
clone /dev/hda1 to hda1.img and display debug information.
partclone.ext3 -c -d -s /dev/hda1 -o hda1.img
restore /dev/hda1 from hda1.img and display debug information.
partclone.extfs -r -d -s hda1.img -o /dev/hda1
restore image from clonezilla (split, gzip,) with stdin source
cat sda1.ext3-ptcl-img.gz.a* | gunzip -c | partclone.ext3 -d -r -s - -o /dev/sda1
π DIAGNOSTICS π
The following diagnostics may be issued on stderr: π
partclone provides some return codes, that can be used in scripts:
0β Program exited successfully. π1β Clone or Restore seem failed. π
π BUGS π
Report bugs to thomas@clonezilla.org or http://partclone.org. π«Ά
You can get support at http://partclone.org π
π SEE ALSO π
partclone(8), partclone.chkimg(8), partclone.restore(8), partclone.dd(8), partclone.info(8) β¨
π AUTHOR π
Yu-Chin Tsai <thomas@clonezilla.org> π
π COPYRIGHT π
Copyright Β© 2007 Yu-Chin Tsai π
This manual page was written for the Debian system (and may be used by others). πΈ
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. π¦
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. π
π cute sign-off: this page is from partclone, dated 10/28/2026, and yes itβs PARTCLONE(8) β periodt. π«Ά
π¦ where this page comes from
- arch rolling: partclone 0.3.52-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms