Date: Tue, 05 Dec 2006 17:09:57 +0100 From: Ronald Paul <ronald@rcpaul.nl> To: "B. Cook" <bcook@poklib.org> Cc: freebsd-questions@freebsd.org Subject: Re: Moving to a new disk.. Message-ID: <457599D5.5000904@rcpaul.nl> In-Reply-To: <457594C2.90803@poklib.org> References: <457594C2.90803@poklib.org>
next in thread | previous in thread | raw e-mail | index | archive | help
B. Cook wrote: > I've got a dying drive on my hands.. and I know I found a doc/guide on > the handbook before regarding this.. > > something like.. > > # tar cf - --one-file-system -C /var . | tar xpvf - -C /mnt/var [..] > what would be the best way? I do it this way: dd if=/dev/ad0 of=/dev/ad2 bs=8m Where /dev/ad0 is the source disk and /dev/ad2 is the destination disk. Make sure nothing is mounted. This process takes place at sector level, so the boot sector, the partition table and even empty sectors are copied. That someone might want to resize some partitions afterwards to be able to use that extra 10 GB. -- Kind regards, Ronald Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457599D5.5000904>