My host 0S is Windows 10. I have KUbuntu 14.04 guest OS. I had 3 shared folders from my host machine to my guest machine.
When I ran filelight in KUbuntu, it told me I have 1% free space (out of 50GB). The shared folders were counting against the free space. So I shutdown my KUbuntu guest 0OS, removed the shared folders from the Virtualbox settings, rebooted, deleted the folders in the /media directory, and reran filelight. Now it shows I only use 19GB of my 50GB.
However, if I do df -h on the command line it still shows only 1% free.
randall@randall-VirtualBox:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 995M 4.0K 995M 1% /dev
tmpfs 202M 1.1M 201M 1% /run
/dev/sda1 49G 46G 523M 99% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 1008M 76K 1008M 1% /run/shm
none 100M 20K 100M 1% /run/user
Seems to be some kind of bug with the VirtualBox Guest OS Additions where the shared folder counts against the disk usage. How do I fix?
Wrong Disk Free Space
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Wrong Disk Free Space
This is what my "df -h" gives me on three different VMs (close, not identical). I have two shares. I can either mount them manually (in "/mnt" from "/etc/rc.local"), or automatically. Note that in both cases I get a separate entry for each of the shares and they are not counted in "/dev/sda1" (the example below is for the Automatic mount case):
socratis@VB-Mint ~ $ df -h Filesystem Size Used Avail Use% Mounted on udev 734M 4,0K 734M 1% /dev tmpfs 150M 1,1M 149M 1% /run /dev/sda1 38G 5,9G 30G 17% / none 4,0K 0 4,0K 0% /sys/fs/cgroup none 5,0M 0 5,0M 0% /run/lock none 749M 1004K 748M 1% /run/shm none 100M 12K 100M 1% /run/user ReadWrite 931G 820G 111G 89% /media/sf_ReadWrite Shared 931G 820G 111G 89% /media/sf_SharedI'm not sure how Filelight gives you the free percent of the space, I haven't found that option. I highly doubt though that "df" is making a mistake. Check the contents of your virtual HD again and see where the space is getting allocated. Try:
socratis@VB-Mint ~ $ sudo du / -d 1 -h -c --exclude=media --exclude=proc 4,0K /dev 9,7M /bin 272M /lib du: cannot access ‘/run/user/1000/gvfs’: Permission denied 2,1M /run 40K /tmp 4,0K /lib64 16K /lost+found 43M /boot 26M /home 24M /etc 2,3G /var 3,2G /usr 15M /sbin 4,0K /cdrom 17M /opt 4,0K /srv 0 /sys 192K /root 12K /mnt 5,8G / 5,8G totalDon't assume immediately that something is broken and needs a fix...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.