• Andy Whitcroft's avatar
    [PATCH] root mount failure: emit filesystems attempted · be6e028b
    Andy Whitcroft authored
    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: default avatarAndy Whitcroft <apw@shadowen.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    be6e028b
do_mounts.c 9.13 KB