Guest Linux says "low disk space"

Discussions related to using VirtualBox on Windows hosts.
Post Reply
cyboman
Posts: 6
Joined: 29. Jun 2011, 16:11
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 14.04

Guest Linux says "low disk space"

Post by cyboman »

I have Ubuntu 14.04 installed as a guest OS on my Win 7 machine. VirtualBox shows that Virtual Disk Size for this OS is 8 GB, Actual Disk Size is 3.65 GB and the disk is set to be expanded dynamically. My Ubuntu Disk Size has already reached a limit of 3.65 GB and is telling me that it is low on disk space. At this point I would expect the drive to expand, but it is not happening. Does anybody know what is the problem?

Thanks
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Guest Linux says "low disk space"

Post by mpack »

First, disk capacity never expands. From the point of view of the guest OS the disk capacity never changes from the size you selected when the disk was created. Only the allocation (on the host) of that capacity is dynamic, i.e. done on demand.

If you are getting low disk space errors from a guest OS then it means you are approaching the capacity of a partition, probably the main partition. I'm guessing that your partition is around 4GB. You can use a partition manager such as GParted to expand this, if there is unallocated space on the drive.

See the user manual for an explanation of what "dynamic" and "fixed" means in the context of virtual disk images.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Guest Linux says "low disk space"

Post by Perryg »

Is the guest disk formatted in LVM? Post the results of the following from the guest terminal

Code: Select all

df -h
Post Reply