|
|
Krister's Blog
krister at hallergard dot com
| Last Updated:
2014-01-24
|
Partimage for Linux Partition Backup
For backup of Linux partitions I using PartImage
which creates images of the entire partition. You need to have at least two Linux partitions, one of them booted
to backup or restore the other. With Partimage you can not use ext4 and btrfs filesystems. I use ext3 for all Linux
partitions.
I keep all data files on a huge Windows partition and can thus keep the Linux partitions small.
Occasionally I get stuck in Linux not knowing why - then it is very convenient to just
restore to a well functioning situation that I had a couple of weeks ago - cannot do that with Windows!
View Video 5 min
Here is how to backup the source partition (Linux Mint), the third partition of Disk2 - sdb3.
The target folder is winfix on partitions w5 - sdb1. Notice that all the Linux partitions have exactly the same size, abt 17 GB, which allows me to
move them around when I restore them, link here.
- Open a root terminal
- Enter "umount /dev/sdb3"
- Enter "partimage"
- Arrow key down to highlight the sdb3 partition
- Tab key down to "Image file to create/use"
- Enter "/mnt/w5/winfix/Mint.img" See picture!
- Action "Save partition---" already selected
- Press F5
|
Backup of sdb3 to images at sdb1 (w5)
|
Next Page, see picture!
- I usually uncheck the options
- Press F5 to continue
- Here we go!
8.1 GB was compressed into two image files Mint.img.000 2GB and Mint.img.001 1GB in 15 minutes.
|
Various options
|
Here is how to restore the target partition (Linux Mint) to the third partion of Disk2 - sdb3 from its previous backup image files
residing on /mnt/w5/winfix.
- Open a root terminal
- Enter "umount /dev/sdb3"
- Enter "partimage"
- Arrow key down to highlight the sdb3 partition
- Tab key down to "Image file to create/use"
- Enter "/mnt/w5/winfix/Mint.img.000" See picture!
Note the 000 for the first file, the second will be restored automatically
- Tab down to action "Restore partition---"
- Hit space to select
- Press F5
The two image files 2+1 GB were restored in 6 minutes, much faster that the backup.
|
Restoring from images at sdb1 (w5) to sdb3
|
|