LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-24-2007, 07:51 PM   #1
mattp52
LQ Newbie
 
Registered: Jul 2007
Posts: 17

Rep: Reputation: 0
Install src.rpm of new kernel to non-boot disk - best approach


Hi,

We're running CentOS4.4 and have upgraded to a new server and after cloning the boot disk to a larger disk in the new machine realise that the kernel version on the boot disk does not support SATA drives which our new disk is.

I've compiled a more recent kernel version to a src.rpm and installed on the old disk but am not sure how to repeat the install on the SATA disk if it isn't the boot disk. If I use the -prefix or -relocate flags in rpm to point to the equivalent install locations on the SATA will this install the necessary files to the right location?

Would it be easier to just copy the directories altered by the kernel update to the new HD and if so are there any command-line flags I should use to make sure I get an exact copy?

Hope someone can help.
 
Old 07-24-2007, 09:57 PM   #2
Brian1
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: 61
One should need the kernel image and a few others from /boot. Then the directory created with the modules for the kernel from /lib/modules.
Then modify grub.conf file in /boot/grub.

Example f files for say the following kernel in /boot
System.map-2.6.21-rc5
initrd-2.6.21-rc5.img
vmlinuz-2.6.21-rc5

Then the directory and its contents
/lib/modules/2.6.21-rc5

Brian
 
  


Reply

Tags
centos4, disk, install, kernel, srcrpm


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
How to install kernel.src.rpm csaju Red Hat 1 07-07-2006 03:46 AM
Getting kernel src.rpm acidblue Fedora 3 12-30-2005 11:09 PM
Kernel SRC RPM conn-fused Linux - Software 2 03-22-2005 05:48 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus Suse/Novell 5 12-02-2004 01:48 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM


All times are GMT -5. The time now is 09:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration