Share via

Recreate boot sector, Win 10

Anonymous
2025-07-01T20:00:17+00:00

Win 10, Dell Optiplex PC

I had a working version of Win 10 on an internal drive, but Windows Update screwed the boot sector up.

I have installed a clean version of Win 10 on a secondary drive, and made it the boot drive.

I have read that it will be possible to recreate the boot sector on the old boot drive, and would appreciate confirmation that it will work (there are multiple data files on the drive).

The method is this -

Step 1: Delete old partitions and create new ones

    Boot into a partition manager.

    Delete extra partitions including the old FAT32 system 

    Create new NTFS partition with 512 MB of space and label it “System         Reserved”

    Shutdown

Step 2: Setup Partitions with the correct drive letters

    Launch Windows 10 Install disc / usb (or enter Win10 from another drive on same pc?)

    Shift+F10 once you see language select to bring up command prompt

    Launch DISKPART

    select volume with 512MB (ex: select vol 0)

    assign letter=G: (or any letter that isn’t taken that is NOT C:)

    exit OR If Windows operating system is NOT on C:

    select volume with windows installation on it

    assign letter=C:

    exit

Example output:

diskpart

select disk 0

list vol

select vol 0 <---500 MB Partition

assign letter=G:

select vol 1 <--- Large Partition with Windows Install on it

assign letter=C:

exit

Partitions are done. Now time to fix problems with the “type” of partition – By forcing all partitions to be NTFS NT60

bootsect.exe /nt60 all /force

Step 3: Copy Boot Records, Fix MBR, and Rebuild BCD

Rebuild new system reserved partition with EFI and regular boot files

bcdboot c:\Windows /s 

bcdboot c:\Windows /s G: /f ALL

    Now we can finally rebuild the bcd and master boot You can verify the system is seeing the windows installation by doing a bootrec /scanos and then be running through the rest of the commands to do the rest of the repairs

bootrec /scanos <---Verify it sees the windows install

bootrec /fixmbr

bootrec /fixboot <----Pick the installation will mirror /scanos bootrec /rebuildbcd

What could possibly go wrong?

Windows for home | Windows 10 | Windows update

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

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-07-02T07:21:01+00:00

    Thank you very much for that extensive and detailed reply.

    It's an older Optiplex so pre-dates UEFI.

    I am busily backing up everything useful from the former boot drive. At least another two hours before all that is completed, then into your procedure this afternoon.

    The old system drive ran on 64 bit Win 10; the new, clean installation is from my 32 bit installation CD (the 64 bit was an online upgrade from Win 7) so I may have to download a fresh installation image to write a new CD; certainly a good idea in case of future problems !!

    I intend to only touch the System Reserved partition, leaving the main partition (with all my data and apps) unmolested.

    Thank you for the heads-up on ensuring the drive letters are assigned correctly. I'll need to check twice (at least) before running anything.

    Thank you again, I'm feeling confident that your action plan is the right way to go.

    0 comments No comments
  2. Anonymous
    2025-07-02T01:29:51+00:00

    Hello mizterfish, 

    Welcome to the Microsoft Community. 

    Thank you for reaching out about repairing the boot sector on your Windows 10 system. I understand you have a working Windows 10 installation on a secondary drive and want to restore boot functionality to your original drive, which still contains important data. 
     
    Let me clarify and guide you through the process, pointing out potential issues with your proposed steps and offering a safer, more standard approach. 

    1. Do You Need to Delete Partitions? 
    Caution: 
    If your goal is to restore boot functionality and access your existing Windows installation and data, do not delete partitions unless you are certain you have backed up all important data. Deleting partitions will erase all data on those partitions. 

    • The "System Reserved" partition (or EFI System Partition on UEFI systems) contains boot files, but your Windows and data are on another partition.
    • If you only need to repair boot files, you do not need to delete or recreate partitions.
    • If your partitions are corrupted, that's a different scenario, but you haven't indicated that.

    2. Recommended Steps to Repair Boot Sector (Non-Destructive) Using Windows Recovery Environment (WinRE):

    1. Boot from Windows 10 Install USB/DVD.
    2. On the language selection screen, press Shift + F10 to open Command Prompt.
    3. Identify your Windows partition:

    diskpart 
    list vol 
    exit 

    Note which drive letter your Windows installation is on (it may not be C: in WinRE). 

    1. Run Boot Repair Commands:
    2. For MBR (Legacy BIOS):

    bootrec /fixmbr 
    bootrec /fixboot 
    bootrec /scanos 
    bootrec /rebuildbcd 

    1. For UEFI (most modern Dell Optiplex PCs):

    If your system uses GPT and UEFI, you may need to repair the EFI partition: 

    bcdboot X:\Windows /s Y: /f UEFI 

    Replace X: with your Windows partition, and Y: with your EFI partition (usually 100-300MB, FAT32). 

    1. Restart and test boot.

    3. If You Must Recreate Partitions: 

    • Back up your data first.
    • Deleting and recreating partitions will erase all data on those partitions.
    • Only do this if you intend to do a clean install and have your data backed up.

    4. Common Pitfalls and What Could Go Wrong 

    • Data Loss: Deleting partitions will erase your files. If you have data you need, do not delete partitions.
    • Wrong Partition Type: Creating a 512MB NTFS partition as "System Reserved" is not standard. System Reserved is usually 500MB, NTFS for Legacy BIOS, FAT32 for UEFI (EFI System Partition).
    • Assigning Wrong Drive Letters: Windows PE assigns drive letters dynamically. Double-check which letter your Windows partition and boot partition have in WinRE.
    • MBR vs. GPT: Know your system's boot mode. UEFI uses GPT and an EFI partition. Legacy BIOS uses MBR and a System Reserved partition.
    • bcdboot Syntax: The command bcdboot c:\Windows /s G: /f ALL is correct if you have the right partitions and drive letters. /f ALL will attempt to create boot files for both UEFI and BIOS, but your partition types must match your firmware.

    5. Summary and Safer Approach 

    • If you want to repair boot and keep your data, do not delete partitions. Use bootrec and bcdboot as shown above.
    • If you want to do a clean install, back up your data, then you can delete and recreate partitions.
    • If you are unsure, please provide a screenshot of your partitions (from diskpart, list disk and list vol) and your boot mode (UEFI or Legacy BIOS, found in your BIOS/UEFI firmware settings).

    If you have important data, do not delete partitions. 
     
    References: 

    Best regards, 

    Kai Ho | Microsoft Community Support Specialist

    0 comments No comments