|

楼主 |
发表于 2007-1-12 11:24:59
|
显示全部楼层
我的 PC 上的 grub 配置如下,PM 1.7G,SATA 硬盘。
- default saved
- timeout 5
- fallback 1
- title LFS 6.2 (2.6.18-fc6)
- root (hd0,7)
- kernel /boot/lfs-6.2-kernel-2.6.18-fc6 ro root=/dev/sda9 panic=10
- savedefault fallback
- # initrd /boot/initrd-2.6.18-fc6.img
- title LFS 6.2 (2.6.18.1)
- root (hd0,7)
- kernel /boot/lfs-6.2-kernel-2.6.18.1 ro root=/dev/sda8
- savedefault
复制代码
而服务器上的 grub 配置如下,Xeon 2.4G x2,SCSI。
- default saved
- timeout=5
- fallback 1
- splashimage=(hd0,0)/grub/splash.xpm.gz
- #hiddenmenu
- title New Kernel with panic test
- root (hd0,0)
- kernel /vmlinuz-2.6.14.2.SMP ro root=/dev/VolGroup00/LogVol00 panic=10
- savedefault fallback
- # initrd /initrd-2.6.14.2.SMP.img
- title New Kernel
- root (hd0,0)
- kernel /vmlinuz-2.6.14.2.SMP ro root=/dev/VolGroup00/LogVol00
- initrd /initrd-2.6.14.2.SMP.img
- savedefault fallback
- title Red Hat Enterprise Linux AS-up (2.6.9-42.EL)
- root (hd0,0)
- kernel /vmlinuz-2.6.9-42.EL ro root=/dev/VolGroup00/LogVol00
- initrd /initrd-2.6.9-42.EL.img
- savedefault
- title Red Hat Enterprise Linux AS (2.6.9-42.ELsmp)
- root (hd0,0)
- kernel /vmlinuz-2.6.9-42.ELsmp ro root=/dev/VolGroup00/LogVol00 apm=on apm=power-off
- initrd /initrd-2.6.9-42.ELsmp.img
复制代码
两个都是同样的问题,savedefault 是生效了,但 /boot/grub/default 却没有变化。运行 grub-set-default 确实改变了 /boot/grub/default,但重启后并没有使用指定的内核(RH AS4 上没有 grub-set-default,我从 PC 上拷贝了一个过去)。
如果选择 panic 的内核,在 panic=10 的时间过后主机重启,但重启后并没有按照配置中的设定那样使用指定的 fallback 内核,而仍然是那个 panic 内核,这样机器只能不停的重启!但如果我在 grub 界面按 'e' 进入编辑状态,选择 panic 内核的条目,但什么内容都不更改,则当 panic 内核
重启后,却 fallback 了。
我不知道是不是 GRUB 只能针对 IDE 硬盘,对 SATA/SCSI 无效? |
|