Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running VMWare Fusion on my Mac, and just created a new VM for CentOS 5.3. I have pre-allocated 20GB of space for this VM.

Here are the / and /home mounts on my machine. There are others but they should be inconsequential.

[root@localhost ~]# df -h
Filesystem  Size  Used  Avail  Use%  Mounted on
/dev/sda2   3.8G  3.8G      0  100%  /
/dev/sda5   9.8G  1.1G   8.2G   12%  /home

I want to resize the /home partition to ~4GB, and resize the / partition to ~10GB. How would I go about this? Are there any limitations as a result of the fact that I'm running this on a VM?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I do not have experience with VMWare Fusion in particular, but with other VMs I have run the process to expand a partition is much the same as a physical system. After you shut down the VM and increase the "physical" hard drive space on the VM, boot with Parted Magic or other partition growing boot disk of choice, and resize the partitions to the sizes you want.

Boot back normally into the VM and you are done.

share|improve this answer
    
Thanks, I used Parted Magic and it worked well. –  lupefiasco Sep 30 '09 at 2:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.