BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / windows / #92087同步于 2009/4/21
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Windows机器人发帖

[请教]使用virtualbox产生的vdi比实际使用要大,为什么?

hulala
2009/4/21镜像同步15 回复
虚拟硬盘采用的动态10G,然后只分了一个C盘,目前C盘总共使用2.1G左右,但是相应的VDI文件3.3G多~正常么?感觉太大了~
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
fliger机器人#1 · 2009/4/21
【 在 hulala 的大作中提到: 】 : 虚拟硬盘采用的动态10G,然后只分了一个C盘,目前C盘总共使用2.1G左右,但是相应的VDI文件3.3G多~正常么?感觉太大了~ 我的是这样的 虚拟机: VDI:
nuan机器人#2 · 2009/4/21
不必在意这一点点空间,富余空间多——————磁盘操作速度快
hulala机器人#3 · 2009/4/21
你的大小还算正常~ 【 在 fliger 的大作中提到: 】 : 我的是这样的 : 虚拟机: : : ...................
nuan机器人#4 · 2009/4/21
如果实在想弄出点空间【可行但不推荐】 准备 1. http://www.feyrer.de/g4u/nullfile-1.02.exe : This tool zeroes out free space, which our next tool compresses. For Linux based OS, search for a file, zerospace.c, which you’ll have to compile yourself. 2. VBoxManage : This tool is the command line management tool that ships with VirtualBox. Whatever you can do with the GUI, can be done by this. + A lot more :) 开始 1. First boot into your VM. Defragment your drive atleast 2 times. 2. Copy the tool, nullfile mentioned above to the VM and run it. A simple double click should do it. 3. Now shutdown the guest. Open a terminal in the VM image directory. Most probably /home/_user_name_/.VirtualBox/VDI 2. Run our final command, We would be done after this. VBoxManage modifyvdi _file_path_ compact e.g. in my case I ran: VBoxManage modifyvdi /media/Blockk/VDI/NewHardDisk1.vdi compact
hulala机器人#5 · 2009/4/21
恩,只是希望不要无限制的大下去,今天发现删了个700多M的文件之后(未进回收站),vdi的大小一点儿没变~感觉挺BUG得~难道它是留着给人数据恢复的?囧~用了sdelete把空闲空间清零了,然后用vboxmanage compact结果出错了。。。哎 【 在 nuan 的大作中提到: 】 : 不必在意这一点点空间,富余空间多——————磁盘操作速度快
hulala机器人#6 · 2009/4/21
呵呵,还贴了个linux下的方法啊!呵呵,试过,vboxmanage会出错,而且网上有不少此现象没有解决方法,有个第三方程序vditool,但是死活下不下来~下了个zip文件里面竟然只有个readme.txt~ 【 在 nuan 的大作中提到: 】 : 如果实在想弄出点空间【可行但不推荐】 : 准备 : 1. http://www.feyrer.de/g4u/nullfile-1.02.exe : This tool zeroes out free space, which our next tool compresses. For Linux based OS, search for a file, zerospace.c, which you’ll have to compile yourself. : ...................
nuan机器人#7 · 2009/4/21
貌似在2.1——2.2里面该功能未被实现 The functionality will be restored later.
hulala机器人#8 · 2009/4/21
恩,确实是这么说的!囧~难道老版本有,新版本被移除了?。。。 【 在 nuan 的大作中提到: 】 : 貌似在2.1——2.2里面该功能未被实现 : The functionality will be restored later.
Wing机器人#9 · 2009/4/21
【 在 hulala 的大作中提到: 】 : 恩,只是希望不要无限制的大下去,今天发现删了个700多M的文件之后(未进回收站),vdi的大小一点儿没变~感觉挺BUG得~难道它是留着给人数据恢复的?囧~用了sdelete把空闲空间清零了,然后用vboxmanage compact结果出错了。。。哎 虽然删除了数据,但是删除这个动作是文件系统的事,跟虚拟机无关。对于虚拟机来说,只知道哪些地方写上了数据,而没办法知道哪些数据已经没用了。按理说,虚拟机占用的空间只会增大,不会减小吧