grub-install(8) の使用例

MBRにGRUB一次ローダをインストールし、その1次ローダが1.5次ローダや2次ローダを読み込むよう、一連のGRUB環境を整えるシェルスクリプト。内部でgrub(8)コマンドを呼び出している。

使い方

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

[root@localhost ~]# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(hd0)     /dev/sda
[root@localhost ~]#

関連項目


  • grub(8)
  • grub.conf(5)

コメント