QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 977|回复: 7

重新编译内核后,grub怎么弄?

[复制链接]
发表于 2003-8-9 11:52:52 | 显示全部楼层 |阅读模式
重新编译原内核,我的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-
        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的文件  什么也没有了
发表于 2003-8-9 23:40:39 | 显示全部楼层
after u boot,
run command 'df' and post the output here.
回复

使用道具 举报

 楼主| 发表于 2003-8-10 20:24:19 | 显示全部楼层
[root@hy root]# df
文件系统               1K-块        已用     可用 已用% 挂载点
/dev/hdc11             3763372   2990016    582188  84% /
/dev/hdc10              101089     12108     83762  13% /boot
none                     63016         0     63016   0% /dev/shm
/dev/hdc5              7800336   7202008    598328  93% /mnt/d
/dev/hdc6              7800336   6912956    887380  89% /mnt/e
/dev/hdc7              9339568   8980644    358924  97% /mnt/f
/dev/hdc8              3064426   1442682   1621744  48% /mnt/g


我换了root=/dev/hdc10 或11,12都不行,提示说找不到文件.
回复

使用道具 举报

发表于 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.
回复

使用道具 举报

 楼主| 发表于 2003-8-12 07:08:17 | 显示全部楼层
果然好用,谢谢了!
回复

使用道具 举报

发表于 2003-8-12 11:36:43 | 显示全部楼层
welcome.      
回复

使用道具 举报

发表于 2003-8-12 19:06:28 | 显示全部楼层
为什么root(hd×,×)可以随意改啊?
回复

使用道具 举报

发表于 2003-8-12 22:45:42 | 显示全部楼层
info grub, or read grub doc.
    
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 15:15 , Processed in 0.036440 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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