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

2005-01-19 Thread Frank van Maarseveen
On Tue, Jan 18, 2005 at 09:02:14AM +0100, Andries Brouwer wrote: > > Suppose we have kernel command line options > rootdev=, rootpttype=, root=, rootfstype=, rootwait= > telling the kernel what device is the root device, > what type of partition table it has, > on which partition the root fi

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

2005-01-18 Thread Werner Almesberger
William Park wrote: > 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'. I'm a little biased, but I disagree ;-) The main problems with initrd seem to be that it adds at least one more moving part, and

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

2005-01-18 Thread Helge Hafting
Andrew Morton wrote: Helge Hafting <[EMAIL PROTECTED]> wrote: The USB block driver should know that 10s (or whatever) hasn't yet passed, and simply block any attempt to access block devices (or scan for them) knowing that it will not work yet, but any device will be there after the pause. A ro

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

2005-01-18 Thread Andrew Morton
Helge Hafting <[EMAIL PROTECTED]> wrote: > > The USB block driver should know that 10s (or whatever) hasn't yet > passed, and simply > block any attempt to access block devices (or scan for them) knowing > that it will > not work yet, but any device will be there after the pause. A root mount

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

2005-01-18 Thread Helge Hafting
Randy.Dunlap wrote: Al Viro wrote: On Tue, Jan 18, 2005 at 02:54:24AM +, 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 dev

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

2005-01-18 Thread Andries Brouwer
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 +, 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 partition

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

2005-01-18 Thread Andries Brouwer
On Tue, Jan 18, 2005 at 02:54:24AM +, 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. > > This should allow booting from root=/dev/sda1 and root=8:1 sty

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

2005-01-17 Thread William Park
On Tue, Jan 18, 2005 at 12:34:13AM +, Al Viro wrote: > On Tue, Jan 18, 2005 at 02:54:24AM +, 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. >

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

2005-01-17 Thread Randy.Dunlap
Al Viro wrote: On Tue, Jan 18, 2005 at 02:54:24AM +, 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 m

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

2005-01-17 Thread Al Viro
On Tue, Jan 18, 2005 at 02:54:24AM +, 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