mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Wakko Warner <wakko@animx.eu.org>
Cc: szepe@pinerecords.com, clock@twibright.com, linux-kernel@vger.kernel.org
Subject: Re: Can't mount USB partition as root
Date: Mon, 29 Dec 2003 13:14:25 -0800	[thread overview]
Message-ID: <20031229131425.3d3042e0.rddunlap@osdl.org> (raw)
In-Reply-To: <20031229133812.A4788@animx.eu.org>

On Mon, 29 Dec 2003 13:38:12 -0500 Wakko Warner <wakko@animx.eu.org> wrote:

| > > Is it possible to boot kernel with root from /dev/sda1 (USB)?
| > > partition table: whole /dev/sda is one partition (sda1), type 83 (Linux).
| > > Tried also switching on and off hotplugging in kernel and it didn't help.
| > 
| > Well, is the device detected and the partition table scanned before the
| > root mount is attempted?
| > 
| > I believe this should work given you've compiled in all the necessary
| > code.  Please capture the dmesg using serial console/netconsole/whatever
| > and post it along with your .config.
| 
| I did this with 2.4 a few months back.  Basically all I did was add the same
| delay before mounting root as the kernel does with mounting a root floppy. 
| Problem is the kernel is too fast for the usb code to find the disk.
| 
| I'v been wanting to ask this question.  How can I make the kernel "sleep"
| for say 5 seconds (or pause or something, whatever is required to delay
| execution) to wait for the device to become available.  I tried the same
| thing doing nfsroot with a cardbus nic which fails because the kernel
| doesn't see the card until after it attempted to mount /

I posted a patch for 2.4.22 which someone tested and reported as working.
The patch is here:
  http://www.xenotime.net/linux/usb/usbboot-2422.patch

--
~Randy

  reply	other threads:[~2003-12-29 21:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 16:38 Karel Kulhavý
2003-12-29 16:45 ` Tomas Szepe
2003-12-29 17:31   ` Karel Kulhavý
2003-12-29 17:34     ` Tomas Szepe
2003-12-29 18:38   ` Wakko Warner
2003-12-29 21:14     ` Randy.Dunlap [this message]
2003-12-29 16:47 ` Jeff Chua
2003-12-29 17:33   ` Karel Kulhavý
2003-12-29 17:49     ` Tomas Szepe
2003-12-30  2:16       ` Michael Heyse
2003-12-30  9:10       ` Karel Kulhavý
2003-12-30 20:25         ` Tomas Szepe

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=20031229131425.3d3042e0.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=clock@twibright.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=szepe@pinerecords.com \
    --cc=wakko@animx.eu.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

Powered by JetHome