Fixing the Windows Bootloader by command line
If you have dual boot system like Windows xp and Windows 7 ,
After Repaired win xp there will not showing windows 7 boot loader in your boot menu.
Because win xp boot loader was overwrite win 7 boot loader.
Therefore install older O/S and have to Repair newer windows version Bootloader and can Add older windows path to that loarder.
While installing older version first and newer version after that. newer version windows (it is usefull for other O/S like Linux) will be replace newer boot loader and keep older boot loader for access older version.
But after repair or re install older version again. problem is arise...
To Repair that...
Put your Windows setup DVD or your System Repair Disc in the drive
and restart your PC.
Assuming you’ve properly configured your BIOS to
boot from CDs/DVDs before hard drives (or you can press DElL , F2 to go BIOS or press F8 before end up post test .
While restart after set First Boot device as CD /DVD you should get a prompt asking you to “Press any key to boot from the CD/DVD…“
Insert Windows installation Disk DVD to DVD Rom
Ex: Windows 7 DVD
Press a key, while prompting Boot from CD ...
and the CD will begin to load.
After loaded Windows Installation setup
, you’ll see a dialog asking you want to Install
Now, or in the lower left corner, an option to “Repair your Computer,”
which you’ll want to click.
If you’re using our recovery CDs, just go on
to the next section. If you’re having problems booting from the CD pls follow instruction with your BIOS.After selecting your language, the recovery CD will scan for
operating systems on your drive.
Select the operating system to repair
from the list displayed on the screen, then press next to
continue. Depending on which version of the CD you’re using, you’ll see a
welcome screen like the ones below:
pls select Repair
When running automatic process and showing it as fixed and restart. Don't Restart.
pls select advance recovery tools or cancel. After Display tools pls select Command Line.
Pls type the command
bootsect /nt60 c: /force /mbr
bcdboot c:\windows /s c:
What these commands do:
Writes a new mbr to c:
bootsect /nt60 c: /force /mbr
( command, /nt60 = use boot code that is compatible with BOOTMGR, / = force dismount, / = write mbr )
( bootsect does to touch mbr, it works on the selected drives…ahem….wait for it…bootsector)
Write a new bootloader to the C: drive
bcdboot c:\windows /s c:
( command, look in c:windows for files, copy files to c: (actually c:\windows\boot) )
If not Fixed pls type the drive that showing your DVD
Ex:
D:
D is my DVD Rom (Win 7 DVD in the Drive.
You can confirm it by this picture . There are Boot Folder , Boot mgr and Setup.exe files and folders in the DVD.
you can type this command to fix boot loader.
D:\> D:\boot\bootsect.exe /nt60 all
You will see showing the Msg after run the command " Successful "
Restart the PC
The Pc will boot in Windows 7 .
Now you can Add Windows Xp Boot line to Wi9ndows 7 Boot loader
Select RUN in Start Menu.
Type CMD
Right click on CMD.Exe and press Run as Administrator
Type following Command
bcdedit /create {ntldr} /d "Windows XP"
if showing boot menu is already exit pls type bellow commnds
bcdedit /set {ntldr} device partition=D:
after that
bcdedit /set {ntldr} path \ntldr
after that
bcdedit /displayorder {ntldr} /addlast
Also you can use EasyBCD free software to add xp boot line
select Add Entry
select windows xp /2000/...
enable check box for Determine Drive automatically
and select ok
For dual-booting and other boot related projects I use EasyBCD.
I highly recommend you check out this FREE program.
Dual-booting as well as bcd backup and repair are just some of the things you can do.
Link: https://neosmart.net/wiki/easybcd/tips-and-tricks/recovering-windows-bootloader/
Also you can use this command to fix "fatal error one more table pointers are invalid"
by
bootsect.exe /nt60 ALL /force
No comments:
Post a Comment