Re: waiting 10s before mounting root filesystem?

From: William Park
Date: Tue Dec 28 2004 - 20:58:04 EST


On Wed, Dec 29, 2004 at 02:38:25AM +0100, Jesper Juhl wrote:
> On Tue, 28 Dec 2004, William Park wrote:
>
> > On Mon, Dec 27, 2004 at 10:23:34PM +0100, Andreas Unterkircher wrote:
> > > [1] http://www.xenotime.net/linux/usb/usbboot-2422.patch

> > Thanks Andreas. I can now boot from my el-cheapo USB key drive
> > (256MB SanDisk Cruzer Mini). Since mine takes about 5sec to show
> > up, I decided to wait 5sec instead of 1sec. Here is diff for
> > 2.6.10:
> >
> > --- ./init/do_mounts.c--orig 2004-12-27 17:36:35.000000000 -0500
> > +++ ./init/do_mounts.c 2004-12-28 17:27:26.000000000 -0500
> > @@ -301,7 +301,14 @@ retry:
> > root_device_name, b);
> > printk("Please append a correct \"root=\" boot option\n");
> >
> How about adding a loglevel to this printk() while you are at it? like
> this for instance:
> printk(KERN_ERR "Please append a correct \"root=\" boot option\n");
>
> or maybe that should be KERN_CRIT ...
>
>
> > +#if 0 /* original code */
> > panic("VFS: Unable to mount root fs on %s", b);
> > +#else
> > + printk ("Waiting 5 seconds to try again...\n");
>
> ^^^ And here I think a loglevel of KERN_INFO would be resonable :
> printk (KERN_INFO "Waiting 5 seconds to try mounting root fs again...\n");
>
>
> > + set_current_state(TASK_INTERRUPTIBLE);
> > + schedule_timeout(5 * HZ);
>
> I could be mistaken, but I would have said that msleep would have been
> better here.???
>
>
> > + goto retry;
> > +#endif
> > }
> > panic("VFS: Unable to mount root fs on %s", __bdevname(ROOT_DEV, b));
>
> ^^^ and this one :
> panic(KERN_CRIT "VFS: Unable to mount root fs on %s", __bdevname(ROOT_DEV, b));
>
>
> --
> Jesper Juhl

Jesper, I have no idea what I'm doing. :-) I simply adapted the 2.4
patch for 2.6.10 kernel.

Ideally, motherboard should support booting from USB key drive directly.
I'm told that most modern motherboards do support usbboot, but my
machine doesn't. So, I trying to load the kernel from floppy (harddisk
for testing purpose). This is part of my attempt to build Linux
thin-client out of mini-ITX type of computer (Via CLE266 chipset, Via C3
cpu).

Now, I need to find a machine that actually can do usbboot...

--
William Park <opengeometry@xxxxxxxx>
Open Geometry Consulting, Toronto, Canada
Linux solution for data processing.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/