PARTCLONE(8)
π PARTCLONE(8) π
okay bestie, gather round, because this is the Partclone User Manual and it's genuinely one of the most useful things in the whole Unix ecosystem, no cap. this is the partclone page from the Partclone project and i'm gonna walk you through every single flag like we're studying for the exam together π«Ά
β¨ NAME β¨
partclone β the utility for clone and restore a partition. that's it, that's the whole vibe. it copies your partitions and it brings them back. iconic behavior honestly π
β¨ 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]] [[--write-direct-io]]
[[--read-direct-io]]
like look at that. it's giving options for days π and yes we're going through every single one of them, don't even try to scroll past.
β¨ DESCRIPTION β¨
partclone.[fstype] is a part of the Partclone project. Partclone provides utilities to back up used blocks and it's designed for higher compatibility with the file system by using an existing library β for example, e2fslibs is what it uses to read the used blocks of an ext2 partition. bestie it's literally reusing the filesystem's own brain instead of guessing. main character energy π§ β¨
The file systems Partclone supports include btrfs, ext2, ext3, ext4, reiserfs, reiser4, xfs and jfs for LINUX. It also supports some non-Linux operating systems, ex: NTFS, FAT and EXFAT (for Windows), HFS plus (APPLE MAC OS), UFS2 (FreeBSD), VMFS (VMWare Vsphere) and MINIX (MINIX3). like it's polyglot, it speaks every filesystem dialect, obsessed π
All partclone utils can be run in a way that's very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp π«
here's the whole little family tree of which binary handles which filesystem:
- btrfs β
partclone.btrfs - ext2, ext3, ext4 β
partclone.[ext2 | ext3 | ext4] - reiserfs 3.5 β
partclone.reiserfs - reiser 4 β
partclone.reiser4 - xfs β
partclone.xfs - ufs | ufs2 β
partclone.ufs - jfs β
partclone.jfs - hfs plusfs β
partclone.[hfs+ | hfsplus] - vmfs β
partclone.[vmfs | vmfs5] - ntfs β
partclone.ntfs - fat12, fat16, fat32 β
partclone.[fat12 | fat16 | fat32] - exfat β
partclone.exfat - minix β
partclone.minix - f2fs β
partclone.f2fs - nilfs2 β
partclone.nilfs2 - apfs β
partclone.apfs - others (Not Supported FS) β
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. (yes bestie, the dashes are literally the personality of GNU, we stan consistency π
)
-s FILE,--source FILEβ the Source FILE. That 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 pipe line is supported ONLY for restoring β just ignore the-soption, or use-to mean "receive data from stdin". π«Ά
-o FILE,--output FILEβ the Output FILE. That FILE could be an image file (which partclone will generate) or a device, depending on your action. Normally, backup output is an image file and restore output is a device.
Sending data to a pipe line is also supported ONLY for back-up β just ignore the-ooption, or use-to mean "send data to stdout". πΈ
-O FILE,--overwrite FILEβ overwrite FILE, overwriting if it exists. yeah it just Says That. brutal but honest π-W FILE,--restore_raw_file FILEβ create a special raw file for a 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 a GNU Ddrescue domain log file from the source device. This is a human readable file in which+marks used block areas and?marks free areas. so cute and legible, we love a mappable format β--offset_domain=Xβ add X (in bytes) to all positions reported in the domain log file.--restore_raw_fileβ creating a special raw file for loop device. (yes this one shows up again, it's just like that)-L FILE,--logfile FILEβ put a special path to record partclone log information. (default/var/log/partclone.log)-R,--rescueβ continue after disk read errors. your disk is throwing tantrums, this option says "we ball" π₯-C,--no_checkβ don't check device size and free space.-N,--ncursesβ using the 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 a special second to a 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 is: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 happen. persistent queen behavior π--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).-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. it's where it writes down everything it's been up to, like a little diary π
β¨ EXAMPLES β¨
okay this is the part where it all clicks, bestie, watch this π
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
see that - in the last one?? that's the "i'm getting my data from the pipe bestie" move, and it ATE πβ¨
β¨ DIAGNOSTICS β¨
The following diagnostics may be issued on stderr:
partclone provides some return codes, that can be used in scripts:
0β Program exited successfully. π slay1β Clone or Restore seem failed. π it's giving tragedy
β¨ BUGS β¨
Report bugs to thomas@clonezilla.org or http://partclone.org.
You can get support at http://partclone.org. they're nice, they won't bite π
β¨ SEE ALSO β¨
partclone(8), partclone.chkimg(8), partclone.restore(8), partclone.dd(8), partclone.info(8) β the whole friend group, go say hi π¦
β¨ AUTHOR β¨
Yu-Chin Tsai <thomas@clonezilla.org> β thank you for our lives, king π
β¨ 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.
and that's the whole page bestie, we did it, we read every flag, every default, every return code, no skips, no shortcuts πβ¨ this was the partclone manual, page PARTCLONE(8), from the Partclone User Manual, dated 07/23/2026, and honestly? it ate. periodt. π
ππ«Ά
π¦ where this page comes from
- ubuntu stonking: partclone 0.3.47-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms