[yocto] How do I tell when a USB disk is ready?
Gary Thomas
gary at mlbassoc.com
Tue Oct 25 01:45:29 PDT 2011
On 2011-10-24 18:10, Chris Tapp wrote:
> I've got a minimal root file system that will be used to install a poky image from a USB stick.
>
> The init script this uses mounts sda1 (from where it's just booted), but sda1 isn't ready when it tries to do this - I can see the bus enumeration messages on the console after the
> mount fails.
>
> How can my script test to see when the device is ready?
You could try looking for /dev/sda1 in /proc/partitions like in
attached script.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wd
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20111025/3db444f8/attachment.ksh>
More information about the yocto
mailing list