mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: Micha Nelissen <micha@neli.hopto.org>, lud <linux-usb@vger.kernel.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: USB stick as root device does not work
Date: Mon, 23 May 2011 10:14:05 -0700	[thread overview]
Message-ID: <20110523101405.e3ccafe9.rdunlap@xenotime.net> (raw)
In-Reply-To: <4DD919FD.9090000@neli.hopto.org>

[adding cc: of linux-usb mailing list]

On Sun, 22 May 2011 16:13:17 +0200 Micha Nelissen wrote:

> Hi,
> 
> Using USB stick as root device does not work for me. I specify
> 'root=/dev/sdb1 rootwait' on the kernel commandline, but the kernel does
> not wait for the USB stick to be scanned and its partitions found. I
> have a harddisk which is /dev/sda, and this USB stick would be /dev/sdb.
> 
> I think blk_lookup_devt returns the block device number even if it does
> not exist yet, and init/do_mounts.c:473 therefore skips waiting:
> 
>         if ((ROOT_DEV == 0) && root_wait) {
> 
> due to ROOT_DEV having become non-zero already.
> 
> If I use the commandline: 'root=/dev/sdb1 rootdelay=5' then it does
> mount and boot properly. However, using rootwait seems safer and faster
> to me, that it's meant for this use case.
> 
> Thanks for any pointers,
> 
> Micha
> --

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2011-05-23 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 14:13 Micha Nelissen
2011-05-23 17:14 ` Randy Dunlap [this message]
2011-05-23 17:33   ` Alan Stern
2011-05-23 18:06     ` Micha Nelissen

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=20110523101405.e3ccafe9.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=micha@neli.hopto.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®