LinuxQuestions.org
Review your favorite Linux distribution.
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 08-14-2006, 02:04 PM   #1
kinadian
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Kernel Panic (no initrd) after Slackware 10.1 Install


I've attempted to install Slackware 10.1 over the weekend. After the install process, I get a Kernel Panic on the first boot. It says it cannot find the initrd. Sure enough, there is no initrd file in my /boot partition. I believe it's supposed to be called initrd.img. But I didn't see anything resembling initrd.

I'm a little confused because I thought that Slack didn't make use of the initrd by default. I tried using a different hard drive (thinking that my first one was bad) but that didn't change anything.

I did a little research and discovered that bare.i has support for the ext2 filesystem. I had made my /boot partition ext3. So I redid the install, but formatted /boot using ext2 instead. Same result.

The hard drive is a 40GB IDE drive. It's the primary master (with no slave). There is a CD-ROM drive attached to the secondary master IDE port. My drive is partitioned like this:

/dev/hda1 64MB /boot ext2 active
/dev/hda2 512MB swap swap
/dev/hda3 37GB / ext3

I'm not exactly sure what's going on. I've done many slackware installs (including 10.0) and this is the first time I've run into this problem.

Thanks,
 
Old 08-14-2006, 02:08 PM   #2
KaYoS
Member
 
Registered: May 2006
Posts: 32

Rep: Reputation: 15
Try just having /boot under / it allways works for me
 
Old 08-14-2006, 03:56 PM   #3
rtra
LQ Newbie
 
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
slackware

Hi.

I've run into exactly the same problem a few months ago.
It's very easy to fix.
Boot the Slackware Installation CD, don't proceed to the setup, but instead mount your / partition on the /mnt of your "live-cd" slackware.
# mount /dev/hd3 /mnt
Chroot to /mnt.
# chroot /mnt
Edit your /etc/lilo.conf.
# vi /etc/lilo.conf

You'll notice that *root* is set to your /boot partition. Of course that inidrc is not found there... Change it to your / partition, save it.

Find this line:
root = /dev/hd1
Change it to this:
root = /dev/hd3
Save and quit
:wq
Run lilo
# lilo
exit chroot
# exit
reboot
# reboot

Have fun with your new slackware system. ;-)
Eh, if it wasn't for your post I'd still be a unregistered user. :-P

BTW: Yes, it's nice to have /boot in a partition of its own. I do it in systems I want extra secure. I compile a hardered kernel without module support, and mount /boot as read-only. That way no one will mess with your kernel, I think.

Edited: Just to add the last "I think"...

Last edited by rtra; 08-14-2006 at 04:03 PM.
 
Old 08-14-2006, 08:37 PM   #4
kinadian
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Well, I hadn't seen rtra's post before trying KaYoS' suggestion. And it worked. But I was a little confused as to why it worked. rtra's post cleared that up

Also now that I've got it working, I've remembered that I've never been able to get a separate /boot partition on Slack to work properly. I used to use it when I ran RedHat (way back with RH8).

And if it wasn't for this problem, I would still be an unregistered user as well

Thanks to you both.
 
  


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
bootsplash causes kernel panic after modifying initrd bewareofthesnowman Linux - Software 2 02-28-2006 07:33 PM
cramfs, kernel-panic...initrd, bootsplash... Outabux Debian 3 10-26-2004 07:42 PM
initrd & kernel panic asjapulk Linux - General 2 01-13-2004 02:35 AM
initrd kernel panic gavares Linux - General 0 08-25-2003 12:40 PM


All times are GMT -5. The time now is 01:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration