LinuxQuestions.org
Help answer threads with 0 replies.
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 09-29-2003, 06:24 PM   #1
sput
Member
 
Registered: Jul 2002
Location: MN
Distribution: Slackware 9.1+
Posts: 70

Rep: Reputation: 15
Argh! Kernel recompile issues..


I followed the instructions I found here:

http://www.linuxquestions.org/questi...threadid=49035

I have have done this several times now, every time I get the same result. When I reboot, I get the error: Kernel Panic: VFS: Unable to mount root fs on 03:02

and all the lights on my laptop start flashing.

It won't even boot into my old kernel.

What am I missing? Please help!
 
Old 09-29-2003, 06:48 PM   #2
yocompia
Member
 
Registered: Apr 2003
Location: Chicago, IL
Distribution: openbsd 3.6, slackware 10.0
Posts: 244

Rep: Reputation: 30
well, i'm unwilling to read through that mess, but here's what i do:

1) get the source, put it wherever (doesn't have to be in /usr/src/, but that's canonical) and untar it.

2) issue "#make mrproper && make menuconfig" from the untarred source directory. then i choose the relevant kernel options

3) once that's all done (make sure to save your kernel config!), then issue "#make dep && make clean && make bzImage && make modules && make modules_install"

(double and signs say "if the step before occurs without errors, then do the next". it's good for multiple commands here)

4) move the old kernel image (vmlinuz, etc.) and the old system.map to a safe spot (i make the directory /boot/old and move them there).

5) in compiled source directory, issue the following "cp System.map /boot/System.map && cat arch/i386/boot/bzImage > /boot/vmlinuz" to move the system.map and the kernel image to the /boot directory

6) edit the text in /etc/lilo.conf to allow for 2 entries as follows:

you start with this

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
# Linux bootable partition config ends

change it to the following

image = /boot/vmlinuz
root = /dev/hda1
label = fresh.slack
read-only

# Linux bootable partition config begins
image = /boot/old/vmlinuz
root = /dev/hda1
label = old.slack
read-only
# Linux bootable partition config ends

this way, your old kernel can still boot from lilo (no disks).

7) issue "#lilo" to update your lilo boot list (this is the command in slackware, don't know about other distros)

8) reboot and choose "fresh.slack" at the lilo prompt

i've gotten kernel panic a couple times, but only when i didn't finish configuring the system and had to turn things off mid-install. it may have something to do with your configuration you've chosen.

in a pinch, get out the slackware iso cd or bootdisk and boot from that and then fix everything as listed above. if problems persist, post your config file.

HTH,
y-p
 
Old 09-29-2003, 06:49 PM   #3
sput
Member
 
Registered: Jul 2002
Location: MN
Distribution: Slackware 9.1+
Posts: 70

Original Poster
Rep: Reputation: 15
DUH

DUH, I am stupid, please ignore this post.

In case anyone has this same issue though.. I forgot to add Reiser fs support in the kernel I compiled. That's what file system I use.

LOL.

*sigh*
 
Old 09-29-2003, 10:38 PM   #4
h1tman
Member
 
Registered: Jul 2003
Distribution: Slackware 11
Posts: 439

Rep: Reputation: 30
same thing happened to me yesterday lol :P
 
  


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
Should I recompile kernel 2.4.7 to remove rivafb in order to solve Nvidia issues? jtp51 Slackware - Installation 2 10-06-2004 11:10 AM
Issues with Gentoo - Sound, Wireless 1150, and SCREEN RESOLUTION!! ARGH@!!! Odubhth4igh Linux - Newbie 3 10-23-2003 03:17 AM
Kernel recompile issues..GRRRR jimmytango829 Linux - Software 2 11-19-2002 01:31 PM
ARGH!! More rp-pppoe on boot issues :( Tekime Linux - Networking 0 02-22-2002 09:07 AM
networking nic issues... ARGH phido Linux - Networking 1 10-12-2001 01:25 PM

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

All times are GMT -5. The time now is 06:51 AM.

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