From owner-freebsd-questions@freebsd.org Fri May 1 18:51:07 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 48B122DD3CA for ; Fri, 1 May 2020 18:51:07 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DLtd4PB4z406w for ; Fri, 1 May 2020 18:51:05 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Fri, 1 May 2020 11:51:01 -0700 Subject: Re: Mounting from ufs:/dev/ad2s1a failed with error 19. To: freebsd-questions@freebsd.org References: <4348B2AE-3E30-4345-8883-EAEA53A59220@kukulies.org> <0D1F4392-C646-42C8-9DB3-50F93236A6DC@kukulies.org> <20200501051126.a41ff1cd.freebsd@edvax.de> <10b538ce-7b4d-22c1-dbde-60672244422e@holgerdanske.com> <20200501085510.9ef376bb.freebsd@edvax.de> From: David Christensen Message-ID: Date: Fri, 1 May 2020 11:51:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200501085510.9ef376bb.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49DLtd4PB4z406w X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-1.70 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.981,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.64)[ipnet: 184.104.0.0/15(0.42), asn: 6939(-3.59), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.97)[-0.975,0]; DMARC_NA(0.00)[holgerdanske.com]; RCVD_IN_DNSWL_NONE(0.00)[27.128.105.184.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 18:51:07 -0000 On 2020-04-30 23:55, Polytropon wrote: > On Thu, 30 Apr 2020 22:42:47 -0700, David Christensen wrote: >> On 2020-04-30 20:11, Polytropon wrote: >>> On Thu, 30 Apr 2020 20:29:14 +0200, Christoph Kukulies wrote: >>>> Could solve it myself: bootet back to usb drive, mounted >>>> /dev/ada0s1 /mnt and edited /mnt/etc/fstab to the correct >>>> mount device. >>>> There were ada2s1 for / and another ada2 device for swap. >>>> Changed that to ada0s1 and now the system boots fine. >>> >>> If you can, use labels to avoid those kinds of problem. :-) >>> >>> https://www.freebsd.org/doc/handbook/geom-glabel.html >> >> Is there a FreeBSD labeling solution, or any other identifier solution >> that avoids using device nodes, for the combination BIOS, MBR, GELI, and >> ZFS? > > For this constellation, probably glabel is the convenient > tool: "glabel label ", and then in the "zpool > create" command use gpt/ indead of the device name. > > I have no idea of why MBR should be involved here (as you > want to use ZFS)... > > Documentation: > > https://www.freebsd.org/doc/handbook/zfs-quickstart.html > > As the example shows, there is no MBR-related step involved. > ZFS can manage devices just fine by itself. However, today's > suggestion is to always use gpart (with -t freebsd-zfs for > use with ZFS), so that's probably the best way to go. > > Here is some specific inspiration that also includes the > use of GELI: > > https://blog.haraschak.com/from-dev-to-label/ > > So if I understand this correctly, the suggested approach > is to use -l