Modify GRUB to resolve computer startup error: Error 17
The original computer has c,d,e,f,g. C-Disk Windows system disk, G-Disk installed CentOS. Later, due to the need, the compression volume of the way from the D-disk compression of an H disk. And then start the computer again when you encounter an error : Error
Reason:
is to install Linux after installing Windows first this way, grub is booting from CentOS on the G-disk, and now the partition has a new logical partition, which causes the disk system symbol to move backwards, so that grub fails.
Solution:
1, burn a Linux installation USB drive, enter the BIOS to modify the boot entry, boot from the USB stick.
2, I was using the Redhat 7.0. After booting the USB stick, enter the troubleshooting option and enter the Rescue a @#%$%% option. Enter the shell mode.
3, use fdisk-l to view all partitions of the computer in shell mode, and find the original CentOS partition as SDB9. The Grub command enters the grub,root (hd1,8) command specifies the partition, Setup(HD1) installs grub to the corresponding partition, and quit quits grub.
This time the hard drive starts again and you can see grub already. But only windows can start, CentOS boot will error, error, cannot mount ...
4. Start the USB stick again and enter the shell mode under rescue. See if there is a problem with the Grub configuration file for the Linux system, I looked at it, and there is no problem.
#mkdir linux#mount /dev/sdb9 linux#cd linux#cd grub#vi grub.conf
5, the hard disk boot into the Grub interface, move the cursor to the Linux startup options, press the e key, modify the boot sequence. Modify the root (hd0,7) option to root (hd0,8), Enter. It's ready to start.
New Skill get!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Modify GRUB to resolve computer startup error: Error 17