LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 893|回复: 6

哪位帮帖个Fedora7的Grub吧,我自己的坏了

[复制链接]
发表于 2007-10-27 12:35:50 | 显示全部楼层 |阅读模式
RT
帮帖下我好参考
在线等
发表于 2007-10-27 12:56:40 | 显示全部楼层
参考看grub.conf.sample吧
回复 支持 反对

使用道具 举报

发表于 2007-10-28 10:15:56 | 显示全部楼层
# 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,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.22.9-91.fc7)
        root (hd0,0)
        kernel /vmlinuz-2.6.22.9-91.fc7 ro root=LABEL=/ rhgb vga=0x318
        initrd /initrd-2.6.22.9-91.fc7.img
回复 支持 反对

使用道具 举报

发表于 2007-10-28 10:18:45 | 显示全部楼层
root=LABEL=/ rhgb 这句话什么意思。一直觉得rh和别人不一样。
别人都是root=(hd0,9)之类的。
回复 支持 反对

使用道具 举报

发表于 2007-10-28 10:21:37 | 显示全部楼层
参考一下吧,双系统:
# 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,1)
#          kernel /boot/vmlinuz-version ro root=/dev/sda2
#          initrd /boot/initrd-version.img
#elevator=deadline( as or cfq)
#boot=/dev/sda
#background bbbbbb
#foreground 3355aa
#color 333333
default=1
timeout=3
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
#gfxmenu (hd0,1)/boot/grub/message
#hiddenmenu#
#GNU Linux:
#1
title = Gentoo Linux ( 2.6.23:gentoo )
      root (hd0,1)
      kernel /kernel-genkernel-x86-2.6.23-gentoo-madeBYzzl root=/dev/ram0 real_root=/dev/sda8 video=uvesafb:1024x768-32,mtrr:3,ywrap splash=verbose,theme:livecd-2007.0 CONSOLE=/dev/tty1 quiet
      initrd /initramfs-genkernel-x86-2.6.23-gentoo-madeBYzzl
#2
title = Gentoo Linux ( 2.6.22:gentoo )
      root (hd0,1)
      kernel /kernel-genkernel-x86-2.6.22-reiser4-r8-madeBYzzl root=/dev/ram0 real_root=/dev/sda8 vga=0x318 video=vesafb:mtrr:3,ywrap splash=verbose,theme:livecd-2007.0 CONSOLE=/dev/tty1 quiet
      initrd /initramfs-genkernel-x86-2.6.22-reiser4-r8-madeBYzzl
#rhel 5
title = Redhat Linux Server 5
      root (hd0,2)
      kernel /boot/vmlinuz-2.6.18-8.el5 root=/dev/sda3
      initrd /boot/initrd-2.6.18-8.e15.img
#MS windows:
title = M$ Windows server 2003
       rootnoverify (hd0,0)
#       makeactive
       chainloader  +1
#For FreeBSD
# title = FreeBSD ( 6.2 )
# root   (hd0,2,a)
# kernel /boot/loader
#Others:
#Memtest86Plus
# title = Memory test( memtest86plus )
#      root (hd0,5)
#      kernel /boot/memtest86plus/memtest.bin
回复 支持 反对

使用道具 举报

发表于 2007-10-28 10:59:17 | 显示全部楼层
Post by Zeus2
root=LABEL=/ rhgb 这句话什么意思。一直觉得rh和别人不一样。
别人都是root=(hd0,9)之类的。


用这个命令就可以看到分区到label了:/sbin/blkid。

grub里写的就是根据分区的label来写的。写成(hd0,X)也可以啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-28 11:20:02 | 显示全部楼层
呵呵,问题解决了。谢谢LS的所有人。
回复 支持 反对

使用道具 举报

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

本版积分规则

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