[Clonezilla-live] Image relocation script
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
From: Spiros G. <sn...@he...> - 2007-11-24 03:24:25
|
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 |