clonehd raw image is bigger

Discussions related to using VirtualBox on Linux hosts.
Post Reply
lencoboy
Posts: 2
Joined: 15. Sep 2009, 12:21
Primary OS: Ubuntu 8.04
VBox Version: OSE other
Guest OSses: debian

clonehd raw image is bigger

Post by lencoboy »

Hello,
i tried to install a debian distribution following these steps:
1) dd if=/dev/sdc of=image.img (4 gb Compact Flash)
2) VBoxManage convertfromraw image.img image.vdi
3) registered vdi image in VirtualBox, created vm and installed debian in vm (i also used snapshot)
4) VBoxManage clonehd image.vdi image.img --format RAW (vdi of last snapshot)
5) dd if=image.img of=/dev/sdc

last command after some minute of writing, give me "no space left on device"...
i compared the vergin image and the image after the conversion:
4009623552 image.DEBIAN.img
4009549824 image.VERGIN.img

why image.DEBIAN.img is bigger than image.VERGIN.img?
lencoboy
Posts: 2
Joined: 15. Sep 2009, 12:21
Primary OS: Ubuntu 8.04
VBox Version: OSE other
Guest OSses: debian

Re: clonehd raw image is bigger

Post by lencoboy »

i found that VBoxManage attach to raw image extra info. Is it possible to remove those?
Post Reply