Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2019 06:50:55 +0200
From:      Polytropon <freebsd@edvax.de>
To:        james@mansionfamily.plus.com
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Moving boot disk - does not seem easy?
Message-ID:  <20190913065055.12a91226.freebsd@edvax.de>
In-Reply-To: <03d6bfcb-aaad-c3a5-d2a6-b14f819113c2@mansionfamily.plus.com>
References:  <03d6bfcb-aaad-c3a5-d2a6-b14f819113c2@mansionfamily.plus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Sep 2019 22:26:32 +0100, james wrote:
> I had thought that this would be straightforward but it seems not.
>=20
> I have a freebsd 12 system, UFS boots /ada0p2.=A0 Mounts some ZFS=20
> partitions and I'm away.
>=20
> I add a new PCIe card with a SATA SSD, and it grabs ada0.
>=20
> I want to move my boot to the SSD, not least because the boot priority=20
> now favours it as ada0, and I had to manually boot ada1p2.

Use labels - you no longer have to deal with device names that
could change depending on detection order (or other properties).
As long as there is the appropriate boot code installed and you
are referencing the boot partition's label, it will work, no
matter if it is ada0p2 or ada2p2.

Documentation and examples:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-glabel.html

http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_new_standard_g=
pt





--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190913065055.12a91226.freebsd>