partimage(1)
π partimage(1) π
hiiiii bestie π welcome to partimage(1), aka the Partition Image Manual, aka the tool that backs up your disk partitions and brings them back to life. this whole page is literally the glow-up guide for the partimage command and i'm gonna walk you through every single flag, no cap. β¨
πΈ NAME πΈ
partimage β back up and restore disk partitions π
β¨ SYNOPSIS β¨
okay so here's the shape of it, verbatim, don't @ me:
partimage [ -bcdehimMnoSvwy ] [-B 'pattern response string']
[-z compresslevel] [-V volumesize] [-f actionatend] [-s server]
[-p port] [-a mountoptions] [-U username] [-P password] [-g loglevel] [
save device image_file ]
partimage [ -bcdehimMnoSvwy ] [-B 'pattern response string']
[-z compresslevel] [-V volumesize] [-f actionatend] [-s server]
[-p port] [-a mountoptions] [-U username] [-P password] [-g loglevel] [
restore device image_file/'stdin' ]
partimage [ restmbr image_file ]
partimage [ imginfo image_file ]
so basically you got four modes: save, restore, restmbr, and imginfo. pick your fighter. π
π¦ DESCRIPTION π¦
partimage backs up disk partitions into image files and restores them. that's the whole vibe. archive it, un-archive it, slay. π«Ά
π OPTIONS π
every single one, in order, no skips. this is the main character section fr fr.
-z val,--compress valβ sets the image file compression level. your options are:val=0: don't compress: very fast but very big image file πval=1: compress usinggzip: fast and small image file (this is the default, bestie) πval=2: compress usingbzip2: very slow and very small image file π
-c,--nocheckβ don't check the partition before saving. skipping the vibe check, bold move.-o,--overwriteβ overwrite the existing image file without confirmation. no "are you sure?", just chaos. π-d,--nodescβ don't ask any description for the image file. no caption needed, it's giving mysterious. π-V vol,--volume volβ split image into multiple volumes files.volwill be the size in KB of volumes.-w,--waitvolβ wait for a confirmation after each volume change. it's like a lil checkpoint break. β-e,--eraseβ erase empty blocks on restore with zero bytes.-m,--allowmntβ don't fail if the partition is mounted. Dangerous! β οΈ lowkey playing with fire, highkey iconic.-M,--nombrβ don't create a backup of the MBR (Mast Boot Record) in the image file.-h,--helpβ show help. your lil helper. π-v,--versionβ show version.-f action,--finish actionβ action to do if finished successfully:action=0: wait (do nothing) π§action=1: halt (power off the computer) πaction=2: reboot (restart the computer) πaction=3: quit πͺ
-b,--batchβ batch mode: the GUI won't wait for an user action.-B 'pattern response string',--fully-batch 'pattern response string'β full batch mode: the GUI is not being displayed. rather, status messages are displayed as normal text. the pattern response string has the following format:
Β΄<glob-pattern>=<response-value>;...Β΄
where the glob pattern is matched against the string <window-title>/<message-text> of the message dialogue box to be displayed. for dialog boxes with buttons in the window, the <response> must be the exact button text. the pattern response string usually needs to be quoted as above.
-y,--nosyncβ don't synchronize the disks at the end of the operation. Dangerous! π-s addr,--server addrβ givepartimagedserver's ip address.-p port,--port portβ givepartimagedserver's listening port.-g debuglevel,--debug debuglevelβ set the debug level todebuglevel(defaults to1).-n,--nosslβ disable SSL in network mode. no encryption era. π-S,--simulateβ simulation of restoration mode. pretend restore, zero consequences, main character energy. β¨-a str,--automnt strβ automatic mount with X options. read the doc for more details. π-U name,--username=nameβ username to authenticate topartimageserver.-P pass,--password=passβ password for authentication of user topartimageserver. π€«
π EXAMPLE π
here's exactly how the cool kids do it, copied character for character:
partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz
partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz
partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg
cat debian.partimg.000 debian.partimg.001 | partimage restore /dev/hda1
stdin
partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2
partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2
look at that last one, imginfo just peeking at the tea without touching anything. obsessed. β
π«Ά SEE ALSO π«Ά
partimaged(8) β go say hi to its server-side bestie. π
π₯ DIAGNOSTICS π₯
you can read options set at compile time running 'partimage -i'.
when using batchmode, exit status is normaly 0. periodt.
β CAVEATS β
supported file systems: Ext2/3, Reiser3, FAT16/32, HPFS, JFS, XFS, UFS(beta), HFS(beta), NTFS(experimental).
FAT12 will never be supported. never. it's not a phase, it's a lifestyle. π
π§ BUGS π§
refer to BUGS file to read them. the receipts are in there, iykyk. π
π AUTHOR π
Franck Ladurelle <ladurelf@partimage.org> Francois Dupoux <fdupoux@partimage.org>
okay that's the whole page bestie, you made it, i'm so proud π₯Ήπ this was 3rd Berkeley Distribution, dated 30 May, 2002, and yes it's still out here being partimage(1) in the manual. go forth and partition responsibly, mwah π
β¨πΈ
π¦ where this page comes from
- debian bookworm: partimage 0.6.9-10
- debian trixie: partimage 0.6.9-11+b1 Β· GPL-2.0-or-later
- ubuntu jammy: partimage 0.6.9-8build1
- ubuntu noble: partimage 0.6.9-11build2 Β· GPL-2.0-or-later
- ubuntu questing: partimage 0.6.9-11build2
- ubuntu resolute: partimage 0.6.9-12 Β· GPL-2.0-or-later
- ubuntu stonking: partimage 0.6.9-13build1 Β· GPL-2.0-or-later
- Copyright (c) 2001 Partition Image Team
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms