virtualbox - 为什么在Linux上删除大容量文件后硬盘空间大小还不变
PHPz
PHPz 2017-04-17 11:13:59
0
4
1913

我的Linux系统刚开始装起来后(装在virtualbox虚拟机里),占了4个G的硬盘空间,后来在linux上装了个软件后,大概共占了8G的空间,后来又装了其他东西,现在大概达到了14G空间。我现在电影都没地方放了,所以想把linux上的东西删掉一些,好腾出空间。现在问题来了,删了几个大文件后,还是linux还是占了F盘14G空间,等于说没能腾出空间,有高手遇到过跟我一样的问题吗?请赐教!!

PHPz
PHPz

学习是最好的投资!

reply all(4)
阿神

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.

Ty80

When you have just deleted a file and use df -h to view it, it is best to wait for a while

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template