Guest system does not see free disk space

Discussions about using Linux guests in VirtualBox.
Post Reply
automatix1311
Posts: 34
Joined: 6. Jan 2013, 22:53
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Debian 7, Ubuntu 14.04

Guest system does not see free disk space

Post by automatix1311 »

Hello community!

I had an Ubuntu VM with a 10 GB VDI attached. Then I resized to 20 GB:
Ubuntu-VM-Settings-Storage.png
Ubuntu-VM-Settings-Storage.png (48.67 KiB) Viewed 1005 times
But my guest system sees only 10 GB:

Code: Select all

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       7.8G  7.2G  149M  99% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            991M  4.0K  991M   1% /dev
tmpfs           201M 1008K  200M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none           1001M  8.0K 1001M   1% /run/shm
none            100M   28K  100M   1% /run/user
/dev/sr0        268M  268M     0 100% /media/root/GParted-live
GParted.png
GParted.png (46.92 KiB) Viewed 1005 times
How to make the free space actually available and complete extending the VDI?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest system does not see free disk space

Post by mpack »

Read the FAQ. Note the bits that mention snapshots, since I assume that is your problem.
automatix1311
Posts: 34
Joined: 6. Jan 2013, 22:53
Primary OS: MS Windows 7
VBox Version: OSE self-compiled
Guest OSses: Debian 7, Ubuntu 14.04

Re: Guest system does not see free disk space

Post by automatix1311 »

Thank you for the fast reply.

fixed drives
The VDI I want to exted is a dynamic one.

snapshots
My VM actually has (a lot of) snapshots. But according to the FAQ its an issue in Virtualbox versions prior to version 4.3.* -- and I'm using the v5.

So theoretically I should not get the problems described in the FAQ.

---

UPDATE

Though I should not get the problems from the FAQ, I apparently did. Now I cloned the VM merging the snapshots (option "Current machine state") and tried it again.
VM-Clone-Current-machine-state.png
VM-Clone-Current-machine-state.png (23.45 KiB) Viewed 1000 times
First it didn't work, but after I resized the VDI again (after cloning), it worked.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Guest system does not see free disk space

Post by mpack »

automatix1311 wrote: snapshots
My VM actually has (a lot of) snapshots. But according to the FAQ its an issue in Virtualbox versions prior to version 4.3.* -- and I'm using the v5.
You must have misread that part of the FAQ. Prior to 4.3 it was impossible to resize a disk that had associated snapshots, due to a bug in the software. After 4.3 it became technically possible, but it still isn't easy. Basically you have to resize every member of the snapshot chain individually, and I'm betting you only resized the base VDI.
Post Reply