Re: waiting 10s before mounting root filesystem?

From: Marcelo Tosatti (marcelo.tosatti_at_cyclades.com)
Date: 12/31/04

  • Next message: Paulo Marques: "Re: waiting 10s before mounting root filesystem?"
    Date:	Fri, 31 Dec 2004 06:58:20 -0200
    To: Paulo Marques <pmarques@grupopie.com>
    
    

    On Fri, Dec 31, 2004 at 11:26:34AM +0000, Paulo Marques wrote:
    > Andrew Morton wrote:
    > >William Park <opengeometry@yahoo.ca> wrote:
    > >
    > >>- printk("VFS: Cannot open root device \"%s\" or %s\n",
    > >>- root_device_name, b);
    > >>- printk("Please append a correct \"root=\" boot option\n");
    > >>+ if (--tryagain) {
    > >>+ printk (KERN_WARNING "VFS: Waiting %dsec for root
    > >>device...\n", tryagain);
    > >>+ ssleep (1);
    > >>+ goto retry;
    > >>+ }
    > >>+ printk (KERN_CRIT "VFS: Cannot open root device \"%s\" or
    > >>%s\n", root_device_name, b);
    > >>+ printk (KERN_CRIT "Please append a correct \"root=\" boot
    > >>option\n");
    > >
    > >
    > >Why is this patch needed? If it is to offer the user a chance to insert
    > >the correct medium or to connect the correct device, why not rely upon the
    > >user doing that thing and then hitting reset?
    >
    > No, no. The problem is not user interaction.
    >
    > The problem is that the USB subsystem takes a lot of time to go through
    > the hostcontrollers -> hubs -> devices. By the time it finds the USB
    > mass storage that is supposed to be used as root filesystem, the kernel
    > had already panic'ed.
    >
    > IMHO the kernel should handle this case just fine, without the need for
    > initrd's. After all the user says "my root filesystem is /dev/sda1", and
    > the kernel panic's even though the filesystem is there. This doesn't
    > seem like a correct bahavior.

    Well, Paulo's has more of a clue than I do.

    Some CD drives suffer from the same issues.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Paulo Marques: "Re: waiting 10s before mounting root filesystem?"

    Relevant Pages

    • Re: waiting 10s before mounting root filesystem?
      ... mass storage that is supposed to be used as root filesystem, the kernel ... Lao-tzu, The Way of Lao-tzu ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: no console with current (bk) kernel
      ... >and yet the boot fails with a complaint that it cannot open a ... A root filesystem;) ... Looks like the kernel cannot open /dev/console. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • pivot_root off an initramfs broken
      ... pivot_roots over to the real root filesystem and execs /sbin/init the ... kernel spins inside check_mntwhile mounting /proc in the initscripts. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 3/4] rm -rf linux/arch/i386/boot and Gujin bootloader
      ... variables to search for the root filesystem: ... disk/partition it loads the KGZ kernel file - and so the real mode ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: waiting 10s before mounting root filesystem?
      ... until the root filesystem can be mounted.... ... >the usb storage device comes up in a bash script or something similar. ... Is there obscure kernel parameter? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)