### Build and Install Partclone from Source Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Compiles the Partclone source code after extraction and configuration. It enables all features and a static build. Finally, it installs the compiled software. ```bash tar zxvf partclone-0.2.69.tar.gz cd partclone-0.2.69 ./configure --enable-all --enable-ncursesw --enable-static make make install ``` -------------------------------- ### Install Packages for Testing Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Installs mlocate and e2fsprogs, which are required for running the mini_clone_restore_test and ncuresew.test. ```bash yum install mlocate e2fsprogs ``` -------------------------------- ### Install Partclone from Debian Repository Source: https://github.com/thomas-tsai/partclone/wiki/Debian--Ubuntu Installs the Partclone package directly from the official Debian repositories using apt-get. ```bash sudo apt-get install partclone ``` -------------------------------- ### Compile Partclone from Source Source: https://github.com/thomas-tsai/partclone/wiki/Debian--Ubuntu Compiles Partclone from source code, including setting up build dependencies, configuring with specific file system support, and installing the compiled package. ```bash sudo apt-get build-dep partclone sudo apt-get install f2fs-tools hfsprogs exfatprogs gddrescue reiser4progs ./autogen ./configure --enable-extfs --enable-ntfs --enable-fat --enable-exfat --enable-hfsp --enable-apfs --enable-btrfs --enable-minix --enable-f2fs --enable-reiser4 --enable-xfs make make install ``` -------------------------------- ### Download Partclone Source Code Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Fetches the Partclone source code archive using wget. Ensure you have wget installed and a stable internet connection. ```bash wget http://partclone.nchc.org.tw/download/testing/src/partclone-0.2.69.tar.gz ``` -------------------------------- ### Configure, Build, and Install Partclone Source: https://github.com/thomas-tsai/partclone/wiki/Source-compile Compiles the Partclone software after setting up build dependencies and configuring build options. This process enables various filesystem support features based on the provided flags. Assumes the source code has been cloned. ```bash ./autogen ``` ```bash ./configure --enable-fs-test --enable-feature-test --enable-extfs --enable-ntfs --enable-fat --enable-exfat --enable-hfsp --enable-apfs --enable-btrfs --enable-minix --enable-f2fs --enable-reiser4 --enable-xfs ``` ```bash make make install ``` -------------------------------- ### Compile and Install Partclone Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Configures, compiles, and installs Partclone with support for various file systems including extfs, minix, btrfs, f2fs, exfat, ntfs, and ncursesw. Some file system support might be missing. ```bash ./configure --enable-extfs --enable-minix --enable-btrfs --enable-f2fs --enable-exfat --enable-ntfs --enable-ncursesw make make install ``` -------------------------------- ### Install Partclone Dependencies Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Updates the package list and installs all necessary development libraries for compiling Partclone using the build-dep command. This simplifies dependency management. ```bash apt-get update apt-get build-dep partclone ``` -------------------------------- ### Run Partclone Tests Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Executes the Partclone tests, specifically mini_clone_restore_test and ncuresew.test, to verify the functionality after installation. ```bash tests/mini_clone_restore_test tests/ncuresew.test ``` -------------------------------- ### Add DRBL Repository and Install Partclone Source: https://github.com/thomas-tsai/partclone/wiki/Debian--Ubuntu Adds the DRBL repository to the system for full file system support, imports the repository GPG key, updates the package list, and installs Partclone. ```bash deb http://free.nchc.org.tw/drbl-core drbl stable testing unstable dev sudo wget http://drbl.nchc.org.tw/GPG-KEY-DRBL; apt-key add GPG-KEY-DRBL sudo apt-get update sudo apt-get install partclone ``` -------------------------------- ### Partclone Clone Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ntfs This example demonstrates how to clone a partition (/dev/hda1) to an image file (hda1.img) and simultaneously display debug information during the process. ```bash partclone.ext4 -c -s /dev/hda1 -o hda1.img -d3 ``` -------------------------------- ### Partclone Cloning Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.minix Demonstrates how to clone a partition (/dev/hda1) to an image file (hda1.img) while enabling debug information. ```bash partclone.ext4 -c -s /dev/hda1 -o hda1.img -d2 ``` -------------------------------- ### Partclone Restore Examples Source: https://github.com/thomas-tsai/partclone/wiki/partclone.restore Demonstrates practical usage of the partclone.restore command with different scenarios, including restoring from a file with debug information, restoring from a split and compressed image using stdin, and restoring a raw image. ```bash partclone.restore -d -s hda1.img -o /dev/hda1 ``` ```bash cat sda1.ext3-ptcl-img.gz.a* | gunzip -c | partclone.restore -d -s - -o /dev/sda1 ``` ```bash partclone.dd -d -c -s /dev/sda1 -o - | partclone.restore -d -s - -o /dev/sdb1 ``` -------------------------------- ### Partclone Command-Line Usage Examples Source: https://github.com/thomas-tsai/partclone/wiki/partclone.fat32 Demonstrates various ways to use the partclone utility for cloning and restoring partitions, including device-to-device copies and image file operations. ```bash partclone.ext4 --clone --source /dev/sda1 --output /path/to/sda1.img partclone.ntfs --restore --source /path/to/sda1.img --output /dev/sda1 partclone.btrfs --dev-to-dev --source /dev/sdb1 --output /dev/sdc1 --debug 2 partclone.fat32 --clone --source /dev/sdd1 --output /path/to/d.img -q --logfile /var/log/partclone.log ``` -------------------------------- ### Install Dependency Libraries on CentOS 7 Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Installs necessary libraries for Partclone functionality, including ncurses, e2fsprogs, libblkid, and fuse. ```bash yum install ncurses-devel ncurses-libs yum install e2fsprogs-devel yum install libblkid-devel yum install fuse ``` -------------------------------- ### Partclone Clone Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext4 Demonstrates how to clone a partition (e.g., /dev/hda1) to an image file (hda1.img) while displaying debug information. ```bash # clone /dev/hda1 to hda1.img and display debug information. ``` -------------------------------- ### Partclone Example: Cloning with Debug Info Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ufs This example demonstrates how to clone a partition (e.g., /dev/hda1) to an image file (hda1.img) while enabling debug information for troubleshooting. ```bash # clone /dev/hda1 to hda1.img and display debug information. partclone.ext3 -c -s /dev/hda1 -o hda1.img -d3 ``` -------------------------------- ### Partclone Clone Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext4dev Demonstrates how to clone a partition (e.g., /dev/hda1) to an image file (hda1.img) while displaying debug information. ```bash clone /dev/hda1 to hda1.img and display debug information. ``` -------------------------------- ### Install Development Packages on CentOS 7 Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Installs essential development packages like gcc, glibc, and the 'development tools' group required for compiling software on CentOS 7. ```bash yum update yum install gcc glibc glibc-common yum install libuuid-devel yum grouplist yum groupinstall "development tools" yum install rpm-build ``` -------------------------------- ### Partclone Clone Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.fat16 An example command to clone partition /dev/hda1 to an image file named hda1.img and display debug information during the process. ```bash partclone.ext4 -c -s /dev/hda1 -o hda1.img -d 3 ``` -------------------------------- ### Partclone Clone Example Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs5 This example demonstrates how to clone a partition (/dev/hda1) to an image file (hda1.img) and simultaneously display debug information. It utilizes the '-c' for clone, '-s' for source, '-o' for output, and '-d 3' for debug level 3. ```bash # clone /dev/hda1 to hda1.img and display debug information. partclone.ext3 -c -s /dev/hda1 -o hda1.img -d 3 ``` -------------------------------- ### Enable EPEL Repository and Install NTFS Support Source: https://github.com/thomas-tsai/partclone/wiki/CentOS Enables the Extra Packages for Enterprise Linux (EPEL) repository and installs ntfs-3g-devel, which is required for NTFS file system support in Partclone. ```bash su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm' yum install ntfs-3g-devel ``` -------------------------------- ### Build Debian Packages for Partclone Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Prepares and builds Debian package files (.deb) from the Partclone source code. This involves copying packaging information, updating changelog, and using debuild. ```bash tar zxvf partclone-0.2.69.tar.gz cd partclone-0.2.69/ cp -r README.Package/debian.sid debian dch -i debuild ``` -------------------------------- ### Add DRBL Repository and Install Partclone Dependencies on Debian/Ubuntu Source: https://github.com/thomas-tsai/partclone/wiki/Source-compile Configures the system's package manager to include the DRBL repository for comprehensive filesystem support. It then installs essential build tools and Partclone's dependencies. Requires root privileges. ```bash deb http://free.nchc.org.tw/drbl-core drbl stable testing unstable dev deb-src http://free.nchc.org.tw/drbl-core drbl stable testing unstable dev ``` ```bash wget http://drbl.nchc.org.tw/GPG-KEY-DRBL; apt-key add GPG-KEY-DRBL apt-get update ``` ```bash apt-get install -y f2fs-tools hfsprogs exfatprogs gddrescue libfuse-dev jfsutils reiser4progs hfsprogs hfsplus reiserfsprogs btrfs-progs wget gnupg2 git apt-get build-dep partclone ``` -------------------------------- ### Clone Partclone Source Code using Git Source: https://github.com/thomas-tsai/partclone/wiki/Source-compile Fetches the latest source code for the Partclone project from its GitHub repository. This is the primary method for obtaining the project files for building or contributing. ```git git clone git@github.com:Thomas-Tsai/partclone.git ``` ```git git clone https://github.com/Thomas-Tsai/partclone.git ``` -------------------------------- ### Partclone Supported File Systems Source: https://github.com/thomas-tsai/partclone/wiki/partclone.reiser4 This table lists the various file systems supported by Partclone and the corresponding command syntax to invoke the utility for each file system. For example, `partclone.ext4` is used for ext4 partitions. ```text File System partclone.[fstype] btrfs partclone.btrfs ext2, ext3, ext4 partclone.[ext2|ext3|ext4] eiserfs 3.5 partclone.reiserfs eiser 4 partclone.reiser4 xfs partclone.xfs uufs | ufs2 partclone.ufs jfs partclone.jfs hfs plusfs partclone.[hfs+|hfsplus]vmfs partclone.vmfs ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone File System Support Examples Source: https://github.com/thomas-tsai/partclone/wiki/partclone.btrfs This illustrates how to invoke partclone for specific file systems like ext4, NTFS, and HFS+ by appending the file system type to the partclone command. ```bash partclone.ext4 -s /dev/sda1 -o /backup/sda1.ext4.img partclone.ntfs -s /dev/sda1 -o /backup/sda1.ntfs.img partclone.hfsplus -s /dev/sda1 -o /backup/sda1.hfsplus.img ``` -------------------------------- ### Add DRBL Repository for File System Support Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Configures the system's package manager to include the DRBL repository, which provides additional file system support for Partclone. Requires root privileges. ```bash deb http://free.nchc.org.tw/drbl-core drbl stable testing unstable dev deb-src http://free.nchc.org.tw/drbl-core drbl stable testing unstable dev ``` -------------------------------- ### Add DRBL Repository Key Source: https://github.com/thomas-tsai/partclone/wiki/Build-package Downloads and adds the GPG key for the DRBL repository to the system's trusted keys. This is essential for verifying package authenticity. ```bash wget http://drbl.nchc.org.tw/GPG-KEY-DRBL; apt-key add GPG-KEY-DRBL ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.fat16 Lists the supported file systems and their corresponding partclone utility names. For example, partclone.ext4 is used for ext2, ext3, and ext4 file systems. ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone: Clone Partition with Debug Info Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs An example of cloning a partition (`/dev/hda1`) to an image file (`hda1.img`) while enabling debug information for troubleshooting. ```bash partclone.ext4 --clone --source /dev/hda1 --output hda1.img --debug 3 ``` -------------------------------- ### Partclone Option: Ncurses UI Source: https://github.com/thomas-tsai/partclone/wiki/partclone.hfs+ The `-N` or `--ncurses` option enables the use of the Ncurses Text User Interface for Partclone. This provides a more interactive and visually guided experience compared to the standard command-line output. ```bash -N, --ncurse Using Ncurses Text User Interface. ``` -------------------------------- ### Check Partclone Image File Source: https://github.com/thomas-tsai/partclone/wiki/partclone.chkimg This example demonstrates how to use partclone.chkimg to check the integrity of a Partclone image file named 'partclone.img'. The '-d' option likely enables debugging output, and '-s' specifies the source image file. ```bash partclone.chkimg -d -s partclone.img ``` -------------------------------- ### Partclone Option: Offset Domain Log Source: https://github.com/thomas-tsai/partclone/wiki/partclone.hfs+ The `--offset_domain=X` option allows you to add a specified offset (in bytes) to all positions reported within the domain log file created by the `--domain` option. This can be useful for adjusting log file entries relative to a specific starting point. ```bash --offset_domain=X Add X (in bytes) to all positions reported in the domain log file ``` -------------------------------- ### Partclone Command Syntax and Options Source: https://github.com/thomas-tsai/partclone/wiki/partclone.exfat This snippet outlines the general syntax for using partclone with various file system types and details the available command-line options. It covers source/output specification, clone/restore actions, device-to-device operations, logging, debugging, and UI customization. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.VMFS_volume_member Lists the specific partclone commands for various supported file systems, showing how to invoke partclone for each type. ```bash File System partclone.[fstype] btrfs partclone.btrfs ext2, ext3, ext4 partclone.[ext2|ext3|ext4] eiserfs 3.5 partclone.reiserfs reiser 4 partclone.reiser4 xfs partclone.xfs uview 2 partclone.ufs jfs partclone.jfs hfs plusfs partclone.[hfs+|hfsplus] vmfs partclone.vmfs ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Command-Line Synopsis Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext2 This entry outlines the general syntax for using partclone commands, specifying the file system type and common operational flags like clone, restore, and source/output specifications. It also includes options for debugging, UI customization, and error handling. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Option: Help Source: https://github.com/thomas-tsai/partclone/wiki/partclone.hfs+ The `-h` or `--help` option displays a summary of available Partclone commands and options. This is a standard option for most command-line utilities. ```bash -h, --help Show summary of options. ``` -------------------------------- ### Partclone Command-Line Synopsis Source: https://github.com/thomas-tsai/partclone/wiki/partclone.hfsplus The synopsis outlines the general structure of partclone commands, including options for cloning, restoring, source/output specification, debugging, and user interface preferences. It demonstrates how to specify the file system type. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Command Line Syntax and Options Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vfat This snippet outlines the general command-line syntax for partclone utilities, specifying the file system type, source, and target. It also details various options for cloning, restoring, device-to-device copying, debugging, logging, and user interface control. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] -s FILE, --source FILE Source FILE. The FILE could be a image file(made by partclone) or device depend on your action. Normanly, backup source is device, restore source is image file. Receving 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. Normanly, 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 --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, --ncurse Using Ncurses Text User Interface. -X, --dialog Output message as Dialog Format. -I, --ignore_fschk Ignore filesystem check. --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] -h, --help Show summary of options. -v, --version Show version of program. ``` -------------------------------- ### Partclone Command-Line Syntax Source: https://github.com/thomas-tsai/partclone/wiki/partclone.reiserfs This shows the general syntax for using partclone with different file system types. It specifies the core actions (clone, restore, dev-to-dev) and common options for source, output, debugging, and interface. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone File System Mapping Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs3 This section lists the various file systems supported by Partclone and the corresponding partclone utility command to use for each. It serves as a quick reference for users to select the correct tool for their partition type. ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Basic Usage: Clone and Restore Source: https://github.com/thomas-tsai/partclone/wiki/partclone.extfs Demonstrates the fundamental command-line syntax for using partclone to clone a partition to an image file or restore a partition from an image file. It highlights the use of source and output options. ```bash partclone.[fstype] -s source -o output ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.fat32 Lists the file systems supported by partclone and their corresponding command syntax (e.g., partclone.ext4 for ext4 partitions). ```bash File System partclone.[fstype] btrfs partclone.btrfs ext2, ext3, ext4 partclone.[ext2|ext3|ext4] reiserfs 3.5 partclone.reiserfs reiser 4 partclone.reiser4 xfs partclone.xfs uufs | ufs2 partclone.ufs jfs partclone.jfs hfs plusfs partclone.[hfs+|hfsplus] vmfs partclone.vmfs ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.minix Lists the various file systems supported by Partclone, along with the corresponding command to use for operations on those file systems. ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Command Synopsis Source: https://github.com/thomas-tsai/partclone/wiki/partclone.fat16 This is the general command-line syntax for Partclone, showing how to specify the file system type and various options for cloning or restoring partitions. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Command Synopsis Source: https://github.com/thomas-tsai/partclone/wiki/partclone.hfsp This provides the general syntax for using Partclone commands, specifying the file system type and various options for cloning or restoring partitions. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Command Syntax and Options Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext4dev Provides the general command structure for partclone, including options for cloning, restoring, source/output specification, debugging, and user interface. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Source and Output Options Source: https://github.com/thomas-tsai/partclone/wiki/partclone.VMFS_volume_member Details on how to specify the source and output for partclone operations. Supports both file paths and device names, as well as piping. ```bash -s FILE, --source FILE Source FILE. The FILE could be a image file(made by partclone) or device depend on your action. Normanly, backup source is device, restore source is image file. Receving 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. Normanly, 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. ``` -------------------------------- ### Partclone Command Line Syntax Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs3 This snippet shows the general command-line syntax for partclone utilities, indicating how to specify the file system type and perform cloning or restoring operations. It highlights the use of source and output files/devices. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Options: User Interface Source: https://github.com/thomas-tsai/partclone/wiki/partclone.f2fs Describes Partclone's user interface options, such as using Ncurses for a text-based interface ('-N'), outputting messages in Dialog format ('-X'), and controlling UI refresh intervals ('-f'). ```bash -N, --ncurse Using Ncurses Text User Interface. -X, --dialog Output message as Dialog Format. -f sec, --UI-fresh sec put special second to different interval. ``` -------------------------------- ### Partclone Supported File Systems Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext4dev Lists the file systems supported by Partclone and their corresponding command syntax (e.g., partclone.ext4 for ext4 partitions). ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone.ntfsfixboot Command Line Syntax Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ntfsreloc This snippet shows the general command-line syntax for the partclone.ntfsfixboot utility, indicating the available options and the required device argument. ```bash partclone.ntfsfixboot [-w] [-h n] [-t n] [-s n] [-b] [-f] [-p] {DEVICE} ``` -------------------------------- ### Partclone Supported File Systems and Commands Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs5 This section lists the file systems supported by Partclone and the corresponding command format (partclone.[fstype]) to use for each. This helps users select the correct command for their specific partition type. ```bash File System partclone.[fstype] btrfs partclone.btrfs ext2, ext3, ext4 partclone.[ext2|ext3|ext4] eiserfs 3.5 partclone.reiserfs eiser 4 partclone.reiser4 xfs partclone.xfs ufs | ufs2 partclone.ufs jfs partclone.jfs hfs plusfs partclone.[hfs+|hfsplus]vmfs partclone.vmfs ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Options: Advanced Features Source: https://github.com/thomas-tsai/partclone/wiki/partclone This section details advanced options for Partclone, such as creating Ddrescue domain log files, handling raw file creation for loop devices, and managing log files. ```bash -D, --domain Create GNU Ddrescue domain log file from source device --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) ``` -------------------------------- ### Partclone Options: Source and Output Source: https://github.com/thomas-tsai/partclone/wiki/partclone Details on how to specify the source and output files or devices for Partclone operations. It covers using regular files, devices, and piping data through stdin/stdout. ```bash -s FILE, --source FILE Source FILE. The FILE could be a image file(made by partclone) or device depend on your action. Normanly, backup source is device, restore source is image file. Receving 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. Normanly, 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. ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.vmfs Lists the supported file systems and their corresponding partclone utility names. This shows the versatility of Partclone across different operating systems. ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Options: Control and Debugging Source: https://github.com/thomas-tsai/partclone/wiki/partclone Details options for forcing operations, controlling UI refresh rates, setting buffer sizes, managing progress messages, and setting debug levels for troubleshooting. ```bash -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] ``` -------------------------------- ### Partclone Supported File Systems and Commands Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ufs This table lists the file systems supported by Partclone and the corresponding command syntax (partclone.[fstype]) for each. This helps users select the correct command for their specific partition type. ```bash File System partclone.[fstype] btrfs partclone.btrfs ext2, ext3, ext4 partclone.[ext2|ext3|ext4] reiserfs 3.5 partclone.reiserfs reiser 4 partclone.reiser4 xfs partclone.xfs ups | ufs2 partclone.ufs jfs partclone.jfs hfs plusfs partclone.[hfs+|hfsplus] vmfs partclone.vmfs ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone.dd Backup and Restore Commands Source: https://github.com/thomas-tsai/partclone/wiki/partclone.dd Demonstrates the basic syntax for backing up a partition to an image file and restoring a partition from an image file using partclone.dd. The commands utilize source and output options for specifying devices or image files. ```bash partclone.dd -s /dev/hda1 -o hda1.dd.img partclone.dd -s hda1.dd.img -o /dev/hda1 ``` -------------------------------- ### Partclone File System Support Source: https://github.com/thomas-tsai/partclone/wiki/partclone.ext4 Lists the supported file systems and their corresponding partclone utility names. Partclone utilizes existing libraries (e.g., e2fslibs for ext2) for compatibility. ```bash File System partclone.[fstype] 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 ntfs partclone.ntfs fat12, fat16, fat32 partclone.[fat12|fat16|fat32] exfat partclone.exfat minix partclone.minix f2fs partclone.f2fs nilfs2 partclone.nilfs2 ``` -------------------------------- ### Partclone Command-Line Syntax Source: https://github.com/thomas-tsai/partclone/wiki/partclone.jfs This snippet outlines the general command-line structure for partclone utilities, indicating how to specify the filesystem type and various operational flags for cloning, restoring, and debugging. ```bash 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]] [[--ignore_crc] [-X | --dialog] [-C | --nocheck]] [[-R | --rescue] [-L | --logfile] logfile] ``` -------------------------------- ### Partclone Buffer and Special File Options Source: https://github.com/thomas-tsai/partclone/wiki/partclone.VMFS_volume_member Configuration options for the read/write buffer size and creating special raw files for loop devices. ```bash -z size, --buffer_size size Read/write buffer size (default: 1048576) --restore_raw_file Creating special raw file for loop device. ```