Win7: Dual-boot fix

Source: Internet
Author: User

Problem 1: the original system XP is on the C drive. Install Windows 7 to D on Ghost. Obviously, Windows 7 of drive D is not guided and must be repaired manually.

Solution: [add a comment ]:

1. Enter the C drive XP and run cmd to enter the XP command line mode. Input
D:
Cd d:/Windows/system32
Bcdboot D:/Windows/l zh-CN/s c:
After running the preceding command, the/boot folder and the bootmgr file are generated in the root directory of the C drive.
[A complete win7 environment is available under drive d, and the only thing lacking is the boot in the system disk. Therefore, we must first re-build the boot environment in drive C. This can be easily achieved through the built-in bcdboot command in Windows 7. This command cannot modify the boot record. I have verified it with vhd]

2. Go to win7to install the optical disk, find the bootsect.exe file (download one online if you cannot find it, pay attention to win7), and copy it to the C:/boot/folder. Then go to the command line:
Cd c:/boot
Bootsect/nt60 C:
Bootsect/nt60 C:/MBR
After this command is executed, XP cannot be restarted before all subsequent steps are completed. Otherwise, XP cannot be started!
[Bootsect -- used to write the boot information required by win7 to the Boot Record. The first bootsect command writes the boot information to the Boot Record of drive C, and the second bootsect command writes the boot information to the Master Boot Record of the hard disk. Because both the Master Boot Record and Partition Boot Record are modified to support bootmgr, the XP Boot Loader ntldr cannot be booted, And we will fix it later]

3. Continue to the command line mode of XP, enter
D:
Cd d:/Windows/system32

Bcdedit/create {ntldr}/D "Windows XP"
Bcdedit/set {ntldr} device boot
Bcdedit/set {ntldr} path/ntldr
Bcdedit/displayorder {ntldr}/addlast
Bcdedit/timeout 10

[In this step, we use the bcdedit command to recreate the boot item for XP in BCD. In this way, the bootmgr is used to load the XP boot item in BCD, and then the startup control is handed over to the XP Boot manager ntldr to start XP]

Now, the dual-system boot recovery is complete.

In the preceding command, each command must be successful. Possibly, the bcdedit command returns the failure information. The command in step 3 is changed:

Bcdedit/store c:/boot/BCD/create {ntldr}/D "Windows XP"
Bcdedit/store c:/boot/BCD/set {ntldr} device boot
Bcdedit/store c:/boot/BCD/set {ntldr} path/ntldr
Bcdedit/store c:/boot/BCD/displayorder {ntldr}/addlast
Bcdedit/store c:/boot/BCD/timeout 10

Bytes ----------------------------------------------------------------------------------------------

Question 2: If Windows 7 is installed on drive C, how can I install XP on drive D and fix the boot?

Solution:

1. If XP is normally installed on the D Drive:

After the installation is successful, the win7 boot will be overwritten by the XP boot. Therefore, you need to manually repair the win7 boot in XP. Method 1. The command is as follows (do not comment, please understand)

Bootsect/nt60 C:
Bootsect/nt60 C:/MBR

Cd c:/Windows/system32

Bcdedit/create {ntldr}/D "Windows XP"
Bcdedit/set {ntldr} device boot
Bcdedit/set {ntldr} path/ntldr
Bcdedit/displayorder {ntldr}/addlast
Bcdedit/timeout 10

2. If XP is installed to the D disk Through Ghost:

In this case, the xp of the d disk lacks boot, and you need to manually restore the XP boot in win7. The method is as follows:

2.1 putNtldr,Ntdetect.com,Boot. iniCopy the three files to the C root directory.

2.2 modifyBoot. iniTo set the correct boot path for the XP drive D. (The original path is drive C)

2.3 run cmd as an administrator and enter the following command:

Bcdedit/create {ntldr}/D "Windows XP"
Bcdedit/set {ntldr} device boot
Bcdedit/set {ntldr} path/ntldr
Bcdedit/displayorder {ntldr}/addlast
Bcdedit/timeout 10

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.