Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > Kernel panic:unable to boot with compiled kernel...

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-06-2007   #1 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
Kernel panic:unable to boot with compiled kernel...

Hi,

I am running Xubuntu 7.04 ( Kernel 2.6.20.16). It works great.

Then I got the 2.6.22.1 kernel compiled it with no problem. Changed the menu.lst( added an entry into it to boot my compiled kernel ).

I get the following errors:
:
:
:
please append a correct "root=" boot option
kernel panic - not syncing: vfs: unable to mount fs on unknown-block(0,0)

....................................

I tried lots of options but nothing helped. Can someone plaese point me in the right direction?

Thanks in advance.
rabantu is offline  


Reply With Quote
Old 08-06-2007   #2 (permalink)
Super Moderator
 
Dapper Dan's Avatar
 
Join Date: Oct 2004
Location: The Sovereign State of South Carolina
Posts: 4,132
Send a message via AIM to Dapper Dan
Can you post your menu.lst here? Also, post the output of:
Code:
ls /boot
__________________
CRUX 2.5 + IceWM Registered:#371367 New Members: click here
Dapper Dan is offline   Reply With Quote
Old 08-06-2007   #3 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,057
Send a message via Yahoo to devils casper
Post the contents of /etc/fstab file too.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 08-07-2007   #4 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
Contents of menu.lst

Quote:
Originally Posted by Dapper Dan View Post
Can you post your menu.lst here? Also, post the output of:
Code:
ls /boot
Code:
default         0
timeout         20

hiddenmenu

title           Ubuntu, kernel 2.6.20-16-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro quiet splash
initrd          /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-16-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro single
initrd          /boot/initrd.img-2.6.20-16-generic

title           Ubuntu, kernel 2.6.20-15-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro quiet splash
initrd          /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title           Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.20-15-generic root=UUID=815118fc-4552-4161-abc0-63ea58561d54 ro single
initrd          /boot/initrd.img-2.6.20-15-generic

title           Ubuntu, kernel 2.6.22.1
root            (hda,1)
kernel          /boot/vmlinuz-2.6.22.1 root=/dev/hda1 ro
initrd          /boot/initrd-2.6.22.1.img

title           Ubuntu, memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
************************************************** ********************
Code:
ls -l /boot 

total 88244
-rw-r--r-- 1 root root   414210 2007-04-15 04:07 abi-2.6.20-15-generic
-rw-r--r-- 1 root root   414274 2007-06-07 16:58 abi-2.6.20-16-generic
lrwxrwxrwx 1 root root       15 2007-08-02 23:54 config -> config-2.6.22.1
-rw-r--r-- 1 root root    83234 2007-04-15 01:33 config-2.6.20-15-generic
-rw-r--r-- 1 root root    83217 2007-06-07 14:16 config-2.6.20-16-generic
-rw-r--r-- 1 root root    81509 2007-08-02 23:54 config-2.6.22.1
-rw-r--r-- 1 root root    81509 2007-08-02 22:10 config-2.6.22.1.old
lrwxrwxrwx 1 root root       19 2007-08-02 23:54 config.old -> config-2.6.22.1.old
drwxr-xr-x 2 root root     4096 2007-08-05 19:24 grub
-rw-r--r-- 1 root root 57237504 2007-08-03 00:00 initrd-2.6.22.1.img
-rw-r--r-- 1 root root  7158365 2007-07-02 21:52 initrd.img-2.6.20-15-generic
-rw-r--r-- 1 root root  6841615 2007-04-15 09:20 initrd.img-2.6.20-15-generic.bak
-rw-r--r-- 1 root root  6928414 2007-07-09 22:55 initrd.img-2.6.20-16-generic
-rw-r--r-- 1 root root    94600 2006-10-20 07:44 memtest86+.bin
lrwxrwxrwx 1 root root       19 2007-08-02 23:54 System.map -> System.map-2.6.22.1
-rw-r--r-- 1 root root   806942 2007-04-15 04:08 System.map-2.6.20-15-generic
-rw-r--r-- 1 root root   806992 2007-06-07 17:00 System.map-2.6.20-16-generic
-rw-r--r-- 1 root root   882466 2007-08-02 23:54 System.map-2.6.22.1
-rw-r--r-- 1 root root   882466 2007-08-02 22:10 System.map-2.6.22.1.old
lrwxrwxrwx 1 root root       23 2007-08-02 23:54 System.map.old -> System.map-2.6.22.1.old
lrwxrwxrwx 1 root root       16 2007-08-02 23:54 vmlinuz -> vmlinuz-2.6.22.1
-rw-r--r-- 1 root root  1745100 2007-04-15 04:07 vmlinuz-2.6.20-15-generic
-rw-r--r-- 1 root root  1746636 2007-06-07 16:58 vmlinuz-2.6.20-16-generic
-rw-r--r-- 1 root root  1932628 2007-08-02 23:54 vmlinuz-2.6.22.1
-rw-r--r-- 1 root root  1932692 2007-08-02 22:10 vmlinuz-2.6.22.1.old
lrwxrwxrwx 1 root root       20 2007-08-02 23:54 vmlinuz.old -> vmlinuz-2.6.22.1.old

