Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2019 19:33:09 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        Karl Denninger <karl@denninger.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Moving boot disk - does not seem easy?
Message-ID:  <23930.54709.191581.19474@jerusalem.litteratus.org>
In-Reply-To: <7a80152a-4271-51e7-0f8c-ff65228249c1@denninger.net>
References:  <03d6bfcb-aaad-c3a5-d2a6-b14f819113c2@mansionfamily.plus.com> <7a80152a-4271-51e7-0f8c-ff65228249c1@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Karl Denninger writes:
>  On 9/12/2019 16:26, james wrote:
>  > I had thought that this would be straightforward but it seems not.=

>  >
>  > I have a freebsd 12 system, UFS boots /ada0p2.=A0 Mounts some ZFS
>  > partitions and I'm away.
>  >
>  > I add a new PCIe card with a SATA SSD, and it grabs ada0.
>  >
>  > I want to move my boot to the SSD, not least because the boot prio=
rity
>  > now favours it as ada0, and I had to manually boot ada1p2.
>  >
>  > There's not much on ada1p2 now, but I want the new ada0p2 to be
>  > smaller, so dd is not attractive.
>  >
>  > What's the easiest way to set ata0 to be much like ada0p2 was (giv=
en
>  > that I booted from ada1p2)=3F
>  >
>  > Ideally I'd like boot and swap etc set up as well, which I kinda d=
id
>  > already with sade.
>  >
>  > I already had the issue with freebsd-install/MANIFTEST missing and=
 did
>  > a basic install to ada0, but it seems a bit naff to unmount all my=
 ZFS
>  > mountpoints just to tar across all the rest of it.
>  >
>  > Any pointers=3F
>  >
>  I've done this many times and it's very easy.
> =20
>  Look at the old disk (e.g. "gpart ada1" and friends) so as to get th=
e
>  proper partition settings (e.g. sizes, etc)
> =20
>  Use gpart to set up the NEW disk with the same basic configuration
>  (slice types, etc.) -- it is, of course, ok to change the sizes --
>  it's just important that the data on the old disk fits.

=09Use gpart to label the new disk - call it, say, "root".
=09<rest of copying instructions deleted>
=09In fstab, replace however you currently mount / with:

/dev/gpt/root=09/=09=09ufs=09=09rw=09=091=091

=09changing "ufs" to "zfs" if appropriate.
=09Power down system; unhook old drive; start system.  Things should
Just Work.


=09=09=09Respectfully,


=09=09=09=09Robert Huff





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