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.