PARTCLONE(8)
π PARTCLONE (8) π
okay so bestie, welcome to the partclone manual page β yes it's the one from the Partclone User Manual set, and yeah it's a section 8 page, meaning it's for the admin girlies who run stuff as root. grab a strawberry drink π and let's go.
β¨ NAME β¨
partclone β the utility for clone and restore a partition. that's it, that's the whole job. cloning. restoring. partitions. iconic behaviour honestly π
πΈ SYNOPSIS πΈ
here's the whole shape of the thing, no cap:
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 yes it's a lot of brackets, don't panic, they're just vibes. we'll walk through every single one π«Ά
π DESCRIPTION π
partclone.[fstype] is a part of the Partclone project. Partclone provide utilities to backup used blocks and design for higher compatibility of the file system by using existing library, e.g. e2fslibs is used to read the used block of ext2 partition. (translation: it doesn't reinvent the wheel, it borrows the filesystem's own library to figure out which blocks are actually used, and only backs up those. efficiency queen β¨)
Partclone supported file system include btrfs, ext2, ext3, ext4, reiserfs, reiser4, xfs and jfs for LINUX. Also support some non-linux operation system, ex: NTFS, FAT and EXFAT (for Windows), HFS plus (APPLE MAC OS), UFS2 (FreeBSD), VMFS (VMWare Vsphere) and MINIX (MINIX3). she's multilingual fr fr π
All partclone utils could be run like partclone.[fstype] is very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp. so you literally just pick the flavour that matches your filesystem, the way you'd pick a mkfs. variant. same energy, same muscle memory π§
π¦ the filesystem-to-binary cheat sheet π¦
btrfsβpartclone.btrfsext2,ext3,ext4βpartclone.[ext2 | ext3 | ext4]reiserfs 3.5βpartclone.reiserfsreiser 4βpartclone.reiser4xfsβpartclone.xfsufs | ufs2βpartclone.ufsjfsβpartclone.jfshfs plusfsβpartclone.[hfs+ | hfsplus]vmfsβpartclone.[vmfs | vmfs5]ntfsβpartclone.ntfsfat12,fat16,fat32βpartclone.[fat12 | fat16 | fat32]exfatβpartclone.exfatminixβpartclone.minixf2fsβpartclone.f2fsnilfs2βpartclone.nilfs2apfsβpartclone.apfsothers (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. okay bestie, deep breath, here comes the whole list β and yes, every single one is staying π€
-sFILE,--sourceFILE β Source FILE. The FILE could be a image file (made by partclone) or device depend on your action. Normally, backup source is device, restore source is image file. Receving data from pipe line is supported ONLY for restoring, just ignore-soption or use-means receive data from stdin. π°-oFILE,--outputFILE β Output FILE. The FILE could be a image file (partclone will generate) or device depend on your action. Normally, backup output to image file and restore output to device. Sending data to pipe line is also supported ONLY for back-up, just ignore-ooption or use-means send data to stdout. π«-OFILE,--overwriteFILE β Overwrite FILE, overwriting if exists. she will not be asking permission, that file is going to the shadow realm π-WFILE,--restore_raw_fileFILE β 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 both are device.-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. (yes she shows up twice in this manual, she contains multitudes π )-LFILE,--logfileFILE β put special path to record partclone log information. (default/var/log/partclone.log)-R,--rescueβ Continue after disk read errors. ride or die energy π«‘-C,--no_checkβ Don't check device size and free space.-N,--ncursesβ Using Ncurses Text User Interface. retro aesthetic β¨-I,--ignore_fschkβ Ignore filesystem check.-i,--ignore_crcβ Ignore crc check error.-F,--forceβ Force progress.-fsec,--UI-freshsec β put special second to different interval.-zsize,--buffer_sizesize β Read/write buffer size (default:1048576)-q,--quietβ Disable progress message. silence is golden π§-dlevel,--debuglevel β Set the debug level[1|2|3]-x,--compresscmdCMD β 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)-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,--noteNOTE β 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
π 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
see that -s - in the last one? that's the stdin pipe moment. chef's kiss π¨βπ³π
π₯ DIAGNOSTICS π₯
The following diagnostics may be issued on stderr:
partclone provides some return codes, that can be used in scripts:
- Code
0β Program exited successfully. π - Code
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)
the whole friend group, love that for them π«Ά
π 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.
ok that's the whole page bestie, every flag accounted for, no strays, no leftovers π
and that's a wrap β this little love letter of a manual page is partclone, dated 09/12/2026, living its best life under the PARTCLONE(8) banner. go clone something responsibly, mwah π
β¨
π¦ where this page comes from
- epel 10: partclone 0.3.50-1.el10_3 Β· BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only AND LGPL-2.0-or-later AND LGPL-3.0-or-later
- fedora 43: partclone 0.3.50-1.fc43 Β· BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only AND LGPL-2.0-or-later AND LGPL-3.0-or-later
- fedora 44: partclone 0.3.50-1.fc44 Β· BSD-2-Clause AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-only AND LGPL-2.0-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms