virtual box 映象檔縮小法 - Linux

By Valerie
at 2008-04-25T18:56
at 2008-04-25T18:56
Table of Contents
VirtualBox 的映像檔隨著時間的使用,會不斷的長大,即使 guest (windows)
只用到 5 G,映像檔還是有可能使用超過 10 G 的。
解決方法是先清除 (guest) windows 佔用的未使用區塊:
c:\sdelete.exe -c
sdelete 可以在 ms 那下載:
http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
清理完後,關閉 guest。
再到 ~/.VirtualBox/VDI/ 找 foo.vdi (看你當時用什麼名稱,這裡用 foo 代替)
再執行:
VBoxManage modifyvdi foo.vdi compact
就好囉!
怕的話,縮小之前先備份 vdi 檔。
--
Tags:
Linux
All Comments

By Mary
at 2008-04-26T10:16
at 2008-04-26T10:16

By Oscar
at 2008-04-30T05:45
at 2008-04-30T05:45

By Blanche
at 2008-05-04T06:37
at 2008-05-04T06:37
Related Posts
駭客大賽:Mac、Vista相繼淪陷 僅Ubuntu不倒

By James
at 2008-04-02T11:06
at 2008-04-02T11:06
Ubuntu 正體中文站掛站官方說法..XD

By Harry
at 2008-02-09T02:03
at 2008-02-09T02:03
解決使用 ATI 顯示卡 Ubuntu 無法休眠

By Kama
at 2008-02-06T03:10
at 2008-02-06T03:10
十年一覺程設夢

By Blanche
at 2008-01-14T23:02
at 2008-01-14T23:02
coLinux 0.7.1與隨身碟陣列(上)

By Iris
at 2008-01-04T04:43
at 2008-01-04T04:43