cwwhy 发表于 2003-8-9 11:52:52

重新编译内核后,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的文件什么也没有了

Dragonfly 发表于 2003-8-9 23:40:39

after u boot,
run command 'df' and post the output here.

cwwhy 发表于 2003-8-10 20:24:19

# 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都不行,提示说找不到文件.

Dragonfly 发表于 2003-8-10 23:06:38

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.

cwwhy 发表于 2003-8-12 07:08:17

果然好用,谢谢了!

Dragonfly 发表于 2003-8-12 11:36:43

welcome.:-D:-D:-D

风继续吹 发表于 2003-8-12 19:06:28

为什么root(hd×,×)可以随意改啊?

Dragonfly 发表于 2003-8-12 22:45:42

info grub, or read grub doc.
:-D:-D:-D
页: [1]
查看完整版本: 重新编译内核后,grub怎么弄?