Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-15-2006, 08:27 AM   #1
Registered: Apr 2004
Distribution: Slackware 11.0, OpenBSD 4.0
Posts: 58

Rep: Reputation: 15
Some questions about the 'compiling a kernel' section at

# mv /boot/vmlinuz /boot/vmlinuz.old
# cat arch/i386/boot/bzImage > /vmlinuz
# mv /boot/ /boot/
# cp /boot/
# make modules_install
Here are my questions:


Why does it say:
# cat arch/i386/boot/bzImage > /vmlinuz
and not
# cp arch/i386/boot/bzImage > /vmlinuz

Why is the kernel image placed in / and not in /boot:
# rm /boot/vmlinuz
# cat arch/i386/boot/bzImage > /boot/vmlinuz-x.y.z
# cd /boot
# ln -s vmlinuz-x.y.z vmlinuz

# make modules_install
Currently I have the linux-2.6.13 kernel from /pub/slackware/slackware-10.2/testing/packages/linux-2.6.13 installed. I compile a new kernel with lots of new modules. When I would like to switch back to the linux-2.6.13 kernel, how to be sure that I have the same modules like I had before 'make modules_install'? I mean, do I have to copy the config from /boot/config-generic-2.6.13 to /usr/src/linux/.config and do the following:

# make modules
# make modules_install
Or is it enough to just reinstall the package 'kernel-modules-2.6.13-i486-1.tgz'?

Last edited by athanatos; 07-15-2006 at 08:39 AM.
Old 07-15-2006, 09:12 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,476

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
1. It's the same thing
2. I guess it's a typo. Unless it says to change your /etc/lilo.conf accordingly, the correct place is /boot
3. If you (re)compile the same kernel, adding new modules, then the old ones stay intacted. If you compile a new kernel, it's modules go under /lib/modules/<kernel-version>/

I suggest you to not delete the old kernel before being sure that your new one is working as you expect it to do.



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
Ok, we need a section perry LQ Suggestions & Feedback 4 03-28-2004 01:06 PM
kernel compiling questions panzram Linux - General 1 06-26-2003 08:34 AM
New Section - Reviews jeremy LQ Suggestions & Feedback 3 06-14-2003 12:24 AM
Kernel compiling questions Mentecapto Linux - Newbie 1 09-26-2002 04:20 PM
Kernel compiling questions mistery Linux - Newbie 1 07-19-2002 07:15 PM

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration