How To Repair Windows 7 By Command Prompt
This guide shows you how to fix the Main boot record (MBR) in any of the Windows versions: Windows x, Windows 11, Windows XP, Vista, 7, or Windows 8.
Contents
- 1 What is the MBR
- 1.one Fill-in
- 1.2 Restore
- ane.iii Common errors
- 2 Fix the MBR with Like shooting fish in a barrel Recovery Essentials
- 3 Fix the MBR in Windows XP
- 4 Fix the MBR in Windows Vista
- 5 Fix the MBR in Windows 7
- 6 Gear up the MBR in Windows 8 or 8.1
- 7 Set up the MBR in Windows x
- 8 More Data
- 8.ane Back up Links
- 8.ii Applicative Systems
What is the MBR
The MBR (stands for "Master boot record") is a boot sector (a region of your difficult deejay) that holds information about the partitions of your hard drive and acts equally a loader for the operating system you're running.
The Master boot tape is created when you first install Windows, on the first partition you create. It's the first 512 bytes of your hard disk drive.
If the MBR is damaged, you won't exist able to boot into Windows. All Windows versions – Windows XP, Vista, 7 or 8 – employ MBR and, if damaged you lot won't exist able to kicking.
It tin can exist damaged past sure viruses that target the MBR to replace information technology with their own lawmaking or in cases when y'all dual kick with a Linux distribution (see Error: no such partition. Grub rescue commodity).
Backup
You tin fill-in the MBR since it's stored on the hard disk and you restore it later, when needed.
You only need one command to fill-in the MBR:
dd if=/dev/sda of=/path-to-save/mbr-backup bs=512 count=1
In the above command, /path-to-save/mbr-fill-in
is the path where you want to save mbr-fill-in
.
Restore
Important: Restoring your Master kick record with the wrong partition table will make your data unreadable and will arrive very hard to recover your information later on.
You tin can restore the saved Chief boot record using this command:
dd if=/path-to-become/mbr-fill-in of=/dev/sda bs=512 count=1
In this command, /path-to-go/mbr-backup
is the path where you have the mbr-backup
stored.
Common errors
If the Master boot record is broken, your reckoner may show some of the following errors:
- Fault loading operating system (see our Error loading operating system: Ready for Windows XP, Vista, 7, eight, 10 guide)
- Operating System non found(encounter our Operating Organization non found or missing: Fix for Windows XP, Vista, 7, 8, 10 guide)
- Invalid division tabular array(run across our Invalid partition tabular array: Fix for Windows XP, Vista, 7, viii, viii.ane and x guide)
- No bootable medium found(see our No bootable medium institute: Set up for Windows XP, Vista, 7, viii, 8.1 and 10 guide)
- Reboot and select proper kicking device(see our Reboot and select proper kick device: Gear up for Windows XP, Vista, seven, 8 and x guide)
Other errors can be shown, depending on many factors, that are caused past a damaged boot tape.
Prepare the MBR with Piece of cake Recovery Essentials
Piece of cake Recovery Essentials, our bootable recovery and repair CD/USB, is guaranteed to repair most damages done to the Master kick record (MBR) using its Automated Repair characteristic for Windows XP, Vista, 7 or 8:
- Download Easy Recovery Essentials. Choose your Windows version (XP, Vista, 7 or 8) before downloading.
- Burn the prototype. Follow these instructions on how to burn down the bootable ISO image very carefully, equally making a bootable CD tin can be catchy!
- Boot Like shooting fish in a barrel Recovery Essentials
- Choose Automated Repair option and click Keep
- Choose your Windows installation bulldoze's letter (unremarkably it's
C:\
) and click on Automatic Repair - Piece of cake Recovery Essentials volition now begin
- In one case the process is complete, click Restart
- Done. Windows XP, Windows Vista, Windows 7 or Windows eight should properly load at present.
You tin can download Easy Recovery Essentials from here.
Prepare the MBR in Windows XP
Windows XP users tin utilise the fixmbr
command to repair the MBR. You lot need the original Windows XP installation CD to run Recovery Console and run the fixmbr utility.
If yous don't have the Windows XP installation CD to run Recovery Console, go to Fix MBR with Like shooting fish in a barrel Recovery Essentials.
The fixmbr command is simply available for Windows XP and Windows 2000.
The instructions to run fixmbr are:
- Kick from the Windows XP CD
- At the "Press any cardinal to boot from CD…" message, press any primal to kicking into the CD
- When the Welcome to Setup screen appears, press R to open up Recovery Console
- At the "Which Windows installation would you like to log onto" question, type
1
and hit Enter, if your Windows XP is the only operating organisation on your hard drive - At the "Blazon the Administrator countersign" question, enter the password and hit Enter afterwards
- Type
fixmbr
If the "Are you certain y'all want to write a new MBR?" bulletin appears, press Y and striking Enter
- Printing Enter
- Wait for the process to finish. The fixmbr utility software will repair any damage to the master boot record.
- Remove the Windows XP CD
- Type
exit
- Printing Enter to restart your computer
If you weren't able to boot your computer considering of a damaged MBR, the higher up instructions should set it and your Windows XP should start normally.
If the fixmbr command doesn't work, endeavor using the map command to get the right bulldoze name where you want to repair the Master boot tape:
- Type
map
- Hit Enter
- Wait for the output of the map utility:
C: NTFS 1024MB \Device\Harddisk0\Partition1 Eastward: \Device\CdRom0
The higher up output is an example. The output for your calculator can exist different, but notation the drive letter for the particular with
Harddisk0
, in this caseC:\
.
Fix the MBR in Windows Vista
Windows Vista uses a different utility to fix the MBR than XP does, the bootrec
control.
You need your original Windows Vista installation CD/DVD to run the bootrec utility.
If y'all don't have the Windows Vista installation CD/DVD to run Control Prompt, go to Fix MBR with Piece of cake Recovery Essentials.
The instructions are:
- Boot from your Windows Vista installation CD or DVD
- Choose your language and keyboard layout
- At the Welcome screen, click on Repair your computer
- Choose the operating system and click Next
- When the System Recovery Options window appears, click on Command Prompt
- When Control Prompt appears, type these commands:
bootrec /FixMbr bootrec /FixBoot bootrec /RebuildBcd
You can type
bootrec.exe
for a full description of above commands. - Press Enter later on each command
- Wait for the functioning to finish. If it was a success, a confirmation message will appear on the screen.
- Remove the CD/DVD from the disk tray
- Type
exit
- Hitting Enter and restart your figurer
Yous can run Startup Repair for Windows Vista earlier running bootrec.exe to endeavour and fix the kick mistake automatically. The steps to run Startup Repair are:
- Kicking from the installation CD/DVD
- Click on Repair your computer, subsequently you select the language and keyboard layout
- Choose your operating system from the listing, click Next
- When the System Recovery Options dialog appears, click on Startup Repair
- Wait for the process to finish. Restart your computer when prompted by the organization
Another alternative is to completely rebuild the BCD, if the bootrec /rebuildbcd command doesn't work. When y'all are at the Command Prompt, type the following commands:
bcdedit /export C:\bcdbackup c: cd boot attrib bcd -s -h -r ren c:\kicking\bcd bcd.backup bootrec /rebuildbcd
Afterwards each control, hit Enter.
Gear up the MBR in Windows 7
You demand your original Windows 7 installation DVD to boot into System Recovery Options and run Command Prompt.
If you don't have the Windows seven installation CD/DVD to run Command Prompt, go to Fix MBR with Easy Recovery Essentials.
The instructions are:
- Boot from the Windows 7 installation DVD
- At the "Press any cardinal to kick from CD or DVD…", press whatever key to kick from the DVD
- Select a language
- Select a keyboard layout
- Click Next
- Select the operating organization and click Next. The "Employ recovery tools that can help fix bug starting Windows" must be checked when yous select the operating system.
- At the System Recovery Options screen, click on Control Prompt
- When Command Prompt successfully loads, type this command:
bootrec /rebuildbcd
- Press Enter
- Type the adjacent command:
bootrec /fixmbr
- Printing Enter
- Blazon the next command:
bootrec /fixboot
- Press Enter
- Remove the installation DVD from the deejay tray and restart your computer
If bootrec /fixmbr
and bootrec /fixboot
doesn't work, try restoring the boot sector lawmaking of your Windows 7:
- Make up one's mind the bulldoze letter of the alphabet of your Windows installation CD/DVD by typing these commands in the Command Prompt:
diskpart select deejay 0 listing volume
- Await for the "CD-ROM" give-and-take in a "Type" column. This item is your CD/DVD installation drive letter of the alphabet. If the bulldoze letter of the alphabet is
D:\
, type these commands:get out D: cd boot dir
If the bulldoze letter is different than D:\, replace the 2nd control with the bulldoze letter yous take noted from the previous listing volume command.
- Type this command:
bootsect /nt60 SYS /mbr
- Press Enter
- Remove the CD/DVD from the disk tray
- Type
exit
- Press Enter to restart your computer
Fix the MBR in Windows 8 or viii.1
Y'all need the original Windows viii or 8.1 installation DVD to repair the Master boot record.
If you don't have the Windows eight/8.1 installation CD/DVD to run Command Prompt, go to Prepare MBR with Easy Recovery Essentials.
The instructions are:
- Kick from the original installation DVD (or the recovery USB)
- At the Welcome screen, click Repair your figurer
- Choose Troubleshoot
- Cull Control Prompt
- When the Control Prompt loads, type the following commands:
bootrec /FixMbr bootrec /FixBoot bootrec /ScanOs bootrec /RebuildBcd
- Press Enter after each command and expect for each operation to finish
- Remove the DVD from the deejay tray
- Type
exit
- Striking Enter
- Restart your reckoner and check if Windows eight/8.i can now boot
If bootrec utility doesn't fix your Windows 8/8.1, try following the next commands to ready the EFI bootloader of the Windows 8/8.1:
- Kicking from the installation DVD or the Windows viii or Windows viii.1 recovery USB
- Click Repair your computer
- Cull Troubleshoot
- Cull Command Prompt
- Type these commands in order and hit Enter after each:
diskpart sel deejay 0 list vol
These commands volition select the beginning disk of your computer and the listing all the partitions available on that disk.
- Cheque for the book item that has the Fs cavalcade FAT32. The EFI sectionalisation must exist formatted under FAT32. If the book number of EFI partitioning is "two", type the following command:
sel vol 2
If the book number is different than 2, supersede "2" with the number available on your calculator.
- Assign a letter to this segmentation, a letter that is different that those already available on your estimator, for instance
x:\
. Type this control to assign the alphabetic character:assign letter=x:
- Look for the success message to announced:
DiskPart successfully assigned the drive letter or mount point.
- Blazon
leave
to quit the DiskPart utility:exit
- Blazon this command and replace x:\ with the letter y'all assigned earlier to the EFI partition:
cd /d ten:\EFI\Microsoft\Kick\
- Then type the bootrec command to repair the book:
bootrec /fixboot
- Now you lot need to backup the old BCD and recreate a new one. Type:
ren BCD BCD.backup
- Blazon this control to recreate the BCD and supercede the x:\ with the assigned letter earlier:
bcdboot c:\Windows /l en-us /south x: /f ALL
- In above command, Windows is installed on
c:\
. If the bulldoze letter where your Windows 8/8.1 is installed is different, supervene upon c:\ with your bulldoze letter. - Remove the DVD from the disk tray
- Type
get out
- Restart your computer
Fix the MBR in Windows 10
Y'all demand the original Windows x installation DVD to repair the Primary boot record.
If y'all don't have the Windows 10 installation DVD to run Command Prompt, go to Ready MBR with Easy Recovery Essentials.
The instructions are:
- Boot from the original installation DVD (or the recovery USB)
- At the Welcome screen, click Repair your computer
- Choose Troubleshoot
- Choose Command Prompt
- When the Command Prompt loads, type the post-obit commands:
bootrec /FixMbr bootrec /FixBoot bootrec /ScanOs bootrec /RebuildBcd
- Printing Enter after each control and wait for each operation to cease
- Remove the DVD from the disk tray
- Type
exit
- Hit Enter
- Restart your computer and check if Windows x can now boot
If bootrec utility doesn't set up your Windows 10 installation, try following the adjacent commands to fix the EFI bootloader:
- Boot from the installation DVD or the Windows 10 setup or recovery USB
- Click Repair your computer
- Choose Troubleshoot
- Cull Control Prompt
- Type these commands in society and hit Enter later on each:
diskpart sel disk 0 list vol
These commands will select the first disk of your calculator and the list all the partitions available on that disk.
- Check for the volume item that has the Fs column FAT32. The EFI partition must be formatted under FAT32. If the volume number of EFI division is "2", type the following command:
sel vol 2
If the volume number is different than 2, replace "2" with the number available on your computer.
- Assign a letter of the alphabet to this sectionalisation, a letter that is unlike that those already bachelor on your computer, for instance
x:\
. Type this control to assign the letter:assign letter of the alphabet=x:
- Expect for the success message to appear:
DiskPart successfully assigned the bulldoze letter or mount point.
- Blazon
exit
to quit the DiskPart utility:exit
- Type this command and replace x:\ with the letter y'all assigned earlier to the EFI partition:
cd /d x:\EFI\Microsoft\Boot\
- And so blazon the bootrec command to repair the volume:
bootrec /fixboot
- Now you need to fill-in the one-time BCD and recreate a new 1. Type:
ren BCD BCD.backup
- Blazon this command to recreate the BCD and replace the x:\ with the assigned alphabetic character earlier:
bcdboot c:\Windows /l en-us /s ten: /f ALL
- In to a higher place command, Windows is installed on
c:\
. If the drive alphabetic character where you accept Windows x installed is different, replace c:\ with your bulldoze letter of the alphabet. - Remove the DVD from the disk tray
- Blazon
exit
- Restart your reckoner
More Information
Support Links
- Piece of cake Recovery Essentials for Windows – our repair and recovery disk.
Information technology'due south an easy-to-apply and automated diagnostics disk. It's available for Windows 8, Windows vii and Windows Vista. Information technology's also available for Windows XP and Windows Server.
Read more than at Windows Recovery Disks.
- The NeoSmart Support Forums, member-to-member technical support and troubleshooting.
- Get a discounted price on replacement setup and installation discs: Windows XP, Windows Vista, Windows vii, Windows viii, Windows 10, Windows eleven.
Applicable Systems
This Windows-related knowledgebase article applies to the following operating systems:
- Windows XP (all editions)
- Windows Vista (all editions)
- Windows vii (all editions)
- Windows viii (all editions)
- Windows 8.1 (all editions)
- Windows ten (all editions)
- Windows 11 (all editions)
Advise an edit
Source: https://neosmart.net/wiki/fix-mbr/
Posted by: jacksonhury1958.blogspot.com
0 Response to "How To Repair Windows 7 By Command Prompt"
Post a Comment