LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-29-2009, 02:03 PM   #1
ddel
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Exact steps to build kernel on a machine and copy it to another machine?


Exact steps to build kernel on a machine and copy it to another machine?

1- download latest full version of kernel(.bz2) from kernel.org (example :2.6.29.tar.bz2)
2- untar and do make menuconfig
3- make
4- make modules_install
5- make install
6- copy the relevant files from /lib/modules and /boot to new machine
7- change grub.conf in new machine (left other configuration intact just changed the kernel )
8- boot new machine.

I have tried the above steps with many kernel version and it fails with errors like
"An error occured during file system check......Give root password for maintenance"

"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"

Thanks
 
Old 03-29-2009, 02:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
If you have a working kernel, it should have a config file, probably in /boot, you can copy it to .config in the kernel source directory, and run
Code:
make oldconfig
This will suck the configuraton options from the original config file into the new one. From there, you can modify the new kernel parameters with
Code:
 
make menuconfig
# or ...
make xconfig
Doing this is a good way to get started with a parameter set that works.

--- rod.
 
  


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
Copy directories/files from Fedora 8 machine to SuSE 10.3 machine r-t Linux - Newbie 6 03-11-2008 07:54 AM
scp: copy a file from local machine to remote machine seran Linux - Newbie 8 10-30-2007 12:23 PM
trying to copy files from another machine to the local machine using telnet,..how? shrike_912 Programming 6 03-14-2006 04:45 PM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 01:43 PM
Build on 1 machine, copy to another? dawizman Linux From Scratch 5 03-31-2004 05:16 PM


All times are GMT -5. The time now is 02:50 PM.

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