From owner-freebsd-questions@FreeBSD.ORG Mon May 3 17:54:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C629106566C for ; Mon, 3 May 2010 17:54:52 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by mx1.freebsd.org (Postfix) with ESMTP id 482638FC0C for ; Mon, 3 May 2010 17:54:51 +0000 (UTC) Received: (qmail 5173 invoked from network); 3 May 2010 17:54:51 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 May 2010 17:54:51 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 2E6145084F; Mon, 3 May 2010 13:54:50 -0400 (EDT) From: Lowell Gilbert To: Anselm Strauss References: <4BDC1004.3040000@gmail.com> Date: Mon, 03 May 2010 13:54:50 -0400 In-Reply-To: <4BDC1004.3040000@gmail.com> (Anselm Strauss's message of "Sat, 01 May 2010 13:27:00 +0200") Message-ID: <44ljc0lvkl.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: USB mount delay X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2010 17:54:52 -0000 Anselm Strauss writes: > I have the problem that on my ALIX system USB is first powered up when > the FreeBSD kernel is loading. When local filesystems are mounted the > USB disk is not yet ready and booting fails giving me a shell prompt. > Shortly after I see the kernel message for the recognized /dev/da0 USB > disk, mount it manually and booting can continue. Unfortunately I have > to do this manual step every time I boot. The root filesystem is not > mounted from USB. The USB disk has non-system relevant data. > > Is there any way to either tell the kernel to wait some time before > mounting local filesystems from USB disks, or to mount filesystems later > during boot? > > I already tried the following sysctl variables in /boot/loader.conf with > values of 3000-5000 ms, they did not help: > > kern.cam.scsi_delay: Delay to allow devices to settle after a SCSI bus > reset (ms) > hw.usb.ss_delay: USB status stage delay in ms > hw.usb.pr_recovery_delay: USB port reset recovery delay in ms > > hw.usb.no_boot_wait is set to 0. Why don't you just have devfs mount the disk when the disk does finally show up? It sounds like you don't actually need that USB disk for booting. You might need to use glabel to make sure only that one disk is mounted automatically. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/