Menu

Help with restoring image

Help
2012-02-13
2013-04-05
  • Micky Santomax

    Micky Santomax - 2012-02-13

    Hi all I have a strange problem when I try to restore an image.

    I have formatted my PC and installed Windows XP and Lubuntu 11.10 with GRUB as boot loader.
    When I finished the installation of all OS I have created an image of this 2 clear OS.

    After I customized and installed some tools and programs inside each OS and recreated an image.

    Now if I try to restore on another disk the first image that I have created everything is ok, instead if
    I try to restore the second image with customizations I get this error:

    the partition table in this disk is illegal/invalid : /dev/sdc
    does this partition table file fit this disk :/home/partimag/2012-02-12-img /sdc-pt.sf?
    is this disk too small : /dev/sdc?

    ERROR: cant have a partition outside the disk

    Can anyone help me ?

     
  • Micky Santomax

    Micky Santomax - 2012-02-14

    Understood what is the problem.

    I will try to explain what happen because this could be helpful for others.

    I have installed on a 41.2 GB hard drive Windows XP and Lubuntu 11.10 with GRUB as bootloader.
    When I finished the installations on the hard drive there was 3 partition:

        - NTFS (Windows XP)
        - EXT4 (Lubuntu)
        - SWAP

    Total size of this 3 partitions is almost 11 GB.
    Now I have created the first image (that I will name "IMAGE01").

    After this I have installed some programs in Windows (such as Antivirus, firewall and so on) and also in Lubuntu and then I have created another NTFS partition with the residual 30 GB of free space.
    This means that on the disk there was 4 partitions:

        - NTFS (Windows XP)
        - NTFS (Datas)
        - EXT4 (Lubuntu)
        - SWAP

    Total size of this 4 partitions covers all 41.2 GB.
    Now I have created the second image (that I will name "IMAGE02").

    Now for verify if all images are right I try to restore this images on another 40 GB hard drive.
    The strange was that the "IMAGE01" is restored successfully, instead when I try to restore the "IMAGE02" clonezilla throws an this error:


    the partition table in this disk is illegal/invalid : /dev/sdc
    does this partition table file fit this disk :/home/partimag/2012-02-12-img /sdc-pt.sf?
    is this disk too small : /dev/sdc?

    After some tests I compared the created images and understand that the problem is related to the new NTFS partition because it is not able to create into this new little small disk a partition of 30 GB because the free space is only of 29 GB.

    For this reason I resized from 30 GB to 25 GB the NTFS data partition and I have recreated the image and now all works well.

    I'm sorry for my english if is not good and hope that this explanation could be helpful for someone that have same problem.

    Bye

     
  • Steven Shiau

    Steven Shiau - 2012-02-22

    Good. Thanks for sharing that.

    Steven.

     
  • Steven Shiau

    Steven Shiau - 2012-02-22

    Forgot to mention, this is the limitation of Clonezilla, as described here:
    http://clonezilla.org/
    "The destination partition must be equal or larger than the source one. "
    Therefore if you force to create the same partition table on the smaller destination disk, it might be OK for the first few partitions, but the last one will go wrong…

    Steven.

     
  • Micky Santomax

    Micky Santomax - 2012-02-22

    Now I have another problem related to this, GRUB does not recognize partitions, but unfortunately I don't know how to solve this.

    Can anyone help me please ?

     
  • Steven Shiau

    Steven Shiau - 2012-02-29

    "GRUB does not recognize partitions" -> What did you mean by this?

    Steven.

     
  • Micky Santomax

    Micky Santomax - 2012-02-29

    Mean that when I try to run the system grub starts in recovery mode and doesn't display the OS menù for selection

     
  • Steven Shiau

    Steven Shiau - 2012-03-02

    Still can not get that…
    Maybe it's easier that you show us the command you run, and the error messages you have seen, or the screen you have seen.
    You can take a photo then post that.

    Steven.

     
  • Micky Santomax

    Micky Santomax - 2012-03-02

    Ok for the moment I will try to explain better.

    I have created an image with CZ with 4 partitions (1 for EXT3, 1 for Swap, 1 NTFS for Windows and 1 NTFS for shared datas).
    The dimensions of this 4 partitions are:

    -) EXT3 -----------> 5 GB
    -) Swap -----------> 1 GB
    -) Windows NTFS ---> 5 GB
    -) Shared NTFS ----> 4 GB

    Total space of all partitions is 15 GB on a 41,2 GB IBM hard drive

    As bootloader there is GRUB and if I try to restore this image over this disk, everything is ok, it works.
    In this case I see something like this:

    http://imageshack.us/photo/my-images/29/grubnormal.jpg/

    After I tried to restore this same CZ image on another hard drive (a 40,0 GB Western Digital hard drive).
    The image is restored successfully, but when I tried to run the PC, Grub starts in recovery mode, like this:

    http://imageshack.us/photo/my-images/204/gruberror.gif/

    I hope that now is more clear, if not tell me what is not clear.

     
  • Steven Shiau

    Steven Shiau - 2012-03-08

    Is that possible you can use the live CD (or rescue CD) of same version of your restored GNU/Linux to re-run grub-install?
    From your photo it looks like the grub on Clonezilla does not match your restore grub on your OS.

    Steven.

     
  • Gilles

    Gilles - 2012-03-08

    I don't know if it's related to the issue above, but I was told in the Parted mailing list that when increasing the size of a target partition and restoring an image with CZ, we must then run gparted or some text-based alternative to resize the NTFS volume itself: "That's the part I think you've missed, is that you just changed the partition size, without resizing the file system."

    Does CZ contain some text-based tool to resize NTFS volumes in case we restored the image in a partition bigger than the original?

     
  • Micky Santomax

    Micky Santomax - 2012-03-09

    @steven_shiau

    No, I use the same Clonezilla live version for creating and restoring the image.

    @accountnbr3000

    No, I haven't resized partition/changed partition size, only replaced the disk.

     
  • Steven Shiau

    Steven Shiau - 2012-03-09

    "Does CZ contain some text-based tool to resize NTFS volumes in case we restored the image in a partition bigger than the original? " -> Actually ntfsresize is included, and if you choose the option "-k1" in expert mode, the option "-r" will be used, and ntfsresize will be run for the restored NTFS partition. No idea why it does not work there.

    @mickysantomax,
    I mean, for example, if your restored GNU/Linux is Debian Lenny, please find the Debian Lenny rescue CD to boot your machine, then rerun grub-install for your restored GNU/Linux.

    Steven.

     
  • Micky Santomax

    Micky Santomax - 2012-03-09

    No, my restored GNU/Linux is Ubuntu, but I think that is the same thing, right ?

     
  • Steven Shiau

    Steven Shiau - 2012-03-13

    No, Debian and Ubuntu is not 100% the same, especially the grub 1 in Ubuntu is patched, so it supports ext4, while the one in Debian does not.

    Steven.

     

Log in to post a comment.