Hi,
Instructions for:
- Sun xVM Virtual Box 1.6.4
- Windows XP SP3 as VM_host
- Ubuntu 8.04 as VM_guest
According to following HOW-TOs I have adapted document instructions to work under Ubuntu 8.04:
http://forums.virtualbox.org/viewtop...?p=29272#29272
http://giornaledisistema.blogspot.co...-virtuali.html
1. Download file http://intgat.tigress.co.uk/rmy/uml/zerofree-1.0.1.tgz
2. Untar file:
Code:
tar -xvzf zerofree-1.0.1.tgz
3. Change directory to zerofree dir:
4. Install required gcc libraries and ext2fs library:
Code:
sudo apt-get install build-essential
sudo apt-get install e2fslibs-dev
5. Compile c-code:
6. Copy executible file to /root dir:
Code:
sudo cp zerofree /root
6. Start runlevel 1:
7. Select "root" from Recovery menu.
8. Check to see disk names:
9. From previous command in left corner there are /dev/... devices in my case /dev/sda1. Mount this disk as read only:
Code:
mount -n -o remount,ro -t ext2 /dev/sda1 /
10. Check if everything is ok with file system
11. Make zeros:
11. Check again if everything is ok with file system
12. Shutdown linux:
13. from Windows host execute:
"C:\Program Files\Sun\xVM VirtualBox\VBoxManage" modifyvdi vdi_file.vdi compact
Regards,
Abcuser
Bookmarks