当前位置: 技术问答>linux和unix
rh9.0什级到2.6.5屡次失败,请高手指教?
来源: 互联网 发布时间:2015-06-24
本文导语: 我是在虚拟机里将rh9.0什级到2.6.5内核。 make menuconfig 配置了内核后,make install完 提示: /lib/modules/2.6.5 is not a directory mkinitrd failed make[1]: *** [install] Error 1 make: *** [install] Error2 我曾经试图什级mkinitrd。 装...
我是在虚拟机里将rh9.0什级到2.6.5内核。
make menuconfig 配置了内核后,make install完
提示:
/lib/modules/2.6.5 is not a directory
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error2
我曾经试图什级mkinitrd。 装完device-mapper
后,在装lvm2时失败:rpm -ivh
lvm2-2.00.08-2.i386.rpm
一大串的conflicts,比如:
file /usr/share/man/man8/vgsplit.8.gz
from install of lvm2-2.00.08-2 conficts with
file from package lvm-1.0.3-12.
我用rpm -e lvm-1.0.3-12不能卸载:
error:Failed dependencies:
lvm is needed by (install)
mkinitrd-3.4.42-1
我找了很久,没有答案,我就没有管了,编译完后
没有xxx2.6.5.img!
重新启动进新内核,进到一半就死了:
VFS: Cannot open root device "" or
unknown-block(8,2)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs
on unknown-block(8,2)
我确定内核配置时,该编译进内核的fs都选了,
sics也编译进了内核,不知道怎么回事。有没有那个高手知
道怎么解决?
make menuconfig 配置了内核后,make install完
提示:
/lib/modules/2.6.5 is not a directory
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error2
我曾经试图什级mkinitrd。 装完device-mapper
后,在装lvm2时失败:rpm -ivh
lvm2-2.00.08-2.i386.rpm
一大串的conflicts,比如:
file /usr/share/man/man8/vgsplit.8.gz
from install of lvm2-2.00.08-2 conficts with
file from package lvm-1.0.3-12.
我用rpm -e lvm-1.0.3-12不能卸载:
error:Failed dependencies:
lvm is needed by (install)
mkinitrd-3.4.42-1
我找了很久,没有答案,我就没有管了,编译完后
没有xxx2.6.5.img!
重新启动进新内核,进到一半就死了:
VFS: Cannot open root device "" or
unknown-block(8,2)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs
on unknown-block(8,2)
我确定内核配置时,该编译进内核的fs都选了,
sics也编译进了内核,不知道怎么回事。有没有那个高手知
道怎么解决?
|
少了两步
make modules
make modules_install
make modules
make modules_install
|
# just for 2.6
make menuconfig
make
make modules_install
make install
modify "root=LABEL=/" to "root=/dev/hd??" in /boot/grub/grub.conf for your newly-built kernel.
because linux 2.6 use a new module name, you should make some change in /etc/rc.sysinit
Reference: http://thomer.com/linux/migrate-to-2.6.html
make menuconfig
make
make modules_install
make install
modify "root=LABEL=/" to "root=/dev/hd??" in /boot/grub/grub.conf for your newly-built kernel.
because linux 2.6 use a new module name, you should make some change in /etc/rc.sysinit
Reference: http://thomer.com/linux/migrate-to-2.6.html
|
具体的步骤相当繁琐,到www.linuxfans.org上看看吧。
|
请生级initoools到initoools-0.9.14
安装initoools-0.9.14步骤:
1)./configure --prefix=/
2)make moveold
3)make
4)make install
5)./generate -modprobe.config /etc/modprobr.conf
安装initoools-0.9.14步骤:
1)./configure --prefix=/
2)make moveold
3)make
4)make install
5)./generate -modprobe.config /etc/modprobr.conf