Solved Cannot boot into Windows after formatting old system drive


m55

New member
Local time
11:21 AM
Posts
3
OS
Win 11
I bought a bigger NVME drive and cloned my existing OS drive onto the new drive. Everything has been working for months so I formatted the old drive. After doing so, I cannot boot into Windows -- I am met with the "choose your keyboard layout" screen and the troubleshoot repair says it cannot fix anything. In cmd I can see the C: drive and all of the files on it.

I've run these:
chkdsk c: /f
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

But the last one (rebuildbcd) does not work, I get error "The system cannot find the path specified". When I look at the partitions in diskpart, I don't see any boot drive listed. I have found a few posts online about this, but their situations are all different from mine, eg. they still have access to the old drive and they can move over the partition. So in my case, with no access to the old drive, how do I fix this? I have not done this before.

I've unplugged all other drives, so the only drive connected is the OS C: drive:

1770258896850.webp
 
Windows Build/Version
Win 11

My Computer My Computer

At a glance

Win 11
OS
Win 11
If you are seen "choose your keyboard layout" screen that means BCD store corrupted and need to be rebuilt.


Since the BCD store exists and lists a Windows installation, you'll first have to "remove" it manually and then try to rebuild it again.

At the Command Prompt, type below command as shown and then press Enter:

Code:
C:

At the Command Prompt, type below command as shown and then press Enter:

Code:
bcdedit /export C:\bcdbackup

The bcdedit command is used here to export the BCD store as a file: bcdbackup. There's no need to specify a file extension.

The command should return the following on screen:
The operation completed successfully.

Meaning the BCD export worked as expected.


At this point, you need to adjust several file attributes for the BCD store so you can manipulate it. At the prompt, execute the attrib commands exactly like this:

Code:
attrib c:\boot\bcd -h -r -s

What you just did with the attrib command was remove the hidden, read-only, and system attributes from the file bcd. Those attributes restricted the actions you could take on the file. Now that they're gone, you can manipulate the file more freely - specifically, rename it.

To rename the BCD store, execute the ren command as shown:

Code:
ren C:\boot\bcd   bcd.old

Now that the BCD store is renamed, you should now be able to successfully rebuild it.

Try rebuilding the BCD again by executing the following, followed by Enter:

Code:
bootrec /scanos
bootrec /rebuildbcd

Restart your computer after rebuilding the BCD store.
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
You can try:
Code:
mountvol S: /s
bcdboot C:\Windows /s S: /f UEFI
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
  • Love
Reactions: m55
At this point, you need to adjust several file attributes for the BCD store so you can manipulate it. At the prompt, execute the attrib commands exactly like this:

Code:
attrib c:\boot\bcd -h -r -s

What you just did with the attrib command was remove the hidden, read-only, and system attributes from the file bcd. Those attributes restricted the actions you could take on the file. Now that they're gone, you can manipulate the file more freely - specifically, rename it.

Thanks for the reply! At the above step I get this error:
File not found - C:\boot\bcd

1770260801146.webp
 

My Computer My Computer

At a glance

Win 11
OS
Win 11
looks like volume 2 could be used as an esp but is a bit small.

I would boot up diskgenius and shrink the windows partition from the left by 450mb

then rt click the unallocated space and select create esp/msr accept the defaults and click Save all. It will ask if you want to format the esp immediately say yes.

still in diskgenius boot media, open cmd prompt and type bcdboot c:\windows

cant remember if diskgenius is in my 7171.iso

otherwise you can d/l the free version on a working machine and get it to create its own boot media

 
Last edited:

My Computers My Computers

  • At a glance

    Win7,Win11i7-97002x16gb 3600mhz
    OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i7-9700
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x16gb 3600mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • At a glance

    win7,win11i5-84002x8gb 3200
    Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200
    PSU
    xfx pro 450
  • Like
Reactions: m55
I bought a bigger NVME drive and cloned my existing OS drive onto the new drive. Everything has been working for months so I formatted the old drive. After doing so, I cannot boot into Windows

Was it a Macrium clone?

Is there an available Macrium backup image?




1) Please perform a startup repair > search for srttrail.txt > post a share link
(Windows\System32\Logfiles\Srt\SrtTrail.txt)






2) Perform a system restore to the oldest system restore point:





3) Please post results:

bootsect /nt60 all
bcdedit
diskpart
lis dis
lis vol
sel dis 0
det dis
lis par
sel par 1
det par
sel par 2
det par
sel par 3
det par
sel par 4
det par
sel dis 1
det dis
lis par
sel par 1
det par
sel par 2
det par
sel par 3
det par
sel par 4
det par
 
Last edited:

My Computer My Computer

At a glance

Windows 10Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz16 GB Total: Manufacturer : Samsung MemoryTyp...NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
OS
Windows 10
Computer type
Laptop
Manufacturer/Model
HP
CPU
Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
Motherboard
Product : 190A Version : KBC Version 94.56
Memory
16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
Graphics Card(s)
NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
Sound Card
IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
Hard Drives
Model Hitachi HTS727575A9E364
Antivirus
Microsoft Defender
Other Info
Mobile Workstation
  • Like
