Manual grub boot and repair of win7 Mbr

Source: Internet
Author: User


Grub manual boot, repair win7 Mbr I. Boot Linux to enter the grub menu interface, press the "c" key to enter the grub command mode. 1. Specify the partition where/boot is located. For example, the partition is the first partition of the first hard disk, that is, hd0, 0 grub> root (hd0, 0). 2. Specify the kernel, find the vmlinuz file. Grub> kernel/vmlinuz www.2cto.com Note: if the file is not in the root directory of the corresponding disk partition, you must use the file path in a folder, for example, in (hd0, 0) in the isolinux folder under the partition, the command is kernel/isolinux/vmlinuz. The same method is used for specifying the initrd file. 3. Specify initrd to find initrd. Grub> initrd/initrd4. Start to boot. Grub> boot 2. When windows is restarted to enter the grub menu interface, press the "c" key to enter the grub command mode. Note that (hd0, 0) is the windows system installation disk number. Www.2cto.com grub> rootnoverify (hd0, 0) grub> chainloader + 1 grub> makeactivegrub> boot 3. Remove unnecessary boot guide items from WIN7 to install the dual system multiple times, sometimes there are multiple boot pilot projects, which are useless. If you delete them as follows: Use the built-in Windows 7 command to delete your specified boot pilot item, which is BCDEdit. Open the CMD window, enter bcdedit in the command, and press enter to view all the current startup items. Each startup Item has its own ID, such as {bootmgr}, {ntldr}, {current}, and the "identifier" in the form of {XXXXXXXXX-XXXX-XXX-XXXX-XXXXXXXXX ", the command to delete a boot guide is bcdedit/delete {ID}/f. Note: The ID must be replaced by the sequence number in the braces of the preceding boot item. Do not delete the current Boot. Do not delete the linux boot in use. Iv. windows repair MBR after dual-system installation and installation on the linux system through the Master Guide, if you directly format the disk where the linux is located, windows will not be able to boot. In this case, you need to repair windows MBR. Xp can be repaired using winPE, while Win7 system disk does not have the PE function. However, you can use other methods as follows: 1. Insert the win7 installation disk into the optical drive or start it with USB (win7 supports USB Direct start and installation, but I have not tested the USB method); www.2cto.com 2. After selecting the language option, go to the next step, choose System Repair Under the system instead of continuing installation; 3. automatically search for the installed system and go to the next step; 4. do not enable automatic repair for Windows. If it is useless, enter the command prompt mode; 5. Enter the bootrec/fixmbr command and enter the bootrec/fixboot command. 6. restart the system to restart the Win7 startup mode. The following content is reprinted: I have not tested www.2cto.com to fix mbr. There is still a grub interface solution: bootsect.exe is included in the 1、win7installation disk. 2. Copy it to the system disk. Run bootsect/nt60/mbr on the win7 command line. 3. After successful execution, the mbr grub will be overwritten by nt60. 4. There will be no grub boot after restart. Author: GasLS

Related Article

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.