From owner-freebsd-arm@freebsd.org Thu Feb 9 19:59:04 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07029CD8936 for ; Thu, 9 Feb 2017 19:59:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A7CD14C6; Thu, 9 Feb 2017 19:59:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id v19Jwv90078472 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 9 Feb 2017 21:58:58 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua v19Jwv90078472 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id v19JwvjM078471; Thu, 9 Feb 2017 21:58:57 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 9 Feb 2017 21:58:57 +0200 From: Konstantin Belousov To: Ian Lepore Cc: wynkoop@wynn.com, freebsd-arm@freebsd.org Subject: Re: mounting USB drive at boot Message-ID: <20170209195857.GQ2092@kib.kiev.ua> References: <1486669059.10020.220.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1486669059.10020.220.camel@freebsd.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 19:59:04 -0000 On Thu, Feb 09, 2017 at 12:37:39PM -0700, Ian Lepore wrote: > On Thu, 2017-02-09 at 14:14 -0500, freebsd-arm@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? > > > > -Brett > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > > " > > Set kern.cam.boot_delay="10000" in /boot/loader.conf. šTune the 10000 > as needed, it's delay in milliseconds. Right solution after r313350 is to set vfs.root_mount_always_wait=1 loader tunable. The knob should be merged to 11 in two weeks.