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

From: Andries Brouwer
Date: Tue Jan 18 2005 - 03:09:55 EST


On Mon, Jan 17, 2005 at 04:02:15PM -0800, Randy.Dunlap wrote:
> 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.
>
> Is there a solution other than initrd/initramfs ?

On the one hand, I entirely agree with Al - this guessing business
is a bad kludge, and building complications on top of it makes
things worse.

On the other hand, we do already have the rootfstype= option,
so one can avoid trying things in the "wrong" order.

Andries
-
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/