1

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?

1

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".

  • 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
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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