Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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, 08:57 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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

Then the directory and its contents



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 02:46 AM
Getting kernel src.rpm acidblue Fedora 3 12-30-2005 10:09 PM
Kernel SRC RPM conn-fused Linux - Software 2 03-22-2005 04:48 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM > Forums > Linux Forums > Linux - Software

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