LinuxQuestions.org
Review your favorite Linux distribution.
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


Closed Thread
  Search this Thread
Old 03-06-2008, 12:51 AM   #1
mohit.saha
LQ Newbie
 
Registered: Feb 2008
Posts: 15

Rep: Reputation: 0
Unhappy Kernel Compilation: Solve The Error


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?
 
Old 03-06-2008, 03:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
Kernel Compilation: Solve The Error mohit.saha Linux - Newbie 1 03-06-2008 06:52 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel compilation error!! vishamr2000 Linux - General 2 05-12-2006 02:20 PM
kernel compilation error htamayo Linux - Software 3 01-07-2005 04:15 PM
Kernel 2.2.21 compilation error incudie Linux - Newbie 3 08-10-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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