LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-23-2008, 06:29 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Rep: Reputation: 30
Kernel panic cannot open root device "0" ???


I just got lilo installed to the MBR and now I get a Kernel Panic, cannot
open root device at "0" or unknown block (0,0)
Please append a correct root= boot device

Does this mean I need to change LILO to read something like Root= /dev/hda1?
 
Old 12-23-2008, 06:34 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,343

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
The most likely error is that you do not have a correct pointer to your initrd. Could you post the contents of /etc/lilo.conf and we can check it out.

------------------
Steve Stites
 
Old 12-23-2008, 06:47 PM   #3
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I will post as much as I can, another thing is every time I reboot I have to reinstall LILO by running liloconfig because it is not there when i first boot from the cd.

This is what lilo.conf looks like..........

append=" vt.default_utf8=0"
boot = /dev/hda
timeout=1200
vga=773
image = /boot/vmlinuz
root = /proc
label = linux
read-only


I left out the framebuffer stuff.
 
Old 12-23-2008, 07:04 PM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by M$ISBS View Post
I will post as much as I can, another thing is every time I reboot I have to reinstall LILO by running liloconfig because it is not there when i first boot from the cd.
I think that you closed your earlier thread a little too soon;-)

When you boot from the CD, a virtual filesystem is created with all the expected directories such as "/etc". This is _not_ the same as the filesystem on your hard drive, unless you use the "root=/dev/hda1" parameter when booting, but my guess is you didn't. You should mount your hard drive (the installer will do this for you if you want, or you can just do "mount /dev/hda1 /mnt"). Then if you ls /mnt you will see another root-looking filesystem. This is the actual one on your disk. At this point you can issue "chroot /mnt" to temporarily make the filesystem under /mnt the root filesystem. You need to do this before doing liloconfig because otherwise it will install lilo.conf to /etc/lilo.conf (ie. to the virtual filesystem) rather than to /mnt/etc/lilo.conf (your real filesystem). That's why it "disappears" after you reboot.

Brian
 
Old 12-23-2008, 08:02 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Does this mean I need to change LILO to read something like Root= /dev/hda1?
Yes - that should point to your root filesystem device. The entry root=/proc is not right. Follow the instructions on the install cd/dvd - something like "hugesmp.s root=/dev/hda1 rdinit= ro" at the lilo prompt to boot then fix lilo.conf and rerun lilo.

Last edited by bgeddy; 12-23-2008 at 08:05 PM.
 
Old 12-23-2008, 08:08 PM   #6
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I mounted the filesystem on the HD, did chroot /mnt and typed liloconfig, but...... I am getting the same error I got originally when i installed slack:

Fatal: open /dev/sda : no such device or address
Sorry but the attempt to install lilo has failed.... Etc.

I dont know what /dev/sda is, on this computer thats what I use to mount my camera.

Can I manually edit lilo.conf and enter the parameters from a working lilo.conf, such as the one on the computer I am using now?

Thanks.
 
Old 12-23-2008, 08:19 PM   #7
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Ok, I think I am making progress.

I added /dev/hda to the boot section of lilo.conf
and I added root = /dev/hda1

and rebooted to the hd and now I am not getting the kernel panic but
I do get this error:

An error occurred during the root filesystem check,
you will be allowed to log into single user mode to fix the probelem.

It says something about ext2 but I am using reiserfs.
 
Old 12-23-2008, 09:17 PM   #8
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Try something like this.

Code:
append=" vt.default_utf8=0 hda=noprobe"
boot = /dev/sda
timeout=1200
vga=773
image = /boot/vmlinuz
root = /dev/sda1
label = linux
read-only
 
Old 12-23-2008, 09:43 PM   #9
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by mRgOBLIN View Post
Try something like this.

Code:
append=" vt.default_utf8=0 hda=noprobe"
boot = /dev/sda
timeout=1200
vga=773
image = /boot/vmlinuz
root = /dev/sda1
label = linux
read-only
Should both entried be sda? Isnt that for SCSI devices or something?
I will give it a try and see..
 
Old 12-23-2008, 11:46 PM   #10
HerbertJ
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Rep: Reputation: 16
/dev/sd* is for SCSI, SATA, USB, ect. devices. The older IDE PATA devices will be on /dev/hd*. You can look in /proc/partitions to see what's available, or at least recognized by the kernel.
 
Old 12-24-2008, 04:07 PM   #11
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
By fixing lilo, that should eliminate this error message and allow me to boot normally?

"An error occurred during the root filesystem check,
you will be allowed to log into single user mode to fix the probelem.
 
Old 12-24-2008, 06:01 PM   #12
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,343

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by M$ISBS View Post

"An error occurred during the root filesystem check,
you will be allowed to log into single user mode to fix the probelem.

This problem has nothing to do with lilo. It means that your filesystem has problems. You need to run fsck in order to find and fix whatever errors you have in your filesystem. Here is an explanation of fsck:

http://linux.die.net/man/8/fsck

---------------------
Steve Stites
 
Old 12-24-2008, 06:40 PM   #13
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I Just did that and I still get the same error.
FSCK did not find any corruptions and did not report any problems.

When the system reboots I have an error that says "Cannot find / in fstab or mtab"
what does that mean?

And when I look at fstab is says "in use" under the /

When I login as root all the filesystem is read only and I cannot modify anything.
Maybe I am logging into the VFS still? I dont know.

I just tried to reinstall lilo and I got the warning " /proc/partitions does not exist,
disk scan bypassed. and "LBS32 addressing assumed"

Last edited by M$ISBS; 12-24-2008 at 07:38 PM.
 
  


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
VFS: cannot open root device "sda1" or unknown-block(2,0) elninio Linux - General 2 10-29-2008 04:05 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"Kernel panic: VFS: Unable to mount root fs" - Kernel fails to boot linux Freedom Seeker Linux - General 11 11-12-2006 07:48 PM
New kernel - VFS: Cannot open root device "301" or unknown block(3,1) j0y Debian 2 04-30-2005 09:14 PM
Kernel Panic:VFS: Cannot open root device "hda3" or 00:10 shivendnrab Linux - General 1 07-01-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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