Re: 1.3.71: VFS panic; Unable to mount root filesystem

Andries.Brouwer@cwi.nl
Sat, 9 Mar 1996 00:18:29 +0100


: But: Couldn't some kind soul add a better explanation instead of
: "cannot mount". Why did the mount fail? Is the device unknown, or is
: the filesystem type unknown, or what? Some better message would be
: great for 2.0.

Try the following.
[This allows you to distinguish a failed blkdev_open() from an
unrecognized filesystem.]

--- super.c~ Mon Mar 4 20:56:36 1996
+++ super.c Sat Mar 9 00:11:47 1996
@@ -878,10 +878,11 @@
filp.f_mode = 1;
retval = blkdev_open(&d_inode, &filp);
}
-
+ if (retval)
+ printk("VFS: Cannot open root device %s\n",
+ kdevname(ROOT_DEV));
+ else
for (fs_type = file_systems ; fs_type ; fs_type = fs_type->next) {
- if(retval)
- break;
if (!fs_type->requires_dev)
continue;
sb = read_super(ROOT_DEV,fs_type->name,root_mountflags,NULL,1);