Modify GRUB to resolve computer startup error: Error 17

Source: Internet
Author: User

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

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.