当前位置: 技术问答>linux和unix
为什么我升级内核总是不成功???
来源: 互联网 发布时间:2015-07-23
本文导语: 参考了网上很多文章后,终于开始尝试升级内核(原来是red hat 9的2.4.20.8内核,想升级到2.6.81)。我综合了大家的方法,可是还是不行。我的升级步骤如下: 1、安装module-init-tools. (module-init-tools-3.1-pre5.tar.gz) ./conf...
参考了网上很多文章后,终于开始尝试升级内核(原来是red hat 9的2.4.20.8内核,想升级到2.6.81)。我综合了大家的方法,可是还是不行。我的升级步骤如下:
1、安装module-init-tools. (module-init-tools-3.1-pre5.tar.gz)
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf
2、安装modutils-2.4.26-1.src.rpm
rpm -i modutils-2.4.26-1.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.26-1.i386.rpm
3、编译内核
make menuconfig
make
make bzImage
make modules
make modules_install
make install
make menuconfig 那一步我也选择了ext3支持。运行的时候出错如下:
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed:2
umount /initrd/proc failed:2
Freeing unused kernel memory:276k freed
kernel panic: No init found. Try passing init= option to kernel.
请问各位大哥,我该怎么解决啊?
1、安装module-init-tools. (module-init-tools-3.1-pre5.tar.gz)
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf
2、安装modutils-2.4.26-1.src.rpm
rpm -i modutils-2.4.26-1.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.26-1.i386.rpm
3、编译内核
make menuconfig
make
make bzImage
make modules
make modules_install
make install
make menuconfig 那一步我也选择了ext3支持。运行的时候出错如下:
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/initrd) failed:2
umount /initrd/proc failed:2
Freeing unused kernel memory:276k freed
kernel panic: No init found. Try passing init= option to kernel.
请问各位大哥,我该怎么解决啊?
|
贴出你的grub.conf看一看(/boot/grub/grub.conf)
//mine:
title Red Hat Linux (2.6.7)
root (hd0,0)
kernel /boot/vmlinuz-2.6.7 ro root=LABEL=/ vga=788 acpi=ht
initrd /boot/initrd-2.6.7.img
LABEL=/
你的kernel必须支持
file system
--> Miscellaneous filesystems
---> UFS file system support (read only)
Error code 19: No such device
//mine:
title Red Hat Linux (2.6.7)
root (hd0,0)
kernel /boot/vmlinuz-2.6.7 ro root=LABEL=/ vga=788 acpi=ht
initrd /boot/initrd-2.6.7.img
LABEL=/
你的kernel必须支持
file system
--> Miscellaneous filesystems
---> UFS file system support (read only)
Error code 19: No such device
|
是scsi硬盘吗?
还是先从新编译kernel吧!记着加
file system
--> Miscellaneous filesystems
---> UFS file system support (read only)
还是先从新编译kernel吧!记着加
file system
--> Miscellaneous filesystems
---> UFS file system support (read only)