By Ivy / Last update November 2, 2021

Reasons and solutions for Windows Server 2008 R2 no boot issue

You may need to repair Windows Server 2008 r2 using command prompt due to many reasons, such as, corrupted mbr, partition table, boot sectors, boot manager, boot configuration data, etc. Then, you may wander how to repair it and get your system back to life?

You can first do some basic repair like startup repair, boot directory repair and windows directory repair. Then, if the problem is related to boot files, you can use bootrec exe in Windows Server 2008 r2. 

However, sometimes, when the error is too serious to recover from basic repair. For example, you cannot boot because of system failures. You can create a recovery disk and go to the recovery environment for repair instead of within Windows. 

How to repair Windows Server 2008 R2 using command prompt

In this article, I will show you how to repair Windows Server 2008 R2 step by step with different command prompt. Please stay for a while and check the detailed steps in the following. 

Get to the command prompt window in the recovery environment

1. Insert the installation disc that comes along with your computer. Then, restart your computer to BIOS and set it as the first boot option, save changes and reboot.  

2.  After the installation files loading, choose your preferences (language, time, and keyboard) and then click “Next”. 

3. Click “Repair your computer” at the lower-left corner. 

Repair Your Computer

4. Then, select the default operating system, here maybe Windows Server 2008 R2.

5. In the System Recovery Options windows, choose “Command Prompt”.

Command Prompt

Repair Windows Server 2008 R2 using command prompt 

Please note that the drive letter in the recovery mode may be a little different, as it follows the first-come, first-served principle. Thus, before repairing your server 2008 R2, you need to find where the Windows is installed in case you need it.

Type diskpart and then list volume in the command prompt window, you will see all the volumes available on the disk and find your system drive. 

List Volume

Then, in the command prompt windows, go to X:\sources\recovery> startrep.exe. Just wait until the process completes, it will resolve the registry file issues. 

Startup Repair

Also you can type chkdsk C: /f /r to fix errors the disk and then locate bad sectors and recover readable information. If you are asked to run this command at the next startup, type y and then restart your computer.

Chkdsk

Or you can use sfc /scannow to repair boot files issue. Type sfc /scannow /offbootdir=c:\ /offwindir=c:\windows and hit Enter to run it. 

SFC Offline Repair

Notes: 

  • The sfc /offbootdir is to specify the location of the offline boot directory.

  • Run sfc /offwindir is to specify the location of the offline windows directory.

If the sfc /scannow is not working, you can still use DISM command line.  Type as: DISM /image:D:\ /cleanup-image /revertpendingactions. (D: is the drive letter of your system drive. )

Dism Revert

In addition, you still can use bootrec exe in the server 2008 R2, it's used to repair corrupted mbr, boot sector, and bcd files. Type as follow and hit Enter to execute in order.

  • Bootrec /fixmbr
  • Bootrec /fixboot
  •  bootrec/scanos
  • bootrec/rebuildbcd

Bootrec

Repair Windows Server 2008 R2 operating system using System Restore

As above mentioned, if the error is so serious that basic repair cannot work, you can run Windows Server 2008 R2 system restore with command line. To do this, you need to create a system image backup first. 

To restore a system image created at at 13:29 pm in 07/09/2017 and saved on the E drive.  You can type the following command in the command prompt window and hit Enter. 

wbadmin start systemstaterecovery –version:07/09/2017-13:29 –backuptarget:E:

Repair Windows Server 2008 R2 Using Command Prompt

This works in most cases, but you have to know that the system image backup created by wbadmin is limited to the current computer. If you want to restore the system image to another computer, it will not work. Don't worry about it, you can ask a reliable server backup software - AOMEI Backupper Server  for help. 

Repair Windows Server 2008 R2 through AOMEI.exe command prompt 

Except for above ways, you can still use a reliable server backup software - AOMEI Backupper Server, which allows you to create system image backup in Windows Server 2003/2008/2008r2/2012/2012R2/2016/2019/2022 and Windows 7/8/8.1/10/11/XP/Visa and then restore system to your computer. The best part is you can restore system to new computer with dissimilar hardware. 

If you cannot boot PC, you can still create a bootable media with this software and use it to boot your computer into the recovery mode. Then, in the main interface of AOMEI Backupper Server, click Tools and open command line. 

Then, navigate to AOMEI Backupper installation directory, type as: cd [installation path of AOMEI Backupper] and press Enter. For example: cd C:\Program Files\AOMEI Backupper.

AOMEI Command Line

Tip: The drive letters might change under Windows PE environment.

Then, run the following command to start restore: AMBackup /r /t [backup type] /s "[backup location path]" /d [destination location].

For example: To restore the system backup saved in D:\system backup to disk 2, please type the following command and hit Enter. 

AMBackup /r /t system /s “D:\system backup\system backup.adi” /d 2

If you want to restore to another computer, AOMEI command line still can do this for you.

For example: Restore system in the image named "system backup2.adi" to the partition 0 on disk 0 and perform a universal restore.

AMBackup /r /t system /s "D:\system backup\system backup2.adi" /d 0:0 /x

Helpful tips:

  • AOMEI Backupper also has a graphic user interface and you can easily repair server 2008 without command prompt. Please check articles:  Windows Complete PC Restore Server 2008 | How to Use It.
  • If you don't have any device in the hand, you can add a boot option with help of Recovery Environment feature in AOMEI Backupper. It will take effect from the next startup and allow you to perform backup/restore.

Start your repair now

As you can see from above, you have x ways to repair Windows Server 2008 R2 using command prompt, select the one according to your situation and the cause for no boot issue. 

Among them. AOMEI.exe has better compatibility, which not only allows you to restore system to current computer, but also new computer with dissimilar hardware. And it is also a professional disk clone software to help you clone Windows Server 2008 R2 easily and without efforts. Also works for cloning hard drive in Windows Server 2012, migrating Windows Server 2016 to SSD, etc. 

Its advanced version AOMEI Backupper Technician Plus can help you protect unlimited PCs and servers within one company. And it offers unlimited billable technical services to clients as well as enables you to copy installation directory for portable version creation.