Linux

grub1引导slackware

fedora 15所带的grub1默认只可以识别windows。

现在我的机器上还存在其他2个系统,必须手动引导。

[linuxsight@linuxsight ~]$ su
密码:
[root@linuxsight linuxsight]# cd /boot/grub
[root@linuxsight 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@linuxsight grub]# vim 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,5)
#          kernel /boot/vmlinuz-version ro root=/dev/sda6
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-26.rc1.fc15.i686.PAE)
root (hd0,5)
kernel /boot/vmlinuz-2.6.38.6-26.rc1.fc15.i686.PAE ro root=UUID=2b599501-2624-4c8a-b33e-2b043d5694e3 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=zh_CN.UTF-8 KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.38.6-26.rc1.fc15.i686.PAE.img
title windows xp
rootnoverify (hd0,0)
chainloader +1
title pcbsd 8.2
rootnoverify (hd0,1)
chainloader +1
title slackware13.37
kernel (hd0,4)/boot/vmlinuz root=/dev/sda5

这样可以引导slackware了。pcbsd也可以了。

(0)

本文由 Linux视野 作者:fantlam 发表,转载请注明来源!

关键词:, ,

热评文章

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注