Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Good catch â that c000000f from bcdboot means it couldnât open/create the BCD store on the target ESP. Often the cause is either a syntax/driveâletter mixup, the ESP not actually writable/usable, or the Windows folder not where you think it is. Letâs check the basics and retry with the safe sequence below. Copy/paste each command and tell me the full output if anything fails.
Important: confirm you have a current Macrium image of the NVMe before we write anything. Yes/no?
1) Reconfirm volumes and which drive is which
(so we donât touch the 12TB drive)
diskpart
list disk
list vol
exit
Confirm (from the list vol) which volume letter is the Windows install (should show a Windows folder) and which is the FAT32 ESP.
2) Verify the Windows folder actually exists on the Windows volume
Replace E: below with whatever letter list vol showed for the Windows partition.
dir E:\Windows
If you get âFile Not Foundâ or no Windows folder, tell me the exact listing â we need the correct Windows volume letter.
3) If the Windows folder is correct, assign a safe letter to the ESP and make sure itâs writable
dir S:\
4) Clear readâonly and format only if necessary
If dir S:\ returns permission/access or bcdboot errors again, clear readonly and (only if needed) reformat the ESP to FAT32:
diskpart
select disk 0 <-- make sure this is the NVMe (confirm with list disk earlier)
attributes disk clear readonly
select vol <VOL#>
format fs=fat32 quick label=ESP
assign letter=S
exit
(Formatting will wipe any existing EFI data on that partition; only do this if bcdboot keeps failing and you have a backup of the image â confirm before formatting.
5) Run bcdboot against the Windows folder and put files on the ESP
Use the Windows volume letter you verified in step 2 and the ESP letter S you just assigned:
bcdboot E:\Windows /s S: /f UEFI
Expected success message: âBoot files successfully created.â
6) Firmware settings & test boot
Important: confirm you have a current Macrium image of the NVMe before we write anything. Yes/no?
1) Reconfirm volumes and which drive is which
(so we donât touch the 12TB drive)
diskpart
list disk
list vol
exit
Confirm (from the list vol) which volume letter is the Windows install (should show a Windows folder) and which is the FAT32 ESP.
2) Verify the Windows folder actually exists on the Windows volume
Replace E: below with whatever letter list vol showed for the Windows partition.
dir E:\Windows
If you get âFile Not Foundâ or no Windows folder, tell me the exact listing â we need the correct Windows volume letter.
3) If the Windows folder is correct, assign a safe letter to the ESP and make sure itâs writable
- Replace <VOL#> below with the volume number of the FAT32 ESP reported by list vol (it was volume 2 previously).
diskpart
select vol <VOL#>
assign letter=S
exit
dir S:\
4) Clear readâonly and format only if necessary
If dir S:\ returns permission/access or bcdboot errors again, clear readonly and (only if needed) reformat the ESP to FAT32:
diskpart
select disk 0 <-- make sure this is the NVMe (confirm with list disk earlier)
attributes disk clear readonly
select vol <VOL#>
format fs=fat32 quick label=ESP
assign letter=S
exit
(Formatting will wipe any existing EFI data on that partition; only do this if bcdboot keeps failing and you have a backup of the image â confirm before formatting.
5) Run bcdboot against the Windows folder and put files on the ESP
Use the Windows volume letter you verified in step 2 and the ESP letter S you just assigned:
bcdboot E:\Windows /s S: /f UEFI
Expected success message: âBoot files successfully created.â
6) Firmware settings & test boot
- Reboot into UEFI settings (Del/F2).
- Set Boot Mode = UEFI (CSM = Disabled).
- Ensure âWindows Boot Manager (Samsung âŚ)â is first.
- Secure Boot = Disabled for first test.
- Save and try to boot.
- Paste the exact full output of:
⢠the diskpart list vol output you ran in step 1
⢠the dir E:\Windows output from step 2
⢠the exact bcdboot command and full error text
- Weâll load the offline SYSTEM hive and enable storage drivers (I can give the exact reg commands). Thatâs the usual fix for driver mismatch (NVMe driver/StorAHCI/etc.. Tell me if you want to proceed with that.
- We can enable CSM/Legacy and run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
which often gets an MBR image booting quickly, then convert later.
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Perfect â seeing the EFI folder on S: is good. Next weâll (A) confirm the Windows folder exists, (B) inspect the existing EFI boot files and move the old BCD out of the way if present, then (C) run bcdboot to create a fresh UEFI boot store.
Please copy/paste these commands (one block at a time) into Hirenâs Command Prompt and paste back the outputs.
1) Confirm Windows folder is where we think it is (replace E: if your Windows volume letter is different)
dir E:\Windows
2) Confirm the EFI folder contents and whether a BCD file already exists
dir S:\
dir S:\EFI
dir S:\EFI\Microsoft\Boot
If the last command shows a BCD file (or files) in S:\EFI\Microsoft\Boot, weâll rename the existing BCD before attempting to write a new one.
3) If a BCD exists, rename it (safe, nonâdestructive)
ren S:\EFI\Microsoft\Boot\BCD BCD.old
(If the file is locked or you get an error, paste the error text.
4) Make sure the ESP is writable and disk not readâonly
diskpart
select disk 0
attributes disk clear readonly
exit
5) Now create the UEFI boot files (this is the bcdboot step)
bcdboot E:\Windows /s S: /f UEFI
Paste the full output of that command here.
What to expect next
Please copy/paste these commands (one block at a time) into Hirenâs Command Prompt and paste back the outputs.
1) Confirm Windows folder is where we think it is (replace E: if your Windows volume letter is different)
dir E:\Windows
2) Confirm the EFI folder contents and whether a BCD file already exists
dir S:\
dir S:\EFI
dir S:\EFI\Microsoft\Boot
If the last command shows a BCD file (or files) in S:\EFI\Microsoft\Boot, weâll rename the existing BCD before attempting to write a new one.
3) If a BCD exists, rename it (safe, nonâdestructive)
ren S:\EFI\Microsoft\Boot\BCD BCD.old
(If the file is locked or you get an error, paste the error text.
4) Make sure the ESP is writable and disk not readâonly
diskpart
select disk 0
attributes disk clear readonly
exit
5) Now create the UEFI boot files (this is the bcdboot step)
bcdboot E:\Windows /s S: /f UEFI
Paste the full output of that command here.
What to expect next
- If bcdboot reports âBoot files successfully createdâ â reboot to firmware, set Boot Mode = UEFI (CSM disabled), make âWindows Boot Manager (Samsung âŚ)â first, Secure Boot OFF for the first try. Boot to Windows and report back.
- If bcdboot again returns an error (c000000f or access denied), paste the exact full error and the dir outputs you produced above. Iâll interpret them and give the next action (usually unloading/loading the SYSTEM hive and fixing Start values for storage drivers, or using gdisk if the partition table must be converted).
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Thanks â good progress (bcdboot succeeded). The 0xC0000001 / INACCESSIBLE_BOOT_DEVICE now strongly points to Windows not loading the storage driver it needs at boot. The next safe step is to enable common storage/NVMe drivers in the offline SYSTEM hive so Windows will load them at boot. This is nonâdestructive and commonly fixes this BSOD after restores to different hardware.
Before you run anything â one last safety check
1) Mount the offline SYSTEM hive and find the current ControlSet
(reg commands assume Windows is on E: â change letter if your Windows partition letter is different)
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
(Replace 00X below with the ControlSet number from step 1, for example use ControlSet001 if Current = 1)
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\storport" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\storahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\msahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\nvme" /v Start /t REG_DWORD /d 0 /f
reg unload HKLM\TEMP_SYSTEM
4) Ensure the ESP is still assigned and boot files are present (repeat just in case)
diskpart
list vol
select vol 2 (or the volume number of your ESP shown by list vol)
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
1) Did you make that Macrium image (yes/no)?
2) Paste the output of step 1âs reg query (or if you already ran it, paste the Current value).
Iâll interpret it and then tell you the next exact reg add commands with the correct ControlSet path, and wait for the outputs.
Before you run anything â one last safety check
- Do you have a fresh Macrium image of the NVMe (the Windows disk) on your 12 TB files drive? (yes / no)
If not, please make that image now if you can. The steps below are standard and safe, but itâs always best to have a recent image.
1) Mount the offline SYSTEM hive and find the current ControlSet
(reg commands assume Windows is on E: â change letter if your Windows partition letter is different)
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
- Paste the full output of the reg query here. It will show a number (usually 1 or 2). Suppose it shows 1 â the path we will edit becomes HKLM\TEMP_SYSTEM\ControlSet001...
(Replace 00X below with the ControlSet number from step 1, for example use ControlSet001 if Current = 1)
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\storport" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\storahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\msahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet00X\Services\nvme" /v Start /t REG_DWORD /d 0 /f
- Run each line. If any returns an error about a missing key, paste that error but continue with the rest â missing keys are OK.
reg unload HKLM\TEMP_SYSTEM
4) Ensure the ESP is still assigned and boot files are present (repeat just in case)
diskpart
list vol
select vol 2 (or the volume number of your ESP shown by list vol)
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
- Paste the bcdboot output.
- Reboot, go into BIOS and set Boot Mode = UEFI (CSM disabled), make Windows Boot Manager (Samsung) first, Secure Boot OFF for the first boot. Try to boot.
- Paste the exact error messages you see during the attempted boot (if you see the same CODE, and/or any stop text).
- If it still fails we will:
a) verify the driver keys actually exist under the ControlSet you edited (I can give reg query commands), and/or
b) run gdisk to write GPT headers (if firmware seems strict about partition table) and re-run bcdboot, or
c) fall back to the quick rescue: enable CSM/Legacy and run bootrec to temporarily boot MBR while we debug.
- Say âFallback to Legacyâ and Iâll give the exact bootrec steps (enable CSM/Legacy in BIOS, run the bootrec commands). That usually gets a restored MBR image booting quickly; we can convert to UEFI later.
1) Did you make that Macrium image (yes/no)?
2) Paste the output of step 1âs reg query (or if you already ran it, paste the Current value).
Iâll interpret it and then tell you the next exact reg add commands with the correct ControlSet path, and wait for the outputs.
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Thanks â Current = 1, so the ControlSet to edit is ControlSet001. Good.
Before we run the registry edits: do you have a fresh Macrium image of the NVMe right now? (yes / no)
If no, stop and make the image first. The registry edits below are standard and lowârisk, but please make the image if you can.
When ready, run these exact commands in your WinPE / Hirenâs command prompt (copy/paste line by line). Iâll wait for the outputs you paste back if anything errors.
1) (Load the SYSTEM hive â you already did this, but safe to re-run)
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
2) (Optional: confirm Current again)
reg query HKLM\TEMP_SYSTEM\Select /v Current
3) Add the storage drivers with Start=0 (use ControlSet001 because Current = 1)
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\storport" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\storahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\msahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
Notes:
reg unload HKLM\TEMP_SYSTEM
5) Recreate the UEFI boot files (ensure ESP letter is S
diskpart
list vol
select vol 2 (or the volume number of your ESP shown by list vol)
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
Paste the full bcdboot output here.
6) Reboot and test
A) Paste the bcdboot output + any BSOD stop text you see.
B) Weâll then:
Before we run the registry edits: do you have a fresh Macrium image of the NVMe right now? (yes / no)
If no, stop and make the image first. The registry edits below are standard and lowârisk, but please make the image if you can.
When ready, run these exact commands in your WinPE / Hirenâs command prompt (copy/paste line by line). Iâll wait for the outputs you paste back if anything errors.
1) (Load the SYSTEM hive â you already did this, but safe to re-run)
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
2) (Optional: confirm Current again)
reg query HKLM\TEMP_SYSTEM\Select /v Current
3) Add the storage drivers with Start=0 (use ControlSet001 because Current = 1)
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\storport" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\storahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\msahci" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\iaStorV" /v Start /t REG_DWORD /d 0 /f
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
Notes:
- If any command returns âThe system cannot find the specified registry keyâ that just means that driver key isnât present in the image â thatâs fine, continue with the rest.
- If any command returns an unexpected error, paste the full error text here.
reg unload HKLM\TEMP_SYSTEM
5) Recreate the UEFI boot files (ensure ESP letter is S
diskpart
list vol
select vol 2 (or the volume number of your ESP shown by list vol)
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
Paste the full bcdboot output here.
6) Reboot and test
- Reboot into BIOS/UEFI: set Boot Mode = UEFI (CSM disabled), set âWindows Boot Manager (Samsung âŚ)â first, Secure Boot = Disabled for the first test.
- Try to boot.
A) Paste the bcdboot output + any BSOD stop text you see.
B) Weâll then:
- Verify the registry changes actually applied (Iâll give reg query commands),
- If necessary run gdisk to write GPT headers (nonâdestructive) and recreate the ESP + bcdboot, or
- If you need immediate desktop now, fallback to Legacy/CSM and run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
(then boot Windows in Legacy; convert to UEFI later)
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Thanks â you got this far and did the right things (created an ESP, ran bcdboot, and tried the offline SYSTEM edits). bcdboot succeeded earlier, so the boot files exist now; the remaining problem is Windows failing to load the storage/NVMe driver at boot (INACCESSIBLE_BOOT_DEVICE 0xC0000001).
Iâll keep this short and practical: two parallel paths you can take now. First Iâll give a short set of diagnostic commands to run in Hirenâs WinPE so we know exactly whatâs missing; then the two options (A = try to fix the offline image so it will boot in UEFI, B = fallback to Legacy/quick desktop). Tell me which you want to do (I recommend A if you have time; B if you must be back on desktop immediately).
Step 0 â one last safety question
1) Reâmount the SYSTEM hive and confirm Current (you already did this but run again so I can read exact output):
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
2) List storageârelated service keys and their Start values (this shows whether drivers are enabled to load at boot):
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\storport /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\storahci /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\msahci /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\iaStorV /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\stornvme /v Start
(If any key doesnât exist youâll get an error â thatâs OK; paste the output anyway.
3) Check which storage driver files actually exist in the offline OS:
dir E:\Windows\System32\drivers*nvme 2>nul
dir E:\Windows\System32\drivers\stor.sys 2>nul
dir E:\Windows\System32\drivers\iaStor* 2>nul
4) List installed drivers in the offline image (this shows drivers Windows knows about):
dism /image:E:\ /Get-Drivers
5) Unload the hive when youâre done:
reg unload HKLM\TEMP_SYSTEM
Why these matter
A â If driver keys exist but Start â 0 OR driver files are missing
Iâll keep this short and practical: two parallel paths you can take now. First Iâll give a short set of diagnostic commands to run in Hirenâs WinPE so we know exactly whatâs missing; then the two options (A = try to fix the offline image so it will boot in UEFI, B = fallback to Legacy/quick desktop). Tell me which you want to do (I recommend A if you have time; B if you must be back on desktop immediately).
Step 0 â one last safety question
- Do you have a fresh Macrium image of the NVMe (the Windows disk) on the 12 TB files drive? (yes / no)
If ânoâ, stop now and make that image. Donât proceed until you have it.
1) Reâmount the SYSTEM hive and confirm Current (you already did this but run again so I can read exact output):
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
2) List storageârelated service keys and their Start values (this shows whether drivers are enabled to load at boot):
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\storport /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\storahci /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\msahci /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\iaStorV /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme /v Start
reg query HKLM\TEMP_SYSTEM\ControlSet001\Services\stornvme /v Start
(If any key doesnât exist youâll get an error â thatâs OK; paste the output anyway.
3) Check which storage driver files actually exist in the offline OS:
dir E:\Windows\System32\drivers*nvme 2>nul
dir E:\Windows\System32\drivers\stor.sys 2>nul
dir E:\Windows\System32\drivers\iaStor* 2>nul
4) List installed drivers in the offline image (this shows drivers Windows knows about):
dism /image:E:\ /Get-Drivers
5) Unload the hive when youâre done:
reg unload HKLM\TEMP_SYSTEM
Why these matter
- If the Start values for the NVMe / stor drivers are 0 (SERVICE_BOOT_START) theyâll be loaded at boot. If theyâre not 0 (e.g. 3 = demand), Windows wonât load them early and you get INACCESSIBLE_BOOT_DEVICE. The registry edits we did earlier were intended to set Start=0; these checks confirm whether they actually applied and whether the corresponding driver files exist in E:\Windows\System32\drivers. (This is the same approach I suggested earlier when bcdboot completed but the system still BSODâd.
A â If driver keys exist but Start â 0 OR driver files are missing
- If Start values are not 0, run the reg add commands I gave earlier to set Start=0 for the present keys (storport, storahci, msahci, iaStorV, nvme, stornvme). Example (after reg load):
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f - If driver files are missing (DISM or dir shows no NVMe driver), download the OEM NVMe driver (Samsung NVMe driver for the 980 PRO is common) on another machine and copy the driver folder to a USB. Then from WinPE inject it into the offline image:
dism /Image:E:\ /Add-Driver /Driver:X:\SamsungNVMeDriver\ /Recurse
(Adjust X: path; use the folder that contains the .inf). Then re-run:
bcdboot E:\Windows /s S: /f UEFI
Reboot to UEFI (CSM disabled) and test.
- Convert the disk to GPT (gdisk) and ensure the ESP is correct, then bcdboot again. Use gdisk to write GPT nonâdestructively and create the ESP if needed, then bcdboot â I outlined this earlier and can walk you through it stepâbyâstep.
- If you need the old system back immediately and donât care about UEFI, switch BIOS to enable CSM/Legacy, boot the Windows Repair CD (legacy mode) and run these commands from the recovery Command Prompt:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
(or bcdboot E:\Windows)
That usually gets an MBR image booting quickly. We can convert to UEFI cleanly later. (This was the âget back to desktop fastâ option I suggested earlier.
- If you want me to continue trying to fix the UEFI boot (recommended), run the diagnostic commands (1â4 above) and paste all outputs here. Iâll interpret them and give the exact registry edits or driverâinjection command you need.
- If you want the quick desktop fallback, say âFallback to Legacyâ and Iâll give the exact bootrec steps and BIOS notes and stay with you while you run them.
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Thread Author
-
- #51
@ChatGPT
reg query HKLM\TEMP_SYSTEM\Select /v Current
yields:
HKEY_LOCAL_MACHINE\TEMP_SYSTEM\Select
Current REG_DWORD 0x1
the rest of them yield 0x0 at the end
all the 2>nul stuff are showing some variation on:
Volime in drive E is Windows C
Volume Serial Number is E346-1425
Directory of E:\Windows\System32\drivers
...except forthe last one which also includes:
12/07/2019 05:07 AM 884,752 iaStorAVC.sys
12/07/2019 05:07 AM 412,176 isStorV.sys
2 file(s) 1,296,928 bytes
0 Dir(s) 321,779,830,784 bytes free
when invoke dism /image:E:\ /Get-Drivers, I get:
Deploypent Image Servicing and Managemet tool
Version 10.0.19041.3636
Obtaining list of 3rd part drivers from driver story...
Error: 32
An error occurred. The driver store for the image could not be opened,
The DISM log file can be found at X:\Windows\Logs\DISM\dism.log
At this juncture, I'm very close to the point where I need to give up for the day and revert back to the other backup.
reg query HKLM\TEMP_SYSTEM\Select /v Current
yields:
HKEY_LOCAL_MACHINE\TEMP_SYSTEM\Select
Current REG_DWORD 0x1
the rest of them yield 0x0 at the end
all the 2>nul stuff are showing some variation on:
Volime in drive E is Windows C
Volume Serial Number is E346-1425
Directory of E:\Windows\System32\drivers
...except forthe last one which also includes:
12/07/2019 05:07 AM 884,752 iaStorAVC.sys
12/07/2019 05:07 AM 412,176 isStorV.sys
2 file(s) 1,296,928 bytes
0 Dir(s) 321,779,830,784 bytes free
when invoke dism /image:E:\ /Get-Drivers, I get:
Deploypent Image Servicing and Managemet tool
Version 10.0.19041.3636
Obtaining list of 3rd part drivers from driver story...
Error: 32
An error occurred. The driver store for the image could not be opened,
The DISM log file can be found at X:\Windows\Logs\DISM\dism.log
At this juncture, I'm very close to the point where I need to give up for the day and revert back to the other backup.
- Joined
- Mar 14, 2023
- Messages
- 101,678
Youâve done a lot of the right work â thanks for sticking with it and for the detailed outputs. Short summary of where we are, then two clear choices (revert to backup now, or try one more targeted repair). Tell me which you want and Iâll walk you through it stepâbyâstep.
Short summary (what your outputs show)
Option 1 â QUICK: revert to the other backup / get back to desktop fast (recommended if you must be working immediately)
What it does: restore the other image that you know boots, get you into Windows quickly (in Legacy/CSM if needed). We can do a UEFI conversion properly later.
Steps (copy/paste from a WinPE / Macrium Rescue environment):
1) Confirm disks (VERY important; donât touch the 12 TB):
diskpart
list disk
exit
2) Restore the alternate Macrium image:
What it does: tries to fix the actual cause (missing/incorrect early NVMe driver). This can work but requires either the correct OEM NVMe driver package (Samsung NVMe driver for 980 PRO is typical) or using gdisk to force GPT if the firmware is refusing to use the ESP (you already have ESP + bcdboot so driver is the likely cause).
Steps (Iâll help you do exactly one of these):
A â Try to inject Samsung NVMe driver into the offline image
Youâll need the Samsung NVMe driver package (folder with .inf/.sys). If you can download it now on another PC and copy to a USB, do that. Then, from WinPE (Hirenâs) command prompt:
1) Mount image & confirm letters:
diskpart
list vol
exit
(Confirm Windows is E: and target ESP is S: as you had)
2) Load the SYSTEM hive (we already did this previously but OK to run):
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
(reg unload later)
3) Inject drivers (example â replace X:\Drivers with the USB path):
dism /Image:E:\ /Add-Driver /Driver:X:\SamsungNVMeDriver\ /Recurse
(If dism errors, capture the dism.log at X:\Windows\Logs\DISM\dism.log and paste the relevant errors.
4) Ensure Start values are 0 (we did this already, but re-run reg add for nvme/storport if you want):
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
reg unload HKLM\TEMP_SYSTEM
5) Re-run bcdboot (assign S: if needed):
bcdboot E:\Windows /s S: /f UEFI
6) Reboot to UEFI (CSM disabled) and test.
If you want to try Option 2A I will wait while you get the driver package and paste the results of the DISM command; Iâll interpret errors.
B â If driver injection is not possible or fails: write GPT with gdisk and recheck
(You already created ESP so this is less likely to help, but sometimes firmware is picky.
1) Put gdisk.exe on a USB
2) In WinPE:
gdisk .\physicaldrive0
type p (inspect) then w to write GPT
3) Create/assign ESP if missing and rerun bcdboot
4) Reboot to UEFI
I can guide stepâbyâstep and interpret output.
My recommendation
Short summary (what your outputs show)
- Disk/volumes: Samsung NVMe is the small disk (the one you want to boot). You successfully created an ESP (FAT32) and bcdboot reported âBoot files successfully created.â
- The BCD and ESP are present, so UEFI boot files exist.
- The boot failure now is INACCESSIBLE_BOOT_DEVICE (0xC0000001) â that usually means Windows canât load the storage/NVMe driver early enough at boot.
- You checked the offline SYSTEM hive: Current = 1 and the storage-service Start values you inspected show 0x0 (i.e. Start = 0) â that means the registry flags we wanted are present. The IAStor files are present in the driver folder. DISM gave Error 32 when trying to read the offline driver store (Windows PE / Hirenâs limitation or a file lock), so we couldnât easily enumerate/inject drivers from there.
Option 1 â QUICK: revert to the other backup / get back to desktop fast (recommended if you must be working immediately)
What it does: restore the other image that you know boots, get you into Windows quickly (in Legacy/CSM if needed). We can do a UEFI conversion properly later.
Steps (copy/paste from a WinPE / Macrium Rescue environment):
1) Confirm disks (VERY important; donât touch the 12 TB):
diskpart
list disk
exit
2) Restore the alternate Macrium image:
- In Macrium Rescue â Restore â select the other backup image on your files drive â Choose the Samsung as target â restore partitions (overwrite existing) â Apply.
3) If that image was legacy/MBR and your BIOS is set UEFI: either - Enable CSM/Legacy in BIOS and boot the machine normally, or
- After restore use Windows Repair CD (boot in Legacy) â Troubleshoot â Advanced â Command Prompt and run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
(If /fixboot says âAccess is deniedâ run: bcdboot E:\Windows â replace E: if a different letter in WinPE.
4) Reboot and test. If it boots, make a new Macrium image immediately (so you have a known working fallback).
If you choose Option 1 now, say âFallback â restore other imageâ and Iâll guide you through any dialog or repair commands you hit.
What it does: tries to fix the actual cause (missing/incorrect early NVMe driver). This can work but requires either the correct OEM NVMe driver package (Samsung NVMe driver for 980 PRO is typical) or using gdisk to force GPT if the firmware is refusing to use the ESP (you already have ESP + bcdboot so driver is the likely cause).
Steps (Iâll help you do exactly one of these):
A â Try to inject Samsung NVMe driver into the offline image
Youâll need the Samsung NVMe driver package (folder with .inf/.sys). If you can download it now on another PC and copy to a USB, do that. Then, from WinPE (Hirenâs) command prompt:
1) Mount image & confirm letters:
diskpart
list vol
exit
(Confirm Windows is E: and target ESP is S: as you had)
2) Load the SYSTEM hive (we already did this previously but OK to run):
reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
reg query HKLM\TEMP_SYSTEM\Select /v Current
(reg unload later)
3) Inject drivers (example â replace X:\Drivers with the USB path):
dism /Image:E:\ /Add-Driver /Driver:X:\SamsungNVMeDriver\ /Recurse
(If dism errors, capture the dism.log at X:\Windows\Logs\DISM\dism.log and paste the relevant errors.
4) Ensure Start values are 0 (we did this already, but re-run reg add for nvme/storport if you want):
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
reg unload HKLM\TEMP_SYSTEM
5) Re-run bcdboot (assign S: if needed):
bcdboot E:\Windows /s S: /f UEFI
6) Reboot to UEFI (CSM disabled) and test.
If you want to try Option 2A I will wait while you get the driver package and paste the results of the DISM command; Iâll interpret errors.
B â If driver injection is not possible or fails: write GPT with gdisk and recheck
(You already created ESP so this is less likely to help, but sometimes firmware is picky.
1) Put gdisk.exe on a USB
2) In WinPE:
gdisk .\physicaldrive0
type p (inspect) then w to write GPT
3) Create/assign ESP if missing and rerun bcdboot
4) Reboot to UEFI
I can guide stepâbyâstep and interpret output.
My recommendation
- If you need to work today: Option 1 (restore the other backup and get back to desktop). We can come back to the UEFI conversion / driver injection tomorrow.
- If you want one last try on this January image: Option 2A (inject Samsung NVMe driver into the offline image). Itâs the most likely âlast chanceâ cure without restoring.
- âFallback â restore other imageâ (Iâll walk you through Macrium + bootrec if needed), or
- âTry driver injectionâ (Iâll wait while you get the Samsung NVMe driver on a USB and then Iâll give the exact DISM command and interpret results), or
- âTry gdiskâ (Iâll guide you through writing GPT nonâdestructively).
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
OK â understood. Good call to revert to the moreârecent image so you can get back to work. Below Iâll give a safe, stepâbyâstep restore + boot checklist you can follow now (Macrium Rescue + firmware + quick repairs). Iâll include the exact commands to run if the restored image does not boot, and how to choose Legacy vs UEFI repair depending on the restored image type.
Before you start â absolute musts
1) Boot Macrium Reflect Rescue media (UEFI boot entry). Use the one you used previously.
2) In Reflect â Restore:
A â Set BIOS to allow Legacy/CSM:
If the machine does not boot naturally into the restored Windows, boot the Windows Repair CD (legacy/CSM entry) and choose Troubleshoot â Advanced â Command Prompt and run these commands (copy/paste):
diskpart
list disk
exit
Then:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
If you get âAccess deniedâ on /fixboot, then run:
bcdboot C:\Windows
(Use the Windows drive letter as shown by list vol in WinRE if it differs.
If the restored image is GPT/UEFI
A â Set BIOS to pure UEFI:
Boot Windows Repair USB (UEFI entry) â Repair â Command Prompt, then:
diskpart
list vol â find the small FAT32 ESP (usually ~100â260 MB) and the Windows volume
select vol <ESP#>
assign letter=S
exit
bcdboot C:\Windows /s S: /f UEFI
(Replace C: with the Windows volume letter if WinRE shows something else.
If bcdboot says BCD template error or cannot create store
diskpart â list disk
(or paste it here) and Iâll give the exact repair commands.
If boot still fails with INACCESSIBLE_BOOT_DEVICE (0xC0000001)
That indicates Windows canât load the storage driver at boot. Quick options:
A) Walk you through restoring the image now stepâbyâstep (Iâll wait while you do each action), or
B) Give the exact oneâshot commands to run after you restore (depending on whether your restored disk is MBR or GPT)?
If B, please paste the output of diskpart â list disk right after the restore so I can choose the right repair commands.
Before you start â absolute musts
- Make sure the 12.73 TB files drive (your backup repository) stays connected â but doubleâcheck you do NOT select it as the restore target.
- Confirm you have a good Macrium image labeled âthe recent imageâ on the 12 TB drive.
- If you have time, create a fresh Macrium image of the current NVMe state (optional but safest). If you donât have time, proceed â weâre restoring a known good image anyway.
1) Boot Macrium Reflect Rescue media (UEFI boot entry). Use the one you used previously.
2) In Reflect â Restore:
- Browse to the recent image on the 12 TB files drive.
- Select the image and click Restore Image.
- For Target Disk choose the Samsung NVMe (confirm by model and ~1863 GB size). VERY IMPORTANT: confirm the disk number / model in the target area â do NOT pick the 12 TB drive.
- If the image covers the whole disk, simply map the image partitions to the target. If you must change sizes, leave defaults.
- Apply / run the restore. Wait for completion.
3) After Restore finishes, do NOT reboot yet. Weâll ensure the firmware/boot mode matches the image.
- We need to know whether the restored image is Legacy/MBR or UEFI/GPT. To check quickly from Rescue before rebooting, open Command Prompt and run:
diskpart
list disk
exit
Look at the GPT column: if the restored disk shows an asterisk (*) under GPT itâs GPT/UEFI; if not itâs MBR/Legacy.
A â Set BIOS to allow Legacy/CSM:
- Reboot into BIOS; set:
- Storage = AHCI (leave this)
- Launch CSM = Enabled (allow Legacy)
- Secure Boot = Disabled
- Save & exit.
If the machine does not boot naturally into the restored Windows, boot the Windows Repair CD (legacy/CSM entry) and choose Troubleshoot â Advanced â Command Prompt and run these commands (copy/paste):
diskpart
list disk
exit
Then:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
If you get âAccess deniedâ on /fixboot, then run:
bcdboot C:\Windows
(Use the Windows drive letter as shown by list vol in WinRE if it differs.
If the restored image is GPT/UEFI
A â Set BIOS to pure UEFI:
- Reboot into BIOS; set:
- Launch CSM = Disabled
- Secure Boot = Disabled (first boot)
- Storage = AHCI
- Save & exit.
Boot Windows Repair USB (UEFI entry) â Repair â Command Prompt, then:
diskpart
list vol â find the small FAT32 ESP (usually ~100â260 MB) and the Windows volume
select vol <ESP#>
assign letter=S
exit
bcdboot C:\Windows /s S: /f UEFI
(Replace C: with the Windows volume letter if WinRE shows something else.
If bcdboot says BCD template error or cannot create store
- Ensure the ESP is FAT32, writable and not readâonly:
diskpart
select disk <NVMe disk#>
attributes disk clear readonly
select vol <ESP#>
format fs=fat32 quick label=ESP
assign letter=S
exit - Rerun bcdboot.
diskpart â list disk
(or paste it here) and Iâll give the exact repair commands.
If boot still fails with INACCESSIBLE_BOOT_DEVICE (0xC0000001)
That indicates Windows canât load the storage driver at boot. Quick options:
- Enable Legacy boot and use bootrec as above to get back to desktop quickly (fastest). Then we can troubleshoot UEFI conversion later.
- Or, try the driver fix path: from WinPE load the offline SYSTEM hive and set stor/NVMe drivers to Start=0 and/or inject the Samsung NVMe driver into the offline image using DISM, then run bcdboot and test. I can walk you through that if you want one more attempt.
- Make a fresh Macrium image of the working state (so you have a usable fallback).
- If you want the longâterm UEFI/GPT setup for NVMe, we can schedule the safe conversion (mbr2gpt or gdisk) later once youâre back on a working desktop.
A) Walk you through restoring the image now stepâbyâstep (Iâll wait while you do each action), or
B) Give the exact oneâshot commands to run after you restore (depending on whether your restored disk is MBR or GPT)?
If B, please paste the output of diskpart â list disk right after the restore so I can choose the right repair commands.
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Joined
- Mar 14, 2023
- Messages
- 101,678
Understood â you want the knownâgood image restored and to get the machine back to the desktop as it was (GPT/UEFI). Below is a compact, safe, stepâbyâstep checklist you can follow now. Iâll give exact commands to run in WinPE / Macrium Rescue and what to do in BIOS. If anything fails, paste the full command output and Iâll tell you the next command.
Important safety reminders before you start
Boot the Rescue environmentâs Command Prompt (or Windows install USB â Repair â Command Prompt) and run these commands â paste outputs if anything looks different:
A â Confirm disks & volumes
diskpart
list disk
list vol
exit
Check that:
(Adjust the Windows drive letter if list vol shows something other than E: for the Windows partition; replace <ESPvol#> with the number you saw.
diskpart
select vol <ESPvol#>
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
Expected: âBoot files successfully created.â If so, go to Step 3.
C â If bcdboot errors (access denied or c000000f)
Run:
diskpart
select disk <nvmedisk#>
attributes disk clear readonly
select vol <ESPvol#>
format fs=fat32 quick label=ESP
assign letter=S
exit
Then rerun:
bcdboot E:\Windows /s S: /f UEFI
Step 3 â Set firmware & first boot
If you still get a BSOD INACCESSIBLE_BOOT_DEVICE (0xC0000001) after bcdboot succeeded
This means Windows is missing the driver it needs at early boot (NVMe/AHCI driver mismatch). Two quick options:
Option Quick (get desktop now)
1) Youâre ready and have the Macrium image selected (yes), and
2) Will you run the exact commands above and paste outputs for any errors, or do you want me to give the quick Legacy command sequence first?
Important safety reminders before you start
- Confirm the image youâre restoring is the âknownâgoodâ image and is on your 12 TB files drive.
- Doubleâcheck disk numbers before any diskpart/disk commands â Disk 0 = Samsung NVMe (~1.86 TB), Disk 1 = your 12 TB files drive. Do NOT select Disk 1.
- If you have time, make one quick Macrium image of the current NVMe state to the 12 TB drive (optional but safest).
- Boot Macrium Rescue (UEFI entry).
- In Reflect â Restore:
- Select the knownâgood image on the 12 TB drive.
- Set the target disk to the Samsung NVMe (confirm model/size).
- Restore the image (restore the partitions as provided in the image). Use default sizes (do not intentionally shrink).
- Apply and wait for completion.
- When restore finishes, do NOT reboot yet. Proceed to Step 2 for verification and repair.
Boot the Rescue environmentâs Command Prompt (or Windows install USB â Repair â Command Prompt) and run these commands â paste outputs if anything looks different:
A â Confirm disks & volumes
diskpart
list disk
list vol
exit
Check that:
- The Samsung NVMe is the ~1.86 TB disk (note its disk number).
- There is a small FAT32 partition (ESP). Note its Volume number and the Windows partition letter (in WinPE the Windows partition often shows as E: or similar).
(Adjust the Windows drive letter if list vol shows something other than E: for the Windows partition; replace <ESPvol#> with the number you saw.
diskpart
select vol <ESPvol#>
assign letter=S
exit
bcdboot E:\Windows /s S: /f UEFI
Expected: âBoot files successfully created.â If so, go to Step 3.
C â If bcdboot errors (access denied or c000000f)
Run:
diskpart
select disk <nvmedisk#>
attributes disk clear readonly
select vol <ESPvol#>
format fs=fat32 quick label=ESP
assign letter=S
exit
Then rerun:
bcdboot E:\Windows /s S: /f UEFI
Step 3 â Set firmware & first boot
- Reboot into UEFI/BIOS (Del or F2).
- Set:
- Storage = AHCI
- Launch CSM = Disabled (pure UEFI)
- Secure Boot = Disabled for the first boot
- In Boot Option Priorities place âWindows Boot Manager (Samsung SSD 980 PRO âŚ)â first (or use oneâtime boot to pick it).
- Save and reboot.
If you still get a BSOD INACCESSIBLE_BOOT_DEVICE (0xC0000001) after bcdboot succeeded
This means Windows is missing the driver it needs at early boot (NVMe/AHCI driver mismatch). Two quick options:
Option Quick (get desktop now)
- Temporarily enable CSM/Legacy in BIOS, boot the Windows Repair CD (legacy entry) and run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
(or run bcdboot C:\Windows) - This usually gets an MBR/legacy image booting fast. You can convert to UEFI later.
- We must ensure Windows has the NVMe driver available at boot:
1) Download the Samsung NVMe driver package (980 PRO) on another PC and copy to USB.
2) In WinPE:- reg load HKLM\TEMP_SYSTEM E:\Windows\System32\config\SYSTEM
- reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
(repeat for storport, storahci, msahci, iaStorV if present) - reg unload HKLM\TEMP_SYSTEM
- dism /Image:E:\ /Add-Driver /Driver:X:\SamsungNVMeDriver\ /Recurse
- bcdboot E:\Windows /s S: /f UEFI
3) Reboot to UEFI and test.
- If you later want to convert to GPT nonâdestructively, use mbr2gpt from Windows install USB or gdisk in WinPE; I can walk you through this when you are back on desktop.
- Since you said youâre reverting to the knownâgood GPT image, follow Steps 1 â 2 â 3 above in order.
- If any command prints an error (especially for bcdboot or diskpart), copy the full output and paste it here.
- If boot still fails with 0xC0000001 after these steps, tell me whether you prefer:
- Quick fallback (Legacy/bootrec) so you get back to work immediately, or
- Try the driver injection path so the image boots in UEFI properly (takes longer but cleaner).
1) Youâre ready and have the Macrium image selected (yes), and
2) Will you run the exact commands above and paste outputs for any errors, or do you want me to give the quick Legacy command sequence first?
- Joined
- Mar 14, 2023
- Messages
- 101,678
Okay â letâs get you back to the knownâgood image and booting the way it was. Below is a short, safe checklist you can follow right now (exact commands to paste), plus troubleshooting branches depending on whether the restored image is Legacy/MBR or UEFI/GPT. Iâll stay with you stepâbyâstep if you want.
Important safety first
1) Boot the Macrium Rescue USB/DVD (use the Rescue environment you used earlier).
2) In Reflect â Restore:
Step 2 â Confirm whether the restored disk is MBR (legacy) or GPT (UEFI)
Boot the Rescue environment (or stay in Macrium Rescue) and open Command Prompt, then run:
diskpart
list disk
exit
(Exact commands to run in Rescue Command Prompt â replace drive letters as shown by list vol.
diskpart
list vol â note the small FAT32 EFI volume number and the Windows partition letter
select vol <EFI#>
assign letter=S â only if it has no letter
exit
bcdboot C:\Windows /s S: /f UEFI
diskpart
select disk <NVMe disk#>
attributes disk clear readonly
select vol <EFI#>
format fs=fat32 quick label=ESP
assign letter=S
exit
bcdboot C:\Windows /s S: /f UEFI
(If you get repeated errors, tell me the exact bcdboot output and dir S:\ contents.
3B â If the restored image is MBR (Legacy): restore legacy boot quickly
Quick route (fastest) â enable Legacy/CSM and run bootrec:
1) Reboot into BIOS and set:
bcdboot C:\Windows
That error usually means Windows canât load the storage driver at boot (driver mismatch for the new controller). Two options:
A) Quick fallback: leave BIOS set to Legacy/CSM and use bootrec / bcdboot as above until youâre back on desktop (recommended if you must work immediately).
B) Try to fix drivers in the offline image (one more, targeted attempt): inject the correct NVMe driver (Samsung NVMe driver for 980 PRO) into the offline Windows image and ensure the start value for storage drivers is set to load at boot (reg load + reg add). This is a bit more work but can fix INACCESSIBLE_BOOT_DEVICE. See guidance here for the exact reg and DISM commands.
If you want that driver injection path now I will walk you stepâbyâstep (youâll need the OEM NVMe driver package on a USB so we can run dism /Image:E:\ /AddâDriver /Driver:X:\ âŚ).
Final checklist (quick)
Important safety first
- If you can, make one quick fresh Macrium image of the NVMe right now to the 12TB files drive (so you have a snapshot of the state weâve been working on). Donât proceed without a backup if you can.
- Doubleâcheck disk numbers before any diskpart/select commands â your 12TB files drive is important and must not be selected.
1) Boot the Macrium Rescue USB/DVD (use the Rescue environment you used earlier).
2) In Reflect â Restore:
- Browse to the recent knownâgood image on the 12TB files drive.
- Select that image and choose Restore Image.
- Target: select the Samsung NVMe (confirm model & ~1863 GB size) â do NOT select the 12TB drive.
- Restore the partitions from that image to the NVMe (overwrite the existing partitions). Apply the restore and wait for it to finish.
(If youâd prefer the GUI steps listed earlier, see the restore outline in the guidance.
Step 2 â Confirm whether the restored disk is MBR (legacy) or GPT (UEFI)
Boot the Rescue environment (or stay in Macrium Rescue) and open Command Prompt, then run:
diskpart
list disk
exit
- Look at the GPT column for the NVMe disk:
- If GPT column has a * â disk is GPT (UEFI). Proceed to 3A.
- If GPT column is blank â disk is MBR (Legacy). Proceed to 3B.
(You must confirm this before running boot repair commands.
(Exact commands to run in Rescue Command Prompt â replace drive letters as shown by list vol.
diskpart
list vol â note the small FAT32 EFI volume number and the Windows partition letter
select vol <EFI#>
assign letter=S â only if it has no letter
exit
bcdboot C:\Windows /s S: /f UEFI
- Expect: âBoot files successfully created.â Then reboot to firmware:
- Set Boot Mode = UEFI (CSM disabled), Secure Boot OFF for the first attempt.
- Put âWindows Boot Manager (Samsung âŚ)â first in the boot order and try to boot.
diskpart
select disk <NVMe disk#>
attributes disk clear readonly
select vol <EFI#>
format fs=fat32 quick label=ESP
assign letter=S
exit
bcdboot C:\Windows /s S: /f UEFI
(If you get repeated errors, tell me the exact bcdboot output and dir S:\ contents.
3B â If the restored image is MBR (Legacy): restore legacy boot quickly
Quick route (fastest) â enable Legacy/CSM and run bootrec:
1) Reboot into BIOS and set:
- Launch CSM = Enabled (allow Legacy/CSM)
- Storage = AHCI
- Secure Boot = Disabled
2) Boot the Windows Repair CD (choose the nonâUEFI / legacy boot entry) â Troubleshoot â Advanced â Command Prompt
Run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
bcdboot C:\Windows
- Reboot â you should return to your previously working Legacy boot. This is the fastest way to get you back to desktop, and you can convert to UEFI later if desired.
That error usually means Windows canât load the storage driver at boot (driver mismatch for the new controller). Two options:
A) Quick fallback: leave BIOS set to Legacy/CSM and use bootrec / bcdboot as above until youâre back on desktop (recommended if you must work immediately).
B) Try to fix drivers in the offline image (one more, targeted attempt): inject the correct NVMe driver (Samsung NVMe driver for 980 PRO) into the offline Windows image and ensure the start value for storage drivers is set to load at boot (reg load + reg add). This is a bit more work but can fix INACCESSIBLE_BOOT_DEVICE. See guidance here for the exact reg and DISM commands.
If you want that driver injection path now I will walk you stepâbyâstep (youâll need the OEM NVMe driver package on a USB so we can run dism /Image:E:\ /AddâDriver /Driver:X:\ âŚ).
Final checklist (quick)
- Restore knownâgood image with Macrium Rescue (target = Samsung NVMe).
- Check disk type (diskpart â list disk) â pick UEFI or Legacy branch.
- UEFI branch: assign ESP letter + bcdboot C:\Windows /s S: /f UEFI â BIOS: UEFI/CSM disabled.
- Legacy branch: enable CSM â Windows Repair CD â bootrec /fixmbr /fixboot /rebuildbcd (or bcdboot).
- A â walk you through the restore now (Iâll wait for the Macrium Rescue screens / outputs), or
- B â give only the repair commands after you finish the restore and paste the diskpart list disk output?
Nomad of Norad
Fantastic Member
- Joined
- Jan 9, 2009
- Messages
- 319
- Thread Author
-
- #59
@ChatGPT
Okay, I did approach 3B on that last, and after bootrec /rebuildbcd it gave:
Successfully scanned Windows installations.
Total identified Windows installations: 1
[1] G:Windows
Add installation to boot list? Yes(Y)/No(N)/All(A):
I entered Y, and it said:
The requested system device cannot be found.
What next?
Okay, I did approach 3B on that last, and after bootrec /rebuildbcd it gave:
Successfully scanned Windows installations.
Total identified Windows installations: 1
[1] G:Windows
Add installation to boot list? Yes(Y)/No(N)/All(A):
I entered Y, and it said:
The requested system device cannot be found.
What next?
- Joined
- Mar 14, 2023
- Messages
- 101,678
That âThe requested system device cannot be foundâ after answering Y means the Recovery environment found a Windows install but couldnât add it into the BCD store â usually because the recovery environment is looking at the wrong disk/letters, the EFI/BCD area is inaccessible or corrupt, or the boot files/drivers it needs arenât available. Donât panic â try the checklist below, in order. Iâll give exact commands to run from WinRE / your rescue WinPE (what you used before). Each step explains why and what to paste back if it fails.
Quick plan (order)
1) Confirm the recovery environment is seeing the correct Windows + EFI volumes.
2) Recreate the UEFI boot store with bcdboot (the most reliable fix for a UEFI/GPT system).
3) If bcdboot fails, make the ESP writable / rename the old BCD and retry.
4) If it still fails, check for driver / storageâaccess issues (rare after bcdboot succeeds) or fall back to repairing as Legacy (quick temporary rescue).
Do this now (copy/paste these one block at a time)
A â Identify volumes and confirm Windows installation (very important)
diskpart
list disk
list vol
exit
What to look for:
dir <WinLetter>:\Windows
(e.g. dir E:\Windows). If you donât see the Windows folder, post the list vol output here and donât proceed further.
B â Recreate UEFI boot files (best next attempt)
(Replace <WinLetter> with the letter for your Windows partition shown above; replace <ESPvol> with the ESP volume number.
diskpart
select vol <ESPvol>
assign letter=S
exit
bcdboot <WinLetter>:\Windows /s S: /f UEFI
What this does and why: bcdboot copies winload.efi + supporting files to the ESP and rebuilds the BCD; itâs the recommended fix when /rebuildbcd fails on UEFI systems.
(Only do these if bcdboot failed previously.
diskpart
select disk 0 <-- confirm itâs the NVMe disk (check list disk output)
attributes disk clear readonly
select vol <ESPvol>
format fs=fat32 quick label=ESP <-- only if you decide to reformat (see note)
assign letter=S
exit
(If there was a BCD in S:\EFI\Microsoft\Boot rename it instead of formatting
ren S:\EFI\Microsoft\Boot\BCD BCD.old
Then rerun:
bcdboot <WinLetter>:\Windows /s S: /f UEFI
Notes:
That usually means Windows canât load the NVMe/storage driver early. Two things to check:
1) Make sure firmware storage setting is AHCI (or correct mode for your controller) and not switched to RAID/IRST unexpectedly. Changing mode can require registry driver tweaks.
2) If needed, load the offline SYSTEM hive and set storage drivers to boot start so Windows loads them early (storport, storahci, nvme). Example (only if you need it â I can walk these through):
reg load HKLM\TEMP_SYSTEM <WinLetter>:\Windows\System32\config\SYSTEM
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
(reg add for storport / storahci / msahci / iaStorV similarly)
reg unload HKLM\TEMP_SYSTEM
Then reboot and test. This is a common fix for inaccessible boot device after moving images between different NVMe/SATA controllers.
E â If you prefer a quick temporary rescue (fallback to Legacy/MBR) â get desktop back fast
If you urgently need to boot right now and donât care about UEFI:
1) Paste the output of diskpart â list disk and list vol (so I can confirm the Windows and ESP volume numbers/letters).
2) If you already ran bcdboot, paste its exact output (or paste the exact error you saw when you tried to add the install earlier).
3) Tell me whether you want me to continue trying to fix this UEFI boot (bcdboot + driver / registry steps) or you want the fast Legacy fallback to get back to the knownâgood boots immediately.
Iâll stay with you and interpret the outputs. References: community guidance on recreating the EFI and using bcdboot as the reliable fix for UEFI systems, and posts describing the exact ârequested system device cannot be foundâ cases and remedies.
Quick plan (order)
1) Confirm the recovery environment is seeing the correct Windows + EFI volumes.
2) Recreate the UEFI boot store with bcdboot (the most reliable fix for a UEFI/GPT system).
3) If bcdboot fails, make the ESP writable / rename the old BCD and retry.
4) If it still fails, check for driver / storageâaccess issues (rare after bcdboot succeeds) or fall back to repairing as Legacy (quick temporary rescue).
Do this now (copy/paste these one block at a time)
A â Identify volumes and confirm Windows installation (very important)
diskpart
list disk
list vol
exit
What to look for:
- Which disk is the NVMe (~1.86 TB) â make sure you will operate on that, not the 12 TB files drive.
- Which volume is the Windows install (largest NTFS; note the drive letter shown by list vol in WinRE â often E: in WinPE).
- Which volume is the small FAT32 EFI (ESP) and its volume number.
dir <WinLetter>:\Windows
(e.g. dir E:\Windows). If you donât see the Windows folder, post the list vol output here and donât proceed further.
B â Recreate UEFI boot files (best next attempt)
(Replace <WinLetter> with the letter for your Windows partition shown above; replace <ESPvol> with the ESP volume number.
diskpart
select vol <ESPvol>
assign letter=S
exit
bcdboot <WinLetter>:\Windows /s S: /f UEFI
What this does and why: bcdboot copies winload.efi + supporting files to the ESP and rebuilds the BCD; itâs the recommended fix when /rebuildbcd fails on UEFI systems.
- If you get âBoot files successfully createdâ â reboot to firmware, set Boot Mode = UEFI (CSM disabled), make âWindows Boot Managerâ first, Secure Boot OFF for first test, and try to boot.
- If bcdboot fails with an error (c000000f, access denied, etc., proceed to step C.
(Only do these if bcdboot failed previously.
diskpart
select disk 0 <-- confirm itâs the NVMe disk (check list disk output)
attributes disk clear readonly
select vol <ESPvol>
format fs=fat32 quick label=ESP <-- only if you decide to reformat (see note)
assign letter=S
exit
(If there was a BCD in S:\EFI\Microsoft\Boot rename it instead of formatting
ren S:\EFI\Microsoft\Boot\BCD BCD.old
Then rerun:
bcdboot <WinLetter>:\Windows /s S: /f UEFI
Notes:
- Formatting the ESP will remove any existing EFI data. Prefer renaming BCD.old first; only format if the EFI was badly corrupted and you have a backup or can recreate files.
- If you get âAccess deniedâ on format/assign, paste the exact error.
That usually means Windows canât load the NVMe/storage driver early. Two things to check:
1) Make sure firmware storage setting is AHCI (or correct mode for your controller) and not switched to RAID/IRST unexpectedly. Changing mode can require registry driver tweaks.
2) If needed, load the offline SYSTEM hive and set storage drivers to boot start so Windows loads them early (storport, storahci, nvme). Example (only if you need it â I can walk these through):
reg load HKLM\TEMP_SYSTEM <WinLetter>:\Windows\System32\config\SYSTEM
reg add "HKLM\TEMP_SYSTEM\ControlSet001\Services\nvme" /v Start /t REG_DWORD /d 0 /f
(reg add for storport / storahci / msahci / iaStorV similarly)
reg unload HKLM\TEMP_SYSTEM
Then reboot and test. This is a common fix for inaccessible boot device after moving images between different NVMe/SATA controllers.
E â If you prefer a quick temporary rescue (fallback to Legacy/MBR) â get desktop back fast
If you urgently need to boot right now and donât care about UEFI:
- In BIOS, enable CSM / Legacy boot and disable Secure Boot.
- Boot Windows Repair media (legacy/CSM).
- Run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
If rebuildbcd still fails with âThe requested system device cannot be found,â do the diskpart/list vol checks and then run:
bcdboot <WinLetter>:\Windows
This often gets an MBR/Legacy restore running quickly; you can convert to UEFI later.
- WinRE/WinPE uses temporary drive letters â the Windows partition letter in WinPE often isnât C:. Always verify with diskpart/list vol and dir <letter>:\Windows before running bcdboot or bootrec.
- If DISM /Get-Drivers errors (Error 32) you saw earlier, that can mean WinPE couldnât read the offline driver store â but bcdboot + ensuring the ESP is good is usually enough to fix boot first; driver injection is next if device driver mismatch remains.
- If multiple Windows installations or multiple system partitions exist, you may need to explicitly target the correct partition with bcdboot (use the Windows letter found in WinPE).
1) Paste the output of diskpart â list disk and list vol (so I can confirm the Windows and ESP volume numbers/letters).
2) If you already ran bcdboot, paste its exact output (or paste the exact error you saw when you tried to add the install earlier).
3) Tell me whether you want me to continue trying to fix this UEFI boot (bcdboot + driver / registry steps) or you want the fast Legacy fallback to get back to the knownâgood boots immediately.
Iâll stay with you and interpret the outputs. References: community guidance on recreating the EFI and using bcdboot as the reliable fix for UEFI systems, and posts describing the exact ârequested system device cannot be foundâ cases and remedies.