LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resize linux image (https://www.linuxquestions.org/questions/linux-newbie-8/resize-linux-image-4175423243/)

Latman 08-21-2012 10:43 AM

Resize linux image
 
Not sure if anyone here can help me with this, but we have a 450GB linux image (Hyper-V).
Only 20% of this is being used.
I am trying to re-size this and keep it as a master image, but not able to with Hyper-V.

I'm hoping someone here knows how this can be done?
Thanks.

szboardstretcher 08-21-2012 10:53 AM

I had a problem with this in the past. Its quite easy to do with a windows host. But I was unable to do it with a linux host.

I ended up bringing another linux image up, using a bootable linux on both, and dd'ing data from one to the other. it was not an easy process and did not work the first couple of times i did it. There was a fair amount of trial and error.

Of course, by now, there may exist an actual process to shrink a linux host.

Latman 08-22-2012 04:51 AM

Quote:

Originally Posted by szboardstretcher (Post 4760189)
I had a problem with this in the past. Its quite easy to do with a windows host. But I was unable to do it with a linux host.

I ended up bringing another linux image up, using a bootable linux on both, and dd'ing data from one to the other. it was not an easy process and did not work the first couple of times i did it. There was a fair amount of trial and error.

Of course, by now, there may exist an actual process to shrink a linux host.

I thought so. Thanks for your quick reply.


All times are GMT -5. The time now is 12:45 AM.