QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1234|回复: 9

如何修改grub

[复制链接]
发表于 2003-4-19 14:12:27 | 显示全部楼层 |阅读模式
我 的 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,7)
#          kernel /boot/vmlinuz-version ro root=/dev/hda8
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-
        root (hd0,7)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title win 2000 pro
        rootnoverify (hd0,0)
        chainloader +1
   

   每次启动他的默认系统是redhat ,如何修改grub使默认起动是win2000?
发表于 2003-4-19 14:51:36 | 显示全部楼层
修改default就可以了:)
default=1
回复

使用道具 举报

 楼主| 发表于 2003-4-19 15:15:58 | 显示全部楼层
thank you
回复

使用道具 举报

发表于 2003-4-19 18:09:12 | 显示全部楼层
修改后,还要grub-install /dev/hd**
其中hd**是LINUX做装的分区!
不执行grub-install /dev/hd**估计是行不通!
回复

使用道具 举报

发表于 2003-4-19 20:57:33 | 显示全部楼层
grub下不用执行
grub-install /dev/hd**
回复

使用道具 举报

发表于 2003-4-19 21:18:39 | 显示全部楼层
呵呵,好象要吧!我在修改grub.conf的时候都执行一下!
回复

使用道具 举报

发表于 2003-4-19 22:10:57 | 显示全部楼层
俺不改  
回复

使用道具 举报

发表于 2003-4-19 22:21:07 | 显示全部楼层
[quote:bde60832f1="bixuan"]呵呵,好象要吧!我在修改grub.conf的时候都执行一下![/quote]
不用,lilo修改了配置文件后要重写lilo,但grub不用,grub的使用很灵活
回复

使用道具 举报

发表于 2003-4-20 00:04:38 | 显示全部楼层
我今天用了1G的空间装了Red Hat Linux 7.2.4 此前系统已经安装了 Red Hat Linux 8.0
安装完后重新启动,
只能引导 7.2!
//
我mount 8.0 /boot分区, cp 了一份grub.conf 将里面的引导内容贴在了 7.2 的grub.conf 里,
就可以在 7.2 的grub中看到 8.0,并且可以引导8.0,
//
似乎,不用
grub-install
回复

使用道具 举报

发表于 2003-4-20 17:57:39 | 显示全部楼层
哦,改天我试试!!谢谢!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 20:46 , Processed in 0.082389 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表