LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-29-2014, 02:46 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Trying to install kernel 2.2.16.


Hi: I have installed a slackware distribution containing kernel 2.2.16 in one of the hard disk partitions. I only have the files, not the installer. These are the kernel image and the packages. When I boot the system, it says:
Code:
INIT: version 2.78 booting
sh: error in loading shared libraries: libtermcap.so.2: cannot open shared object file: no such file or directory
INIT: entering runlevel: 3
sh: error in loading shared libraries: libtermcap.so.2: cannot open shared object file: no such file or directory

Welcome to Linux.

(none) login:
It doesn't even run fsck and it does not remount the root device. Hence, when I login as root, it says:
Code:
login[10]: unable to change tty '/dev/tty1' for user 'root'
Unable to change tty '/dev/tty1': Illegal seek.
However, I have the following files in /:
Code:
/usr/lib/libtermcap.so  -> /lib/libtermcap.so.2.0.8
/usr/i386-slackware-linux-gnulibc1/lib/libtermcap.so.2.0.8
/usr/i386-slackware-linux-gnulibc1/lib/libtermcap.so.2.0 -> libtermcap.so.2.0.8
/lib/libtermcap.so.2.0.8
Perhaps I should link libtermcap.so.2.0.8 to libtermcap.s0.2?
 
Old 07-29-2014, 03:25 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You can add another link in lib:
Code:
cd /lib
ln -s libtermcap.so.2.0.8 libtermcap.so.2

I am stumped on the "Illegal seek" message, but post back with more info once you get termcap working.
 
Old 07-29-2014, 03:46 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I did the link in /lib and this time it did fsck'd the filesystem. And I could login.
Code:
Welcome to Linux.

(none) login: root
Linux. 
You have mail.
login[73]: ROOT LOGIN on 'tty1'
root@(none):~#
The only thing is that fsck says:
Code:
/sbin/e2fsck: Filesystem has unsupported feature(s) (/dev/hda7)
Get a newer version of e2fsck!
And then the usual prompt "you will now be given a chance to log into...". It is because I formatted the partition with e2fsck from slackware 12.0! I'll reformat and post again.
 
Old 07-29-2014, 03:47 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
So that should be Slackware 7.1 released in June, 2000.

Just curious: what do you intend to do with that?

Last edited by Didier Spaier; 07-29-2014 at 04:52 PM. Reason: s/Si/So
 
Old 07-29-2014, 04:14 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Didactical purposes.
 
Old 07-29-2014, 04:39 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well have fun with the very old "kernel 2.2"
and a 14 year old version of slack

is this hardware ALSO from 1995 to 2001
 
Old 07-29-2014, 05:09 PM   #7
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
I ran mke2fs from the old distribution and reinstalled the packages. Now it boots OK except for:
Code:
cat: /proc/ksyms: No such file or directory.
Any idea what this ksyms can be?
 
Old 07-29-2014, 05:19 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by stf92 View Post
Any idea what this ksyms can be?
A bit of googling never hurts (this remark has a didactical purpose). That's said you could try "cat /proc/kallsyms" instead.
 
Old 07-29-2014, 07:45 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by John VV View Post
well have fun with the very old "kernel 2.2"
and a 14 year old version of slack

is this hardware ALSO from 1995 to 2001
It is from 2003. It could also be a newer machine, though I don't know if it would support SATA.
 
Old 07-29-2014, 08:09 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post
A bit of googling never hurts (this remark has a didactical purpose). That's said you could try "cat /proc/kallsyms" instead.
What I found was this:
Quote:
In kernel 2.4, there was a /proc/ksyms file. This file, if I understand
>correctly, was a method to access the kernel's public symbol table. What
>was displayed had all the public kernel's symbols (variables,
>functions..) and its associated global addresses, along with some other
>usefull stuff, like a CRC value, and the module exporting every specific
>symbol.
It seems not to be important except for developers. However, it is a pity. For example, in this page

http://www.tldp.org/HOWTO/Module-HOWTO/x197.html

it is taught how to do something useful with it. A more serious issue is this:
Code:
# fdisk -l
cannot open /proc/partitions
# ls -l /proc
total 0
#
It seems I missed some step in the installation.

Last edited by stf92; 07-29-2014 at 09:09 PM.
 
Old 07-29-2014, 11:40 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Well, if that were a 2.6 kernel I'd say you just missed to check the PROC_FS configuration option, but I have no experience on a 2.2 kernel.

But didn't you just forget to mount the proc file system by chance? With a 2.6 kernel at least you should have this in /etc/fstab
Code:
proc             /proc            proc        defaults         0   0
That's probably what you miss as initially populating /etc/fstab is usually the installer's job, but as you couldn't use an installer that becomes your job

Before you do the change in /etc/fstab you could just try
Code:
mount -t proc proc /proc
And see if your /proc tree becomes automagically populated.

To know more, see "man proc" and Documentation/filesystems/proc.txt in your kernel source tree.

Last edited by Didier Spaier; 07-30-2014 at 12:16 AM.
 
1 members found this post helpful.
Old 07-30-2014, 07:07 AM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Didier Spaier View Post

But didn't you just forget to mount the proc file system by chance?
Yes, thanks. I realized it when I ran ps and a notification appeared about mounting /proc! devpts should likely be mounted too. In this distribution setup can be run from the hard disk. So, next time I'll run setup instead of installing manually (after installing the base packages of course).

Last edited by stf92; 07-30-2014 at 07:08 AM.
 
  


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
[SOLVED] VirtualBox & The New 2.6.37.3 Kernel. (Solution: DKMS Required To Install VB Kernel Module) cwizardone Slackware 49 03-17-2011 06:42 PM
Trying to install ethernet adapter driver, not finding kernel-devel or kernel-headers oneFishtwoFish Red Hat 5 08-31-2010 06:24 PM
how to install kernel-syms and kernel-source on fedora 6 aw_wolfe Linux - Newbie 5 03-24-2008 02:03 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM

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

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