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 01-31-2011, 11:17 AM   #1
goodadamgood
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Kernel panic with generic kernel Slackware 13.1


Hi everyone,
I'm very new to Slackware, installed 13.1 32-bit on my Lenovo T61 several days ago and already it's been a lot of fun...I'm learning so much.

I really fear that this has been asked about a million and a half times but I just can't help but be confused.

Background...
I have three distros on my machine, Linux Mint Debian Edition, Ubuntu Studio and Slackware 13.1

I have a /boot partition on my drive btw...

Ok, the Slack Huge kernel (vmlinuz-huge-2.6.33.4) boots up fine from Grub which by the way was installed by Mint Debian. From what I can see it's Grub and not Grub2. How can I figure out which I have??

I tried to install everything I'll need to use my Nvidia drivers but couldn't get X using the Huge kernel and figured maybe I should try Nvidia drivers under the generic kernel. Booting into the generic gives me a kernel panic.

Having done some googling I think I need to install an initrd. Does this seem like the direction to go? If so well I tried it and get an error:

Code:
$ sudo /sbin/mkinitrd -c -k vmlinuz-generic-2.6.33.4 
ERROR: No /lib/modules/vmlinuz-generic-2.6.33.4 kernel modules tree found for kernel "vmlinuz-generic-2.6.33.4"
Can't figure out where to take it from there but am I really barking up the right tree?

Hope to hear from some people. I'm loving Slackware so far and look forward to getting into it more.

best,
Adam
 
Old 01-31-2011, 11:48 AM   #2
Cepoon
Member
 
Registered: Nov 2010
Location: Slovakia
Distribution: Slackware 12.1, Slackware 13.1
Posts: 52

Rep: Reputation: 3
Change to the boot directory:

Quote:
cd /boot
Log in as root and type:

Quote:
mkinitrd -c -k 2.6.33.4 -m ext3 -f ext3 -r /dev/sda2
ext3 and /dev/sda2 = Depends on your filesystem and check your fstab.

Now you have created initrd.gz in /boot direcotry. You must configure lilo bootloader now.

Add these settings to your /etc/lilo.conf:

Quote:
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/sda2
label = whatyouwant
read-only
# Linux bootable partition config ends
The last thing, apply changes in your lilo.conf

Quote:
lilo -v
That's it.
 
Old 01-31-2011, 12:43 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Can't figure out where to take it from there but am I really barking up the right tree?
The command
Code:
su -c "/usr/share/mkinitrd/mkinitrd_command_generator.sh "
will show you what mkinitrd command to run to succesfully generate an initrd on Slackware 13.1. Then just follow the steps Cepoon gave to update lilo.conf and rerun lilo.

Last edited by bgeddy; 01-31-2011 at 05:17 PM.
 
Old 01-31-2011, 04:57 PM   #4
goodadamgood
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Awesome thank you guys for the tips and quick reply! Following Cepoon's post it's booting the kernel. Actually at installation I didn't add lilo / bootloader figuring Grub would be enough. After adding initrd to my grub.cfg it's all good.

Now on to getting Nvidia drivers up without errors...
 
  


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
Kernel panic on boot with new SATA drive Slackware 12 kernel: 2.6.21.5 theapodan Linux - Hardware 3 05-18-2009 03:02 PM
kernel panic: kernel-2.6.24.3 + alsa-1.0.16(or15) + Slackware-12 ludist Slackware 1 03-07-2008 09:14 PM
Kernel 2.6.22 + generic config = PANIC dugan Slackware 4 08-12-2007 12:00 PM


All times are GMT -5. The time now is 08:21 AM.

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