[SOLVED] How to shrink a partition of a Linux VMWare guest?
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to shrink a partition of a Linux VMWare guest?
VMWare tools allows me to shrink the "disk" for a Windows guest. vmware-toolbox presents me with the option to "Select the partitions you wish to shrink." on a Linux guest. However, there are no partitions shown to be selected. Anyone had success doing this?
Thanks unSpawn. I booted my Ubuntu 10.04 VM from a like live CD on one monitor while reading the pared docs on the other. I invoked parted and - bottom line - the VM is ext4 and it appears that parted does not support ext4 nor ext3. Pray tell what trick do you use (or do you not have ext4 or ext3 partitions in your VMs?)
That's what I thought - the error message told me to go pound sand and use resize2fs. I have 5 TB on my newly rebuilt server to backup VMs and other stuff so I don't really NEED to shrink - just thought I would explore the methodology. I will give resize2fs a try after I re-inflate my Ubuntu VM (I just erased it and replaced it with a backup copy from the server after parted didn't).