Solaris のシステム管理 (デバイスとファイルシステム)

Procedurex86: システムディスクにブートブロックをインストールする方法

  1. スーパーユーザーになるか、同等の役割を引き受けます。

  2. システムディスクにブートブロックをインストールします。


    # /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/cwtxdysz
    
    /boot/grub/stage1

    これは、パーティションのブートファイルです。

    /boot/grub/stage2

    これは、ブートブロックコードです。

    /dev/rdsk/cwtxdysz

    これは、Solaris ルートスライス上の GRUB メニューの場所 /boot/grub/menu.lst を表す raw デバイス名です。

    詳細は、installgrub(1M) のマニュアルページを参照してください。

  3. システムをリブートし、レベル 3 で実行することによって、ブートブロックがインストールされていることを確認します。


    # init 6
    

例 13–4 x86: システムディスクにブートブロックをインストールする

次の例では、ブートブロックを x86 システムにインストールする方法を示します。


# /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d0s0
stage1 written to partition 0 sector 0 (abs 2016)
stage2 written to to partition 0, 227 sectors starting 50 (abs 2066)