QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 715|回复: 10

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

[复制链接]
发表于 2003-8-31 21:52:13 | 显示全部楼层 |阅读模式
已经编译好了现在就是不之怎么修改grub.conf

原来的
[code:1]
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

[/code:1]

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

定名为
vmlinuz-2.4.22
System.map-2.4.22

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


我按照样子自己编辑了
[code:1]
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

[/code:1]

结果在开机滚动一屏多的地方停了
[code:1]
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
[/code:1]

而我正常起动时它的显示为
[code:1]
VFS: mount root (ext2 filesystem)
[/code:1]

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

ps:我的硬盘分区

hdb1 /boot
hdb2 swap
hdb5 /
hdb6 /usr
hdb7 /var
hdb8 /home
发表于 2003-8-31 22:23:35 | 显示全部楼层
change that to
root=/dev/hdb5
回复

使用道具 举报

 楼主| 发表于 2003-8-31 22:27:01 | 显示全部楼层
很高兴能碰倒大侠

我马上就改

终于有救了, 谢谢了哈
回复

使用道具 举报

发表于 2003-8-31 22:35:28 | 显示全部楼层
how did u generate u initrd.img? copy or mkinitrd?

what is linux version? rh9?
回复

使用道具 举报

发表于 2003-8-31 23:10:39 | 显示全部楼层
我问一句:grub配置好后怎么安装?lilo是lilo,grub就是grub?
我没用过grub,但以后总有用得上的时候,先学一下以防万一。
还有,root(hd1,0)里hd1,0分别是什么意思
回复

使用道具 举报

发表于 2003-8-31 23:11:59 | 显示全部楼层
对不起,以上应该是问两句
回复

使用道具 举报

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

使用道具 举报

 楼主| 发表于 2003-9-1 23:05:27 | 显示全部楼层
我用rh9,现在可以用新内核了
initrd我是mkinitrd来的

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

谢谢了哈
回复

使用道具 举报

发表于 2003-9-1 23:06:49 | 显示全部楼层
have u make modules_install?

ignore that module-info

post u error msg here.
回复

使用道具 举报

 楼主| 发表于 2003-9-6 08:41:00 | 显示全部楼层
实在是菜,我在log堆里找了半天,就是没找到
回复

使用道具 举报

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

使用道具 举报

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

本版积分规则

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

© 2021 Powered by Discuz! X3.5.

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