LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-27-2011, 04:10 PM   #1
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Rep: Reputation: Disabled
Kernel Panic: unable to mount root filesystem...


I am using GRUB bootloader. I can boot into windows fine. But booting into linux gives me the error "kernel panic: unable to mount root fs on unknown block(0,0)

I got LILO to load linux fine but GRUB always gives me this error regardless of the linux OS for this particular computer.
 
Old 05-27-2011, 04:14 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi there,

Can you please paste the output of grub.conf or grub.cfg file (depends on the OS in use) here. It appears that the grub has got a wrong entry for root partition.

As you said you are able to boot in using LILO can you please paste the out of df -h as well as mount command here.
 
1 members found this post helpful.
Old 05-27-2011, 04:49 PM   #3
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Original Poster
Rep: Reputation: Disabled
Sorry, I am not sure where to find this file.
I can run windows 98 from the hard drive and linux OSes from the cds.
For more info:
I have two hard drives(sda and sdb) sda hard drive has two partitions ext2 and fat32.

Last edited by Firefox54; 05-27-2011 at 04:50 PM. Reason: more info provided
 
Old 05-27-2011, 05:11 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Well it would have been better if you would mentioned the OS you are having trouble with.

grub.cfg and grub.conf files are located in /boot/grub/

Also if you are using CentOS, Fedora or RedHat I think following documentation will help you out: http://magazine.redhat.com/2007/03/2...boot-problems/
 
Old 05-27-2011, 05:31 PM   #5
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Original Poster
Rep: Reputation: Disabled
right now I am running the computer with puppy live cd because win 98 doesn't see my ext2 partition. I am trying to boot legacy OS from the hard drive.

In puppy, in /mnt/sda2/boot/grub/ I don't see the grub.conf file or the grub.cfg . I see the menu.1st file as well as a lot of stage(fat_stage1_5, stage1, ufs2_stage1_5 etc.) files
 
Old 05-27-2011, 05:39 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Your problem seems to be that you have your Linux on sda2 while Grub tries to boot from sda1. Open the menu.lst file you found with a text editor, search for the entry for your Linux distro and change the root (hd0,0) to root (hd0,1), then save the file and reboot.
 
1 members found this post helpful.
Old 05-27-2011, 05:56 PM   #7
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Original Poster
Rep: Reputation: Disabled
I changed it and it still gives the same error message, (0,0)

Last edited by Firefox54; 05-27-2011 at 05:57 PM. Reason: error in message
 
Old 05-27-2011, 06:03 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Please post the contents of that file. Please use code-tags (the #-button on top of the text-field) for that.
 
Old 05-27-2011, 08:20 PM   #9
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
How old is this legacy os and what is it? menu.lst has not always been the grub configuration file nor has it always been stored in /boot/grub
 
Old 05-27-2011, 11:15 PM   #10
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Original Poster
Rep: Reputation: Disabled
Legacy is a spinoff of puppy. I think that I am just going to fill up one of my hard drives with unity and the other with win 98.
 
Old 05-28-2011, 05:54 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Unity is not an OS, but a desktop environment that runs on top of Ubuntu. And if this really is a machine from the Windows 98 era then I doubt that it will run Ubuntu with Unity.
If you still want your issue solved then please post the menu.lst file.
 
Old 05-31-2011, 01:49 PM   #12
Firefox54
Member
 
Registered: Apr 2011
Distribution: #!
Posts: 65

Original Poster
Rep: Reputation: Disabled
I gave up on grub. Lilo worked perfectly with Debian.
 
  


Reply

Tags
grub, kernel, kernel panic


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no filesystem could mount root,tried: romfs kernel panic - not syncing: vfs: unable t Mrenigma Slackware 2 03-23-2010 12:47 AM
Kernel Panic unable to mount root filesystem mrinal mishra Linux - Kernel 4 05-03-2006 07:47 AM
Kernel Panic: It won't mount the root filesystem (2.6.8 and 2.6.9) and LILO hates me edman007 Linux - General 4 11-13-2004 05:41 PM
2.6 Kernel Panic : won't mount root filesystem Neorio Linux - Software 2 02-26-2004 09:38 PM
Kernel Panic: won't mount root filesystem Neorio Linux - Software 4 02-05-2004 06:32 PM


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