From owner-freebsd-current@freebsd.org Sat Mar 19 14:33:01 2016 Return-Path: Delivered-To: freebsd-current@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 36872AD4346 for ; Sat, 19 Mar 2016 14:33:01 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 231E18E for ; Sat, 19 Mar 2016 14:33:01 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 223A2AD4345; Sat, 19 Mar 2016 14:33:01 +0000 (UTC) Delivered-To: current@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 21E26AD4342 for ; Sat, 19 Mar 2016 14:33:01 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from erouter6.ore.mailhop.org (erouter6.ore.mailhop.org [54.187.213.119]) (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 E11038D for ; Sat, 19 Mar 2016 14:33:00 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 742b1cff-eddf-11e5-827e-7d17a39bef25 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound3.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 19 Mar 2016 14:32:48 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u2JEWqoh003742; Sat, 19 Mar 2016 08:32:52 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1458397972.68920.69.camel@freebsd.org> Subject: Re: USB disks attach after rootfs prompt From: Ian Lepore To: Poul-Henning Kamp , current@freebsd.org Date: Sat, 19 Mar 2016 08:32:52 -0600 In-Reply-To: <1346.1458392679@critter.freebsd.dk> References: <1346.1458392679@critter.freebsd.dk> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2016 14:33:01 -0000 On Sat, 2016-03-19 at 13:04 +0000, Poul-Henning Kamp wrote: > Running: > > FreeBSD 11.0-CURRENT #32 r296137: Sat Feb 27 11:34:01 UTC 2016 > > I tried "boot -a" and found that USB disks only attach *after* you > enter some root filesystem. > > That's not terribly useful. > iirc, interrupts are disabled while you're at the mountroot prompt, which freezes usb enumeration. It should do a sleep/pause every time you enter '.', which should allow the interrupt-driven enumeration to finish. It's been a long time since I've done it, but it seems to still work... I just plugged in a usb drive while I was at the prompt and it didn't show up until the second time I entered a '.'. -- Ian