grub

Last-modified: 2008-07-15 (火) 16:56:51

インストールのステップ

ステップとしては3つにわかれます

  • grubをOSへインストール
    OSインストールマニュアルを参照します。rpm/yum/emergeなどが使えます。
  • grub.confの書き換え
    grub.confもしくはmenu.lst(前のバージョンとの互換性)を修正します。
  • grubをMBRにインストールします
    システムブート時にgrubが呼び出されるようにします。

grubをMBRにインストールする

  • grubルートファイルシステム(/bootが位置するディスク)へ移動します
    - hd0と物理ディスクをリンクします
      device(hd0) /dev/sda /dev/sdb /dev/sdc ....
    - ルートファイルシステムを設定します
      root(hd0, 0)
  • MBRにgrubをインストールします
      setup(hd0)
  • MBRにgrubをインストールする際には2つの方法があります。setupもしくはinstallが使えます。


    Command: install [@option{--force-lba}] [@option{--stage2=os_stage2_file}] stage1_file [@option{d}] dest_dev stage2_file [addr] [@option{p}] [config_file] [real_config_file]
    This command is fairly complex, and you should not use this command unless you are familiar with GRUB. Use @command{setup} (see section setup) instead.

参照) http://www.linuxselfhelp.com/gnu/grub/html_chapter/grub_12.html#SEC80

grubトラブル

http://www.supergrubdisk.org/

[参照]

Red Hat Linux 9: Red Hat Linux 参照ガイド GRUB用語