Subject: Re: Moving NetBSD (2.0.2 x386) to bigger disk
To: Gilles Gravier <Gilles@Gravier.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: netbsd-users
Date: 08/20/2005 08:51:43
On Sat, Aug 20, 2005 at 08:31:38AM +0200, Gilles Gravier wrote:
> Hi all!
>
> I'm about to get a bigger disk for my machine (all other hardware
> remains). What's the best way to transfer the existing system to the
> newer machine?
>
> dd if=olddisk of=new disk won't work since different sizes.
>
> cp -r will probably mess up links and special devices.
>
> If I can avoid re-install and cp -r /etc /home /var /usr/pkg /usr/pkgsrc
> then I'll be happy. :)
>
> Thanks in advance,
> Gilles.
dump(8) and restore(8). That way the only things you'll have to re-do is
disklabel/newfs and make it bootable using installboot(8).
GH