mounting USB drive at boot

Paul Mather paul at gromit.dlib.vt.edu
Thu Feb 9 19:41:00 UTC 2017


On Feb 9, 2017, at 2:14 PM, freebsd-arm at wynn.com wrote:

> Greeting-
> 
> This is probably not ARM specific, but I just brought my original
> BeagleBone up on the freebsd current image from ftp.freebsd.org.
> 
> While I was pleased to discover that USB was working much better than
> it had on 10.x for disk devices (usb flash drive in this case).  I was
> disappointed to discover that attempts to mount the drive at boot would
> fail with the drive not being present when fsck started.
> 
> I tried tagging it as a late file system in fstab and of course marked
> it as second to  check after /, but no joy.  The message about da0
> being discovered always came after the fsck failed and I was dropped to
> single user mode.
> 
> As a work around I set /dev/ufs/bb64 to noauto and I am running fsck on
> it and mounting it from rc.local.
> 
> Is there something obvious I have missed that will permit the fsck to
> happen after the usb bus has been probed?


I was having the same problem and found that adding this line to /boot/loader.conf solved the problem for me:

	kern.cam.boot_delay="10000"


That instructs the system to wait 10 seconds during boot to give time for the CAM subsystem probes to complete.

Cheers,

Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170209/5a185455/attachment.sig>


More information about the freebsd-arm mailing list