Giter Club home page Giter Club logo

win_bootmgr_repair's Introduction

Windows boot partition repair process

Format the boot partition

diskpart

list disk
# Select the disk containing the boot partiton and windows installation
select disk X

list part
# Select the boot partition
select part Y

# Delete it
delete part override

# Create and format a new partition
create part EFI
list part
# Make sure it's selected
format quick fs=FAT32 label="NeoBoot"

# Make sure the partition volume is selected
list vol
# Assign a letter to it
assign letter=W:

Copy EFI files from Windows install (C:) to boot partition (W:)

# Create the following folder structure on the fresh partition
mkdir W:\EFI\Microsoft\Boot
# Assuming C:\ is where the windows install is
# Populate the partition
xcopy /s C:\Windows\Boot\EFI\*.* W:\EFI\Microsoft\Boot

Configure the boot loader (W:)

# CD to boot partition
W:
cd EFI\Microsoft\Boot

# Initialize the store
bcdedit /createstore BCD

# Create a bootloader entry
bcdedit /store BCD /create {bootmgr} /d "neoBoot Manager"
# Create an os entry
bcdedit /store BCD /create /d "Windows 10" /application osloader

# <GUID> = value returned by the previous command
# Set bootloader values
# Default os entry
bcdedit /store BCD /set {bootmgr} default <GUID>
# Bootloader file
bcdedit /store BCD /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
# Make the new entry boot first
bcdedit /store BCD /set {bootmgr} displayorder {default}

# Set os entry values
# Windows partition
bcdedit /store BCD /set {default} device partition=C:
bcdedit /store BCD /set {default} osdevice partition=C:
# Osloader file
bcdedit /store BCD /set {default} path \Windows\System32\winload.efi
# Root path
bcdedit /store BCD /set {default} systemroot \Windows
exit
# Reboot to BIOS
# Set the new entry as default
# Boot

win_bootmgr_repair's People

Contributors

urbanprah avatar

Stargazers

Prateek Rathod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.