linux 内核启动顺序修改
在一次安装linux系统后,服务器启动发现有两个内核,默认启动的第一个内核进不去系统并报错,第二个内核才是我们安装需要使用的内核,这样我们便需要更改内核的启动顺序。在手动进入linux系统后便可以查看相关文件修改内核启动顺序,并不是在启动内核选择界面直接修改。
可修改启动配置文件,更改系统默认加载的内核!
查看有两个f,分别是/f,还有/boot/f
两个文件应该是一样的
/f: symbolic link to `../boot/f'
#vi /f
# f 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,0)
#      kernel /vmlinuz-version ro root=/dev/sda2
#      initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-53.el5PAE)
      root (hd0,0)
      kernel /vmlinuz-2.6.18-53.el5PAE ro root=LABEL=/1 3 rhgb quiet
      initrd /initrd-2.6.18-53.el5PAE.img
conftitle Red Hat Enterprise Linux Server-xen (2.6.18-53.el5xen)
      root (hd0,0)
      kernel /-2.6.18-53.el5
      module /vmlinuz-2.6.18-53.el5xen ro root=LABEL=/1 3 rhgb quiet
      module /initrd-2.6.18-53.el5xen.img
title Red Hat Enterprise Linux Server-base (2.6.18-53.el5)
      root (hd0,0)
      kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/1 3 rhgb quiet
      initrd /initrd-2.6.18-53.el5.img
将其中的default =1就是内核的默认启动顺序,可以改为你需要的。(注:默认顺序是从0开始)。