Unable to boot the server after performing a BMR

Symptom

When the source machine is an Active Directory server performing a BMR to a physical machine with different hardware or to a virtual machine on a Hyper-V server, the server does not boot and a blue screen displays with the following message:

STOP: c00002e2 Directory Services could not start because of the following error: a device attached to the system is not functioning. Error status: 0xc0000001.

Solution

Follow these steps:

  1. Power on the Domain Controller.
  2. When the machine is powering on, press F8 before the OS begins to load and select the Directory Service Restore mode.
  3. Rename all the *.log files (edb.log and edbtmp.log) in the C:\Windows\NTDS folder. For example, rename the file edb.log to edb.log.old
  4. Run the following command:
    esentutl /p "C:\Windows\NTDS\ntds.dit" 
  5. It repairs a corrupted Active Directory database in the default location.
  6. To continue the repair process, click OK.
  7. Restart the system.

If the issue persists, contact Microsoft support for more assistance.