# Repair BSOD/Raw partition [WinServer]

Boots into the rescue:

**Step 1: Check if you can mount the windows partition on a windows live cd**

If you are unable run: "chkdsk C: /f"

If you see this error go to **Step 2,** if you do not, keep googling, this page is not for you.

[![TZT1.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/TZT1.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/TZT1.png)

**Step 2: Boot in rescue and install testdisk**

Run testdisk, select "no log"

[![YAE2.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/YAE2.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/YAE2.png)

Select windows Drive

[![T2H3.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/T2H3.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/T2H3.png)

Select Intel

[![4pw4.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/4pw4.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/4pw4.png)

Select Analyse

[![SUn5.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/SUn5.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/SUn5.png)

Run a quick scan

[![EGw6.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/EGw6.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/EGw6.png)

Press enter

[![7TP7.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/7TP7.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/7TP7.png)

Select write, press enter

[![oBJ8.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/oBJ8.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/oBJ8.png)

Confirm with Y

[![uZW9.png](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/scaled-1680-/uZW9.png)](https://wiki.myhypervisor.ca/uploads/images/gallery/2019-07/uZW9.png)

Then reboot

**Step 3: If the Drive letter you booted on comes back with the incorrect drive letter, run taskmgr on the booted server, start regedit:**

Locate the following registry key:

HKEY\_LOCAL\_MACHINE\\SYSTEM\\MountedDevices  
Find the drive letter you want to change to (new). Look for "\\DosDevices\\C:".  
Right-click \\DosDevices\\C:, and then click Rename.

Rename it to an unused drive letter "\\DosDevices\\Z:".

This frees up drive letter C.  
Find the drive letter you want changed. Look for "\\DosDevices\\D:".  
Right-click \\DosDevices\\D:, and then click Rename.  
Rename it to the appropriate (new) drive letter "\\DosDevices\\C:".

open a CMD:

**bootsect /nt60 ALL /mbr bcdboot c:\\windows**

Reboot Again