LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-21-2004, 04:07 AM   #1
td0l2
Member
 
Registered: Jun 2004
Location: Hong Kong
Distribution: debian
Posts: 32

Rep: Reputation: 15
Question How to move a compiled kernel to productive linux server ??


Hi all,

I have compiled a new 2.6.7 kernel and worked in a 2.4G linux server. Now, i want to transfer this new kernel to a slow debian linux server which is using 2.4.18 kernel. ( My 2.4G linux server is running RedHat 7.2 )
What kind of things do I need to concern ??
What package do i need to install ??
 
Old 07-21-2004, 05:23 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
copy it over to the new box, alter the lilo.conf to accomodate the new kernel. that should be all you need to do.
 
Old 07-21-2004, 08:02 PM   #3
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
From the machine you compiled the kernel from, use
Code:
make-kpkg kernel_image
to create a debianized package of your compiled kernel. make-kpkg is part of kernel-package. If you have already removed the sources, then do as Frustin suggested.
 
Old 07-22-2004, 09:16 AM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Take a look at this: http://www.cs.utexas.edu/users/suriy...migration.html

It provides information on some issues when upgrading from the 2.4.x kernel to the 2.6.x kernel.

In my case, the PS/2 mouse would not work and X failed to load (but maybe you don't need X?). You have to add the lines "psmouse" and "mousedev" to /etc/modules to make sure the PS/2 mouse works.

You also need to make sure you created an initrd for the kernel and add an initrd line to your bootloader. The initrd is created with the command: "make-kpkg --initrd kernel_image" The resulting .deb file can be copied to your other machine and installed with dpkg -i.

I wrote a summary of my experiences upgrading here: http://www.linuxquestions.org/questi...hreadid=206992

Last edited by m_yates; 07-22-2004 at 09:17 AM.
 
Old 07-26-2004, 03:25 AM   #5
td0l2
Member
 
Registered: Jun 2004
Location: Hong Kong
Distribution: debian
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for your repy !

I just copy the kernel to /boot and change the lilo.conf in production server. The new kernel works but the modules can't load.

Then, i install "modules_init_tools" to upgrade "depmod, insmod..." but the situation is still the same. I just manually type "insmod 8139too", it replies some error message to me !! :-(

"ismod : error inserting modules "8139too" : -1 invalid module format

Please help to fix this problem.
 
Old 07-26-2004, 09:52 AM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Don't copy the kernel image to /boot. Copy the .deb file and install it with "dpkg -i <filename>.deb" The installation will create modules for the kernel.
 
Old 07-26-2004, 11:18 PM   #7
td0l2
Member
 
Registered: Jun 2004
Location: Hong Kong
Distribution: debian
Posts: 32

Original Poster
Rep: Reputation: 15
Oh !! I do that for red hat which works for me. Why does debian need to install package rather than installing individual file or tar ball ??

I just ".configure" for modules_init_tools by using tar ball. It works !!
 
  


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
how to move IMAP Maildir to new linux server bschiett Linux - Software 4 02-05-2006 04:59 PM
Mandrake 10.0/10.1 as a full featured server in a productive environment emphaze Mandriva 3 08-09-2005 07:02 PM
Optical USB Mouse does not move on SuSe Linux 9.0 Server Moosey Linux - Distributions 0 07-22-2004 07:53 AM
How to transfer the compiled kernel to old kernel server ?? td0l2 Linux - Newbie 2 07-21-2004 01:22 AM
Want to move my file server over to linux ulozas Linux - Newbie 6 12-15-2003 09:25 AM

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

All times are GMT -5. The time now is 04:33 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