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 -s option, 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 -o option, 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 algorithm
    • 3: 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. πŸŽ‰ slay
  • 1 β€” 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 Β© 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