PARTCLONE.RESTORE(8)
π partclone.restore(8) β the "put my image back on the disk" girlie π
okay so bestie, you're in partclone.restore(8) β the restoration half of the Partclone family. yes, that's a manual page section 8, and yes, we're gonna read it together π«Ά
β¨ NAME β¨
partclone.restore β restore partclone image to device.
like literally, it takes your image and puts it back. slay.
πΈ SYNOPSIS πΈ
partclone.restore {[-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]]
[[-C | --nocheck]] [[-R | --rescue]]
[[-L | --logfile] logfile] [[-w | --skip_write_error]]
[[--write-direct-io]] [[-w | --skip_write_error]]
[[-E | --offset=X]] [[-T | --btfiles]]
[[-t | --btfiles_torrent]] [[-B | --no_block_detail]]
[[--json-status] FILE] [[--json-fresh] N]
(fr fr, that's the whole shape of it β brackets everywhere, she's flexible π )
π¦ DESCRIPTION π¦
partclone.restore is a part of the Partclone project, and its whole job is to restore all image made from partclone.[fstype] or partclone.dd. Partclone provide utilities to backup used blocks and is designed for higher compatibility of the file system by using existing library β like, e.g. e2fslibs is used to read the used block of ext2 partition. so yeah, it's not out here reinventing the wheel, she's borrowing the good one π
Partclone supported file system include btrfs, ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs and zfs for LINUX. it also support some non-linux operation system, ex: NTFS, FAT, EXFAT (for Windows), HFS plus (APPLE MAC OS), UFS2 (FreeBSD), VMFS (VMWare Vsphere). π worldwide coverage honestly.
All partclone utils could be run like partclone.xxx β very similar to fsck or mkfs. For example, for backup/restore hfsplus, just run partclone.hfsp. that's it, that's the whole vibe check β¨
π OPTIONS π
The program follows the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. no cap, here we go:
-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.
Receving data from pipe line is supported ONLY for restoring β just ignore-soption or use-to mean 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-ooption or use-to mean send data to stdout. π
-O FILE,--overwrite FILEβ Overwrite FILE, overwriting if exists. she will NOT ask twice π--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. brave girl behavior tbh πͺ-C,--no_checkβ Don't check device size and free space.-N,--ncursesβ 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.--json-status[=FILE]β Write progress status to FILE in JSON format, periodically refreshed, so external tools can poll the restore status (default FILE:/var/log/partclone.json). it's giving observability β¨--json-fresh=Nβ JSON status update interval in seconds (default:1, minimum:1).-z size,--buffer_size sizeβ Read/write buffer size (default:1048576).-q,--quietβ Disable progress message. shy mode π-dlevel,--debug levelβ Set the debug level[1|2|3].-h,--helpβ Show summary of options.-v,--versionβ Show version of program.
π FILES π
/var/log/partclone.logβ The log file ofpartclone.restore.
β EXAMPLES β
restore /dev/hda1 from hda1.img and display debug information.
partclone.restore -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.restore -d -s - -o /dev/sda1
restore raw image from partclone.dd
partclone.dd -d -c -s /dev/sda1 -o - | partclone.restore -d -s - -o /dev/sdb1
see how the pipe just flows? iconic π (and yes, keep the spacing exactly like that, it's part of the aesthetic)
π₯ DIAGNOSTICS π₯
The following diagnostics may be issued on stderr:
partclone.restore provides some return codes, that can be used in scripts:
- Code
0β Program exited successfully. π - Code
1β Clone or Restore seem failed. π
bestie, if you're scripting this, check that exit code. fr fr. do not ignore her.
πΈ 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)
(go read the whole friend group, they're all lovely π«Ά)
π 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 page bestie β¨ this little beauty is partclone.restore, from the Partclone User Manual, dated 10/28/2026 β go restore something and text me how it went πππ¦
π¦ where this page comes from
- arch rolling: partclone 0.3.52-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms