Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am running Ubuntu 12.04 in a VM. I have recently resized the hard drive of this VM doubling its size with Gparted. However, when I run df -h, Ubuntu still sees the old hard drive space, while Gparted sees the new one.

How can I force a refresh of this so that the OS can see the correct amount of space available?

share|improve this question

2 Answers 2

One way this can happen is if the partition is grown, but the underlying file system has not also been grown. The ability to detect this situation was added to GParted 0.13.0. The problem can be fixed by selecting the partition and choosing "Partition --> Check".

share|improve this answer
    
Thanks for the suggestion, but unfortunately this did not work. Ubuntu still sees the old hard drive size. –  user1301428 Jun 16 at 19:20
up vote 0 down vote accepted

The command that resized the filesystem was sudo lvextend -r -l +100%FREE /dev/sda<number>. Have a look at this other question for more details.

share|improve this answer

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.