Dual-system grub repair MBR

Source: Internet
Author: User

Motivation: Dual-system grub repair MBR
Prerequisites: Ubuntu 9.04. Other System methods are similar.
Applicable: Windows and Linux dual systems are installed on different partitions, And the Linux boot program grub is installed on MBR by default.
Problem description: Linux cannot be started because grub in MBR is damaged after Windows is reinstalled.
Implementation: 1. Insert the Linux installation CD, select the first CD for trial, and enter the Linux Default User Name Ubuntu password is blank.
2. Start the terminal command system, enter the command sudo grub (Press ENTER), and enter the grub command environment.
3. Enter two commands in the following format:
Root Space (hdx, Y)
Setup space (hdx)
The first command indicates the partition of the root file system in Linux. X indicates the number of the hard disk in the nth part,
Numbers are from 0, 1, 2... usually a hard disk is attached to the computer. Therefore, hd0 is used here; y indicates the partition where the disk is located.
When Linux is started, the information displayed on the first black screen is what we need. You can also enter commands in the terminal.
View sudo fdisk-l
The second command installs grub on the hard disk MBR (primary boot sector ).
4. Note that there is a space between the command and the parameter. Otherwise, an error message is displayed.
Effect: very simple !!

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.