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 08-19-2009, 03:28 PM   #1
halborr
Member
 
Registered: Aug 2009
Posts: 112

Rep: Reputation: 18
[solved]Hmm... Kernel update. What packages do I need? I'm lost...


First off, let me introduce myself. I'm Jay, and I'm a slackware addict :-). I have been using slackware for probably 6 months now, so I'm really quite comfortable at a cli. However, this kernel stuff is scary. Does anyone perhaps have a link to a general tutorial?

I'm running a gateway box from '98, so I usually look for good ways to get a little more speed if I can without compromising useability a whole lot. Currently I'm running the 2.6.27.7-smp kernel. Considering the non-smp kernel is about half the size and I'm 99% sure this is a single core processor (were dual cores even out yet in 1998?), I would like to move to the generic one if it would grant me a little more speed. How do I do this?

I have upgraded the generic kernel package (via upgradepkg) but how do I switch over to that one instead of the generic-smp? What are modules anyway? What modules do I need? Where do I get them? I'm more than a little lost.

Also, I already ran mkinitrd. I never reboot this computer (I'm curious how long it can go without a reboot. I'm shooting for at least a month. It's already been 7 days, 3 hours, 25 minutes and still runs like a fresh boot. Awesome.), but would it boot back up in its current state? All mkinitrd did was create /boot/initrd-tree.

My gratitude to anyone willing to help.

Last edited by halborr; 08-20-2009 at 03:54 PM.
 
Old 08-19-2009, 03:42 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,040
Blog Entries: 52

Rep: Reputation: Disabled
This is what CHANGES_AND_HINTS.txt says about the non-smp kernels:
Quote:
If you decide to use one of the non-SMP kernels, you will need to follow the
instructions in /extra/linux-2.6.27.7-nosmp-sdk/README.TXT to modify your
kernel sources for non-SMP usage. Note that this only applies if you are
using the Slackware-provided non-SMP kernel - if you build a custom kernel,
the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
correct kernel source so long as you don't (re)move it.
 
Old 08-19-2009, 03:56 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Hi,

You can reference for the kernel and other configuration details;


SlackwareŽ Essentials
SlackwareŽ Basics

Just a few more links;
Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

These links and others can be found at 'Slackware-Links' .
More than just SlackwareŽ links!

Edit: You can also read all the text files for the version to get additional help. Look at the '/boot/README.initrd' to get help with the 'initrd'.

Last edited by onebuck; 08-19-2009 at 03:59 PM.
 
Old 08-19-2009, 04:08 PM   #4
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
Alright, after the initial shock, I think I'm getting in control again. Thanks onebuck, I didn't realize there was a readme in /boot. That alone helps a ton.

EDIT: Do I need to change lilo.conf?

Code:
#Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Slackware
read-only #Partitions should be mounted read-only for checking
#Linux bootable partition config ends

Last edited by halborr; 08-19-2009 at 04:21 PM.
 
Old 08-19-2009, 04:47 PM   #5
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
Also, which headers should I use? there is no generic-headers-2.6.27.31, only generic-headers-2.6.27.7 and generic-smp-headers-2.6.27.31 (or whatever the naming scheme is).
 
Old 08-19-2009, 05:07 PM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 64bit
Posts: 728
Blog Entries: 3

Rep: Reputation: 77
Quote:
Originally Posted by halborr View Post
Also, which headers should I use? there is no generic-headers-2.6.27.31, only generic-headers-2.6.27.7 and generic-smp-headers-2.6.27.31 (or whatever the naming scheme is).
Please use the header package provided in the patch directory here.

We will also find answers to your question about lilo.conf in the README file in that directory

Last edited by gegechris99; 08-19-2009 at 05:08 PM. Reason: typo errors
 
Old 08-19-2009, 05:50 PM   #7
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
OK, troubleshooting time!

It failed to boot all the way. It loaded mbcache.ko, jbd.ko, and ext3.ko modules. Something tells me I needed more than that. It then failed to mount /dev/hd1 on /mnt (that's my / partition. What's going on here?(Or was / hd3? Crap. I can't remember.)) with a no such file or directory error. Then it came up with "ERROR: No /sbin/init found on rootdev (or not mounted.) Trouble ahead. You can try to fix it. Type 'exit' when thigns are done.
/bin/sh: can't access tty; job control turned off.
/$"
(sorry most of the error messages are paraphrased.)
That /sbin/init error reminds me of a sick text-based adventure game. Ugh. So, now what?

I have a feeling that I just hosed my install.

Last edited by halborr; 08-19-2009 at 05:54 PM.
 
Old 08-19-2009, 06:41 PM   #8
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,462

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Did you add a line like
Quote:
initrd = /boot/initrd.gz
to /etc/lilo.conf?
Did you run lilo after doing this?

Try this:
1. Boot from the Slackware install disk. Continue until just after the selection of the keyboard and you have a root login. (At this point you are running from the kernel on the install disk.)
2. 'mkdir /mnt/tmp'
3. 'mount /dev/hda1 /mnt/tmp'
4. 'chroot /mnt/tmp'
5. 'cd /boot'
6. Now you can rerun mkinitrd (I suggest that you run /usr/share/mkinitrd/mkinitrd_command_generator.sh to get the correct line) and edit /etc/lilo.conf
7. 'exit' - This gets out of the chroot
8. '/mnt/tmp/sbin/lilo -r /mnt/tmp'

The system should now boot correctly.
 
Old 08-19-2009, 07:40 PM   #9
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
Ok, I tried that but /usr/share/mkinitrd/mkinitrd_command_generator.sh doesn't exist. How long is it? Maybe someone could post it up and then I could enter it manually.

I have a gut feeling that I didn't get the correct packages. Hmm... Maybe I could just re-install the correct kernel/headers/modules/whatever from the CD. At this point I would be happy just to get it running again without a reinstall. Should've researched this better.

EDIT: Yeah, I have run lilo after every change.

Last edited by halborr; 08-19-2009 at 07:41 PM.
 
Old 08-19-2009, 07:53 PM   #10
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
The generator you are looking for is in current and Alien Bob has a downloadable copy here.
 
Old 08-19-2009, 07:56 PM   #11
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
Oh, excuse me. I forgot to mention slack 12.2. Whoops!
 
Old 08-19-2009, 07:58 PM   #12
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:
Oh, excuse me. I forgot to mention slack 12.2. Whoops!
No worries - the kernel version gave that away in any case
 
Old 08-20-2009, 02:50 PM   #13
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
Ugh. That script is really long to enter by hand... Ah well. I'll spend tomorrow debugging it (typos tend to be rampant...) and if I can't get it to work by then I'm just going to trash the install and reconfigure everything. (hmm... maybe I could put config files on a flash drive. That would save a lot of time.) At least I didn't have any actual valuable data on there.

NOTE: To anyone not sure about how to do the kernel upgrade: RESEARCH RESEARCH RESEARCH and then RESEARCH some more.
 
Old 08-20-2009, 03:14 PM   #14
halborr
Member
 
Registered: Aug 2009
Posts: 112

Original Poster
Rep: Reputation: 18
DUDE YOU GUYS ARE AWESOME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I hadn't thought about mounting a usb drive from the hacked startup (read the other kernel panic thread) so I actually got the script in its entirety and it worked! I'm now running the generic 2.6.27.31 kernel!
 
Old 08-20-2009, 04:10 PM   #15
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,462

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
AWESOME!
No way, just practiced! :-D
Glad that you got it working.
 
  


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
update -u Did Not Update Kernel Packages cmnorton Red Hat 1 03-15-2008 09:09 AM
lost access to GUI after kernel update rchdgs Linux - Newbie 1 10-08-2007 02:09 AM
root login lost after kernel update yesterday ramaswamyps Suse/Novell 4 03-10-2006 12:41 PM
FC3 kernel update lost sound rdmenotte Linux - Software 1 01-26-2005 01:16 AM
usr/src/packages yast update kernel zapotek Linux - Software 2 06-22-2004 11:40 AM


All times are GMT -5. The time now is 11:56 PM.

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