Modify grub to solve the computer startup ERROR: ERROR 17, gruberror

Source: Internet
Author: User

Modify grub to solve the computer startup ERROR: ERROR 17, gruberror
Modify grub to solve the computer startup ERROR: ERROR 17

The original computers include C, D, E, F, and G. C drive windows system disk, and G drive with Centos installed. Later, as needed, the compression volume is used to compress an H disk from the D disk. Then I encountered an error when I started the computer again:ERROR 17

Cause:
In this case, grub is guided by Centos on the G disk after windows is installed. A new logical partition is created before the partition, as a result, the disk system symbol is moved to the backend, so grub fails.
Solution:
1. Burn a Linux installation USB flash drive and enter the BIOS modification startup Item to start from the USB flash drive.
2. I use redhat 7.0. After the USB flash drive is startedTroubleshootingOption, and then enterRescue a # % $ %. Press enter to enter shell mode.
3. Use it in shell modeFdisk-lView all the computer partitions and find the original Centos partition as sdb9.GrubCommand to go to grub,Root (hd1, 8)Command to specify the partition,Setup (hd1)Install grub to the corresponding partition,QuitExit grub.

When the hard disk is started again, grub is displayed. But only windows can be started. When Centos is started, ERROR 17, Cannot mount ......

4. Start the USB flash drive again and enter the shell mode under rescue. Check whether there is a problem with the grub configuration file in Linux.

#mkdir linux#mount /dev/sdb9 linux#cd linux#cd grub#vi grub.conf

5. When the hard disk is started, go to the grub interface, move the cursor to the Linux Startup option, and pressEKey to modify the startup sequence. ModifyRoot (hd0, 7)Option:Root (hd0, 8), Enter. You can start it.

New Skill Get!

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.