1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-13 13:56:46 +00:00
wiki.mbirth.de/know-how/software/_posts/2009-07-17-virtualbox.md
2015-04-18 23:30:19 +02:00

2.2 KiB

title layout created updated toc tags
VirtualBox default 2009-01-04 15:50:17 +0100 2009-07-17 23:14:13 +0200 false
know-how
software
virtualisation
oracle
virtualbox

Compacting a disk image

  1. overwrite empty blocks on the disk with zeroes. See below for applications.

  2. run the VBoxManage tool like this:1

     VBoxManage modifyhd <NameOfVDIorVMHD> compact
    

Applications for overwriting empty blocks

Eraser (Windows)

[ Homepage ] Install as normal. Then go to EditPreferencesErasing… and select the second Tab Unused disk space. Create a new method with one pass and a pattern of only zeroes. Now go to the "On Demand"-Tasks and create a new one with your local harddisks as target. Run it to perform erasing.

SDelete (Windows, SysInternals)

[ Homepage ] Download and unpack. Run it like:

sdelete -c C:\

dd (Linux)

Use something like:

dd if=/dev/zero of=/junk
sync
rm /junk

This will create a large file with only zeroes and fill up the empty space on your hd.

zerofree (Linux)

[ Homepage ] Install the zerofree package. Run it as the man page says.

Seems like *zerofree* only supports unmounted filesystems. For this to work you should boot into a recovery Linux inside your VM to clean the disk image.

sfill (Linux)

Install the secure-delete package. Run something like:

sfill -z -l -l /

Transparency-Bug in VBox 3.0

If you just installed VirtualBox 3.0 and noticed that you only see parts of Windows' titlebars and the icons but no text or backgrounds, try the following:

Run VirtualBox like this: Found here

env XLIB_SKIP_ARGB_VISUALS=1 VirtualBox

  1. Older versions of VirtualBox used modifyvdi as first parameter. Also this feature is disabled in VBox 2.1. ↩︎