I have been trying to convert a Windows 7 partition to a VDI so I could boot it in Virtualbox and remove the partition.
I'd previously been able to boot the raw partition within the host (Mac OS X).
dd to create an image of the partition, not the entire disk. Stupid
I then deleted the partition. Stupider.
Now, when I create a Virtualbox machine I can attach the drive but it will not boot.
I've tried the standard Windows boot recovery options but they have not been successful. In
diskpart I can't even select the partition, and it won't mount in a Linux live OS.
I think (know) it is because I only pulled an image of the partition and not the drive, so there is no partition table or boot record. I no longer have access to the raw partition or drive.
So my question is - given a raw image of a partition, what do I need to do to create a bootable drive in Virtualbox?