Install the system and run grub: "grubloading ...... Gruberror15"

Source: Internet
Author: User
Install the system and run grub: "grubloading ...... Gruberror15 "-- general Linux technology-Linux technology and application information. For more information, see the following section. When only grub> appears on the screen, many people are overwhelmed, so they often reinstall linux or even windows. In fact, this problem is easy to solve. First, for beginners to see this article, enter the following characters after grub>:

Grub> root (hd0, 0)
Grub> rootnoverify (hd0, 0)
Grub> chainloader + 1
Grub> boot
In this way, you can enter the windows system, if your windows system is placed in the first partition of the hard disk.
Well, there are still some things to do after entering the system. Because the problem is not completely solved, if you
When you restart the instance, you will find that the grub> prompt still appears after the instance is started.

To completely solve the problem, we need to understand some concepts.
What is grub? Grub is the system boot loader. When we start the system, the BIOS starts to detect system parameters, as shown in figure
Memory size, CPU model, hard disk type, etc. After the BIOS self-check, the control will be handed over to the 0-cylinder on the hard disk.
1. The program on the MBR to guide the system (if it is set to hard disk boot first ). And this program
For windows NT kernel systems, ntloader is generally grub or lilo for linux. If
If these programs are damaged or the configuration file cannot be found, the system cannot be booted. For example, windows 2000 users have
NTLDR is missing ...... This indicates the windows boot program
If it is damaged or cannot be found, the solution is to use a 2000 installation disk to repair the system. If the linux boot process
What if grub is damaged or the configuration file cannot be found ?? Then reinstall grub. In fact, grub>
It is a good thing to know. This is just because the graphic file splash.tar.gz specified in the configuration file cannot be found in grub.
So there is no graphical interface guide. To enable the GUI boot mode, you must enter
Modify the configuration file of grub in linux. The file is/boot/grub/menu. lst. As follows:
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 7)
# Kernel/vmlinuz-version ro root =/dev/hda10
# Initrd-version.img/initrd
# Boot =/dev/hda
Default = 0
Timeout = 10
Splashimage = (hd0, 7)/grub/splash.xpm.gz
Title Red Hat Linux (2.4.20-8)
Root (hd0, 7)
Kernel/vmlinuz-2.4.20-8 ro root =/dev/hda8 vga = 791
Initrd/initrd-2.4.20-8.img
Title Windows 2000
Rootnoverify (hd0, 0)
Chainloader + 1
Title Mandrake 9.2
Rootnoverify (hd0, 12)
Chainloader + 1
Title Slackware 9.1
Rootnoverify (hd0, 13)
Chainloader + 1
Title FreeBSD 5.1
Rootnoverify (hd1, 0)
Chainloader + 1

Do you think of the title Windows item? By the way, we just used the following command
Boot to windows. Similarly, we can use the following command of Red Hat to access linux.
You can modify the configuration file of grub.
Grub> root (hd0, *)/* Partition Number of the root partition.
/Partition Number */
Grub> kernel/vmlinuz-* ro root =/dev/hda */* vmlinuz is your system kernel file, you can
Use the tab key to automatically complete. root =/dev/hda * is the Partition Number of/partition. Note that
Hd0 and * are slightly different from hda *. hd0 and 0 correspond to hda1 and other classes.
Push. Ro means read only. It loads the kernel in read-only mode */
Grub> initrd/initrd-*/* root directory image file, used to load root partitions not in ext2 format, if your
/Is ext3 or another type, so it is best to write it. You can also use the tab to complete */
/Is ext3 or another type, so it is best to write it. You can also use the tab to complete */
Grub> boot

Then you can enter linux. If you cannot enter linux (xwindow) in the graphic interface, modify it on the Character interface.
You must use the vi editor to modify the settings. I will not talk much about vi usage.

Of course, you can use a CD or a floppy disk to boot to linux. Detailed methods can be found on the layout.

I often see that partition numbers are changed because partitions are modified using PQ. Therefore, the content in the menu. lst file is similar to the actual content.
This is not the case. For example, if your/boot is hd0 or 7, after PQ is used, it will become hd0, 8, or other partition numbers.
Grub cannot find the graphic file/boot/grub/splash.xpm.gz to be used for startup. Of course, no graphic file will appear.
The wizard interface is displayed. After you have set the parameters, if no graphic menu is displayed, you can
Use grub-install/dev/hda or hdb to reinstall grub to MBR.

The common solution is to run fdisk/mbr after entering DOS.
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.