Repair win 7 bằng command prompt

-

Please try Startup Repair manually first & then boot repair Windows 7 using command prompt when your computer does not start. It"s easier.


*

Step 7. Select the operating system Windows 7 in the System Recovery Options window & click Next. Sometimes, you will not see any operating system in this window, please click Load Drivers to install drivers for your disks.

Bạn đang xem: Repair win 7 bằng command prompt

*

Step 8. Select Startup Repair in the System Recovery Options and it will automatically start to repair boot sector or MBR in Windows 7. Just wait patiently until the process is completed & click Finish.

Boot Repair Windows 7 from Command Prompt

When you try to lớn manually run Startup Repair using installation disc, you may find startup repair not working sometimes and ask you to restore your computer with System Restore. Click Restore if you have a working restore point.

If not, click Cancel. Then, you will see the Windows cannot repair your computer automatically screen with 2 options at the lower location, select "View advanced options for system recovery và support". After that, you will go back to the System Recovery Options window & select Command Prompt to boot repair Windows 7. 

*

Also, if you don"t want to lớn perform Startup Repair, you can still open the command prompt window by pressing "Shift + F10" in the first Install Windows screen. Then, it will automatically pop up.

Wait a minutes, please try Windows 7 startup repair command prompt chkdsk lớn scan the integrity of your tệp tin system & hard drive so as to rule out the physical problem of hard drive. Because it can also damage the boot sector & MBR. Then, try other command prompt below. 

Way 1: Windows 7 boot repair with Bootrec

Step 1. In the command prompt window, type the following command line & hit Enter after each one.

bootrec /fixmbr bootrec /fixbootbootrec /scannosbootrec /rebuildbcdbootsect.exe /nt60 all /force

Notes: ❤ The option /fixmbr  is to lớn fix MBR in Windows 7.❤ The option /fixboot is lớn repair boot sector in Windows 7.❤ The option /scannos is to fix bootmgr is missing in Windows 7 command prompt.❤ The option /rebuildbcd is lớn rebuild your BCD and get the missing Windows installations back.❤ The bootsect.exe /nt60 all /force is khổng lồ rebuild the boot sector for Windows. Among them: >> The /nt60 parameter applies the master boot code that is compatible with BOOTMGR. The /all argument updates the master boot code on all partitions.>> The /force parameter forcibly dismounts the volume(s) during the boot code update so that the Bootsect.exe tool does not gain exclusive volume access.

Step 2. Exit the command prompt window & restart your computer.

Way 2: Repair boot sector in Windows 7 using DiskPart 

If the bootrec /fixmbr and bootrec /fixboot doesn’t work, you can try to restore the boot sector code of your Windows 7 with steps below.

Step 1. In the command prompt window, type the following command line in order & then hite Enter.

diskpart

select disk 0

list volume

d:

cd boot

dir

bootsect /nt60 SYS /mbr

Notes: ❤ The command line from diskpart to các mục volume is to find the drive letter of your installation disc. Pleasae check the “Type” column which contains the word “CD-ROM”, here take D: as an example.❤ The command line bootsect /nt60 SYS /mbr is lớn restore boot sector code using installation disc.

Step 2. Remove the installation disc and restart your computer.

Way 3: Rename & rebuild BCD via NotePad 

If the above command prompt does not work for you, you still can try to backup and rename BCD first và then rebuild it via CMD.

Step 1. In the command prompt window, type bcdedit /export C:BCD_Backup to create a backup for BCD. 

Step 2. Then, type notepad in the command prompt window. Youw ill see a pop up window, click File > mở cửa > Computer, find the BCD tệp tin and rename it as BCD.old. After that, save the change and exit this window.

Xem thêm: Cách Nào Để Xem Mục Đã Lưu Trên Facebook Máy Tính Và Điện Thoại

*

Step 3. Now, you will go back khổng lồ the command prompt window. Type bootrec /rebuildbcd and hit Enter. Type Yes to confirm if you asked.

Step 4. Type bcdedit /enum all in the window. Then, hit Enter.

Step 5. Type exit & reboot your computer.

Way 4: Rebuild BCD without notepad

Step 1. In the command prompt window, type the command line below và hit Enter after each one.

bcdedit /export C:BCD_Backup

c:

cd boot

attrib bcd -s -h -r

ren c:ootcd bcd.old

bootrec /RebuildBcd

Note: c: refers to the location of your Windows.

Step 2. Exit the command prompt window & restart your computer.

Way 5: Boot repair Windows 7 without disk

Step 1. Turn on your computer, press & hold the F8 key to lớn go lớn the Advanced Boot Options screen, then choose Safe Mode with Command Prompt.

*

Step 2. You can try command prompt for Windows 7 boot repair above và see if it works.

Useful tip: backup computer to lớn greatly reduce data losses

You never know when your computer will crash or becomes unbootable, thus it"s suggested lớn backup system with a free backup software like AOMEI Backupper Standard. Here are some advantages of it.

It has 3 backup types. You can choose to create a full backup every time or backup only changed files with incremental or differential backup. It supports Windows 11/10/8/7/XP/Vista.

In addition, its advanced edition has more useful features, such as, sự kiện triggers, USB Plug in, etc. For hệ thống users, you can directly download AOMEI Backupper vps edition.

For IT Technician, you could use AOMEI Backupper Technician. It allows you lớn create portable version of this software and use it on any computer without installing. It"s very convenient for IT maintenance and support engineers.

To backup your computer, you can tải về the backup software and open it. Then, click Backup, select System Backup and follow on-screen instructions to backup your computer. Also, you can choose other backup types.