Solved

Involved question

Posted on 1998-04-13
2
214 Views
Last Modified: 2010-04-22
This is a really involved question but I will throw it out anyway.  To start, I am using  RedHat 5.0, kernel 2.0.32 on a system with a Jaz drive, an Adaptec SCSI 2940 card, and Ensoniq AudioPCI card using OSS Comercial.

Here goes:  I dual boot linux with Win95 for several reasons, and I recently wanted to compile fat 32 support into my kernel so I could mount my windows partitions and play with them under linux.  I used the patch found at http://bmrc.berkeley.edu/people/chaffee/fat32.html to patch a fresh kernel that I just downloaded.  Everything patched OK and then compiled OK, using the old config modified slightly for the patch.

When I subsequently boot, I get an error when I try to load the aix7xxx module, something about failed dependencies.  When it later tries to load the Jaz drive, it also fails, saying that it does not seem to be a valid block device.  I can now mount my windows partitions, but my jaz drive will not mount, and my SCSI CDROM does not work.  If I issue the command "/sbin/modprobe sg" everything works correctly, except for soundon with OSS, but that is a different problem.  Why does this not work on bootup?
0
Comment
Question by:Sylver
2 Comments
 
LVL 1

Accepted Solution

by:
mzito earned 100 total points
ID: 1637136
Here's the problem:  You didn't recompile your modules as well.  Go back to your machine and do the following:
(as root.  I'll provide comments as I go along in parentheses)
cd  /lib/modules/2.0.32
(this, obviously, changes you to the directory where the kernel modules are stored)
rm -rf *
(scary, I know.  If you want to feel safer, back them up someplace)
cd /usr/src/linux
make config
(do all your options, select everything you want as a module, etc.)
make dep ; make clean ; make ____ (zlilo, zImage, etc) ; make modules ; make modules_install
(This will make all the dependencies, clean out all the garbage from the last compile, then compile the kernel itself, then compile the modules, then finally install the modules)

You get this problem when the version information in the modules is not set.  When the kernel is upgraded or changed, their dependencies no longer work properly.  So, recompile the kernel AND recompile the modules.  That'll solve your problem.
Incidentally, the jaz and scsi cd-rom error messages are caused by the error from the scsi controller.  Since the scsi controller never gets recognized, the SCSI devices never get recognized, and thus your problems.  If you have any more questions, feel free to email me @ mzito@wwprsd.mercernet.net

Best Wishes,
Matthew Zito
0
 

Author Comment

by:Sylver
ID: 1637137
Thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now