Joker_cn 发表于 2003-8-31 21:52:13

============》编译后的问题

已经编译好了现在就是不之怎么修改grub.conf

原来的

default=0
timeout=-1
splashimage=(hd1,0)/grub/splash4.xpm.gz
title --Linux--
        root (hd1,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ vga=0x314
        initrd /initrd-2.4.20-8.img
title --Windows--
        rootnoverify (hd0,0)
        chainloader +1



新编译的内核是2.4.22的
我已经将它考倒/boot 下
包括System.map

定名为
vmlinuz-2.4.22
System.map-2.4.22

initrd-2.4.22.img也搞定了在/boot下


我按照样子自己编辑了

default=0
timeout=-1
splashimage=(hd1,0)/grub/splash4.xpm.gz
title ---Linux---
        root (hd1,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ vga=0x314
        initrd /initrd-2.4.20-8.img
title --Windows--
        rootnoverify (hd0,0)
        chainloader +1
title Linux2
        root(hd1,0)
        kernel /vmlinuz-2.4.22 ro root=LABEL=/
        initrd /initrd-2.4.22.img



结果在开机滚动一屏多的地方停了

VFS: cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel Panic: VFS : Unable to mount root fs on 00:00


而我正常起动时它的显示为

VFS: mount root (ext2 filesystem)


请教高手怎么改grub.conf ??

ps:我的硬盘分区

hdb1 /boot
hdb2 swap
hdb5 /
hdb6 /usr
hdb7 /var
hdb8 /home

Dragonfly 发表于 2003-8-31 22:23:35

change that to
root=/dev/hdb5

Joker_cn 发表于 2003-8-31 22:27:01

很高兴能碰倒大侠

我马上就改

终于有救了, 谢谢了哈

Dragonfly 发表于 2003-8-31 22:35:28

how did u generate u initrd.img? copy or mkinitrd?

what is linux version? rh9?

arzon 发表于 2003-8-31 23:10:39

我问一句:grub配置好后怎么安装?lilo是lilo,grub就是grub?
我没用过grub,但以后总有用得上的时候,先学一下以防万一。
还有,root(hd1,0)里hd1,0分别是什么意思 :?:

arzon 发表于 2003-8-31 23:11:59

对不起,以上应该是问两句 :oops:

Dragonfly 发表于 2003-8-31 23:44:39

after u modify lilo.conf. u need to run lilo to make it effective
but for grub, u only need to reboot after modifying the grub.conf.

for that root(hdx,y) run "info grub", can not explain it in short.

Joker_cn 发表于 2003-9-1 23:05:27

我用rh9,现在可以用新内核了
initrd我是mkinitrd来的

现在有新问题
就是在加载模块时有很多找不到
模块我也编译了的啊
还有在原来的/boot 目录下有module-info,和module-info-2.4.20
我现在哪里搞到module-info-2.4.22??

谢谢了哈

Dragonfly 发表于 2003-9-1 23:06:49

have u make modules_install?

ignore that module-info

post u error msg here.

Joker_cn 发表于 2003-9-6 08:41:00

实在是菜,我在log堆里找了半天,就是没找到

Dragonfly 发表于 2003-9-6 11:40:04

it will no be shown in log.

use shift pageup to see them after u login text mode. and copy them to here.
页: [1]
查看完整版本: ============》编译后的问题