3章
ブートローダ(BIOS)
- GRUB Legacyにはstage1,1.5,2がある
-
GRUB2で廃止
- 代わりにboot.img, core.img, 動的にロードされる複数のモジュール、になった
- boot.imgがMBR先頭446MBに乗るやつ
カーネルパラメータ
- GRUB Legacyでは
kernel
- GRUB2 では
linux
SMP: Symmetric Multi-Processing(対象型マルチプロセッシング)
- メモリ共有型並列コンピューティング
-
カーネルパラメータで無効化可能
- nosmp
- ncpus=1
ブートローダ(UEFI)
-
shim.efi
- efibootmgrで表示・編集
システム立ち上げの流れ
- read-onlyでfsck
- ファイルシステムが正常ならばread-writeで再度マウント
init起動に失敗するようになったら
ブートローダの指定で初期プロセスをinitから/bin/bash等にする
ランレベルの設定(SysVinit)
優先度
-
ブートローダの設定 (
/boot/grub/menu.lst
とか)kernel
(GRUB2ならlinux
)オプションにて指定
- ついで
/etc/inittab
ランレベルの設定(Systemd)
優先度
-
ブートローダの設定
systemd.unit=ターゲット名
-
ついで
/etc/systemd/system/default.target
へのsymlinksystemctl get-default
で表示、systemctl set-default
で変更できる
systemdの設定確認
systemd-delta
[EXTENDED] /run/systemd/system/user-1000.slice <E2><86><92> /[EXTENDED] /run/systemd/system/user-1000.slice <E2><86><92> /[EXTENDED] /run/systemd/system/user-1000.slice <E2><86><92> /[EXTENDED] /run/systemd/system/user-1000.slice <E2><86><92> /[REDIRECTED] /etc/systemd/system/default.target <E2><86><92> /u[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /[EXTENDED] /run/systemd/system/session-1.scope <E2><86><92> /
11 overridden configuration files found.
ユニットの種類
-
mount:
/etc/fstab
のマウント- スワップはswap unit
- automount:
/etc/auto.master
に記述されたオートマウント