LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-08-2007, 12:16 PM   #1
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112
Blog Entries: 2

Rep: Reputation: 15
How to Recover/Downgrade recently kernel?


i've try to downgrade from 2.6.20 to 2.6.17.13
and got the error kernel panic

then i run up the rescue disk and reconfig the lilo.conf to the vmimage (or whatever)
to vmimage.old (guessing this is the old kernel ) and reboot

the kernel panic message still appear
it said about to set "root" option correctly

what i have to do next?

(running slackware 11.0)


and anyone can tell me, how to "downgrade" kernel saftly
(i want to use the 2.6.17 or 2.6.18 instead of 2.6.20 to get 3d ati running)



thx for advancing
 
Old 04-08-2007, 02:07 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.
 
Old 04-08-2007, 06:52 PM   #3
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
thx for reply, Grape
well i've compile the odler kernel (2.6.17) simply make defconfig & make & make install

*** The same solution that i've done , when upgrade 2.4.33 to 2.6.20 ***

and got the "Kernel Panic" Error

so, the problem is my lilo.conf ? not from reverting kernel?
 
Old 04-08-2007, 06:58 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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).
 
Old 04-09-2007, 07:29 AM   #5
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
well
i've boot the slackware dvd


***correct the mount command
and mount /mnt /dev/hda7 -t ext3 (hda7 is my slack partition)

so then i'm starting the compile
make defconfig seems to b work perfectly
but,after launch "make" they've come up with tons of error and failure

any solution? , thx

Last edited by Raynus; 04-10-2007 at 03:54 AM.
 
Old 04-09-2007, 07:30 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Are you running 'make' as root? If not, try it.

Also, why are you having to mount anything? IF you booted from the DVD, your root partition is already mounted..??

Last edited by GrapefruiTgirl; 04-09-2007 at 07:32 AM.
 
Old 04-09-2007, 08:05 AM   #7
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
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

Last edited by Raynus; 04-09-2007 at 08:08 AM.
 
Old 04-09-2007, 08:54 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.
 
Old 04-09-2007, 09:01 AM   #9
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Ok i'll starting all over again.

thx for helping along, Grape
 
Old 04-09-2007, 09:04 AM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.
 
Old 04-09-2007, 09:42 AM   #11
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
ah one more thing,
before going further
lets c that we have the same understanding

1. i cant boot normally throught Lilo since the Kernel Panic will kick me off

2. so i boot the slackware-install-dvd and choose the huge26.s in the "boot:" question

3.then the slack ask me to login , i've logging in as "root" and be in the command prompt as "root@slackware"

*** repeated i've boot from Dvd NOT FROM LILO "root@slackware" is the default user in the slackware-install-dvd ***


****4.from this point i don't know how to enter my root partition to work on .****

5. from 4. my solution for now is to run the command "mount /dev/hda7 /mnt -t ext3" so i can enter the root partition from /mnt directory

6.restore the old kernel ( vmlinuz.old to vmlinuz ,etc.)

7.times to update lilo i've run the "lilo" command and get the "/etc/lilo.conf" not found

8.so i cp /mnt/etc/lilo.conf /etc/lilo.conf and run the "lilo" again , now with no problem

9. reboot and my recently kernel run up with no problem

(i can startx , compile the kernel normally)

Last edited by Raynus; 04-09-2007 at 08:33 PM.
 
Old 04-09-2007, 01:49 PM   #12
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
problem SOLVED

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)

just make menuconfig

and **BUILT-IN*** (not module)

the Ext3 in File System, and generic IDE in Device Driver


Grape it's my pleasure for ur helping , THX a LOT

Last edited by Raynus; 04-09-2007 at 01:51 PM.
 
Old 04-09-2007, 02:16 PM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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.
 
Old 04-09-2007, 08:37 PM   #14
Raynus
Member
 
Registered: Apr 2007
Location: BKK, Thailand
Distribution: Gentoo 10.1
Posts: 112

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACX100 TI chipset WIFI card 2.6.14 Kernel, downgrade kernel? fieldyweb Linux - Wireless Networking 1 02-11-2006 03:56 AM
Downgrade Kernel? apachedude SUSE / openSUSE 1 10-22-2005 05:25 AM
recently compiled kernel bosewicht Arch 3 07-06-2004 12:17 PM
should i downgrade my kernel? help please sweet*amber Linux - Newbie 3 04-30-2004 09:07 PM
downgrade kernel DrOzz Linux - Newbie 19 05-18-2003 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration