[Linux] Flow from power-on to PC startup

Rough flow

  1. The BIOS goes to read the master boot record
  2. Start the boot loader in it. (Boot loader: Program for booting the OS)
  3. Refer to the partition table which boot sector the boot loader reads (which OS to boot)
  4. Read the boot selector because you know the OS to boot by looking at the partition
  5. When the boot sector is read, the program for booting the OS starts.
  6. OS boot program boots the OS

Linux systems run in the following order

  1. Check the boot memory of the BIOS, load the hardware settings, check the boot device, and run the boot loader stored in the boot device's MBR.
  2. Load the bootloader kernel into memory and pass control to the OS. GRUB2 and GRUB are often used as boot loaders used in Linux, but LILO is used in older directory views. In addition, SYSLINUX is used for live media booted from DVD or USB.
  3. Kernel and initramfs memory load First, load the kernel. The kernel then mounts the initramfs and loads the kernel modules stored in the initramfs. By loading the kernel module, you will be able to load all the necessary drivers and mount the root file system.
  4. Mount the root file system Find, check for errors, and mount the root file system.
  5. Starting the init process The process init with process ID 1 is started to initialize the system. After that, start the service according to the runlevel.

Recommended Posts

[Linux] Flow from power-on to PC startup
Flow from installing Ubuntu to installing chainer by making your own PC
How to operate Linux from the console
Flow from source code to creating executable
Introducing Docker Engine to Linux From Scratch
[Amazon Linux] Switching from Python 2 series to Python 3 series
Easy script migration from CentOS to Oracle Linux
Sum from 1 to 10
How to operate Linux from the outside Procedure
How to handle Linux commands well from Python
[Linux] Introduction to Linux
[Python] Flow from web scraping to data analysis
Back up from QNAP to Linux with rsync
From easy git installation to docker startup python
How to "cache enabled" access to FPGA memory from Linux
How to install Linux on a 32bit UEFI PC
Copy files directly from Amazon EC2 (Amazon linux) to S3
[Amazon Linux 2] Change from public key authentication to password authentication
ODBC access to SQL Server from Linux with Python
Changes from Python 3.0 to Python 3.5
Changes from Python 2 to Python 3.0
Introduce serverspec to Linux
Transition from WSL1 to WSL2
Linux commands to remember
From editing to execution
Building Linux From Scratch 10.0
[Linux] Copy data from Linux to Windows with a shell script
[Linux] Compress folders and transfer files from remote to local
Linux script to convert Markdown files from JupyterLab format to Qiita format
Connect to KUINS-III (Kyoto University VPN) from Linux using PPTP
After all, the story of returning from Linux to Windows
Connect to KUINS-III (Kyoto University VPN) from Linux using IKEv2