ASUS – Eeeシリーズ- ASUS Eee PC 1001HA (Seashell)のCentOSを5.6から5.7にバージョンアップしたら、grubのデフォルトで起動するOSがWindowsXPからCentOSに変わっていました。
普段使うときはWindowsXPの方を優先したいので、変更方法をメモ。
grubの設定ファイルは/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 do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,5) # kernel /boot/vmlinuz-version ro root=/dev/sda6 # initrd /boot/initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,5)/boot/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-274.18.1.el5) root (hd0,5) kernel /boot/vmlinuz-2.6.18-274.18.1.el5 ro root=LABEL=/ rhgb quiet initrd /boot/initrd-2.6.18-274.18.1.el5.img title CentOS (2.6.18-274.el5) root (hd0,5) kernel /boot/vmlinuz-2.6.18-274.el5 ro root=LABEL=/ rhgb quiet initrd /boot/initrd-2.6.18-274.el5.img title Other rootnoverify (hd0,0) chainloader +1
こんなふうになっていました。OtherがWindowsXP。0から始まって3つ目なので、10行目のdefault=0をdefault=2に変更し再起動。これでOKでした。