Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2020 22:06:04 +0200 (CEST)
From:      =?UTF-8?Q?Trond_Endrest=C3=B8l?= <trond.endrestol@ximalas.info>
To:        Christoph Kukulies <kuku@kukulies.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mounting from ufs:/dev/ad2s1a failed with error 19.
Message-ID:  <alpine.BSF.2.22.395.2004302148520.91211@enterprise.ximalas.info>
In-Reply-To: <D2AB7430-4FD0-40CA-A409-4045C04BAE34@kukulies.org>
References:  <4348B2AE-3E30-4345-8883-EAEA53A59220@kukulies.org> <0D1F4392-C646-42C8-9DB3-50F93236A6DC@kukulies.org> <alpine.BSF.2.22.395.2004302136320.91211@enterprise.ximalas.info> <D2AB7430-4FD0-40CA-A409-4045C04BAE34@kukulies.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.22.395.2004302148520.91211>