LINUX環境構築/CentOS4.0/grubのtimeout設定

Last-modified: 2006-12-13 (水) 10:06:51

grubのタイムアウト

デフォルトで5秒になっている。ちょっと短い。

sudo pukiwiki_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 (hd1,0)
#          kernel /vmlinuz-version ro root=/dev/hdb3
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5     <===ここ
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-42.0.3.EL)
       root (hd1,0)
       kernel /vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/ rhgb quiet
       initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS-4 i386 (2.6.9-42.EL)
       root (hd1,0)
       kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/ rhgb quiet
       initrd /initrd-2.6.9-42.EL.img
title windowsXP
       rootnoverify (hd0,0)
       chainloader +1

timeout=10に変更する

  • /etc/lilo.confと違い、ファイルを編集するだけでよい
  • liloの場合は、liloコマンドを実行してバイナリに設定を反映する必要がある