This should not have anything to do with the Linux file system. It should be a problem with vbox. You should be using an automatically expanded virtual disk. You can refer to the following blog http://trivialproof.blogspot.com/ 2011...
I had the same problem with the old version of Vmware before. Later I found that there is a vmware tool (it seems to be in the menu function that can do disk defragmentation) that can shrink the hard disk and get back the hard disk space, but remember to defragment it. It takes a long time.
Personally, I feel that it is troublesome to use virtual tools like vmware or virtual box. It would be better to install native Linux.
1 Enter the directory generated by the virtual machine installation system (your virtual machine LINUX system is installed on the F drive, so by default there will be a MY virtual machine folder on the F drive), first change the virtual machine LINUX system to Remove the hard disk and then delete the virtual hard disk file in this folder. (The file type is vm ware virtual disk file)
2 If you took a snapshot when you installed the virtual LINUX system at the beginning, use the snapshot to restore to the bare metal state, then shut down the virtual machine, and the space will be restored.
This should not have anything to do with the Linux file system. It should be a problem with vbox. You should be using an automatically expanded virtual disk. You can refer to the following blog
http://trivialproof.blogspot.com/ 2011...
I had the same problem with the old version of Vmware before. Later I found that there is a vmware tool (it seems to be in the menu function that can do disk defragmentation) that can shrink the hard disk and get back the hard disk space, but remember to defragment it. It takes a long time.
Personally, I feel that it is troublesome to use virtual tools like vmware or virtual box. It would be better to install native Linux.
1 Enter the directory generated by the virtual machine installation system (your virtual machine LINUX system is installed on the F drive, so by default there will be a MY virtual machine folder on the F drive), first change the virtual machine LINUX system to Remove the hard disk and then delete the virtual hard disk file in this folder. (The file type is vm ware virtual disk file)
2 If you took a snapshot when you installed the virtual LINUX system at the beginning, use the snapshot to restore to the bare metal state, then shut down the virtual machine, and the space will be restored.
When you have just deleted a file and use df -h to view it, it is best to wait for a while