Winload.exe is Missing or Corrupt after Resizing the Partition

After resizing the partition of a Windows Server 2008 64 Bit server (using gparted) I was surprised when I found the server would not boot and instead gave the message Winload.exe is Missing or Corrupt.

In my case Winload was not missing or currupt but instead something had got messed up with the boot loader, below is the steps I used to get the server running.

Please note these steps are for Windows Server 2008 64 Bit, the steps may be different for other versions please let me know if you get it working on other version.

Follow these steps at your own risk

Boot the server using the Windows CD

When prompted click the link at the bottom to enter the repair mode

In my case the OS was detected and the partition size in 0MB on (unknown) Local Disk.

Select the command prompt option

cd C:

bootrec.exe /fixmbr

del C:\boot\bcd

bootrec.exe /rebuildbcd

restart the server let the check disk run and hopefully you should be ok

 

 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.