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][command] ランレベルの切替方法_GRUB/GRUB2, Sysvinitt, systemd, init, telinit, systemctl

Last updated at Posted at 2025-01-20

起動プロセス

ブートローダ(GRUB/GRUB2)

  • ブート時に適用
  • OS起動後のランレベルを変更不可

変更方法

  1. システムの起動初期段階でGRUBのメニューが表示された際に、Eキーを押す
  2. 編集モードが表示される(キーボードでオプションを入力できる)
  3. ブートオプションを入力する
オプション
root=デバイス
nousb USBデバイスを使用しない
single シングルユーザーモードで起動する
1~5 指定したランレベルで起動する

初期化システム(SysVinit/systemd)

  • OS起動後のランレベルを変更可能

変更方法

SysVinit

bash
$ init 1

または

bash
$ telinit 1

systemd

bash
$ systemctl rescue

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?