Tuesday, 26 July 2011

Virtual Box

VirtualBox is a very easy and nice tool but recently I ran into the problem of getting the virtual vdi onto a flash drive and vice-versa, the following Linux commands might help someone wanting to do the same:

Convert from flash drive to dd:
dd if=/dev/sdb of=flashv2.bin

Convert from dd to vdi:
VBoxManage convertdd flashv2.bin ubuntu.vdi

Convert from vdi to dd:
vditool COPYDD ubuntu.vdi flashv2.bin

Convert from dd to flash:
dd if=flashv2.bin of=/dev/sdb

No comments:

Post a Comment