From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261864AbULaLsU (ORCPT ); Fri, 31 Dec 2004 06:48:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261865AbULaLsU (ORCPT ); Fri, 31 Dec 2004 06:48:20 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:51614 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261864AbULaLsN (ORCPT ); Fri, 31 Dec 2004 06:48:13 -0500 Date: Fri, 31 Dec 2004 06:58:20 -0200 From: Marcelo Tosatti To: Paulo Marques Cc: Andrew Morton , William Park , juhl-lkml@dif.dk, linux-kernel@vger.kernel.org Subject: Re: waiting 10s before mounting root filesystem? Message-ID: <20041231085820.GA10834@logos.cnet> References: <20041227195645.GA2282@node1.opengeometry.net> <20041227201015.GB18911@sweep.bur.st> <41D07D56.7020702@netshadow.at> <20041229005922.GA2520@node1.opengeometry.net> <20041230152531.GB5058@logos.cnet> <20041231035834.GA2421@node1.opengeometry.net> <20041231014905.30b05a11.akpm@osdl.org> <41D5376A.8000705@grupopie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41D5376A.8000705@grupopie.com> User-Agent: Mutt/1.5.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 31, 2004 at 11:26:34AM +0000, Paulo Marques wrote: > Andrew Morton wrote: > >William Park 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.