USB disks attach after rootfs prompt

Ian Lepore ian at freebsd.org
Sat Mar 19 14:33:01 UTC 2016


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


More information about the freebsd-current mailing list