Convert image of a partition into image of a disk with partition table

view full story

http://unix.stackexchange.com – I have an image of an existing partition generated with dd if=/dev/sdXN of=image.bin. Now I want to use this image as the basis for a virtual machine. I know how to convert the image into a format that VirtualBox can use. The problem is that the "disk" image is really just the image of one partition and thus does not contain an MBR or a partition table. This makes it very hard to boot the VM. Is there a simple way, given an image of a partition, to create a proper disk image, including a partition table? (HowTos)