现在我的系统里安装的是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)
下面的文章有详细的介绍
阅读(1501) | 评论(0) | 转发(0) |