Share via

Bootrec /scanos 0 windows installations

Anonymous
2025-03-15T11:39:19+00:00

I have been having a serious issue with my pc since today... and I may have made it worse myself.

CONTEXT:

I had an issue with my pc not being able to download 2 recent mandatory updates on windows update, and I was trying various things to sort out the issue...I was doing the usual sfcscans and dism to try to fix the issue (aswell as other things I has tried).

At some point, I decided to try to restore the OS to a previous recovery point (around 4 days before). I figured it would just put the pc back to how it was 4 days ago and not cause many issues. After the revert all seemed fine, the pc was working and i kept troubleshooting. The updates were over and at some point I closed my pc and went home ( I was at the library)

MAIN ISSUE

When I came back home and turned on my pc... BLUE SCREEN , saying Critical error coming up as soon as the Asus logo appeared. Everytime I turn on the pc this keeps on happening, I tried most of the online solutions like chkdsk, scannow, but it didn't fix that. Finally I also tried bootrec /scanos and I was surprised to find it was not able to find any OS... so now I am thinking the boot might have some problem...

Does anyone know what might have happened? I tried everything, I am quite desperate.

P.S. I would gladly add the dump files but I have no idea how to get them since I can't boot windows at all

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Stefano Sirri 3,170 Reputation points Independent Advisor
    2025-03-15T14:26:56+00:00

    Hi Niccolò,

    Thank you for reaching out!

    My name is Stefano and it’s my pleasure to assist you today.

    It looks like the system restore process might have corrupted the boot configuration, causing the OS to become unbootable. Since bootrec /scanos is showing 0 Windows installations, it suggests that the bootloader is either broken or Windows is no longer being detected correctly.

    Follow the following steps to fix the Boot issue:

    1. Check if the Disk is Detected
    • Boot into the Windows Recovery Environment (WinRE) by using a bootable USB with Windows installation media.
    • Open Command Prompt (Shift + F10 or via Repair your computer > Advanced Options > Command Prompt).
    • Run the following command to check if your drive is present:

    diskpart

    list disk

    If your disk is not listed, it may indicate a hardware issue.

    -f the disk is present, check partitions:

    list volume

    Make sure the partition where Windows is installed is still there.

    1. Rebuild Boot Configuration

    Since bootrec /scanos found 0 installations, the Boot Configuration Data (BCD) might be corrupted. Try these commands:

    • Rebuild the BCD completely:

    bootrec /fixmbr

    bootrec /fixboot

    bootrec /scanos

    bootrec /rebuildbcd

    > If bootrec /rebuildbcd shows 0 Windows installations, proceed with the next step.

    • Manually repair BCD:

    bcdboot C:\Windows /s C: /f ALL

    (Replace C: with your actual Windows partition if needed).

    • If you get Access Denied on bootrec /fixboot, try:

    bootsect /nt60 sys

    1. Run CHKDSK on the System Drive

    If the boot repair didn’t work, your disk might be corrupted:

    chkdsk C: /f /r /x

    Replace C: with your Windows drive if necessary.

    1. If the previous steps don't work Reinstall Windows using a Windows 11 USB installer:
    • Boot from the USB.
    • Choose Upgrade Windows (this keeps your files but reinstalls the system).

    If even that doesn’t work, a full clean reinstall might be the only solution.

    _______

    Please note that this is a public forum, I will be responding you in short period of time and regret for a delay in response. As I am merely a fellow user trying to provide insight and information that may be helpful to others.

    4 people found this answer helpful.
    0 comments No comments
  2. Stefano Sirri 3,170 Reputation points Independent Advisor
    2025-03-15T14:59:51+00:00

    Thanks for your kind answer.

    This article explains how the BCDBoot Command-Line Options work:

    https://learn.microsoft.com/en-us/windows-hardw...

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-03-15T19:22:49+00:00

    bcdboot C:\Windows /s C: /f ALL could you explain to me more in detail what this code does?

    Don't run it. This command adds boot files for the Windows on drive C to drive C which is inappropriate for UEFI boot. Run

    bcdboot C:\Windows

    or post the output of

    diskpart

    list volume

    0 comments No comments
  4. Anonymous
    2025-03-15T14:49:08+00:00

    From bcdboot's command list:

    /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 command, specifies the firmware type of the

             target system partition. Options are 'UEFI', 'BIOS', or 'ALL'.
    
    0 comments No comments
  5. Anonymous
    2025-03-15T14:43:59+00:00

    An other useful info I can add is that I ran chkdsk C: /f /r /x and it found no issues (run it through cmd in recovery). Also I already tried up until step 2, altough i did not use the alternative command to fixboot (which gave me access denied). I will try that first thing tomorrow.

    As for the

    bcdboot C:\Windows /s C: /f ALL could you explain to me more in detail what this code does? I would not wanna run any risky commands as I am a bit scared to do worse.

    0 comments No comments