0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linux起動メッセージの整理(個人メモ)

0
Posted at

はじめに

Linuxの起動では、BIOS(UEFI)→ブートローダ→カーネル→initの順に処理が進み、それぞれの段階で異なるメッセージが表示されるので、
いつ、何が表示されるのかを整理します。

BIOS / UEFI

主な役割:
ハードウェアの初期チェック(POST)を行い、起動デバイスを決定する。OSとは無関係。

表事例:

Memory test...
Checking NVRAM...
Detecting IDE drives...
CPU information...
Press DEL to enter setup
Boot device priority

ブートローダ起動(例:GRUB 2)

主な役割:
OSを選択し、カーネルとinitrdをメモリにロードし、カーネルパラメータを渡す。

表事例:

GNU GRUB version 2.x
Select kernel to boot
Loading kernel...
Loading initial ramdisk...
Booting Linux...

カーネル起動

主な役割:
Linux本体が起動し、デバイス認識・ドライバ読み込み・メモリ管理を行う。カーネルパラメータもここで反映される。

表事例:

Linux version 5.x
CPU detected...
PCI device found
USB new device detected
SCSI disk detected
EXT4 filesystem mounted
ACPI initialized
ide_setup:hdd=ide-scsi
Network driver loaded

init起動(例:systemd)

主な役割:
ユーザ空間スタート。サービス起動やランレベル(ターゲット)を管理する。

表事例:

Starting network...
Starting sshd...
Starting cron...
Starting firewalld...
Reached target Multi-User.
Login:

まとめ

BIOS/UEFIではHWの初期チェックkカーネルパラメータやデバイス検出のログはカーネル段階、サービス起動のログはinit段階にある。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?