Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2020 14:55:49 -0700
From:      Mike Starr <starrtennis@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Mounting from ufs:/dev/ad2s1a failed with error 19.
Message-ID:  <CABhTyc8uPsqYF6kEcpCZc=-xqsE1_wz2xFzWSPkV309HxoeT-w@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.22.395.2004302148520.91211@enterprise.ximalas.info>
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> <alpine.BSF.2.22.395.2004302148520.91211@enterprise.ximalas.info>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Oh neat! Thanks for the advice! I'm looking up gparted as we speak.

Mike

On Thu, Apr 30, 2020 at 1:06 PM Trond Endrest=C3=B8l <
trond.endrestol@ximalas.info> wrote:

> On Thu, 30 Apr 2020 21:47+0200, Christoph Kukulies wrote:
>
> > Fine, but where in the installation process would I have had a chance t=
o
> 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.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CABhTyc8uPsqYF6kEcpCZc=-xqsE1_wz2xFzWSPkV309HxoeT-w>