LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel Rebuild (http://www.linuxquestions.org/questions/linux-newbie-8/kernel-rebuild-440095/)

Nikosis 04-29-2006 04:36 PM

Kernel Rebuild
 
I want to rebuild my kernel & I would like to know, how can I check which active modules are currently in use ?.

gilead 04-29-2006 04:45 PM

You can use lsmod to see which modules are currently loaded. You can also use ls -lR /lib/modules/`uname -r` to see which modules were built and installed for your currently running kernel.

You should also have a good idea what hardware is in your PC as a module that is not currently shown by lsmod may only be needed some of the time. Tools like lspci and lsusb are useful for this.

Nikosis 04-29-2006 10:50 PM

ok
what I did wromg
[HTML]cd /usr/src/linux
make menuconfig
make dep
make clean
make bzImage
make modules
mv /boot/vmlinuz /boot/vmlinuz/old
cat arch/i386/boot/bzImage > /boot/vmlinuz
mv /boot/System.map /boot/System.map.old
cp System.map /boot/System.map
make modules_install
/sbin/lilo (after added a section to boot my old kernel )
[/HTML]
and now I can not start with my old kernel
Thx

Linux~Powered 04-30-2006 02:46 AM

Here. I wrote a little guide on compiling a kernel in Slackware. Hope it helps. http://www.linuxbox420.com/guides/kernelguide.html

Nikosis 05-01-2006 01:40 AM

ok
thanks it works but, I've got problem with sound now, maybe I missed sommething. I have sb Live, so I left just sb drivers (emu10k1) throwing everything else out
that's what I've got after 'alsamixer'
Code:

alsamixer: function snd_ctl_open failed for default: No such device
I tried 'alsaconf'

Code:

No supported PnP or PCI card found.
Would you like to probe legacy ISA sound cards/chips?

Probing legacy ISA cards might make
 your system unstable.

Thx


All times are GMT -5. The time now is 01:11 AM.