Re: Kernel Panic, root fs..

Glynn Clements (glynn@sensei.co.uk)
Tue, 17 Aug 1999 15:58:57 +0200 (GMT--1:00)


Dan Hollis wrote:

> > > > > VFS: Cannot open root device 08:01
> > > > > Kernel Panic: VFS: Unable to mount root fs on 08:01
> > > >
> > > > You forgot to compile your SCSI driver into the kernel
> > >
> > > Perhaps the kernel could be a bit more verbose here.
> >
> > And what *should* it say?
>
> In the case of -ENODEV, the kernel would spit out
>
> <QUOTE>
> Kernel Panic: Couldnt mount /dev/sda1 on root fs,

How does the kernel know that the device should be called /dev/sda1?
The kernel only knows that it was 08:01. The kernel doesn't know,
doesn't need to know, and cannot know, the names of the device files.
You could easily 'mknod /dev/foo b 8 1'. Or even more easily 'rm
/dev/sda1'; that wouldn't stop the kernel from mounting 08:01 as its
root filesystem.

In order to output the name of the device file, you would have to have
a table compiled into the kernel.

> perhaps you forgot to compile in scsi support?

So you would also need a table of descriptive driver names.

What next? Should the kernel spit out a tutorial on how to go about
compiling in SCSI support?

IMO, the kernel doesn't need to be any more verbose. It already
outputs sufficient information to diagnose the problem. Explanations
belong in the documentation, not in the kernel itself.

-- 
Glynn Clements <glynn@sensei.co.uk>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/