LinuxQuestions.org
Help answer threads with 0 replies.
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 03-06-2006, 07:33 PM   #1
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Rep: Reputation: 30
Destroyed My Kernel and Need to Recompile


Hey all,

I was reinstalling Slackware on my Dell Inspiron 6000. I installed Slackware 10.1 and then used slackpkg to upgrade all my packages to 10.2. However, I upgraded my kernel to the 2.6.15.2 kernel so that I could use the wireless card on my computer.

When I used slackpkg to upgrade all my packages, I think it installed another 2.4 kernel. Due to the hardware in my laptop, in the 2.6 series of kernels, my hard drive is /dev/sda. Under 2.4 my hard drive is /dev/hda. Now, I've got LILO pointing to /dev/sda4, yet the kernel is detecting my hard drive as /dev/hda4. When it boots, I get a kernel panic.

Is there anyway I can get in and either reset LILO to look at /dev/hda4 for the kernel image or that I can just recompile my 2.6 kernel so that I can boot again?

Thanks,
Chris Moore
 
Old 03-06-2006, 07:57 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,976
Blog Entries: 46

Rep: Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202Reputation: 3202
Hi,

You can use the install cd1 to boot then you can mount your device and chroot to it. Then edit your lilo.conf and run lilo again.

If you don't have a Salckware install disk, you can use another live-cd to boot to do the same thing.

HTH!
 
Old 03-07-2006, 12:36 PM   #3
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Original Poster
Rep: Reputation: 30
Thank you, that worked great.

I did not know of the chroot command. I simply booted using a Slax LiveCD, which uses the 2.6 kernel and I was able to easily recompile the kernel and reconfigure LILO and now it all works.

Thanks again
 
Old 03-07-2006, 01:35 PM   #4
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Please review the slackpkg settings you can use to exclude kernel and alsa from upgrades to avoid similar incidents in future. Happy slacking
 
  


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
help Compiled kernel destroyed system-config-packages database bvknapp Fedora 1 03-03-2005 11:06 AM
Why recompile kernel? dustin_wielenga Slackware 16 12-26-2004 07:37 PM
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 01:02 AM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
Recompile the Kernel SkYzOpReNiCk Linux - General 3 07-13-2001 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:05 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