Re: resize an image file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Jerry Geis wrote:
However, once I have the image file I actually want to uncompress it and resize it so its down to the 10G. I will be using this file as a virtual image. I dont want it setting there taking
up 100G when all it really is for me is 10G.

How do I CHOP off the unneeded 90G.

create a file the size you want on the destination, run newfs on it, and loopback mount it, then...

   tar clzf - / /home | ssh root@machine '(cd /mountpoint ; tar xvzf -)'


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux