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

After increasing the size of my Ubuntu 12.04 LTS VM's OS disk by editing the guest VM's settings through the vSphere client, I do not see the increase in disk size when I check from within the OS (df -h).

On a windows VM I went into disk manager and extended the volume to use the unallocated space (created by increasing the disk size). How do I ensure that the OS sees this disk space increase in Linux?

share|improve this question
Which Linux distribution are you running on your VM? –  John K Aug 22 '12 at 15:29
Ubuntu 12.04 LTS –  Paddington Aug 23 '12 at 5:51
@Paddington how about accepting some answers to your questions? –  Jeff Ferland Aug 23 '12 at 20:48

1 Answer 1

up vote 4 down vote accepted

The expanded disk size is unallocated and unpartitioned. You'll need to partition the new disk space first using fdisk or diskpart. After that, you may need to format the new partition. Depending on what kind of filesystem you're using, the commands will differ, but as an example, for ext3 you would call mkfs.ext3 Then depending on the OS, you'll be able to grow the logical volume. If you're using LVM, you can simply expand the original volume after you've partitioned/initialized the new space.

share|improve this answer
Many filesystems don't need to be blown away and reformatted to be grown. Ext{2,3,4}, XFS, etc. all allow online growth. –  Jeff Ferland Aug 22 '12 at 20:18
Sorry, I wrote that wrong, upvote for you - I wasn't implying he blow away the entire volume. I just rewrote my answer, just let me know if it's still incorrect :) –  John K Aug 22 '12 at 20:27

Your Answer


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.