LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-06-2007, 01:24 PM   #1
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Rep: Reputation: 17
copying modules from one system to another?


I compiled a new kernel on my test system which is identical to my working system.
So everything is working fine, I want to use the kernel on both systems.

Is it safe to copy the whole /lib/modules/2.6.17.13-NEW tree or do I have to build the modules again?
 
Old 01-06-2007, 01:29 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
As long as both systems are running the exact same kernel version then this will be fine. You will need to run the depmod command to recreate a new system map of modules so that they can be found to load.

Brian
 
Old 01-06-2007, 01:34 PM   #3
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
That's what I wanted to know. Many thanks!
 
Old 01-06-2007, 09:24 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Brian1
As long as both systems are running the exact same kernel version
And the kernels are compiled with the same version of gcc.
 
Old 01-07-2007, 05:26 AM   #5
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Quote:
And the kernels are compiled with the same version of gcc.
The testing system ist a clone of the working system. I have a free partition to where I copy the whole system
in cases I want to make deeper changes or experiments. Even if something went wrong I can compare both
to find out what failed.
 
Old 01-07-2007, 08:29 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by syvy
The testing system ist a clone of the working system. I have a free partition to where I copy the whole system
in cases I want to make deeper changes or experiments. Even if something went wrong I can compare both
to find out what failed.
Hi,

When I compile a kernel for a test system, I copy the kernel and the modules for the test system from the development system. You would not have to worry anything but the depmod on the target/test system. Of course the libs/gcc should be the same.

My build/development system is the fastest system with a better monitor. I do have more than one. One is just an old AMD athlon 1600. Just allowed to chug along. I use the extraversion in the Makefile to identify the target and level.
 
Old 01-07-2007, 09:14 AM   #7
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Everything worked fine. I copied kernel and modules, did a depmod, no errors occoured. Thanks to Brian.
Quote:
I use the extraversion in the Makefile to identify the target and level.
That's what i did, too. I think otherwise it would overwrite the existing modules of the same version.

Gvsandvik, you gave me a good advice. I never compiled a kernel for another machine, but I'll keep that in mind.
Many thanks!
 
Old 01-07-2007, 11:19 AM   #8
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Here is another thing one can do to kernel building. If using an rpm based distro like Redhat and Redhat clones like fedora, one can build and rpm right from the kernel build directory. Issuing the command ' make rpm ' builds the kernel into an rpm format that be transferred from machine to machine as long as it is built containing the correct hardware specs of the other systems. You can build any kerenl you want for different platforms on a single machine. Do this with my slow machine that is a router. I can build the kernel for it on my dual AMD using the -j4 option for make in about the 1/12 of the time it would take on the router itself.

Brian
 
  


Reply



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
Copying System hgnoel1980 Linux - General 10 06-29-2006 07:53 AM
copying root system to another partition TheOneAndOnlySM Linux - General 5 06-01-2005 04:03 PM
copying files in RH9 from 1 harddisk to another in same system(internal) rajivb Linux - Newbie 8 03-09-2005 10:24 AM
Copying Users to a 2nd System jtk69 Linux - General 1 01-02-2004 05:49 PM
Manually copying kernel modules crank Linux - Newbie 2 06-05-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration