public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] root mount failure emit filesystems attempted
@ 2006-05-03 16:44 Andy Whitcroft
  2006-05-03 19:14 ` Jan Engelhardt
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Whitcroft @ 2006-05-03 16:44 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

root mount failure emit filesystems attempted

When we fail to mount from a valid root device list out the filesystems
we have tried to mount it with.  This gives the user vital diagnostics
as to what is missing from their kernel.

For example in the fragment below the kernel does not have CRAMFS
compiled into the kernel and yet appears to recognise it at the RAMDISK
detect stage.  Later the mount fails as we don't have the filesystem.

  RAMDISK: cramfs filesystem found at block 0
  RAMDISK: Loading 1604KiB [1 disk] into ram disk... done.
  XFS: bad magic number
  XFS: SB validate failed
  No filesystem could mount root, tried: reiserfs ext3 ext2 msdos vfat
    iso9660 jfs xfs
  Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
  
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
---
 do_mounts.c |    5 +++++
 1 files changed, 5 insertions(+)
diff -upN reference/init/do_mounts.c current/init/do_mounts.c
--- reference/init/do_mounts.c
+++ current/init/do_mounts.c
@@ -310,6 +310,11 @@ retry:
 
 		panic("VFS: Unable to mount root fs on %s", b);
 	}
+
+	printk("No filesystem could mount root, tried: ");
+	for (p = fs_names; *p; p += strlen(p)+1)
+		printk(" %s", p);
+	printk("\n");
 	panic("VFS: Unable to mount root fs on %s", __bdevname(ROOT_DEV, b));
 out:
 	putname(fs_names);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-03 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-03 16:44 [PATCH] root mount failure emit filesystems attempted Andy Whitcroft
2006-05-03 19:14 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox