歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 修改grub.conf設置多操作系統的啟動順序

修改grub.conf設置多操作系統的啟動順序

日期:2017/2/28 17:41:55   编辑:Linux教程
vi /boot/grub/grub.conf

  linux版本不同grub.conf的位置可能不同。用vi打開它

  打開如下所示

  default=1
  timeout=10
  splashimage=(hd0,6)/boot/grub/splash.xpm.gz
  title Red Hat Linux (2.6.20-8)
   root (hd0,6)
   kernel /boot/vmlinuz-2.6.20-8 ro root=LABEL=/
   initrd /boot/initrd-2.6.20-8.img
  title Windows2000
   rootnoverify (hd0,0)
   chainloader +1

  default=1既操作系統的啟動順序,現在我的默認是1,那麼默認啟動的就是第2個title的系統windows2000,如果設置為0,那麼啟動第1個title的red hat

  注意:有人問設置為2為什麼不是啟動的第2個title啊,因為默認是0為第1個title。如果設置為2反而是又回到啟動的第1個title系統了,依次類推,3又是第2個系統了。
Copyright © Linux教程網 All Rights Reserved