From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 16:11:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A7FD16A500 for ; Tue, 5 Dec 2006 16:11:23 +0000 (UTC) (envelope-from ronald@rcpaul.nl) Received: from rcpaul.xs4all.nl (rcpaul.xs4all.nl [213.84.170.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5C8243DB3 for ; Tue, 5 Dec 2006 16:09:22 +0000 (GMT) (envelope-from ronald@rcpaul.nl) Received: from [192.168.4.2] ([192.168.4.2]) by rcpaul.xs4all.nl (8.12.6/8.12.6) with ESMTP id kB5G9wsa082941; Tue, 5 Dec 2006 17:09:59 +0100 (CET) (envelope-from ronald@rcpaul.nl) Message-ID: <457599D5.5000904@rcpaul.nl> Date: Tue, 05 Dec 2006 17:09:57 +0100 From: Ronald Paul User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: "B. Cook" References: <457594C2.90803@poklib.org> In-Reply-To: <457594C2.90803@poklib.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Moving to a new disk.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Dec 2006 16:11:23 -0000 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