Re: [PATCH] Wait and retry mounting root device (revised)

From: William Park
Date: Mon Jan 17 2005 - 20:08:46 EST


On Tue, Jan 18, 2005 at 12:34:13AM +0000, Al Viro wrote:
> On Tue, Jan 18, 2005 at 02:54:24AM +0000, Daniel Drake wrote:
> > Retry up to 20 times if mounting the root device fails. This fixes
> > booting from usb-storage devices, which no longer make their
> > partitions immediately available.
>
> Sigh... So we can very well get device coming up in the middle of a
> loop and get the actual attempts to mount the sucker in wrong order.
> How nice...
>
> Folks, that's not a solution. And kludges like that really have no
> business being there - they only hide the problem and make it harder
> to reproduce.

The problem at hand is that USB key drive (which is my immediate
concern) takes 5sec to show up. So, it's much better approach than
'initrd'.

--
William Park <opengeometry@xxxxxxxx>, Toronto, Canada
Slackware Linux -- because I can type.
-
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/