Backup / restore with Partimage
This example shows you how to backup/restore a NTFS partition.
The backup file will be saved on a NTFS formatted USB hard disk.
Basic conditions:
-
Windows is installed on the first partition of a SATA hard disk. This partition
is formatted with NTFS.
-
The partition image should be stored on a NTFS formatted USB hard disk.
-
Device node SATA hard disk: /dev/sda
-
Device node USB hard disk: /dev/sdb
Use dmesg to determine what device nodes
linux is using for your devices. You can find an example at
2.1 Make an USB device bootable step-by-step.
USB-, SCSI- and SATA-devices are using /dev/sdX.
IDE-devices are using /dev/hdX. X
should be replaced with a to z.
Preparations:
-
Boot with Plop Linux.
-
Mount the USB hard disk.
mount /dev/sdb1 /mnt -t ntfs-3g
-
Change to the USB hard disk.
cd /mnt
With the following instructions, you are able to create/restore partitions
1. Create a Partimage image
1.1. Batch mode
Create an image with the file name windowsXP_20070425 from
the partition /dev/sda1.
partimage -z1 -b -d save /dev/sda1 windowsXP_20070425
1.2. User interface
-
Start Partimage.
partimage
-
Select the partition you want to backup.
/dev/sda1
-
Change with tabulator into the next field.
Enter a filename. ex.
windowsXP_20070425
-
Change with F5 to the next screen.
You can select some options. gzip compression is good and fast.
-
Change with F5 to the next screen.
You can enter a description for the image.
-
Change with 2x enter to the next screen.
-
You can see an overview about the partition. NTFS is experimental supported,
but till now I never had problems. If Partimage has troubles with the
partition, then the backup process will be aborted.
2. Restore a partition
2.1. Batch mode
Restore the partition /dev/sda1 from the file
windowsXP_20070425.000.
partimage -b restore /dev/sda1 windowsXP_20070425.000
2.2. User interface
-
Start Partimage.
partimage
-
Select the partition you want to restore.
/dev/sda1
-
Change with Tabulator into the next field.
Enter the image filename. ex.
windowsXP_20070425.000
-
Change with F5 to the next screen.
If you are sure then answer the question with OK.
Now your partition will be restored.
© 2024 by
Elmar Hanlhofer
|