Reactions: m55
If rebuilding the BCD store doesn't resolve the startup issue, you can export and delete the BCD store using this guide.
 

My Computer My Computer

At a glance

Windows 11AMD Ryzen 7 5700GMicron Technology DDR4-3200 16GBNVIDIA GeForce RTX 3060
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Pavilion
CPU
AMD Ryzen 7 5700G
Motherboard
Erica6
Memory
Micron Technology DDR4-3200 16GB
Graphics Card(s)
NVIDIA GeForce RTX 3060
Sound Card
Realtek ALC671
Monitor(s) Displays
Samsung SyncMaster U28E590
Screen Resolution
3840 x 2160
Hard Drives
SAMSUNG MZVLQ1T0HALB-000H1
  • Like
Reactions: m55
After a successful boot repair consider:


1) Enable regback:




2) Run Tuneup plus > post a share link






3) Backup BCD:




4) Create a new restore point




5) Make a new backup image:

 

My Computer My Computer

At a glance

Windows 10Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz16 GB Total: Manufacturer : Samsung MemoryTyp...NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
OS
Windows 10
Computer type
Laptop
Manufacturer/Model
HP
CPU
Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
Motherboard
Product : 190A Version : KBC Version 94.56
Memory
16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
Graphics Card(s)
NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
Sound Card
IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
Hard Drives
Model Hitachi HTS727575A9E364
Antivirus
Microsoft Defender
Other Info
Mobile Workstation
  • Like
Reactions: m55
When you cloned the original drive, the new drive inherited the old drive's BCD info instead of pointing back to itself. As long as the old drive was around, everything still worked.

You could patiently try recreating the BCD, but a faster way is to use bcdboot since we know from diskpart that you have both a valid C: and 99 MB EFI partition.

mountvol S: /s is a shortcut to mounting the EFI partition, without having to assign a drive letter from diskpart.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
... mountvol S: /s is a shortcut to mounting the EFI partition, without having to assign a drive letter from diskpart.

I see. Thanks, garlin.

Kind regards,
1770285253526.webp
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 build 26200.8875Intel i7 8750H @ 2.2 GHz16 GB (all Samsung) DDR4-3200 SODIMM (non-ECC...Intel UHD Graphics 630 & NVIDIA Quadro P600
OS
Windows 11 Pro 25H2 build 26200.8875
Computer type
Laptop
Manufacturer/Model
Lenovo ThinkPad Workstation P72
CPU
Intel i7 8750H @ 2.2 GHz
Motherboard
Lenovo 01YU291
Memory
16 GB (all Samsung) DDR4-3200 SODIMM (non-ECC) PCIe 3
Graphics Card(s)
Intel UHD Graphics 630 & NVIDIA Quadro P600
Sound Card
Realtek ALC3286 & Focusrite Saffire 24 Pro DSP
Monitor(s) Displays
17.3"
Screen Resolution
3840x2160
Hard Drives
1TB SSD Samsung 860 EVO SATA 3
1TB SSD Samsung 970 EVO M.2 NVMe PCIe 3 x 4
2TB SSD Samsung 990 PRO M.2 NVMe PCIe 3 x 4
PSU
230W
Cooling
fan
Keyboard
UltraNav
Mouse
Kensington wireless Orbit
Internet Speed
640Mbps
Browser
DuckDuckGo and Firefox
Antivirus
Defender
Other Info
CM246 Chipset
You can try:
Code:
mountvol S: /s
bcdboot C:\Windows /s S: /f UEFI

Or simply: bcdboot c:\windows

Use the /s and /f options to override the default bcdboot behavior.

bcdboot /?

/s - Specifies an optional volume letter parameter to designate the target system partition where boot environment files are copied. The default is the system partition identified by the firmware.

/f - Used with the /s option, specifies the firmware type of the target system partition. Options for <firmware> are 'UEFI', 'BIOS', or 'ALL'.

If the /s <volume letter> option is not used, bcdboot automatically determines the system partition based on how the system is currently booted (UEFI or BIOS), whether that is an installed Windows OS or a Windows installation USB flash drive, as reported by the firmware.
 

My Computers My Computers

  • At a glance

    Windows 11 ProAMD Ryzen 9 9950X3DKingston FURY Beast 64GB (2x32GB) DDR5 6000MT/sASUS TUF Gaming Radeon RX 9070 OC Edition 16G...
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 9950X3D
    Motherboard
    ASRock B650E Taichi Lite
    Memory
    Kingston FURY Beast 64GB (2x32GB) DDR5 6000MT/s
    Graphics Card(s)
    ASUS TUF Gaming Radeon RX 9070 OC Edition 16GB GDDR6
    Hard Drives
    Solidigm P44 Pro 2TB M.2 NVMe SSD
  • At a glance

    Windows 11 HomeIntel Core Ultra 9 275HX64GB (2x 32GB) DDR5-6400NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion Pro 7i Gen 10 16"
    CPU
    Intel Core Ultra 9 275HX
    Memory
    64GB (2x 32GB) DDR5-6400
    Graphics card(s)
    NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Hard Drives
    2x 1TB M.2 NVMe SSD (SK Hynix)
Back
Top Bottom