From: William Park <opengeometry@yahoo.ca>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: linux-kernel@vger.kernel.org, Andreas Unterkircher <unki@netshadow.at>
Subject: Re: waiting 10s before mounting root filesystem?
Date: Tue, 28 Dec 2004 20:56:22 -0500 [thread overview]
Message-ID: <20041229015622.GA2817@node1.opengeometry.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0412290231580.3528@dragon.hygekrogen.localhost>
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@yahoo.ca>
Open Geometry Consulting, Toronto, Canada
Linux solution for data processing.
next prev parent reply other threads:[~2004-12-29 1:56 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-27 19:56 waiting 10s before mounting root filesystem? William Park
2004-12-27 20:10 ` Trent Lloyd
2004-12-27 21:23 ` Andreas Unterkircher
2004-12-28 1:54 ` Eric Lammerts
2004-12-29 0:59 ` William Park
2004-12-29 1:38 ` Jesper Juhl
2004-12-29 1:56 ` William Park [this message]
2004-12-29 12:49 ` Paulo Marques
2004-12-29 19:15 ` William Park
2004-12-29 19:34 ` Paulo Marques
2004-12-29 20:59 ` William Park
2004-12-29 21:26 ` Andreas Steinmetz
2004-12-31 19:32 ` Willy Tarreau
2004-12-29 21:53 ` Bernd Eckenfels
2004-12-29 22:56 ` Jesper Juhl
2004-12-30 15:25 ` Marcelo Tosatti
2004-12-30 23:45 ` Jesper Juhl
2004-12-31 1:45 ` Jesper Juhl
2004-12-31 3:58 ` William Park
2004-12-31 4:41 ` Jesper Juhl
2004-12-31 11:31 ` Paulo Marques
2004-12-31 9:49 ` Andrew Morton
2004-12-31 8:28 ` Marcelo Tosatti
2004-12-31 11:40 ` Andrew Morton
2004-12-31 11:26 ` Paulo Marques
2004-12-31 8:58 ` Marcelo Tosatti
2004-12-31 11:42 ` Andrew Morton
2004-12-31 12:04 ` Paulo Marques
2004-12-31 17:36 ` William Park
2004-12-31 17:48 ` Tomasz Torcz
2004-12-31 18:18 ` William Park
2004-12-31 0:22 ` William Park
[not found] <fa.nc4oh06.1j1872e@ifi.uio.no>
[not found] ` <fa.nalafoa.1ih25aa@ifi.uio.no>
2004-12-31 12:33 ` Bodo Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041229015622.GA2817@node1.opengeometry.net \
--to=opengeometry@yahoo.ca \
--cc=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=unki@netshadow.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox