Fixed the bug of starting missing operating system in CentOS.

Source: Internet
Author: User

Fixed the bug of starting missing operating system in CentOS.

The problem I encountered during the installation was that after the installation, the system started to run missing operating system.

However, the system can be started when you plug in the USB flash drive and select the USB flash drive.

I checked the information and said it was a problem With grub. grub never heard of grubby. I only heard of grubby, haha!

By the way, post information

GRUB full. Known as. Grand uniied Boot Loader, It is the mainstream Boot guide manager for Linux operating systems. The main function is to start and load the Linux operating system. After BIOS self-check is completed during system startup, GRUB will be loaded immediately. The GRUB contains the code that can be loaded into the operating system and the code that passes the operating system boot permission to other boot guide managers. GRUB allows users to select different kernel to start the system, or set different startup parameters during system startup.

During the installation of the LINUX operating system, the USB flash disk is used for installation. The grub information of the boot is installed in the MBR of the USB flash disk by default, after the USB flash disk is removed, the startup process cannot read the code of the corresponding startup manager. As a result, the system cannot start.

1. Insert the USB flash drive used when installing the system and boot the LINUX system normally.

2. perform operations on the terminal:

[Root @ localhost ~] Grub

Grub> root (hd0, 0) ## (hd0, 0) indicates the first partition installed in the first hard disk recognized by the system.

(Note that there are spaces in the middle of root (hd0, 0). If there is no space, error 27 will occur)

Grub> setup (hd0)

Grub> quit

Then you need to modify two configuration files.

1./etc/grub. conf

2./boot/gurb/grub. conf

Install the root (hd1, 0) or others in the hd0, 0

So we can see that all the similar items need to be changed to hd0 and 0. Just save them and restart the computer to boot normally.

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.