|
在ftp.sjtu.edu.cn上下了个2.6.18的kernel,具体步骤是
mkdir -p /usr/src/linux
cp linux-2.6.18.tar.bz2 /usr/src/linux
tar xjf linux-2.6.18.tar.bz2
mv linux-2.6.18 linux
cd linux
make menuconfig
make modules_install
make install
cd /boot
mkinitramfs -o initrd.img-2.6.18
然后,用vi在/boot/grub/menu.lst中添加:
title Ubuntu,kernel 2.6.18
root (hd0,5)
kernel /boot/vmlinuz-2.6.18 root=/dev/hda6 ro quiet splash
initrd /boot/initrd.img-2.6.18
boot
然后reboot
结果启动新内核时报错:
Warning:Couldn't open directory /lib/modules/2.6.18: no such file or director
y
FATAL: Couldn't open directory /lib/modules/2.6.18/modules.dep.temp for writi
ng: NO such file or directory
我想是kernel没有正确加载根文件系统的缘故。请教各位如何解决? |
|