Restore Grub of Fedora after Windows is reinstalled
Source: Internet
Author: User
Article Title: Fix Grub of Fedora after Windows is reinstalled. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open-source systems. place the first disk to the optical drive, restart the machine, and use the optical drive to guide the system in BOIS.
2. After the installation interface is displayed, select F5 (Linux Rescue) (a prompt will be displayed). The previous version of linux may be F4. in Fedora core 3, F5 is fixed.
3. boot prompt appears. Enter linux rescue and press enter here. Then, you will be prompted to select the language you want to install. You can select either Chinese or English. Press enter all the time. When you are prompted to configure the network, you choose NO.
4. The sh 3.0 # prompt appears. Enter grub and press enter to go to grub>
5. Enter grub> root (hdX, Y) under grub>)
Grub> setup (hd0)
(The value of x and y is assigned based on the actual situation. I only have one hard disk. windows and linux are installed on this disk. Therefore, x = 0. in linux, I have two partitions: hd0 and hd1, 0 is the swap partition, 1 install linux, so y = 1)
6. After you press enter, a message is displayed. If all of them are succeed, the repair is successful. Then we exit and restart the system.
7. Enter reboot under grub> and return to boot: Enter exit at the prompt. After the system is restarted, go to grub and select windows and linux.
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