I. MBR errors due to unexpected reasons, the primary Boot Record is damaged. When a new user installs multiple operating systems, the system often installs Linux first and then installs Windows systems. Then, the system can only Boot Windows. In this case, you only need to re-install MBR in rescue mode. Situation description: You can only access the Windows system or the black screen without any prompt after the BIOS passes self-check after the system is turned on. Ii. BOOT program errors (lilo is no longer taken in RHEL5, mainly grub troubleshooting) grub. conf errors. Modified grub. co
I. MBR Error
Due to unexpected reasons, the primary Boot Record is damaged. When a new user installs multiple operating systems, the system often installs Linux first, then installs Windows systems, and then only guides Win. In this case, you only need to re-install MBR in rescue mode.
Situation description: You can only access the Windows system or the black screen without any prompt after the BIOS passes self-check after the system is turned on.
Ii. BOOT program errors (lilo is no longer taken in RHEL5, mainly grub troubleshooting)
Grub. conf error. After grub. conf is modified, or the physical location and partition of the hard disk change, the disk cannot be started normally. Go to rescue mode and modify grub. conf.
General Situation of grub
1. If the kernel (vmlinuz-x.x.x file) is not found ),
File not found
Press any key to continue ....
Root (hdx, x) error or incorrect Kernel File Name
2. If you find the kernel and run it for a while,
Kernel Panic: Not init Found,
Generally, root =/dev/xxx is not found.
3. If you find the kernel and run it for a while,
Kernel panic: VFS: Unable to mount root fs on ...,
In general it may be forgotten to add initrd/initrd-2.4.21-4.EL.img (most of the time it happens when using a scsi hard disk)
4. In general, there must be several lines in grub. conf.
# Vim/boot/grub. conf
Title Linux
Root (hd0, 0) #/location of the boot Partition
Kernel/vmlinuz-2.6.18-53.el5 ro root = LABEL = // # kernel and root partition (/partition) locations (root partitions may be LVM and raid, not just hdx and sdx, depending on the actual situation, there is a command I often use findfs LABEL = /)
Initrd/initrd-2.6.18-53.EL.img
The best way to practice the grub. conf menu file is to delete the file. When you restart the file, you can use the interactive command line of grub to familiarize yourself with the content in the file.