Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-31-2011, 11:17 AM   #1
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.

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- 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:

$ sudo /sbin/mkinitrd -c -k vmlinuz-generic- 
ERROR: No /lib/modules/vmlinuz-generic- kernel modules tree found for kernel "vmlinuz-generic-"
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.

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

Rep: Reputation: 3
Change to the boot directory:

cd /boot
Log in as root and type:

mkinitrd -c -k -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:

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

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

Rep: Reputation: 231Reputation: 231Reputation: 231
Can't figure out where to take it from there but am I really barking up the right tree?
The command
su -c "/usr/share/mkinitrd/ "
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
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...


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: theapodan Linux - Hardware 3 05-18-2009 03:02 PM
kernel panic: kernel- + 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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:32 PM.

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