Extract mbr from VDI

Discussions related to using VirtualBox on Linux hosts.
Post Reply
XtrNet
Posts: 1
Joined: 29. Jul 2009, 08:01
Primary OS: Other
VBox Version: OSE other
Guest OSses: Windows 7

Extract mbr from VDI

Post 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?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Extract mbr from VDI

Post 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?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
HolgerB
Posts: 58
Joined: 28. Jul 2008, 23:36

Re: Extract mbr from VDI

Post 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:
Post Reply