From owner-freebsd-questions@freebsd.org Thu Apr 30 20:06:13 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 19E682C7644 for ; Thu, 30 Apr 2020 20:06:13 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Cmbm26r9z40hR for ; Thu, 30 Apr 2020 20:06:11 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id 03UK64Xm008507 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 30 Apr 2020 22:06:04 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1588277164; bh=waHLs8WtxvsqagFv/Om3xzMaoKP7xEXGESketezCgFg=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=uUjvNLJoriJRdNosq/Jcj/HzrZ4g/SRxxPsrKoqxdTiPDg+HosJIkt7AD6cbWf133 kT/5DDwLMI/MErTyUYqY0UfdrKEs1Be3qPp4yX/Kks0UZ3C5oM5IxaSIolZJyQEZbT W+5fNN8fyIc1OJ+7F6JTZ85Ku9qvAEid+8kbRBYKyvr0pyN3jI+ccuBk6Mt05gPmDv b/epKo2x0cYzRHX/k/aeDhkeTQG2A/RNgm9PJ/plro7pMzgCzMnJ3IFhvDPROe3Fgi pQFTAffUeUnJoPWmvdbMGUVdfFlIQhFJGVzi+A2ytsBVCYz7YdViLN82jBBVkBT+UX d0EmBraPHPP+w== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id 03UK6416008480; Thu, 30 Apr 2020 22:06:04 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Thu, 30 Apr 2020 22:06:04 +0200 (CEST) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: Christoph Kukulies cc: freebsd-questions@freebsd.org Subject: Re: Mounting from ufs:/dev/ad2s1a failed with error 19. In-Reply-To: Message-ID: References: <4348B2AE-3E30-4345-8883-EAEA53A59220@kukulies.org> <0D1F4392-C646-42C8-9DB3-50F93236A6DC@kukulies.org> User-Agent: Alpine 2.22 (BSF 395 2020-01-19) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on enterprise.ximalas.info X-Rspamd-Queue-Id: 49Cmbm26r9z40hR X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ximalas.info header.s=default header.b=uUjvNLJo; dmarc=pass (policy=none) header.from=ximalas.info; spf=pass (mx1.freebsd.org: domain of trond.endrestol@ximalas.info designates 2001:700:1100:1::8 as permitted sender) smtp.mailfrom=trond.endrestol@ximalas.info X-Spamd-Result: default: False [-5.10 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[ximalas.info:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ximalas.info:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[ximalas.info,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:224, ipnet:2001:700::/32, country:NO]; IP_SCORE(-2.10)[ip: (-8.49), ipnet: 2001:700::/32(-1.26), asn: 224(-0.71), country: NO(-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: Thu, 30 Apr 2020 20:06:13 -0000 On Thu, 30 Apr 2020 21:47+0200, Christoph Kukulies wrote: > Fine, but where in the installation process would I have had a chance to decide for that option? > Can I define UUID labels (is that GPT?) in the hindsight? Your system uses MBR, hence the ad0s prefix. UFS labels can be set while in singleuser mode, this is particular important for the root filesystem. 1. Reboot to singleuser mode. 2. Hit the enter key when asked about which shell to launch. 3. tunefs -L root /dev/ad0s1a 4. Ditto for the other *UFS* partitions. Consult your /etc/fstab. 5. Verify the labels using dumpfs /dev/ad0s1a 6. Reboot to multiuser mode. 7. Duplicate the necessary lines in /etc/fstab. 8. Comment out the original lines, in case you must revert. 9. Change the duplicate lines to refer to /dev/ufs/root, etc. 10. Reboot to see if you have succeeded. 11. Remove the original lines in /etc/fstab, if desired. I recall issues in the past using glabel(8) which stores the label in the last disk block (sector) of the partition. Hence the labeled device file should present a device which is one disk block shorter to avoid the label being overwritten. Maybe someone else can chime in on this. I prefer GPT labels. See gpart(8), in particular gpart modify -l label -i index diskdevice. -- Trond.