mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nick Bartos" <spam99@2thebatcave.com>
To: linux-kernel@vger.kernel.org
Subject: getting usb mass storage to finish before running init?
Date: Thu, 12 Feb 2004 19:54:41 -0600 (CST)	[thread overview]
Message-ID: <52417.192.168.1.12.1076637281.squirrel@mail.2thebatcave.com> (raw)

Is there any way to get the kernel to finish initializing usb mass storage
devices before running init?

I have a problem where I am trying to boot off usb, but the storage device
is not detected when I am trying to do fsck and mount the flash device
from my init scripts.

I can put a sleep in there but that is sloppy, and can not really be
relied apon (since technically there is no way I can know how long the
detection phase will take), and also I may be waisting time (which I don't
want to, I want a fast booting router).

I cannot poll to wait for the device to exist in /proc/partitions or in
/dev, since some routers will boot off ide and may not even have usb
devices.

I would like to hack the kernel to wait to run init until after the usb
stuff is done (although I don't really know where to start, I don't know
where the usb or init stuff is ran from), or find some clean & reliable
way of detecting when it is done (even if it doesn't need to load usb).

I was sort of hoping there was some little-known kernel option that may
help me...

Ideas?

             reply	other threads:[~2004-02-13  1:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-13  1:54 Nick Bartos [this message]
     [not found] <1oAMR-6St-13@gated-at.bofh.it>
2004-02-13  2:09 ` der.eremit
2004-02-13  2:34   ` Nick Bartos
2004-02-13 12:48     ` der.eremit
2004-02-13 12:56       ` Nick Bartos
2004-02-13  4:06   ` Randy Dunlap
2004-02-13 12:55     ` der.eremit

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=52417.192.168.1.12.1076637281.squirrel@mail.2thebatcave.com \
    --to=spam99@2thebatcave.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®