Menu

#33 Error-check gui partition restore

open
nobody
None
5
2006-08-25
2006-08-25
Anonymous
No

When restoring in batch mode, partimage allows you to
restore the PARTITION (/dev/hda1) image to the DISK
(/dev/hda) with out error. This seriously messes up
existing partition information on the disk and renders
it not bootable. Here's my example of what it allows
you to do:

partimage -b -sSERVER restore /dev/hda image.000

If this line is executed, partimage should not allow
the operation, and should display an error something
like "You did not specify a partition number".

The correct syntax for restoring a partition is:

partimage -b -sSERVER restore /dev/hda1 image.000

Also, please create a section in your documentation
specifically for imaging a partition that includes the
OS and all necessary steps that need to be performed on
the destination harddrive. For example, please
document the following:

IMAGING A SINGLE PARTITION

1) You must have partimaged daemon running on another
existing linux computer, and on a network. Or dump the
image to another connected physical hard drive.
2) On the new computer, boot from the SystemRescueCD.
3) dd if=/dev/hda of=backup.mbr count=1 bs=512
4) sfdisk -d /dev/hda > backup.sf
5) copy backup.mbr and backup.sf to a floppy disk or
other storage area.
6) run partimage to save the partition image.
Example:
partimage -b -d -sSERVER save /dev/hda1 image_name
7) On the new computer, boot from the SystemRescueCD.
8) copy the backup.mbr and backup.sf to the filesystem.
9) dd if=backup.mbr of=/dev/hda
10) sfdisk /dev/hda < backup.sf
11) Restore the image. Example:
partimage -b -sSERVER restore /dev/hda1 image_name.000
12) reboot, and it should boot up perfectly.

Discussion