I created a VM using Virtual Box, but I gave it 25 GB, and I had 15 GB free. So I deleted it, and soon, uninstalled Virtual Box, but when I open my filesystem's properties, it is full, I mean to say about 80% of it is still in use, and the vdi file isn't anywhere. How do I free it up?
Asked
Active
Viewed 1,110 times
2
2 Answers
2
By default your VirtualBox files should be located in $HOME/VirtualBox VMs/
so if you navigate there you should easily see if there are any remaining .vdi
files still in place.
If your files were in a non-default location try running the following in a Terminal window to find them:
find $HOME -iname *.vdi
And when you find the files you can manually delete them...
References:

andrew.46
- 38,003
- 27
- 156
- 232
-
I've tried that before asking that question, I think it damaged my filesystem, because it must've tried to allocate 25GB, while I had only 15 GB free. – Nafees Feb 25 '16 at 10:28
-
-
-
ext4 is quite robust, it doesn't get damaged because of trying to allocate more space than it has available. – Javier Rivera Feb 26 '16 at 07:37
-
Check this question to find what is using your disk space: http://askubuntu.com/questions/73160/how-do-i-find-the-amount-of-free-space-on-my-hard-drive – Javier Rivera Feb 26 '16 at 07:39
-
Since there are multiple file formats the hard disk image could be using it might be easier to use 'find $HOME -iname *.vbox' – Alex Broadwin Aug 23 '19 at 18:34
1
Uninstall VirtualBox:
sudo apt-get remove --purge virtualbox
Remove all settings:
sudo rm ~/.config/VirtualBox/ -Rf

Eliah Kagan
- 117,780

Mir Rahed Uddin
- 619
- 1
- 8
- 20
df -h
show? – andrew.46 Feb 25 '16 at 11:21