重新编译内核后,grub怎么弄?
重新编译原内核,我的grub修改后......# 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,10)
# kernel /vmlinuz-version ro root=/dev/hdc12
# initrd /initrd-version.img
#boot=/dev/hdc
default=0
timeout=10
splashimage=(hd0,9)/grub/splash.xpm
title Red Hat Linux (2.4.20-8)
root (hd0,9)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Red Hat Linux hy
root (hd0,9)
kernel /vmlinuz-2.4.20-8custom ro root=/dev/hdc9
title windows xp
rootnoverify (hd0,0)
chainloader +1
起动不了
我把kernel /vmlinuz-2.4.20-8custom ro root=/dev/hdc9 改为
kernel /vmlinuz-2.4.20-8custom ro
能起动,但是boot文件夹里就只有一个什么kerner.h的文件什么也没有了 after u boot,
run command 'df' and post the output here. # df
文件系统 1K-块 已用 可用 已用% 挂载点
/dev/hdc11 3763372 2990016 58218884% /
/dev/hdc10 101089 12108 8376213% /boot
none 63016 0 63016 0% /dev/shm
/dev/hdc5 7800336 7202008 59832893% /mnt/d
/dev/hdc6 7800336 6912956 88738089% /mnt/e
/dev/hdc7 9339568 8980644 35892497% /mnt/f
/dev/hdc8 3064426 1442682 162174448% /mnt/g
我换了root=/dev/hdc10 或11,12都不行,提示说找不到文件. anyway the /dev/hdc9 is wrong,
can u change
title Red Hat Linux hy
root (hd0,9)
kernel /vmlinuz-2.4.20-8custom ro root=/dev/hdc9
to
title Red Hat Linux hy
root (hd0,0)
kernel /vmlinuz-2.4.20-8custom ro root=/dev/hdc11
?
u can check the grub posts in installation branch to know more info. 果然好用,谢谢了! welcome.:-D:-D:-D 为什么root(hd×,×)可以随意改啊? info grub, or read grub doc.
:-D:-D:-D
页:
[1]