From owner-freebsd-current@freebsd.org Thu Sep 17 07:47:20 2015 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 8E4D79CE4F3 for ; Thu, 17 Sep 2015 07:47:20 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1882914E4; Thu, 17 Sep 2015 07:47:20 +0000 (UTC) (envelope-from stefanogarzarella@gmail.com) Received: by lamp12 with SMTP id p12so5885410lam.0; Thu, 17 Sep 2015 00:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=mCpEgHG9wHOxmqE2nXAngIy7xHK7lUBE6fXM6W0hdto=; b=R1V052LQsRwKOU3L0B7W/7vBxEEba0F5wFb/PTi0Gw3pmJOZbv3tAguzHaQVhtfvU/ 9+l74JpzKjz9dTyWVEHi+2m0FCi6nfPJz4Lxm5z52Ae9tfCCDkN68sOuR3ERWeoPgZJr NJMD0bWvOMc/x0b/+5O7e+dsig1Ti33yQorMo+LG7kCncZLdCKilzA1/FnXgGxhylbXu gR6CpHgkPZpLme+ot5YqwY+IpjDUCBSpT83DI6yAaq0vUZPqvc20dlwdCm+pKzchHS7J RwQGP6SiPK6ZZHcTahObqQ2+An8+srqSTEUYx4OxdBOtRUrU0RhEC6OdIr2WsVXlJIbp AFXg== X-Received: by 10.152.198.167 with SMTP id jd7mr16197138lac.118.1442476037877; Thu, 17 Sep 2015 00:47:17 -0700 (PDT) MIME-Version: 1.0 References: <55F8CBB2.1080109@freebsd.org> In-Reply-To: From: Stefano Garzarella Date: Thu, 17 Sep 2015 07:47:08 +0000 Message-ID: Subject: Re: nanoBSD boot problem (on USB stick or as a HD) To: NGie Cooper , Ryan Stone Cc: Julian Elischer , FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Thu, 17 Sep 2015 07:47:20 -0000 Thanks to all! as NGie says, I used the labeling through NANO_LABEL and it works very well! Now in the /etc/fstab I have the label and not the disk specific partition! Maybe is better to set default label in the nanobsd.sh and not the driver in according to NGie. Cheers, Stefano Il giorno mer 16 set 2015 alle 04:26 NGie Cooper ha scritto: > On Tue, Sep 15, 2015 at 7:18 PM, Ryan Stone wrote: > > On Tue, Sep 15, 2015 at 9:53 PM, Julian Elischer > wrote: > > > >> one possibility is to use gpart label to describe the device. > >> possibly it woudl hav ehte same result in both cases, but I don't know > for > >> sure that > >> it works for root device.. you'd have to test. > >> > >> > > I would recommend a UFS label instead. gpart labels are kind of fragile > > and easy to mess up. My previous employer has been shipping systems > where > > the root fs is specified in fstab via a UFS label for years and it never > > gave us a problems. > > +100 > > And FWIW as Stefano discovered later, NANO_LABEL does just that (use > UFS labels). > > The only unfortunate thing is that nanobsd uses a NUL string by default: > > grep NANO_LABEL tools/tools/nanobsd/defaults.sh > tools/tools/nanobsd/defaults.sh:NANO_LABEL="" > tools/tools/nanobsd/defaults.sh: echo newfs ${NANO_NEWFS} > ${NANO_LABEL:+-L${NANO_LABEL}${lbl}} ${dev} > tools/tools/nanobsd/defaults.sh: newfs ${NANO_NEWFS} > ${NANO_LABEL:+-L${NANO_LABEL}${lbl}} ${dev} > tools/tools/nanobsd/defaults.sh: if [ ! -z ${NANO_LABEL} ]; > then > tools/tools/nanobsd/defaults.sh: tunefs -L > ${NANO_LABEL}"s2a" /dev/${MD}s2a > tools/tools/nanobsd/defaults.sh: # Override user's NANO_DRIVE if > they specified a NANO_LABEL > tools/tools/nanobsd/defaults.sh: [ ! -z "${NANO_LABEL}" ] && > NANO_DRIVE="ufs/${NANO_LABEL}" > > The default NANO_DRIVE is useless though -- the old ata(4) stack is dead: > > 95 # The drive name of the media at runtime > 96 NANO_DRIVE=ad0 > > Cheers, > -NGie > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >