Recently, many friends have had problems with Windows 7 startup items when they restore or reinstall the system because they have dual systems installed. This problem is very annoying for enthusiasts. Ready to find answers in major forums and search engines, find a lot of messy solutions such as articles, materials, tutorials, etc., but have not been able to solve the problem, and finally! Through the small series of personal research, combined with the online scattered tutorials, summarize A set of more complete solutions! No need to use any extra tools, abandon idiot behavior, step into the master pure code to repair xp Windows7 startup items, let you want to change!
First, in repairing xp Before the Windows 7 startup item, it is necessary for Xiaobian to introduce you to the Windows boot order, so that everyone can understand the Windows system
xp:mbr-->ntldr-->boot.ini-- Here is the boot menu selection bar
Windows7:mbr-->bootmgr-->BCD--> Here is the Windows 7 boot menu.
From the top We can see that the most important file ntldr originally in Windows XP is not used in Windows 7.
1, if you only have one xp installed on the c drive, for some reason, "ldldr is missing" error, first make sure that your c drive ntldr file exists, and then use pe U disk to start ( Xiaobian never used CDs. In the command line, copy the Windows7 boot directory to the c drive first. Enter:
c:\\boot\\bootsect.exe /nt52 C: //nt52 represents the past NTLDR
Seeing successfully, you can successfully fix the xp boot menu.
2, if you only have one Windows7 installed on the c drive, for some reason, a startup error, please use pe to start (small series never used CD), copy the Windows7 boot directory to the c drive ,, input:
c:\\boot\\bootsect.exe /nt60 c: //Write NT boot information for the hard disk, /nt60 stands for bootmanager after Vista
Locate the bootmgr, if it still can't start, it may be BCD (equivalent to the boot.ini configuration file in xp). The boot list menu is lost. Workaround:
============================================ System32
bcdedit /store c:\\boot\\bcd /create {bb68514c-cff8-11dd-aca9-a775dac50ae8} /d "Microsoft Windows 7" /application osloader
bcdedit /store c :\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} device partition=C: //where C is your Windows 7 installation partition
bcdedit /store c:\\boot\\bcd /Set {bb68514c-cff8-11dd-aca9-a775dac50ae8} path \\Windows\\system32\\winload.exe
bcdedit /store c:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} locale zh-CN
bcdedit /store c:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} inherit {bootloadersettings}
bcdedit /store c:\\boot\\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} osdevice partition=C: //where C is your Windows 7 installation partition
bcdedit /store c:\\boot\\bcd /set {bb68514c-cff8- 11dd-aca9-a775dac50ae8} systemroot \\Windows
bcdedit /store c:\\boot \\bcd /set {bb68514c-cff8-11dd-aca9-a775dac50ae8} nx OptIn
bcdedit /store c:\\boot\\bcd /displayorder {bb68514c-cff8-11dd-aca9-a775dac50ae8} /addlast
bcdedit /store c:\\boot\\bcd /timeout 5
pause
======================= ========
Copy above to Notepad, then abc.bat [batch file] save; run
3. If you have two operating systems For example, the c drive is the xp d drive is Windows 7, for some reason, your Windows 7 boot menu is broken, the repair method is above. If you can enter xp, then you don't have to pe.
4, if you have two operating systems, such as c drive is xp d drive is Windows7, for some reason, your Windows7 boot menu does not have xp boot option!
=== ======================================================================================== "Microsoft Windows XP" (Add XP boot menu, the menu name is Windows XP);
c:\\windows\\system32\\bcdedit /set {ntldr} device partition=c: //C means xp installation The installation partition where it is located
c:\\windows\\system32\\bcdedit /set {ntldr} path \ tldr //(add NTLDR boot);
c:\\windows\\system32\\bcdedit /displayorder {ntldr} /addlast
========== Save as a bat file and run it ========
Of course, if you want to put the boot order Modify it to do this:
into WINDOWS7-open "computer" & rdquo; attributes - advanced system settings - "startup and failure recovery" set - & ldquo; default operating system & rdquo; WINDOWS7 changed to an earlier version WINDOWS (also known as XP) - check "Show operating system" List time & rdquo; time changed to 5 seconds - OK
Below, Xiaobian attached some use of BCDEDIT:
BCDEDIT - Start configuration data storage editor
The Bcdedit.exe command-line tool modifies the startup configuration data store. The startup configuration data store contains the startup configuration parameters
and controls how the operating system boots. These parameters were previously in the Boot.ini file (in BIOS-based operations
systems) or in stable RAM entries (in operating systems based on the Extensible Firmware Interface). You can use
Bcdedit.exe to add, delete, edit, and attach items in the launch configuration data store.
For more information on commands and options, type bcdedit.exe /? <command>. For example, to display
details about the /createstore command, type:
bcdedit.exe /? /createstore
Alphabetical order in this help file For a list of topics, please run "bcdedit /? TOPICS".
Commands executed on storage
========================================= One page 12 next page total 2 pages
For ease of use, Win7 system users will create folders to store files directly on t
How to use the win7 system computer dot matrix printer: 1. Click Start, find [Devices and Printers]
Usually printers in the office dont know how to add them. Today, PepsiCo Xiaobian tells you how to
The free upgrade to win10 official version of the system is only less than a month, many users upgra
Win7 computer shortcut key setting method
Win7 system repair disc production method (a)
Win7 system google browser can not open the web page processing method
Win7 system Internet Explorer has stopped working how to do
How to solve the problem that Win7 Task Manager title bar is missing?
Computer no reason black screen
Win7 right-click desktop icon is not locked to the taskbar option how to do
How to delete the floppy disk drive A icon in Win7
How does Win7 cancel file association? Win7 open PDF file associated error handling method
Win7 system IE browser prompts running error to correct the error how to do?
Solve the problem of Windows7 rejecting wireless routers
How to solve the Win10 group policy "namespace" occupation?
How to use the keyboard to operate the helper? The helper keyboard setting skills
Win10 start menu right click no response solution
Solution for installing MSN cannot be started after installing Kingsoft Protection Shield
Win7 desktop shortcut can not open how to do
Teach you to simply uninstall Oracle
Windows7 plugs in USB does not automatically play the solution