LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-28-2006, 08:17 AM   #1
joirnange
Member
 
Registered: Dec 2004
Distribution: Fedora
Posts: 88

Rep: Reputation: 15
Question Compiling Kernel Error


Recently, I just downloaded few vanilla kernels from www.kernel.org , I have tried to compile the kernel and surprisingly i got few errors while trying to reboot using the new kernel.

The error message i got from the 1st screen is :

Kernel Panic- not syncing: VFS : Unable to mount root fs on unknow-block (0,0)

So i thought maybe in the grub.conf i should change the root=/dev/hda5, but after i changed it to dev/hda5, the errror message changed to :

Kernel Panic-not syncing: No init found. Try passing init=option to kernel.

I have include ext2 and ext3 file system type to my kernel, and i just wondering which step that missed out or did wrongly.


[root@localhost ~]# fdisk -lu

Disk /dev/hda: 40.0 GB, 40007761920 bytes
16 heads, 63 sectors/track, 77520 cylinders, total 78140160 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 63 302399 151168+ 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hda2 306432 18335519 9014544 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/hda3 * 18340560 78140159 29899800 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/hda5 317520 16238879 7960680 83 Linux
/dev/hda6 16238943 18325439 1043248+ 82 Linux swap / Solaris
[root@localhost ~]#


Thanks.

(p/s: The new kernel i trying now is 2.6.15.6)
 
Old 05-28-2006, 08:26 AM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
post your /boot/grub/menu.lst or lilo config, whichever you use. Cause if you new kernel starts with the same options as the previous, and includes support for everything, it should just plug-n-play.
 
Old 05-28-2006, 08:37 AM   #3
joirnange
Member
 
Registered: Dec 2004
Distribution: Fedora
Posts: 88

Original Poster
Rep: Reputation: 15
[root@localhost ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=7
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15.6)
root (hd0,0)
kernel /vmlinuz-2.6.15.6 ro root=LABEL=/ rhgb quiet vga=normal
initrd /initrd-2.6.15.6.img
title Fedora Core (2.6.16)
root (hd0,0)
kernel /vmlinuz-2.6.16 ro root=LABEL=/ rhgb quiet vga=773
initrd /initrd-2.6.16.img
title Fedora Core (2.6.15)
root (hd0,0)
kernel /vmlinuz-2.6.15 ro root=LABEL=/ rhgb quiet vga=773
initrd /initrd-2.6.15.img
title Fedora Core (2.6.10)
root (hd0,0)
kernel /vmlinuz-2.6.10 ro root=LABEL=/ rhgb quiet vga=773
initrd /initrd-2.6.10.img
title Fedora Core (2.6.13.5)
root (hd0,0)
kernel /vmlinuz-2.6.13.5 ro root=LABEL=/ rhgb quiet vga=773
initrd /initrd-2.6.13.5.img
title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet vga=773
initrd /initrd-2.6.11-1.1369_FC4.img
title Other
rootnoverify (hd0,2)
chainloader +1


I have include the support for everything. Just wondering where is going wrong..

* I tried to change the vga= normal from 773, but it seem the problem still not solve.

Last edited by joirnange; 05-28-2006 at 08:38 AM.
 
Old 05-28-2006, 09:08 AM   #4
joirnange
Member
 
Registered: Dec 2004
Distribution: Fedora
Posts: 88

Original Poster
Rep: Reputation: 15
STEP 15:

/etc/rc.sysinit needs to be modified. Look for the following
line:

action $"Mounting proc filesystem: " mount -n -t proc /proc /proc

and after this line enter the following:

action $"Mounting sysfs filesystem: " mount -t sysfs none /sys

Here's my /etc/rc.sysinit for reference:

http://prdownloads.sourceforge.net/s...t.txt?download


Be very careful at this step. Backup the /etc/rc.sysinit file.

Also make changes to "/etc/fstab" adding the following line:

none /sys sysfs defaults 0 0


Should i follow this step from the internet? I didnt include this step while compiling the kernel.
 
Old 05-28-2006, 12:35 PM   #5
joirnange
Member
 
Registered: Dec 2004
Distribution: Fedora
Posts: 88

Original Poster
Rep: Reputation: 15
I have tried to recompile the kernel 2.6.15.6 again..and now i only able get to this screen:

Booting Fedora Core (2.6.15.6)

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinux-2.6.15.6 ro root=LABEL=/ rhgb quiet vga=773
[Linux-bzImage, setup=0x1c00, size=0x2036bc]
initrd /initrd-2.6.15.6.img
[Linux-initrd @ 0x1f5da000, 0xf554e bytes]
_



Within a second, it change to Black screen with nothing display out.
After a long wait, it still the same....

Any idea where is going wrong?
 
Old 05-30-2006, 10:39 AM   #6
joirnange
Member
 
Registered: Dec 2004
Distribution: Fedora
Posts: 88

Original Poster
Rep: Reputation: 15
My friend told me that the new kernel might got problem, but after i try installed other new kernels, the problem still the same.

Anyone got idea what i did wrongly?
 
  


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
Error Compiling Kernel kurin Linux - Software 1 12-01-2004 05:08 PM
Error compiling kernel 2.6.8 tmp_versions Linux - Software 14 08-29-2004 10:53 PM
Error in compiling kernel solitarygod Linux - General 2 06-03-2004 12:29 AM
error compiling kernel trutnev Red Hat 0 04-21-2004 04:51 AM
kernel compiling error johncla Linux - General 0 05-28-2001 07:57 PM


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