Chinaunix

标题: ubuntu下编译内核后重启出错! [打印本页]

作者: Linuxcn.com    时间: 2006-05-08 17:14
标题: ubuntu下编译内核后重启出错!
内核版本:linux-2.6.16.tar.bz2
编译过程:
mv linux-2.6.16.tar.bz2 /usr/src
tar jxvf linux-2.6.16.tar.bz2
ln -s linux linux-2.6.16
cd linux
make mrproper
make menuconfig
把LVS的支持选择上后,exit and save
make
make modules---出现一些提示说一些函数过时什么的,但是能够make过去
make modules_install
make install
最后,在/boot/grub的menu.list文件里添加
title ubuntu,kernel 2.6.16
root (hd0,0)
kernel /boot/vmlinuz-2.6.16 root=/dev/hda1
boot
默认的是这个:
title Ubuntu, kernel 2.6.12-10-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda1 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

重启后,选择新内核启动出错
VFS:cannot open root device "root=" or unknown-block(0,0)
please append a correct "root=" boot option
not syncing:unable to mount root fs on unknown-block(0,0)


大家帮忙




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2