Page 1 of 1

Extract mbr from VDI

Posted: 29. Jul 2009, 08:04
by XtrNet
Hello,
I am trying to extract a windows 7 mbr from a vdi on which i ran the bootrec /fixmbr command from a mounted windows 7 iso. Where exactly is the mbr stored within the VDI file?

Re: Extract mbr from VDI

Posted: 29. Jul 2009, 19:44
by Sasquatch
It's in the same place as on a normal hard drive. Something you can't easily extract by either mounting the VDI to your Host like you can with an ISO (see sticky), or view with a hex editor. It's best to approach this like a physical situation, where you start a tool to do the trick. Why do you need it?

Re: Extract mbr from VDI

Posted: 30. Jul 2009, 12:58
by HolgerB
Boot a Live CD (= mounted ISO) of a Linux distrib of your choice (I would use Ubuntu) inside your VM
Then use dd with block count and block size argument. Not shure how big the MBR is though.

Use some google magic :mrgreen: