Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Simply recompile and reinstall whatever kernel version you want to use. If you have the source code for the kernel you want to use, then this is what I would do. After compiling the kernel and putting it into the /boot directory, fix up LILO and you'll be all set!
Alternately, if you have the installation/setup CD, you can run SETUP again, and select the 2.6.17.13 kernel from that, and manually install the modules for it from the CD.
If you already have the kernel you want to use installed, and it simply won't boot, carefully inspect the LILO configuration, and correct the ROOT option and BOOT drive. When done, run the command 'lilo' in a root console window and make sure it returns NO ERRORS before you reboot.
Last edited by GrapefruiTgirl; 04-08-2007 at 02:09 PM.
After MAKE, you should be doing 'make modules_install'.
THEN, copy the new kernel image from /usr/src/source/arch/i386/boot/bzimage(the source folder where you compiled it) TO /boot.
Next, run the lilo config tool, or manually edit LILO.CONF. Save the edited lilo.conf file.
Finally, run lilo in the console as root, and you should see a small list of installed kernels, one of which will have a * beside it (meaning it is the default kernel).
yes i'm running make as root (from the slackware-dvd booting)
well i didn't know that the root partition has been mounted or i didn't know where it is :P
and way i can now recover the oldkernel back in no problem now
i've just miss to update lilo by "lilo" command
i run the "lilo" and it said lilo cant find my /etc/lilo.conf since the root partition is now
/mnt not /
so i cp the lilo.conf from /mnt/etc/ to /etc/
and run lilo
hoorayyyyy by 2.6.17.13 comeback
then i decide to compile the 2.6.18.8 again
make oldconfig
make
make modules
make install
lilo
reboot
well the kernel panic shown up again
VFS - can'topenroot device "307" or unknow-block(3,7)
please append a correct "root=" boot option
kernel panic -not syncing vfs unable to mount root fs on unknow-block(3,7)
its the same one that i've faced when revert the kernel from 2.6.20 to 2.6.17 lastime and also this thread
Restart from step one of this thread, and re-read each post carefully.
You should be using "MAKE MODULES_INSTALL" after "MAKE" (see instructions above).
Also, you need to have booted the system somehow, NOT simply mounting the root partition. That won't work. You need to be running the system from the root partition to use the normal method I am describing to compile and install a kernel.
No problem Once you get it to work, you will learn how easy it actually is. I know it can seem frustrating for the first few times.
There are many much more complete tutorials here on LQ, and on many other sites too. Google should turn up some very good tutorials you can follow along with if you continue to have troubles.
Hey I am very happy that you got it fixed but honestly I don't really think I helped much; in fact I don't quite understand what you did there exactly to get it fixed
Regarding your Step 3 and Step 4 above: Once you boot your installed system, USING the DVD to boot it, and you log in as root, you are now, at that point, IN YOUR ROOT PARTITION. This is why I was asking why you needed to mount anything!?
Anyhow, again, happy to have helped a little bit, and glad for you that you got it working
Happy Slacking.
Regarding your Step 3 and Step 4 above: Once you boot your installed system, USING the DVD to boot it, and you log in as root, you are now, at that point, IN YOUR ROOT PARTITION. This is why I was asking why you needed to mount anything!?
after logging as root from the DVD i cant find ANY file or directory that use to b on the "/"
so i thing i'm not on the root partition i'm just on the DVD's propmp
lol , hope this solution can help many guys stugging with kernel panic VFS error
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.