LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-23-2005, 05:18 PM   #1
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
Kernel 2.4.31 no longer loads


My 2.4.31 kernel doesn't load after installing kernel 2.6.13. I have them
both configured in lilo. But no matter wich one I choose 2.6.13 takes over.
This isn't my first time installing and configuring a kernel from source.

:iferences::
What I had before:
-Slack 10.1
-Booting kernels; 2.4.29 and 2.6.11
-ex3 fs
-everything installed on hda2 with hda1 as swap
-kernel 2.6.11 was installed and configured as per:
----/usr/src/linux-2.6.11/README

What I have now
-Slack 10.2
-Booting kernels; 2.4.31 and 2.6.13
-reiserfs
-everyting in hda3 with hda2 as swap
----/home in a new partition and
----/home/west/seagate is a patition on hdb

Here is my lilo.conf:

# LILO configuration file
boot = /dev/hda
#compact # faster, but won't work on all systems.
prompt
timeout = 300
# VESA framebuffer console @ 1024x768x256
vga = 773
# End LILO global section
# Linux bootable partition config begins
image = /boot/bzImage
root = /dev/hda3
label = Linux-2.6.13
read-only
image = /boot/vmlinuz
root = /dev/hda3
label = Linux-2.4.31
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = Windows_XP
table = /dev/hda
# Windows bootable partition config ends

My /etc/fstab file:

/dev/hda2 swap swap defaults 0 0
/dev/hda3 / reiserfs defaults 1 1
/dev/hda4 /home reiserfs defaults 1 2
/dev/hdb5 /home/west/seagate reiserfs defaults 1 2
/dev/hdb6 /mnt/windows ntfs ro 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


My `df -H' command output:

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 15G 2.4G 13G 17% /
/dev/hda4 28G 2.2G 26G 8% /home
/dev/hdb5 21G 398M 20G 2% /home/west/seagate

What I have tryed: Changing back to ext3. -Problem persist so I changed
back to reiserfs.

I thing it should be good to mention that before this problem, I had a
kernel panic problem. Which made boot process stop with a panic message
stating that block (0, 0) was not found. It happended after kernel 2.6.13 installation
and happened on both 2.4.31 and 2.6.13 booting processes

Problem was corrected by configuring reiserfs in the kernel configuration.

Thanks to all.

West.
 
Old 10-23-2005, 11:19 PM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Re: Kernel 2.4.31 no longer loads

Quote:
Originally posted by mokele
image = /boot/bzImage
...
image = /boot/vmlinuz
Just a tip: To make it easier for yourself, how about naming your kernels vmlinuz-2.4.31 and vmlinuz-2.6.13? Also, make sure you have the System.map file under /boot for each kernel with names like System.map-2.4.31 and System.map-2.6.13. I also copy the kernel config to that location. And delete the symlinks Pat puts in there. IMO they're a bad idea.
Quote:
Originally posted by mokele
I thing it should be good to mention that before this problem, I had a
kernel panic problem. Which made boot process stop with a panic message
stating that block (0, 0) was not found. It happended after kernel 2.6.13 installation
and happened on both 2.4.31 and 2.6.13 booting processes
Odd. Pat's stock 2.4.31 kernel has support for reiserfs built in. I don't know about the 2.6 which came with 10.2, but the 2.6.10 which came with Slackware 10.1 did not include reiserfs in the basic kernel. It was included as a module, requiring an 'initrd' to be built if you wanted to use the stock kernel.
 
Old 10-24-2005, 04:05 AM   #3
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks a lot rkelsen

I'm going to try the tips. I thaught about the
system.map, but dind't do it beacuse 2.6.11 don't need it.

I'll post the outcome.

West.
 
Old 10-24-2005, 07:37 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Quote:
Originally posted by mokele
I thaught about the system.map, but dind't do it beacuse 2.6.11 don't need it.
Wanna make a bet?

The System.map file for any new kernels should always be copied to the /boot directory as well as the kernel image. That means that for every kernel image file under /boot you should have a corresponding System.map file. To avoid overwriting files, I put the version numbers in the filenames, i.e: vmlinuz-x.x.xx and System.map-x.x.xx. You can't go wrong doing it this way.

BTW - The ability to boot into 2.4 and 2.6 (and fully utilise the features of either) is a strength of Slackware, and an outstanding achievement by Pat.

Last edited by rkelsen; 10-24-2005 at 07:41 AM.
 
Old 10-24-2005, 06:32 PM   #5
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Original Poster
Rep: Reputation: 15
-
Thanks for the help so far, rkelsen.

I made a fresh install. When I was looking at /usr/src/linux-2.4.31
to rename System.map I didn't find it there. I searched for the file in
other direcotories but didn't find it.

Any ideas where to look?

West
 
Old 10-24-2005, 07:41 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try pointing in lilo.conf to vmlinuz-ide-2.4.31 instead of vmlinuz, maybe you replaced the image. Remember to run /sbin/lilo to apply the changes after editing lilo.conf
 
Old 10-24-2005, 09:24 PM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Quote:
Originally posted by mokele
I made a fresh install. When I was looking at /usr/src/linux-2.4.31
to rename System.map I didn't find it there.
Are you using Pat's kernel or one you compiled yourself?

Pat always puts the System.map file in /boot.
 
Old 10-24-2005, 09:38 PM   #8
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Original Poster
Rep: Reputation: 15
-
-
Thank you very much rkelsen.

You were right all along. I used vmlinuz-ide-2.4.31 from
/boot I was looking at the incorrect dir. And the System.map
for that image was there too.

I apreciate your help very much. Now I'm having a problem
with the 2.6.13 kernel wich is having the kernel panic trouble
again. Says hdb1 not recognized. hdb is a 40gig seagate
I use for storate. It is an extended hdb1 with logical drives
hdb5 formated as reiserfs and hdb6 formated as ntfs.

Kernels trys to apply ext2, ext3, reiserfs and ntfs but all
fails to recognize hdb1.

I'll try and do my research on this one I know I've abused
your patience too much. Thank you very much any ways
Mr. rkelsen you have been very helpful.

West.
-
 
Old 10-24-2005, 10:02 PM   #9
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Quote:
Originally posted by mokele
Now I'm having a problem
with the 2.6.13 kernel wich is having the kernel panic trouble
again. Says hdb1 not recognized. hdb is a 40gig seagate
I use for storate. It is an extended hdb1 with logical drives
hdb5 formated as reiserfs and hdb6 formated as ntfs.
Support for reiserfs is not in Pat's standard 2.6 configuration. You need to make an initrd. Boot with your 2.4 kernel and read this file: /boot/README.mkinitrd

Have fun.
 
Old 10-25-2005, 07:36 PM   #10
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Original Poster
Rep: Reputation: 15
_
Hi rkelsen

Here is what I did.

2.4.31 fresh install

2.6.31 install and configure. In the filing systems section I configured
reiserfs as built-in (this way initrd is not necesary)

Configured lilo same way as before but for vmlinuz, used vmlinuz-ide-2.4.31
as the final procedure of kernel installation and configuration.

Done. Now both of them are loading.

Thanks for the help and support.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipw2200 module no longer loads maenho Linux - Networking 1 08-20-2005 11:01 AM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 06:06 PM
SuSE 9.1 cpufreqd no longer loads wiresquire Linux - Distributions 2 06-26-2004 03:12 PM
eth0 & wlan0 lag longer than usual at boot time loads lostlyre Linux - Wireless Networking 0 04-02-2004 02:09 PM
Kernal update through RHN, NVIDIA no longer loads.... DraaX Linux - Newbie 3 09-21-2003 06:50 PM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration