Fixed CentOS 6.4 Grub startup

Source: Internet
Author: User

Cause and solution: it may be grub. the configuration of the conf file is incorrect, or the files under/boot/grub and/boot are lost. First, judge whether the system tries to start the file manually. Maybe the files are still running and can be started, check grub. incorrect conf

Step 1

Grub> root (hd0, 0)

### If you do not know whether boot is installed in the first partition, use find/grub. conf to check whether cat (hd0, 1)/etc/fstab can find the UUID of/partition.

Step 2

Grub> kernel/vmlinuz-xxxxx ro root =/dev/sda2

### Use kernel space or press the TAB key to output the file. You can use root = UUID = xxxx for the subsequent root partition.

Step 3

Grub> initrd/intfsram -- xxx

### Version 6.4 has been renamed

Step 4

Grub> boot

Step 5

### Modify the grub. conf file and save it for the next normal start #3

### Edit grub. conf ###

Default = 0

Timeout = 5

Titile = RedHat

Root (hd0, 0)

Kernel \ xxxxx ro root = xxxxx

Initrd \

### If all files under/boot/are lost, the resuce mode is required ###

Chroot/mnt/sysimage

Mount/dev/cdrom/mnt

Cd/mnt/Packets

Rpm-ivh kernel-xxxx -- force

### Be sure to add the vmlinuz files under/boot/after force is installed ###

After the experiment is restored, it will take some time for The selinux tag to be automatically restored by the system. Later, The selinux tag needs to be restarted.

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.