So, I have this server (a dell poweredge) with some disks in a raid0 setup.
For testing purposes I had this virtual disk split in 2 partitions.
One with Windows Server 2003, one with Server 2008 R2
Now, I needed the space, so the 2 partitions needed to become 1 single =)
Of course, when you remove the first partition (where Microsoft puts their bootloader), our bootloader is gone.
And this causes, of course, that nothing boots =)
So, how to put it back:
You need to mark the remaining partition as “active”.
You do this as follows:
Boot from the windows server installation dvd. Choose your language & keyboard layout. And click “repair your computer”. Here can you can start a command prompt/cmd.
In the terminal, you type:
- diskpart
- list disk
- select disk #
- list partition
- select partition #
- active
- exit
Then you can rebuild the bcd.
- bootrec.exe /fixmbr
- bootsect.exe /nt60 all /force
- attrib -h -s C:\boot\BCD (in my case I needed to create the directory MD boot, and MC bcd)
- del C:\boot\BCD
- bootrec.exe /rebuildbcd
After this, your windows server still wont boot. It stops on “mbr is missing”.
This is fixable as well =)
In cmd, type the following:
- cd x:\sources\recovery\
- StartRep.exe
and you let startrep do its job =)
Afterwards, everything boots again
Thanks @ http://answers.microsoft.com/en-us/windows/forum/windows_7-system/bootmgr-is-missing-in-windows-server-2008-r2/7bb1d682-e078-4f78-84d7-d4d3f9aa9769 and http://idoneitmyself.wordpress.com/2009/11/15/windows-7-suddenly-wont-boot-reboot-and-select-proper-boot-device-or-insert-boot-media-in-selected-boot-device-and-press-any-key-repairing-the-windows-7-bootloader/ =)