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][system] ブートローダ_GRUB Legacy, GRUB 2

Last updated at Posted at 2025-01-29

起動プロセス

GRUB Legacy

概要

  • ストレージ(HDDなど)から、OSのカーネルイメージをメモリにロードし、カーネルを実行する
  • バージョン0.9x

設定ファイル

  • 設定ファイルは/boot/grub/menu.lst
/boot/grub/menu.lst
パラメータ
説明
timeout メニューを表示している時間(秒)
default
title
root
kernel
makeactive
chainloader
hiddenmenu 起動時に選択メニューを表示しない

GRUB 2

概要

  • ストレージ(HDDなど)から、OSのカーネルイメージをメモリにロードし、カーネルを実行する
  • バージョン1.9x

設定ファイル

  • 設定ファイルは/boot/grub/grub.cfg←直接編集できない
  • /etc/default/grubまたは/etc/grub.dで設定、grub-mkconfigコマンドで実行
/etc/default/grub
パラメータ
説明
GRUB_TIMEOUT メニューを表示している時間(秒)
GRUB_DEFAULT
GRUB_CMDLINE_LINUX

GRUB Legacy・GRUB 2で共通

ブートオプション

オプション 説明
root=デバイス名 ルートファイルシステムを特定のデバイス(例: root=/dev/sda1)に設定する
init=パス 指定したシェル(例: init=/bin/sh)をinitの代わりに起動する
quiet 起動時の詳細なメッセージ(ログ出力)を非表示にする
single シングルユーザーモード(メンテナンスモード)で起動する
数字(0-6) 指定したランレベルで起動(GRUB 2の場合)

Ping-t

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?