Troubleshooting of common Linux systems

Source: Internet
Author: User
Preface O & M personnel often encounter various types of system faults. how to lock the root cause of the problem based on the fault characteristics requires not only skills, but also ideas and internal understanding of the system in case of faults, this article lists some common system faults and troubleshooting methods. Before that, you must first have a complete understanding of the system startup process so that you can determine which part of the process is involved after the problem occurs. Basic knowledge of Linux startup process 1. power-on self-check (PowerOnSelfTest) automatically ing ro upon startup

Preface

O & M personnel often encounter various types of system faults. how to lock the root cause of the problem based on the fault characteristics requires not only skills, but also ideas and internal understanding of the system in case of faults, this article lists some common system faults and troubleshooting methods. Before that, you must first have a complete understanding of the system startup process so that you can determine which part of the process is involved after the problem occurs.

Basic knowledge about the Linux startup process

1. power-on self-check (PowerOnSelfTest)

Automatically ing the program from the rom to the space where the cpu can be addressable. the cpu executes the command to check whether the basic hardware is normal.

2. BIOS (Boot Sequence)

If normal, find the MBR on the corresponding device according to the BootSequnece stored in CMOS.

3. MBR (BootLoader)

Read the BootLoader from the first MBR device and control it.

There are two common types of BootLoader in Linux:

LILO: LInux LOader (partition kernel after 1024 cylinder cannot be guided (embedded ))

GRUB: GRand uniied Bootloader

MBR has limited space and cannot display its features. Therefore, GRUB is divided into two-stage programs, as shown below:

The main purpose of Stage1 (in the mounted MBR) is to guide the second stage

Stage1.5 (/boot/grub/stage00005) identifies common file systems of different types

Stage2 (/boot/grub/Stage2) pilot the operating system (exceeding the 446-byte limit) and use the configuration file/boot/grub. conf

4. Kernel

Device Detection

Driver initialization (the driver module may be loaded from the initrd (RHEL6 initramfs) file)

Provides the kernel with the basic driver to access the root file system.

Mount the root file system as read-only

Load the first process init

5. init (etc/inittab)

/Sbin/init its configuration file (etc/inittab)

The main tasks of/etc/inittab are as follows:

1. set the operator level

2. run the system initialization script

3. run the script in the directory of the runtime level

4. set the Ctrl + Alt + Del key combination.

5. define operations performed by the UPS power supply in case of power supply failure/recovery

6. start 6 virtual terminals (level 2345)

7. start the graphic terminal (level 5)

Common system errors

1. forgot password

Start to enter single user mode

Summary:

1. identify fault characteristics of the problem

2. fault reproduction

3. use tools to collect further information and determine the root cause of the problem

4. eliminate the impossible reasons

5. fault locating

6. back up source files

7. try to use tools

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.