Troubleshooting during linux Startup
Fault 1: The MBR is damaged www.2cto.com. If a CD is available, www.2cto.com will be directly installed to repair the MBR (Ensure that the hard disk has been installed with the system. first, we need to use the CD for boot to enter the installation item, type linux rescue to enter the First Aid Repair Mode 2. select language 3. select keyboard 4. select whether to enable the network. We only need to repair the system and do not need to enable the network function. try mounting the system 6. the system is mounted successfully. Wait for a shell, but the above prompt shows that it is only a temporary mount. Only wait for a shell. To become its system environment, run the command chroot/mnt/sysimage to fix the system restart failure. 2. If grub is damaged, the fault is fixed. If the system cannot be accessed, we can only manually specify the kernel and other programs to be loaded. enter grub>, enter the following command, and then use the boot command to restart grub> boot 2. normal System Access Then, manually add the startup configuration script to create the grub configuration file [root @ localhost ~] # Vim/boot/grub. add the following content to conf: default = 0 // default startup Item timeout = 5 // default wait time splashimage = (hd0, 0) /grub/splash.xpm.gz // grub option pattern hiddenmenu // hide menu title redhat 5.4 // set the title root (hd0, 0) // specify boot root boot disk kernel/vmlinuz-2.6.18-164.el5 ro root =/dev/sda2 quiet // specify kernel initrd/initrd-2.6.18-164.el5.img // specify driver file 3. restart, check the status of successful startup fault 3 mount file fstab configuration error fault troubleshooting according to the prompt, we can enter the system by entering the root password from the above error prompt, we can see that the Mount configuration of/boot is incorrect. You can enter After the password is entered, the system will correct the error. However, you will find that the/etc/fstab file is not writable and cannot be changed to remount the root partition, you can modify/etc/fstab !! Restart the system.