Critical situations of RedHatEnterprise5 system faults include grub configuration file loss, fstab partition mounting table loss, And/boot system boot directory deletion failure recovery, this article provides a recovery policy for these three situations. One Grub configuration file loss fault recovery: Grub configuration file usually refers to/boot/grub. conf file, which indicates the partition from which the kernel and memory image (RAMDISK) files will be loaded during system boot.
The critical situations of RedHat Enterprise 5 system faults include grub configuration file loss, fstab partition mounting table loss, And/boot system boot directory deletion failure recovery, this article provides a recovery policy for these three situations.
Fault recovery for Grub configuration file loss:
The Grub configuration file generally refers to/boot/grub. conf file, which indicates the partition from which the kernel and memory image (RAMDISK) files will be loaded during system boot, the loss of this file will cause the computer to be stuck in the grub configuration interface at startup. To solve the file loss, the administrator needs to remember the basic configuration information of grub. conf, for example:
[Root @ localhost ~] # Cat/etc/grub. conf
Default = 0 # default number of systems loaded, starting from 0
Timeout = 5 # Time on the Grub configuration page at startup
Splashimage = (hd0, 0)/grub/splash.xpm.gz # Grub background image
Hiddenmenu # Hide a menu
Title Red Hat Enterprise Linux Server (2.6.18-8. el5) # operating system title
Root (hd0, 0) # operating system boot Partition
Kernel/vmlinuz-2.6.18-8.el5 ro root = LABEL =/rhgb quiet # Set the loaded kernel initrd/initrd-2.6.18-8.el5.img # Set the loaded memory disk file
Solution:
1. input the following statements in the grub configuration environment that the system starts;
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-8.el5 ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.18-8.el5.img
2. Press boot to start the instance;
3. Create a grub in/boot/grub. conf file (the file content is the content just displayed), or restore the backed up grub file to grub. conf; then the system can be properly guided after restart;