PARTCLONE(8)
π PARTCLONE(8) β the Partclone User Manual π
okay bestie, welcome to the group chat where we clone and restore partitions like it's absolutely nothing. This is the manual page for partclone, part of the Partclone project. Let's get into it.
πΈ 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 [-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] [--write-direct-io] [--read-direct-io]]
π¦ DESCRIPTION π¦
partclone.[fstype] is a part of the Partclone project. Partclone provides utilities to back up used blocks and is designed for higher compatibility with the file system by using existing libraries β for example, e2fslibs is used to read the used blocks of an ext2 partition.
Partclone supported file systems 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).
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.
Here's the matching vibe:
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.
-s FILE,--source FILEβ 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.
Receiving data from pipe line is supported ONLY for restoring, just ignore -s option or use - means receive data from stdin.
-o FILE,--output FILEβ 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 -o option or use - means send data to stdout.
-O FILE,--overwrite FILEβ Overwrite FILE, overwriting if exists.-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.-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)
-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-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.
also, the synopsis above shows-K,--no-reseedβ the original OPTIONS list doesn't give it a separate description here.
π 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
π 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.
and that's the whole thing, bestie! π This was partclone, manual page PARTCLONE(8), dated 04/01/2024 (source/version partclone). Stay iconic, no cap. π
π¦
π¦ where this page comes from
- ubuntu noble: partclone 0.3.27+repack-2build2 Β· 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