[Linux Notes] reinstall grub after windows

Source: Internet
Author: User

In fact, grub is written into MBR again.

For Ubuntu, I checked some information on the Internet. People use Ubuntu livecd and enter grub command to rewrite MBR.

I don't think you can get the grub command. I may not use Ubuntu CD for Ubuntu. I used to buy a fedora CD. I used to use fedora. In the past, I had a Windows reinstallation problem. I entered the fedora maintenance mode.

This attempt succeeded. Record now

 

1. Go to the fedora installation CD, install F5, enter Linux rescue, and perform some operations to enter the maintenance mode. It is actually a command of Linux.

2. Enter grub to enter grubProgram.

3. Input root (hd0, 10). My Linux is installed in the 10th partitions of hd0. You can press the tab key when you press "root (H". hd0 and hd1 are displayed. If you press the tab key "root (hd0,", the partition is displayed, as long as it is in the ext file system, it is basically a LINUX partition.

4. Enter setup (hd0 ). This sentence is written into MBR.

 

After it is started, you can see grub, but you don't know how to do it. When Linux is started, an error occurs. Press e and the result is changed to root (hd0, 9, maybe I modify the partition when I reinstall windows. I use e to modify and then B starts. Go to the system to modify the menu. LST file.

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.