============》编译后的问题
已经编译好了现在就是不之怎么修改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 change that to
root=/dev/hdb5 很高兴能碰倒大侠
我马上就改
终于有救了, 谢谢了哈 how did u generate u initrd.img? copy or mkinitrd?
what is linux version? rh9? 我问一句:grub配置好后怎么安装?lilo是lilo,grub就是grub?
我没用过grub,但以后总有用得上的时候,先学一下以防万一。
还有,root(hd1,0)里hd1,0分别是什么意思 :?: 对不起,以上应该是问两句 :oops: 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. 我用rh9,现在可以用新内核了
initrd我是mkinitrd来的
现在有新问题
就是在加载模块时有很多找不到
模块我也编译了的啊
还有在原来的/boot 目录下有module-info,和module-info-2.4.20
我现在哪里搞到module-info-2.4.22??
谢谢了哈 have u make modules_install?
ignore that module-info
post u error msg here. 实在是菜,我在log堆里找了半天,就是没找到 it will no be shown in log.
use shift pageup to see them after u login text mode. and copy them to here.
页:
[1]