From owner-freebsd-questions@freebsd.org Fri May 1 06:55:19 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 A6A7C2C8246 for ; Fri, 1 May 2020 06:55:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49D30k47FQz47rM for ; Fri, 1 May 2020 06:55:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.223.160.45]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPA (Nemesis) id 1N2mWA-1j2kFf2lkS-0139Be; Fri, 01 May 2020 08:55:11 +0200 Date: Fri, 1 May 2020 08:55:10 +0200 From: Polytropon To: David Christensen Cc: freebsd-questions@freebsd.org Subject: Re: Mounting from ufs:/dev/ad2s1a failed with error 19. Message-Id: <20200501085510.9ef376bb.freebsd@edvax.de> In-Reply-To: <10b538ce-7b4d-22c1-dbde-60672244422e@holgerdanske.com> 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:dUG+rki4Y1c2qkOQzmYq0tklAXmc3GpdOoJzJGd1pv4yKYuiFVT FJjkPg33gfYdgzxKup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oZlItEfr X-Rspamd-Queue-Id: 49D30k47FQz47rM X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.45 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[45.160.223.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.07)[-0.070,0]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[24.17.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.12)[ip: (-0.22), ipnet: 212.227.0.0/16(-1.21), asn: 8560(2.05), country: DE(-0.02)] 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 06:55:19 -0000 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