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-reseed and -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 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. 😭
  • --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-status is 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 Β© 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