Grub common error 1

Source: Internet
Author: User
Grub common error 1-Linux general technology-Linux technology and application information. The following is a detailed description. 1. Grub loading, please wait...

Symptoms:

GRUB loading stage 1.5

GRUB loading, please wait...

After the text appears on the screen, the system stops. If you try to use a linux boot floppy disk (that is, grub installed on the floppy disk), you can boot the system.

Solution:

Set the bios of the Local Machine. Do not use floopy as the first boot device. Use hard drive as the first boot device.

For gentoo users, the error CFLAGS will also cause this error. Although the current grub ebuild file has filtered out-fstack-protector, however, it is a good solution to re-compile grub with a clean CFLAGS when the problem persists.

# CFLAGS = "-O2-march = i686-fomit-frame-pointer-pipe" emerge grub

2. Grub Error 12

Symptoms:

Error 12: Invalid device requested.

This symptom occurs when the device descriptor is correct but an unspecified error occurs later.

Solution:

This error usually occurs when you use the interactive Grub installation method (that is, the installation method under Grub>) without entering the following two lines.

Grub> root (hd0, 0)

Grub> setup (hd0)

(Hd0, 0) must be replaced by your own boot sector, (hd0) must also be replaced by your hard drive, because The essence of The above two commands is to install bootloader on The master Boot Record of The first hard disk (The primary Master.

3. Grub Error 15

Symptoms:

This error may occur in two different phases of Grub configuration, one of which may occur in the Grub installation and configuration phase (that is, when Grub is installed on MBR). The screen is shown as follows:

Grub> root (hd0, 0)

Filesystem type is xfs, partition type 0x83

Grub> setup (hd0)

Checking if "/boot/grub/stage1" exists... no

Checking if "/grub/stage1" exists... no

Error 15: File not found

When linux or other systems listed in the Grub boot list are selected after the computer is started, the screen is displayed as follows:

Booting 'gentoo Linux'

Root (hd0, 0)

Filesystem type is ext2fs, partition type 0x83

Kernel (hd0, 0)/boot/kernel-2.4.20 root =/dev/hda3 vga = 792

Error 15: File not found

Press any key to continue...

Solution (Case 1 ):

This error occurs when the specified file cannot be found, but other configurations such as the disk or partition information are normal at this time (just find the corresponding partition or disk, right or not ). Generally, most files that are not found are kernel files. First, check the kernel in your/boot. If you need the complete kenel file name in/boot, use livecd, after the rescue disk or another linux system installed on the hard disk is successfully booted, mount the/partition and/boot (if necessary) specified during Grub configuration ), then use chroot to enter the root partition at that time and use the following command for search.

# Cd/boot

# Ls

If the kernel File is lost, go to/usr/src/linux (before that, check that the source code of the kernel is placed in the directory) and compile the file again. The command is as follows:

# Cd/usr/src/linux/

# Make menuconfig

# Make

Copy the file to/boot:

# Cp/usr/src/linux/arch/i386/boot/bzImage/boot

Rename the kernel, just as you specified in grub. conf. By the way, check whether the partition referenced by the kernel row in grub. conf is correct.

In addition to the loss or damage of the kernel, the BIOS cannot identify the stages for storing Grub and the hard disk partition of the kernel, and the same Missing error will also occur. The stages and kernel partitions that store Grub at the same time should not use software RAID-5 (or other partitions that use optimized storage technology, such as LVM or LVM2.
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.