Linux boot system and troubleshooting

Source: Internet
Author: User

One: Linux startup process:

Power-on self-test-"mbr boot (446 bytes loader, partition list 64 bytes, Magic 2 bytes)-" Grub menu (MBR is Grub's first field, second field exists in/boot/grub/)--"Load kernel kernel-" -"Start the first process init--" Find the initialization script/etc/inittab, this file has the default level--"Find the level-related startup script (such as/etc/rc.d/rc.sysinit, then find Level 3, read/etc/rc3.d)-" Boot script (/etc/rc.d/rc.local)--"Start the Mingetty process (through Mingetty generation terminal)

Two: Analog failure

Simulate master boot record MBR failure, how to troubleshoot

1:[root@lyt ~]# dd If=/dev/zero of=/dev/sda bs=446 count=1 #dd function is to copy a file with a specified size block, and to refer to it at the same time as a copy.

A fixed conversion. Dev/zero, is an input device that can be used to initialize files, BS is bytes,446 is the size of the MBR, the number of count=1.

2:[root@lyt ~]# Init 6 #将系统重启 to observe the startup results. The system cannot be as shown

3: After the boot input Linux rescue into the first aid mode, as shown:

4: Select the language, as shown in

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.