Drive letters are not assigned automatically when booting from System Recovery Disk (SRD) after the recovery on uEFI system.

book

Article ID: 100015608

calendar_today

Updated On:

Description

Error Message

The string in "device" or "osdevice" is incorrect in Windows Boot Loader on SRD.

[Correct BCD (Boot Configuration Data) entry on the backed up system]
 
C:\>bcdedit.exe
Windows Boot Manager
--------------------
identifier              {BOOTMGR}
device                  partition=\Device\HarddiskVolume2
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {GLOBALSETTINGS}
bootshutdowndisabled    Yes
default                 {CURRENT}
resumeobject            {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
displayorder            {CURRENT}
toolsdisplayorder       {MEMDIAG}
timeout                 30
 
Windows Boot Loader
-------------------
identifier              {CURRENT}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows Server 2012 R2
locale                  en-US
inherit                 {BOOTLOADERSETTINGS}
recoverysequence       {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
nx                      OptOut

[Incorrect BCD entry on SRD after the recovery]

X:\windows\system32> bcdedit.exe
Windows Boot Manager
--------------------
identifier              {BOOTMGR}
device                  partition=\Device\HarddiskVolume2
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {GLOBALSETTINGS}
bootshutdowndisabled    Yes
default                 {CURRENT}
resumeobject            {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
displayorder            {CURRENT}
toolsdisplayorder       {MEMDIAG}
timeout                 30
 
Windows Boot Loader
-------------------
identifier              {CURRENT}
device                  partition=\Device\HarddiskVolume4 <<<<<< Correct value is "partition=C:"
path                    \Windows\system32\winload.efi
description             Windows Server 2012 R2
locale                  en-US
inherit                 {BOOTLOADERSETTINGS}
recoverysequence       {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=\Device\HarddiskVolume4 <<<<<< Correct value is "partition=C:"
systemroot              \Windows
resumeobject            {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
nx                      OptOut

Cause

BCD (Boot Configuration Data) is incorrect after the recovery on uEFI system.

Resolution


WORKAROUND:
1. Boot from SRD.
2. Run "bcdedit" and confirm the string in "device" or "osdevice" is not "Partition=C:" in Windows Boot Loader.
3. Run "diskpart".
4. Run below in diskpart utility.

list disk
select disk 0
list volume   <<<<< Please find the volume number of your C drive.
select volume X <<<<< X is the volume number of your C drive. In general, X is 1 on many systems.
assign letter=C <<<<< Please confirm the message "DiskPart successfully assigned the drive letter or mount point." is returned.
list volume  <<<<< Please confirm C drive is assigned.
exit

5. Run below.

bcdedit /set {DEFAULT} device partition=C:  <<<< Please confirm the message "The operation completed successfully." is returned.
bcdedit /set {DEFAULT} osdevice partition=C: <<<< Please confirm the message "The operation completed successfully." is returned.

6. Run "exit"
7. Boot from SRD again.


Issue/Introduction

Drive letters are not assigned automatically when booting from System Recovery Disk after the recovery on uEFI system.

Additional Information

ETrack: 3791711