Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had severe problems with installing Windows 7 and 8 which I didn't get fixed after a lot of research. So I am trying a new approach!

I now have a Windows 8 up and running in a VirtualBox on my Ubuntu. I made myself a raw ".img" of that virtual system using "VBoxManage clonehd file.vdi output.img --format RAW" (see this thread for more info). The plan was to use "dd if=system.img of=/dev/sda" next but while this does not throw an error, the partition is always damaged afterwards. Damaged in a way that I could neither revive it with testdisk nor with ntfsfix. I also tried FAT32 as a partition type which gave me the same result.

Is there an error in my logic?

Using Clonezilla or Acronis True Image don't really seem logical to me, since this is something that should be done right from my OS since it isn't affected?!

It has been recommended to make the partition the same size as the image but how would I ensure that?

share|improve this question
Are the VirtualBox image and the partition the same size? – K.A Jan 10 '13 at 1:00
Almost, I made the partition about 10% larger, just in case. – Brewer Gorge Jan 10 '13 at 1:14
Someone else should correct me of this is wrong, but I suspect the drives have to be identical if you are going to do a block-level copy like this. – K.A Jan 10 '13 at 3:19
I would try that, but how exact does it have to be? Would it be enough to check the partitions size with fdisk? Also I just noticed that there are two partitions in ".img" file... How do I account for that? – Brewer Gorge Jan 10 '13 at 12:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.