Skip site navigation (1)Skip section navigation (2)
Date:      15 Apr 2023 16:47:21 -0400
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd@dreamchaser.org
Subject:   Re: frequent disk error, need guidance
Message-ID:  <20230415204721.DD803BF2E2EA@ary.qy>
In-Reply-To: <da04f7b2-2d8f-f7fb-5a00-e378a33e7a84@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
It appears that Gary Aitken <freebsd@dreamchaser.org> said:
>of fbsd in such cases), wanted to see if the following is a good way
>to copy the old disk to the new one.
>
>mount /dev/ada1p2 /mnt/newsys
>cd /mnt/newsys
>dump -0 -f - /dev/ada0p2 | restore -r -Dv -f -
>
>However... this is a running system, which seems unlikely to produce
>a consistent result.

I'd shut down to single user, make a /.snap directory, and do dump -L
to tell it to make a snapshot before dumping.  That should work OK.




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