Deleting VM and HDD space is still occupied
Greetings everyone,
I had a VM in virtualbox that had Win XP inside my Linux Desktop machine. When my work was done with that VM, I deleted it, but the HDD space that was occupying was still occupied. I had chosen the option to also delete the vdi and it did, but still free space didn't go up. Any thoughts? My distro in that desktop is Xubuntu 12.04 on that machine, speccs are Pentium 4@2.4GHz, 1GB RAM, 60GB HDD. Thanks in advance! |
Hi,
did you check the files were really deleted? Eg Code:
ls -lhR ~/.VirtualBox Quote:
How much space did you expect to become free when you deleted? Evo2. |
Hi and thanks for swift reply!!
Yes, I checked, the .vdi and the other files it had created were gone. I also ran a locate and a ls -al command to be sure. As I mentioned the total disk capacity is only 60GB, with the OS and my files taking 15GB and the VM taking another 15GB, so when I was running the VM I had 45GB of disk space and 30GB unoccupied, when I deleted the VM it was still 30GB unoccupied. Numbers are pretty "round" so it's easy to remember the exact amounts;) |
Hi,
Quote:
Quote:
Evo2. |
Hi again,
I know of the actual size cause I set it so on the slider while setting up the installer of the VM. I didn't enable the dynamic size allocation but fixed it to 15GB. The vdi was given to me by my teacher in college and it was set to be 10GB so I added 5 more on my own to be sure I will work with ease. |
Hi,
Quote:
Evo2. |
Hi,
Yeah, I've rebooted a lot of times since then... still shows as space that is being used. |
Check the filesystem in single user mode maybe.
I thought the file was being held open until a reboot also. Any chance it is in the trashcan? Is this a btrfs filesystem? |
Hi again,
Not in the trash can, it's clear... I'm not exactly sure what a btrfs file system is, but the HDD is formated as ext4 if this is any close to an answer. |
Boot to a live cd and run fsck or other filesystem utility.
Normally you don't want to check a mounted drive. You might be able to do this in single user mode. http://www.commandlinefu.com/command...-progress-info |
Thanks for all your suggestions guys, but I kind of solved it my own way... since it is a desktop of minor importance and one I rarely use, I just formatted it and everything is back to normal.
I'm really curious to try jefro's suggestion though... will keep it in mind and in case it happens again in the future will try it out! |
All times are GMT -5. The time now is 02:47 PM. |