2

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?

5
  • That is why in the future, always use dynamic disk allocation. Feb 25, 2016 at 10:49
  • What does df -h show?
    – andrew.46
    Feb 25, 2016 at 11:21
  • Filesystem Size Used Avail Use% Mounted on /dev/sda7 17G 15G 1008M 94% /
    – Nafees
    Feb 25, 2016 at 11:24
  • You say you "deleted it" before uninstalling VB. What does this mean? Feb 25, 2016 at 12:27
  • I deleted the Virtual Machine only (not the VDI), then uninstalled Virtual Box.
    – Nafees
    Feb 25, 2016 at 12:34

2 Answers 2

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:

6
  • 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, 2016 at 10:28
  • So the find command had no results?
    – andrew.46
    Feb 25, 2016 at 10:57
  • yes, no results, 100% sure.
    – Nafees
    Feb 25, 2016 at 11:07
  • ext4 is quite robust, it doesn't get damaged because of trying to allocate more space than it has available. Feb 26, 2016 at 7:37
  • Check this question to find what is using your disk space: askubuntu.com/questions/73160/… Feb 26, 2016 at 7:39
1

Uninstall VirtualBox:

sudo apt-get remove --purge virtualbox

Remove all settings:

sudo rm ~/.config/VirtualBox/ -Rf

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.