Linux System Management single-machine system management-boot and shutdown

Source: Internet
Author: User

First, boot and shutdown


============== Boot =================


Boot: is the standard term for "Start computer".

Main boot sector: disk NO. 0 cylinder, a sector of number NO. 0 head, 512 bytes in size.

MBR: The operating system is written during installation, but is not part of the operating system, 446 bytes. Identify and load

Partition table: Records how many partitions and partitions of a hard disk have various properties, 64 bytes, 4 primary partitions

GRUB: is a boot loader from the GNU project. It allows users to have multiple operating systems at the same time on the computer and select the operating system that they want to run when the computer starts

Lilo


Steps for the boot process:

1, the BIOS power-on self-test

2. Read the MBR from the main boot sector and identify the active partition

3. Load and initialize the kernel

4. Detection and configuration of equipment

5. Creating kernel Processes

6, operator intervention, for manual guidance

7. Execute the System startup script

8. Multi-user mode operation


Init executes the system's startup script, Init defines 7 runlevel, and the/etc/inittab file tells Init what to do at each runlevel.

At machine boot, init runs from run level 0 to the default run level set in/etc/inittab, starting from level up.

The same process is performed in reverse order when the machine is closed.

K and S,k: Numeric order increment, S: numeric order Descending. Function: Fine-grained control of the start-up sequence of the service.


Some of the tasks performed in the startup script:

Set the computer name

Setting the time zone

Check Disk

Mount File System

Delete old files from/tmp

Configuring network Interfaces

Start the waiting process and network services


================= Restart and shutdown =================

Power off

Shutdown

Shutdown-h now

Shutdown-h 9:30 "9:30 the system will shut down, please do before the shutdown of the preparation work"

Halt

Reboot

Init n

Poweroff



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.