[Clonezilla-sysresccd-general] Image relocation script
Spiros Georgaras
sng at hellug.gr
Sat Nov 24 05:23:19 EET 2007
Hi all
I have created a script (called reloc-img) that will help you restore an image
to a different device name than the one originally used. To make it clear,
let's assume you have backed up your data partition (called hdb3 at the
time), but now you have bought a new bigger disk and you want to restore it
in hda5. This is not an easy thing to do using Clonezilla integrated scripts,
but it's fairly easy using reloc-img
The script, at its current state, will not preform the actual restoration. It
will only display the command that would be executed, so that anyone can
check its operation.
In order to use it (test it really, as I have already stated it will not
restore anything, and no data can be lost in any case), you have to boot into
Clonezilla, mount the partition where you saved it, copy it to /root, unmount
the partition used, and execute it (as root).
If you find anything not working as expected, or as you think it should,
please report it
How it works
========
In order to use this script you have to partition the target disk yourself
beforehand. Exception: full disk restore in an identical disk (more on this
later on).
Before running the script you should unmount all partitions.
The script will scan your system and display a list of partitions, asking you
to tell it where your image file (Clonezilla backup) is. When this is done,
it will mount this partition, display all available images and let you select
the one you want to restore.
In case a full disk backup exists, you will also have the chance to select any
individual partition for restore.
If you select a partition backup, the script will check all existing
partitions in your system, and decide which ones can be used to restore your
image file. It will make sure the target partition is big enough, and has the
right type. Exception: FAT16 partition backups are allowed to be restored to
FAT32 partitions.
In case you select a disk backup, the program will check your disks, and will
decide which ones can be used to restore your image file. A disk will be
available for restore, if
- it is identical (has the same geometry - chs data) to the original (backed
up) disk. In this case the target disk need not be pre-partitioned.
- it is bigger than the original (backed up) disk.
The disk must also have the same partitioning scheme as the original one
(partition names and IDs), and each of its partitions must be equal or
bigger than its equivalent in the source disk.
In this case you will be given the chance to adjust restore parameters
(restore MBR etc)
After selecting the target disk/partition, a temporary image will be created
under /home/partimag/reloc-img. This is the image that will eventually be
restored.
Confused? Well, things are not so complicated as they seem, but my skill in
English language doesn't help, I'm afraid... :(
--
Kind regards
Spiros
--
gpg key URL: http://members.hellug.gr/sng/gpg-kde-el.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reloc-img.gz
Type: application/x-gzip
Size: 8309 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/clonezilla-sysresccd-general/attachments/20071124/5f6e6de6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hellug.gr/pipermail/clonezilla-sysresccd-general/attachments/20071124/5f6e6de6/attachment.pgp>
More information about the Clonezilla-sysresccd-general
mailing list