Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The story so far:
In an effort to get my ethernet to work i've been trying to updates things. I have RedHat 7.1 on my thinkpad and i have never been able to get the pcmcia etherjet cardbus adapter to work to i can get access to the network i built. In light of that i've been poking around and reading around and i thought if i updated the Kernel(i had no idea how to do that) and the pcmcia card services maybe just maybe it'd work. But no it doesn't, now that i have the 2.4.7 Kernel (had the 2.4.2-2) my sound doesn't work and the ethernet card doesn't work.....and certain module dependencies are missing....ANY help,tips and pointers will be very much appreciated.
to be honest with you i don't exactly know what i did .....i was just happed it booted. i don't think i modularized anything i just included it in the Kernel. it was my first kernel compile ever so i don't know what's supposed to be there
Just for info if you want some kernel install info. You would assumingly have a /usr/src/kernel-2.x.x whatever, where the new kernel source is. You do the following:
make menuconfig (configs the kernel)
make dep (make dependancies)
make clean (cleans things up)
make bzImage (makes the bootable image)
make modules (self explanitory)
make modules_install (ditto)
make bzlilo (does many tasks including update lilo etc.)
That's the average format for installing/compiling a new kernel and setting the dependancies and modules. You may get some errors but that happens and you can go from there. Type: dmesg |more to find errors. It's a lot of learning, I don't think it ends honestly...Hope it helps any, if not good luck either way. =)
thanks very much for your help, i've tried the various commands and they work quite well but i still seem to be missing a modules.dep file. i definitely concur with your conclusion that the learning is a lot and it probably never ends but isn't that half the joy in it?
Sorry to hear you still have a problem! I can't say I know why you are missing that file, but given you have the source, you could try copying the complete source to the directory and try a fresh config, or something to that effect. Don't know if you have the cd's or downloaded, but good luck and post how it's going.
i have the red hat 7.1 cd's but this only happens when i try to upgrade the kernel, i'll keep fidling and i will post what happens.....i don't even know if this will fix the ethernet problem or not..but i'll learn something !
To generate a modules.dep file for the kernel you are *currently* running, type (as root):
This should output nothing if it generates it correctly. To make one for a non-running kernel you'll need to refer to the man page for depmod.
That depmod -a came in quite handy because now i see that i have Three files missing, the modprobe for my sound wouldn't work, i can't mount the windows partition and three files aren't ELF files. i'm not quite sure what ELF is but....i'm sure someone out there does. Alas, the plot thickens!
Thanks for your help =)
If depmod is complaining that files are not ELF format executables (or something similar) and they are filenames that end in .o then there is a problem.
Modules on disk have .o on the end of their names (for object file, if you care), thus the sb driver is sb.o and so on. An ELF file is simply the format that Linux uses for programs and modules - if a file that is expected to be a program is not in ELF format then it is almost certainly corrupted.
I suggest starting again with the kernel build and looking out carefully for errors. What you want to do to ensure a clean build:
cd /usr/src/linux (or wherever you put your kernel source)
mv .config preciousconfig (saves your configuration)
make mrproper (cleans the source tree to a pristine state)
mv preciousconfig .config (restores the configuration)
make menuconfig (just quit straight away and save changes - the options will be correct but the config program must be run in order to build the kernel correctly)
Move any existing modules for the current kernel version (in /lib/modules) out of the way
make bzlilo (or other installation command - that's *probably* the one you want but you ought to check docs).
Hope that helps.. if you build a kernel from a fresh source tree and there are still dependency problems then something bad is happening.
If the dependancy problems go away but the sound still doesn't work then you have a different problem. =)
The good news:
The modules.dep is there atleast i think so but the kernel says it doesn't support vfat file system which brings me back to the not being able to mount my /C partition. will keep fidling and i'll post what happens.