Last edited by devils casper; 08-07-2007 at 03:37 AM.. Reason: inserted Code tags
rabantu is offline   Reply With Quote
Old 08-07-2007   #5 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
contents of /etc/fstab

Quote:
Originally Posted by devils_casper View Post
Post the contents of /etc/fstab file too.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=815118fc-4552-4161-abc0-63ea58561d54 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
UUID=7756db50-b8a4-4196-8c74-4c2c4fd4d2bf none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
rabantu is offline   Reply With Quote
Old 08-07-2007   #6 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,057
Send a message via Yahoo to devils casper
Quote:
title Ubuntu, kernel 2.6.22.1
root (hda,1)
kernel /boot/vmlinuz-2.6.22.1 root=/dev/hda1 ro
initrd /boot/initrd-2.6.22.1.img
Why its (hda,1)?
It should be root (hd0,0).
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 08-07-2007   #7 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
first it was (hd0,0)

Quote:
Originally Posted by devils_casper View Post
Why its (hda,1)?
It should be root (hd0,0).
Hi,

It was originally (hd0,0) and i was getting that error. And somewhere in the forums I read that we need to point to the correct device on our systems which is hda1 as you can see from the contents of the fstab file.

I can change it back to (hd0,0). I think I will get the same error though
rabantu is offline   Reply With Quote
Old 08-07-2007   #8 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,057
Send a message via Yahoo to devils casper
Try to change it and post exact error message here, if any.
I dont think it will throw any error because every thing is correct now. Let see...
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 08-07-2007   #9 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
errors...

Quote:
Originally Posted by devils_casper View Post
Try to change it and post exact error message here, if any.
I dont think it will throw any error because every thing is correct now. Let see...
Hi,
I still have the same errors....
.
.
.
.
[ 44.590291] RAMDISK: cramfs filesystem found at block 0
[ 44.590462] RAMDISK: Loading 55896KiB [1 disk] into ram disk... done.
[ 46.899335] List of all partitions
[ 46.899462] No filesystem could mount root, tried: reiserfs ext2
[ 46.899682] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



****************
Ok. I want to explain the RAMDISK messages. Initially I had 16 disks each 4096KiB. Since, my initrd image is about 54MB, I changed my RAMDISK size to be 64MB and reduced the number of disks from 16 to 1. I did this through menuconfig.
I am not sure if this is helpful info.

Thanks for all your help.
rabantu is offline   Reply With Quote
Old 08-08-2007   #10 (permalink)
Just Joined!
 
Join Date: Jun 2007
Posts: 34
can someone please suggest any ansewers....

Quote:
Originally Posted by rabantu View Post
Hi,
I still have the same errors....
.
.
.
.
[ 44.590291] RAMDISK: cramfs filesystem found at block 0
[ 44.590462] RAMDISK: Loading 55896KiB [1 disk] into ram disk... done.
[ 46.899335] List of all partitions
[ 46.899462] No filesystem could mount root, tried: reiserfs ext2
[ 46.899682] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



****************
Ok. I want to explain the RAMDISK messages. Initially I had 16 disks each 4096KiB. Since, my initrd image is about 54MB, I changed my RAMDISK size to be 64MB and reduced the number of disks from 16 to 1. I did this through menuconfig.
I am not sure if this is helpful info.

Thanks for all your help.
Please someone point me in the right direction.
rabantu is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:26 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2