Log analysis and repair of system faults in Linux

Source: Internet
Author: User

steps :

1 viewing and analyzing /var/log/messsages log Files

2 viewing and analyzing user login logs

L AST: command is used to query user records that successfully log on to the system

L The ASTB command is used to query user records for logon failures

MBR Sector Failure

1. backing up MBR sector data

the first hard drive (SDA) of the MBR sector Backup to page 2 Fast drive. SDB 1 in the partition ( Mount Road /opt/

directory )

"fault emulation" reads the bytes of data from the device file Zerozhoong , overwriting it to the 1 Fast Drive (SDA,) thereby destroying data in the MBR sector

Restart the system , you will receive a "operating system not found" prompt message , Unable to start the host because an available operating system could not be found

recover from a flush backup file MBR Sector Data

Use REHL5 installation CD Boot , when the installation Wizard "boot" prompt , enter "Linux rescue" and enter , will be guided to the CD in the First Aid mode Linux Systems

Default language--------->continue------> Warning whether to initialize disk "No"

" OK " after confirmation, enter the " sh-3.2# " Prompt for the Bash Shell Environment


mount a hard disk partition that holds backup files (SDB1), restore data to hard disk "/dev/sda"

executes after a recovery operation has completed " Exit " command to exit the temporary shell Environment , the system will restart automatically.

After rebooting, you can see that the system is working properly. ~~~~end~~~~~



Log analysis and repair of system faults in Linux

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.