Chinaunix首页 | 论坛 | 博客
  • 博客访问: 845824
  • 博文数量: 221
  • 博客积分: 10033
  • 博客等级: 上将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-06 22:00
文章分类

全部博文(221)

文章存档

2010年(8)

2009年(1)

2008年(69)

2007年(63)

2006年(80)

我的朋友

分类: LINUX

2006-03-23 11:04:19

现在我的系统里安装的是windows和linux系统,刚知道怎么改先启动哪一个系统产,以前一直以为启动的顺序文件不在linux里,刚刚在网上找到了答案!
启动文件在linux下/boot/grub目录下, 用su进入root用户
打开 menu.list文件,
[root@localhost grub]# ls
device.map     grub.conf         minix_stage1_5     stage2
e2fs_stage1_5  iso9660_stage1_5  reiserfs_stage1_5  ufs2_stage1_5
fat_stage1_5   jfs_stage1_5      splash.xpm.gz      vstafs_stage1_5
ffs_stage1_5   menu.lst          stage1             xfs_stage1_5
[root@localhost grub]#
以下是这个menu文件的内容
# grub.conf 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,6)
#          kernel /vmlinuz-version ro root=/dev/hda8
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,6)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4)
        root (hd0,6)
        kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.11-1.1369_FC4.img
title windows xp
        rootnoverify (hd0,0)
        chainloader +1
~
~
~当default=0时表示启动第一个顺序的系统(linux)
当default=1时表示启动第二个顺序的系统(windows)
下面的文章有详细的介绍


阅读(1461) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~