| 网站首页 | 新闻中心 | 系统安全 | 网络安全 | 安全技术 | 下载中心 | 安全365社区 |
安全365
收藏本站
设为首页
会员登录:
安全365
站内搜索: 新闻中心 系统安全 网络安全 安全技术 下载中心
| 系统安全首页 | 漏洞分析 | 入侵检测 | 升级补丁 | 安全配置 |
在GRUB中修改多操作系统的默认启动顺序
在GRUB中修改多操作系统的默认启动顺序
作者:metallic… 文章来源:赛迪网 点击数: 更新时间:2007-9-4 1:33:28
 

如果你是使用的Grub作为主引导程序引导双系统(Windows & Linux)的话,可以通过以下操作把windows设为默认启动的操作系统,调整两个操作系统在屏幕上的显示顺序(一般情况下grub把linux设为默认启动,而windows显示为dos):

1. 用root账户登陆到linux

2. vi /etc/grub.conf,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,4)
#          kernel /boot/vmlinuz-version ro root=/dev/hdc5
#          initrd /boot/initrd-version.img
#boot=/dev/hdc
default=0
timeout=10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
password --md5 $1$sefuvF4T$uet8lieX0oTII1lsnZGLJ/
title Red Hat Linux (2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1

3.修改grub.conf文件就可以解决启动顺序问题(也可以是/boot/grub/menu.lst),修改后的文件如下:

# 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,4)
#          kernel /boot/vmlinuz-version ro root=/dev/hdc5
#          initrd /boot/initrd-version.img
#boot=/dev/hdc
default=0
timeout=10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
password --md5 $1$sefuvF4T$uet8lieX0oTII1lsnZGLJ/
title DOS
rootnoverify (hd0,0)
chainloader +1
title Red Hat Linux (2.4.20-8)
root (hd0,4)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
文章录入:郝丽    责任编辑:郝丽 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
     
     
     
    给IE加个参数 永远不怕I
    关于Linux系统下Grub启动
    介绍Linux操作系统下修改
    永远不怕IE主页被修改
    修改十四项设置 打造安全
    将IP地址被非法修改的麻
    让你的Linux支持WEB修改
    使用 WINDOWS XP 组策略
    修改IIS的Banner隐藏操作
    防止入侵 两步修改XP远程
    站长邮箱:webmaster@anquan365.com
    联系电话:86-10-67634029 点击这里给我发消息

    Copyright © 2006-2008 www.anquan365.com 北京华安普特网络科技有限公司 版权所有