[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Kernel  |  Topic: Kernel Compilation: Solve The Error
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Kernel Compilation: Solve The Error  (Read 551 times)
0 Members and 1 Guest are viewing this topic.
mohit.saha
Linux Noob !
*
Offline Offline

Posts: 10


View Profile
« on: March 06, 2008, 02:00:07 AM »

I compiled my kernel... RHEL5 and kernel version 2.6.18-8.el5. I compiled the new kernel 2.6.24.3. The steps i followed are:
First i unpatched the kernel into a directory /home/src and it came in a folder linux-2.6.24.3. Then i cd'd into the folder

$cd /home/src/linux-2.6.24.3

After that i ran the following command:

$make mproper
$make xconfig (where i removed the ext3 file system, only change i made)
$make dep
$make clean
$make bzImage
$make modules
$make modules_install

Then i created initial ramdisk
$mkinitrd /boot/initrd-2.6.24.3.img 2.6.24.3

Then i copied the kenel and the system map
$cp arch/x86/boot/bzImage /boot/bzImage-2.6.24.3
$cp System.map /boot/System.map-2.6.24.3
$ln -s /boot/System.map-2.6.24.3 /boot/System.map

Then i changed the grub file in /etc/grub.conf and added the following lines:

title Test Kernel (2.6.24.3)
         root(hd0,5)          //this was given as in the earlier entry
         kernel /bzImage-2.6.24.3 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
         initrd /initrd-2.6.24.3.img

Then i rebooted the system... and from the grub menu chose the Test Kernel..
but it gives the error...

mount: error mounting /dev/root on /sysroot as ext3: No such device
setuproot: moving /dev failed: No such file or directory
setuproot: error mouting /proc: No such file or directory
setuproot: error mouting /sys: No such file or directory
swutchroot: mount failed: No such file or directory
kernel panic - not sysncing : attempted to kill init!

Could anyone please help me in removing this error and properly compile the kernel? Huh
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
kernel upgradation and compilation Linux Kernel mysaeed 8 6376 Last post May 13, 2005, 03:43:37 AM
by /root
Kernel 2.6.3 Upgradation and Compilation Linux Kernel veeria perumal 1 1738 Last post March 08, 2004, 09:04:59 AM
by neo
kernel compilation Os Talk vijaylokesh 3 1478 Last post September 08, 2004, 08:04:42 AM
by jeeva
postfix error, how to solve it ? Linux Servers Support joydeep 0 459 Last post March 01, 2007, 06:42:53 AM
by joydeep
Kernel Compilation: Time saving Linux Kernel mohit.saha 0 304 Last post June 18, 2008, 02:27:23 AM
by mohit.saha
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 04:13:14 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6226
Latest: Abhi
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 5
Total: 5
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc