LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-22-2008, 05:55 PM   #1
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Rep: Reputation: 33
Problems with new kernel (2.6.23.14)


Here are the vitals on the system
  • Dell Latitude D820
  • Slack 12.0 (configured with encrypted FS using Eric's, aka Alien, instructions)
  • Kernel huge-smp-2.6.21.5
  • HD: SATA 160GB

Everything is working OK, but I want the system to be a bit less bloated. I compile the new kernel no error messages or anything. First time I forgot to enable the SCSI devices for the box so I couldn't read the drive. Then since I did not know exactly which one I would need I built all of them into the kernel. I know it breaks the definition of less bloated, but the idea was to get the system to boot and then get rid of un-needed junk be removing SCSI drivers until it broke.

I created my initrd and everything but the system refuses to boot. just before I get prompted by my luks password I get the following messages:

Code:
Can't open device: /dev/sda3
mount: mounting cryptroot on /mnt failed
ERROR: No /sbin/init found on rootdev (or not mounted).  Trouble ahead.
Kernel panic - not syncing: Attempted to kill init!
How can I find exactly which one of all of the SCSI drivers will I need. I went as far as building every single one of them into the kernel to no avail.

Any ideas will be appreciated.
 
Old 01-22-2008, 07:04 PM   #2
oddo
Member
 
Registered: Sep 2003
Location: Bucharest
Distribution: Slackware *.*
Posts: 36

Rep: Reputation: 15
As far as I know you need to compile your kernel with your SATA drivers as module, and with mkinitrd make a image that include support for ext3/reiserfs. Also don't forget to include this image in lilo.conf.

Not quite sure about this...
 
Old 01-22-2008, 07:33 PM   #3
randomsel
Member
 
Registered: Oct 2006
Location: Wilmington, DE
Distribution: Slackware 11
Posts: 201

Rep: Reputation: 30
try booting back with the default huge kernel and see if it works.

Is / being mounted? I had a similar problem where the computer couldn't find /sbin/init. Turns out I had to redo initrd with the -r option, and edit /etc/fstab location for my root dir.
 
Old 01-22-2008, 10:57 PM   #4
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by randomsel View Post
try booting back with the default huge kernel and see if it works.
Old Kernel still works just fine. I just enabled all of the SATA devices. And I'm compiling as I type.

Quote:
Originally Posted by randomsel View Post
Is / being mounted? I had a similar problem where the computer couldn't find /sbin/init. Turns out I had to redo initrd with the -r option, and edit /etc/fstab location for my root dir.
Is / being mounted? That is the question. Why would the location of /sbin/init change?
 
Old 01-23-2008, 12:28 AM   #5
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
My last 2 tries did not work (enable all of the SATA devices, and do a make oldconfig).

still the same problem. going back to the drawing board.
 
Old 01-23-2008, 04:51 AM   #6
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
after recompiling the kernel did you make a initrd - adding the modules for the sata drives and crypto stuff ? also did you add this to lilo ?
 
Old 01-23-2008, 06:04 AM   #7
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
In case you haven't noticed, for crypto stuff you will need

Multiple devices driver support (RAID and LVM) --->
<*> Device mapper support
<*> Crypt target support

(this one took me some time to figure out when I was compiling my minimalist kernel ).
 
Old 01-23-2008, 07:31 AM   #8
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by Carpo View Post
after recompiling the kernel did you make a initrd - adding the modules for the sata drives and crypto stuff ? also did you add this to lilo ?
Yes... I'm going to assume that by "add this to lilo" you meant

Code:
initrd=/initrd.gz
if this is true, then yes i did.
 
Old 01-23-2008, 07:35 AM   #9
l0rddarkf0rce
Member
 
Registered: Nov 2004
Location: Virginia, US
Distribution: Slackware 14.1 multilib
Posts: 149

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by Ilgar View Post
In case you haven't noticed, for crypto stuff you will need

Multiple devices driver support (RAID and LVM) --->
<*> Device mapper support
<*> Crypt target support

(this one took me some time to figure out when I was compiling my minimalist kernel ).
I'm almost sure I enabled them, but I'll check to make sure.
 
Old 01-25-2008, 04:58 AM   #10
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Rep: Reputation: 30
dont enable the new sata driver which is marked "conflicts with libsata driver". becoz already there is a driver for sata in drivers menu. for more accurace just re-compile the default huge kernel with config files from /boot folder and use the .config file to build your new kernel don't enable or disable any disk drivers as your old kernel is working fine.
 
  


Reply



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
problems installing custom 2.6.14 kernel (for SATA problems) Ekkume Ubuntu 0 12-29-2005 02:39 PM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 06:21 PM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM

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

All times are GMT -5. The time now is 11:00 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
Open Source Consulting | Domain Registration