banner



How To Change C Drive Back To Boot Disk Via Command-line

  • Overview of MBR (Primary Boot Record)

  • What happens if MBR is corrupted?

  • Set MBR from Command Prompt in Windows 10/8/7

  • Free culling to CMD: prepare MBR without Windows CD/DVD

  • Summary

Overview of MBR (Main Boot Record)

The Primary Kick Tape (MBR) is a boot sector of any difficult deejay that identifies how and where the operating system is located. It is created on the very first partition when you install Windows on your computer. It is the first 512 bytes of your hd. MBR holds significant data that enables your PC to find and identify the Bone location and allows Windows to kicking up successfully.

What happens if MBR is corrupted?

At present that you might have known the importance of MBR, but what will happen if the MBR is damaged considering of a virus infection, bulldoze failure, or an MBR overwrite? Generally, every bit a event, your computer may neglect to boot and prompts one of the following fault messages during Os initial:

  • Error loading operating system;

  • Operating System non found;

  • Invalid segmentation table;

  • No bootable device institute;

  • Reboot and select proper boot device.

Fix MBR from Command Prompt in Windows 10/eight/7

Thus, how to repair MBR so that you can boot the Bone successfully? This part volition illustrate how to ready MBR through Control Line step by step in Windows 10/viii/seven. Since Windows vii and Windows viii/8.i/ten slightly differ in accessing Command Prompt, we make two corresponding tutorials for your reference.

  • Tutorial i. Set up MBR via CMD in Windows vii

  • Tutorial two. Fix MBR via Control Prompt Windows 8/viii.one/x/11

Tutorial 1. Fix MBR via CMD in Windows vii

To fix damaged MBR using Command Prompt, you have to utilize the Windows installation CD/DVD to boot your computer since it is unable to boot from the OS. If you don't have i, you can download Windows ISO files from the official Microsoft website and create a bootable USB bulldoze.

one. Boot reckoner from the Windows 7 installation CD/DVD.

two. At the "Press whatever fundamental to kick from CD or DVD…", press whatever primal to kicking PC from the inserted DVD.

3. Select a language, keyboard layout and click "Adjacent".

Choose Language

four. Select the operating organization and click "Next" and tick "Use recovery tools that can help fix bug starting Windows".

v. At the "System Recovery Options" screen, click on "Command Prompt".

Access Cmd Win7

6. When Command Prompt launches successfully, blazon the following command in the given society and hit on "Enter" after each i.

  • bootrec /fixmbr

  • bootrec /fixboot

  • bootrec /rebuildbcd

Then, you can remove the installation DVD from the disk tray and restart your computer to check if the boot MBR is fixed.

If the above commands do not work, do equally below to restore the kicking sector code in Windows 7:

ane. Check out the bulldoze letter of your Windows seven installation CD/DVD by running commands: "diskpart-> list disk->select disk 0 -> list volume".

ii. Notice out the "CD-ROM" word in the "Type" column.Then check your CD/DVD installation drive letter of the alphabet. If the drive letter is d:\, blazon the command: "exit d: cd boot dir".

Cm Rom Win7

iii. So type command: "bootsect /nt60 SYS /mbr" and hit on "Enter".

4. Remove the CD/DVD from the disk tray, blazon"Exit" and press "Enter" to restart your PC.

Tutorial 2. Set up MBR via Command Prompt Windows 8/8.ane/10

As well, yous have to boot computer from Windows 8/eight.1/x original installation CD, or created bootable media.

1. Kick from Windows installation DVD or CD. At the Welcome screen, click "Repair your computer".

2. Choose "Troubleshoot"> "Avant-garde options" and then "Control Prompt".

Access Cmd Win10

3. When the Command Prompt loads, execute the following commands in order:

  • bootrec /FixMbr

  • bootrec /FixBoot

  • bootrec /ScanOs

  • bootrec /RebuildBcd

4. Remove the DVD and restart your reckoner to check if it can kicking up successfully.

If the above commands exercise not piece of work, do as beneath to restore the boot sector code in Windows 10/8:

1. Type "diskpart-> list deejay->select disk 0 -> list volume" to check for the EFI sectionalization that was formatted to be FAT32 file organisation.

2. Bank check out the volume number of EFI partition. Supposing information technology is "2", yous need to type the command: "select volume 2".

3. Blazon "assign alphabetic character= thousand" or other unused drive letters.

4. When Diskpart successfully assigned the drive letter, you need to type "exit" to close the Diskpart window.

v. So run the beneath commands in the Control Prompt window:

  • cd /d g:\EFI\Microsoft\Boot\: replace "grand" with the letter you assigned to the EFI division.

  • bootrec /fixboot: repair the volume.

  • ren BCD BCD.backup: back up the onetime BCD and recreate a new one.

  • bcdboot c:\Windows /l en-us /south g: /f ALL: recreate the BCD.

At last, remove the DVD and reboot your PC.

If your Windows Os is non installed in C drive, please replace c:\ with your drive letter of the alphabet in to a higher place commands.

Free alternative to CMD: gear up MBR without Windows CD/DVD

Above is all nigh how to fix MBR through Command Line using Windows installation CD or DVD. Withal, if you don't accept one, how can y'all brand information technology done? Thus, you can switch to the gratuitous sectionalisation managing director-AOMEI Partition Banana Standard, which helps you to repair damaged MBR without using DVD or CD Instead, you can utilize this freeware to create a bootable media (USB flash drive) first, boot figurer from it and then rebuild MBR in Windows PE environment.

1. Download, install and run AOMEI Sectionalization Standard on a working Windows computer. And plug an empty USB wink bulldoze (over 8GB) to this PC equally well.

2. In the principal interface, click "Make Bootable Media" and "Side by side".

Make Bootable Media

iii. Choose your USB flash bulldoze and click "Go on".

Choose Usb Drive

4. Wait for the process to be done. After that, connect the bootable USB flash drive into the reckoner which cannot kicking due to damaged MBR. Reboot information technology and enter BIOS to alter kick order to boot computer from the USB wink bulldoze.

Boot Order

▸To give a USB device kicking sequence priority over the hard bulldoze, practice the post-obit:
1. Move the hard drive device to the height of the boot sequence list.
ii. Expand the hard drive device to display all hard drives.
3. Move the USB device to the top of the listing of difficult drives.

v. Once login, y'all will see AOMEI Partition Assistant Standard is running. Right click the system disk and select "Rebuild MBR".

Rebuild System Disk Mbr

6. Choose a proper MBR blazon for your current operating system.

Choose Mbr Type

7. Click "Use" and "Proceed" in the main interface to start rebuilding MBR.

After you have finished all steps, you tin restart your computer to bank check whether your computer tin boot normally.

Summary

Every bit you can see, compared with fixing MBR via Command Prompt/DiskPart, AOMEI Partition Assistant Standard is much easier. Moreover, information technology can gear up MBR without using Windows installation CD or DVD, a big bonus for users without enough computer cognition. Besides, information technology also has other functions to better manage your disk and partitions such as merging partitions, copying division to another drive, moving sectionalisation, cloning large HDD to smaller HDD/SSD etc.

If you upgrade to AOMEI Partition Banana Professional, you can enjoy more amazing features including splitting segmentation, extending NTFS organisation sectionalization without reboot, allocating free space from one segmentation to another.

Source: https://www.diskpart.com/articles/fix-mbr-command-prompt-7201.html

Posted by: joneswittere.blogspot.com

0 Response to "How To Change C Drive Back To Boot Disk Via Command-line"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel