LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-05-2008, 03:03 AM   #16
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,920

Rep: Reputation: Disabled

Here's what I do (this is on -current, but the idea is the same):
Code:
image = /boot/vmlinuz-generic-smp-2.6.23.12-smp
  initrd = /boot/initrd.gz
  root = /dev/hda1
  label = genericsmp.s
  read-only

image = /boot/vmlinuz-huge-smp-2.6.23.12-smp
  root = /dev/hda1
  label = hugesmp.s
  read-only

image = /boot/vmlinuz-generic-2.6.23.12
  initrd = /boot/initrd.gz
  root = /dev/hda1
  label = generic.s
  read-only

image = /boot/vmlinuz-huge-2.6.23.12
  root = /dev/hda1
  label = huge.s
  read-only
Note that there's really no reason to leave the non-smp kernels available for most people; I only do that for testing purposes.

Also notice that I use the same initrd.gz file for both the smp and non-smp generic kernels; if you don't pass the -c switch to the second run of mkinitrd, it will add the non-smp modules to the existing initrd tree and recreate it. In other words, you can have support for as many different generic kernels as you'd like in one initrd.

Last edited by rworkman; 01-05-2008 at 03:05 AM. Reason: Added info
 
Old 01-06-2008, 11:08 AM   #17
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Hi all,

Thanks for the advice folks. First of all, my vmlinuz was pointing to the generic SMP kernel, and it was booting. So, the JFS file system must be compiled in the kernel. There's no other explanation that I can find.

However, I did create an initrd and point it to the generic SMP kernel. So now I'm doing it correctly, even if it was accidentally working before.

Regards,

-Drew
 
Old 01-06-2008, 11:19 AM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
That's strange:

nick@rigel:/boot$ grep JFS config-generic-smp-2.6.21.5-smp
CONFIG_JFS_FS=m
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set

Oh well, at least it works.
 
Old 01-06-2008, 12:24 PM   #19
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
It's impossible.
 
Old 01-06-2008, 05:52 PM   #20
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Nylex View Post
That's strange:

nick@rigel:/boot$ grep JFS config-generic-smp-2.6.21.5-smp
CONFIG_JFS_FS=m
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set

Oh well, at least it works.
Yeah, I got the same results (no surprise). I guess the only explanation was that I had vmlinuz point to a huge kernel even though I though otherwise. *shrug*

In any event, I've got an initrd now and LILO points to the generic SMP kernel after loading the initrd.

Thanks for your help folks.

Regards,

-Drew
 
Old 01-09-2008, 02:35 PM   #21
techyranger
LQ Newbie
 
Registered: May 2006
Location: Tennessee
Distribution: Redhat and alike
Posts: 20

Rep: Reputation: 0
Lufbery, I never saw where you posted your lilo.conf? Would it make sense to see your ftsab file also. I think that will tell us what your root file systems is formated as, ext3 or JFS.

On the topic of the generic vs huge kernels, I'm curious if anyone get's a peformance boost from the generic kernel? I know loading only the needed modules saves memory, but does it really matter in this case?
 
Old 01-10-2008, 08:14 AM   #22
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by techyranger View Post
Lufbery, I never saw where you posted your lilo.conf? Would it make sense to see your ftsab file also. I think that will tell us what your root file systems is formated as, ext3 or JFS.
You're right. I haven't posted them because the lilo.conf changed after I got the advice here.

I can post both. I partitioned and formatted my hard drive with GParted prior to installing Slackware and I chose JFS then.

Regards,

-Drew
 
Old 01-13-2008, 12:02 AM   #23
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Hi all,

As requested, and for the record, here's the relevant portions of my /etc/lilo.conf:

Code:
image = /boot/vmlinuz-generic-smp-2.6.21.5-smp
  initrd=/boot/initrd.gz
  root = /dev/hda1
  label = Slack12GenSMP
  read-only  # Partitions should be mounted read-only for checking

image = /boot/vmlinuz
  root = /dev/hda1
  label = Slack12HugeSMP
  read-only  # Partitions should be mounted read-only for checking
# Linux bootable partition config ends
And here is my /etc/fstab:

Code:
/dev/hda2        swap             swap        defaults         0   0
/dev/hda1        /                jfs         defaults         1   1
/dev/hda3        /home            jfs         defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Regards,

-Drew
 
Old 01-13-2008, 12:40 AM   #24
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,429

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
Quote:
Originally Posted by Lufbery View Post
I haven't posted them because the lilo.conf changed after I got the advice here.
Which is, of course, irrelevant if you didn't also (re-)run the lilo command ...
 
Old 01-13-2008, 01:49 AM   #25
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 222Reputation: 222Reputation: 222
Quote:
Originally Posted by Lufbery View Post
Hi all,

I finally got around to installing the new hard drive in my laptop and installing Slackware 12 on it. So far, I've got just two questions.

First, did I change kernels correctly? -- I've read here, and in the readmes the recommendation to use the generic SMP kernel for day-to-day operations. I did a full installation and the default kernel is the huge smp kernel. So, I went to the boot directory and changed the System.map, bzImage, and config symbolic links to link to the corresponding generic SMP files. The laptop boots correctly and everything seems to work, but is there anything else I need to do?

Second, why would I need to make an initrd? The ANNOUNCE.12_0 file states:



But I'm using the generic kernel and haven't made an initrd yet. Why is it necessary? Aren't modules loaded with rc.M?

Thanks,

-Drew
unless you have deleted it in the boot directory is a text file telling you how to make an initrd image.
http://slackware.osuosl.org/slackwar.../README.initrd
 
Old 01-13-2008, 08:25 AM   #26
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by syg00 View Post
Which is, of course, irrelevant if you didn't also (re-)run the lilo command ...
Yeah. I did that, I just didn't mention in the post that I did that.

Thanks for the help, guys. Things are running ver well now.

Regards,

-Drew
 
Old 01-22-2008, 08:52 PM   #27
techyranger
LQ Newbie
 
Registered: May 2006
Location: Tennessee
Distribution: Redhat and alike
Posts: 20

Rep: Reputation: 0
Looks good, man. Thanks for posting.
 
  


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
first slackware installation need help choosing kernel rcschroeder Slackware - Installation 11 01-12-2007 12:36 AM
Kernel Panic (no initrd) after Slackware 10.1 Install kinadian Slackware 3 08-14-2006 08:37 PM
slackware 10.2, kernel 2.6.16, and initrd alphisb0t Slackware 3 03-22-2006 02:58 PM
Choosing the right Kernel to Install (Slackware 10.2) ivancauso Slackware 12 12-06-2005 06:45 PM
Slackware 9.1 - Choosing Linux Kernel? GloVe Slackware 2 10-03-2003 01:29 PM


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