LinuxQuestions.org
Visit Jeremy's Blog.
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 09-04-2004, 02:12 AM   #1
usercsr
Member
 
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Rep: Reputation: 15
Storing compiled kernel


I have a question with regards to the kernel. I am running Slack 10.0 with a custom 2.6.8 kernel. The question is, if I save the entire '/usr/src/linux' directory onto a CD or something, can I use it again with a new installation. I mean, I don't want to compile the entire kernel again. So, can I store the compiled kernel tree, reinstall slack, and do a 'make' 'make modules_install' from the saved source?
 
Old 09-04-2004, 02:37 AM   #2
suslik
Member
 
Registered: Jul 2004
Distribution: OpenSuse 10.x
Posts: 262

Rep: Reputation: 30
The request is rather strange...

If you just need the kernel, its in /boot. also save the corresponding /lib/modules/[kenr ver]

One of the reasons why you would want to have source+compiled *.o's etc. is to shorten the time it takes you to compile again. (like when you forgot to include a module, you do "make xconfig" and "make" "make modules_install" But, i don't think that is what you are trying to get.
 
Old 09-04-2004, 02:56 AM   #3
usercsr
Member
 
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Original Poster
Rep: Reputation: 15
But the kernel image that is present in '/boot' is also present in '/usr/src/linux/', right. My questions is if I store the entire '/usr/src/linux' directory and after copying it back, if I do 'make' 'make modules_install', will it result in lesser compilation?
 
Old 09-04-2004, 03:02 AM   #4
realjustin
Member
 
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
Generally it can be a bad idea because you could have different libraries or compiler versions on a different machine. However, if you're talking about switching to a clean install of the EXACT same system, you should be fine.
 
Old 09-04-2004, 03:26 AM   #5
usercsr
Member
 
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Original Poster
Rep: Reputation: 15
thanks for the help, maybe i'll go with a fresh install and a fresh kernel.
 
Old 09-04-2004, 05:07 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Rather than store your kernel tree, save your kernel config. With a workable kernel config and a not too old machine, kernel compilation and installation take 10 minutes or less of your time.
 
Old 09-04-2004, 02:54 PM   #7
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
I second Cedrik's method. I always just save a working kernel .config file and use it to do a new compile. It doesn't take very long at all on a decent computer. It's even fast on my 800MHz system.
 
  


Reply


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
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 02:08 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 09:41 AM
compiled kernel 2.6.10 with slackware 10.0, kernel panic salviadud Linux - Newbie 1 02-09-2005 05:05 PM
How to transfer the compiled kernel to old kernel server ?? td0l2 Linux - Newbie 2 07-21-2004 02:22 AM
kernel panic on reboot of newly compiled kernel lyceum Linux - Newbie 4 09-09-2003 10:40 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration