Solaris のシステム管理 (基本編)

x86: システムを実行レベル S (シングルユーザーレベル) でブートする方法

次の手順に従って、システム (現時点では実行レベル 0 になっている) システムを実行レベル S でブートします。

  1. Type any key to continue プロンプトが表示されている場合は、任意のキーを押してシステムをリブートします。

    あるいは、リセットボタンを使用することもできます。システムが停止している場合は、電源スイッチを押してシステムを起動します。

    「Current Boot Parameters」メニューが、数分後に表示されます。

  2. b -s と入力して、システムを実行レベル S でブートします。Enter キーを押します。

    5 秒以内に選択しない場合、システムは自動的に実行レベル 3 でブートします。

  3. プロンプトが表示されたら、スーパーユーザーのパスワードを入力します。

  4. who -r を使用して、システムが実行レベル S になっていることを確認します。


    # who -r
       .       run-level S  Jul 19 14:37     S      0  3
  5. 実行レベルを S に移行して行う必要がある保守作業を行います。

  6. システムを実行レベル 3 に戻すには、Control + D を押します。

x86: 例 — システムを実行レベル S (シングルユーザーレベル) でブートする


Type any key to continue
            .
            .
            .
 
                     <<< Current Boot Parameters>>>
Boot path: /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0:a
Boot args: 
Type    b [file-name] [boot-flags] <ENTER>      to boot with options
or      i <ENTER>                               to enter boot interpreter
or      <ENTER>                                 to boot with defaults
 
 
                     <<< timeout in 5 seconds>>>

Select (b)oot or (i)nterpreter: b -s
              .
              .
              .
INIT: SINGLE USER MODE

Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):  xxx
Entering System Maintenance Mode
              .
              .
              .
# who -r
   .       run-level S  Jul 19 14:37     S      0  3
(システム保守作業を行う)
# <Control + D を押す>