UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

grubを編集する

grubを編集する


0.改訂履歴

  • 2005.09.05

1.はじめに

 このドキュメントでは,GRUBの設定について説明する. Windowsがインストールされているマシンに,後からRedHat Linuxをインストールした場合,マシンの起動時にデフォルトでRedHatが優先的に起動してしまう. これは,RedHatがNTLDRやboot.iniを置き換えるGRUBをインストールした為で,これを逆にWindowsを優先起動にするにする手順を確認する.

2.設定を確認する

  • Windowsのboot.iniに相当するgrub.confを確認する.
[root@pipin root]# cat /boot/grub/grub.conf       
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,6)
#          kernel /vmlinuz-version ro root=/dev/hda10
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.9-e.12)
        root (hd0,6)
        kernel /vmlinuz-2.4.9-e.12 ro root=/dev/hda10
        initrd /initrd-2.4.9-e.12.img
title DOS
        rootnoverify (hd0,0)
        chainloader +1
[root@pipin root]# 
  • 現在は,RedHat ESとDOSが選択できるようになっている.
  • これを,DOSがデフォルトで起動するように設定する.
[root@pipin root]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,6)
#          kernel /vmlinuz-version ro root=/dev/hda10
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title DOS
        rootnoverify (hd0,0)
        chainloader +1
title Red Hat Enterprise Linux ES (2.4.9-e.12)
        root (hd0,6)
        kernel /vmlinuz-2.4.9-e.12 ro root=/dev/hda10
        initrd /initrd-2.4.9-e.12.img
[root@pipin root]# 
  • 上がデフォルトなので,そのまま入れ替えるだけ.

広告スペース
Google