Menu

Resize partitions to restore in a small disk

elite team
2009-01-26
2013-04-05
  • elite team

    elite team - 2009-01-26

    Hi everybody! :-)

    Is there any way to resize the partition of a image with clonezilla?

    I want restore a big image in a small disk.
    There are enough size in the second disk for the original image's data.

    I Use a DRBL server and start the computers with PXE.

    For better understanding.

    Example:

    * Original image HDD 120GB
       sda1 60GB (data 5GB)
       sda2 40 (data 1 GB)
                         
    * Destination disk HDD 40GB
        sda1 30GB
       sda2 10GB

    Is it possible to modify in the restoration process?

    Thanks a lot!

    Eliteteam!

     
    • Steven Shiau

      Steven Shiau - 2009-01-26
       
    • Mark

      Mark - 2009-06-03

      First of all, I love Clonezilla SE!  I just finished a lab of 41 laptops with no sweat over multicast. 

      I am building an image that is usable on all of my Dell laptop models (Vostro 1000; D610; D630; D531) using sysprep.  The only problem is that I started with my largest hard drive (80 gig) and the D610s have 60 and 40 gig drives.  So I am in the same boat as the OP. 

      I checked out FOG which has this capability, but after several issues, probably related to the Dell models that I am cloning, I am staying with Clonezilla. 

      Could clonezilla resize the partition before saving the image and then resize it back after the save?  It seems that this is what FOG does.

      Most likely I will do this manually and just remember to update my image on the 40 gig drive when I need to update it.

      Thanks,
      Mark

       
      • Steven Shiau

        Steven Shiau - 2009-06-04

        "Could clonezilla resize the partition before saving the image and then resize it back after the save? "
        Not really. It's not in the advanced option. However, it's possible you can use some tools to make it. E.g. parted/gparted to resize your partition before you save an image.
        I do not know how FOG does that, so if you know that, please let us know.

        Steven.

         
  • softlover

    softlover - 2011-09-20

    Just viewed your interesting post by chance. I figured out a way. Maybe it can work.
    You just resize those partitions beforehand with partition manager tool. Let the total size less than or equal with the small disk.
    Then you backup the partitions without unallocated space.
    At last, restore the image to the small disk…

     
  • Steven Shiau

    Steven Shiau - 2011-09-21

    Thanks.
    Sure, that's one of the solutions. However, you have to touch the source disk…
    Sometimes people prefer not to touch the source file system.

    Steven.

     
  • Brad Clark

    Brad Clark - 2011-09-26

    I've run into this issue as well, and ended up restoring to a drive of the same size, then resizing the partitions there (so i didn't have to touch my source image). I'm playing around with partclone-utils to see if there is a way I can do this without restoring in between, but I haven't had a chance to do much work on it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.