From owner-freebsd-usb@freebsd.org Mon Jul 4 12:00:34 2016 Return-Path: Delivered-To: freebsd-usb@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 A5844B90456 for ; Mon, 4 Jul 2016 12:00:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 750F02505; Mon, 4 Jul 2016 12:00:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u64C0X7O005222 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 4 Jul 2016 06:00:33 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u64C0XeW005219; Mon, 4 Jul 2016 06:00:33 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 4 Jul 2016 06:00:33 -0600 (MDT) From: Warren Block To: Gary Palmer cc: freebsd-usb@freebsd.org Subject: Re: USB and loader.conf hints In-Reply-To: <20160703014245.GB70150@in-addr.com> Message-ID: References: <20160703014245.GB70150@in-addr.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 04 Jul 2016 06:00:33 -0600 (MDT) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 12:00:34 -0000 On Sun, 3 Jul 2016, Gary Palmer wrote: > Hi, > > Is it possible to wire a disk device to a particular USB port > via loader.conf hints? > > My problem is that my root device appears via USB. If I leave my 3g > dongle attached, then it competes for the root device for what gets > da0, and the two times I've tried the dongle wins and gets da0 and > the boot stops as it can't find the root partitions. > > This is in a nanobsd install, so I'm not sure if labels would work > as nanobsd is set up to use device names. Labels are exactly the thing to solve this. If nanobsd does not support them yet, working on that is probably easier and long-term more useful.