Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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 '14 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


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.