From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 16:25:33 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 4E90E16A47B for ; Tue, 5 Dec 2006 16:25:33 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp109.sbc.mail.mud.yahoo.com (smtp109.sbc.mail.mud.yahoo.com [68.142.198.208]) by mx1.FreeBSD.org (Postfix) with SMTP id BF2FB43CA3 for ; Tue, 5 Dec 2006 16:24:52 +0000 (GMT) (envelope-from heli@mikestammer.com) Received: (qmail 94285 invoked from network); 5 Dec 2006 16:25:30 -0000 Received: from unknown (HELO mail.mikestammer.com) (mikestammer@sbcglobal.net@68.249.189.132 with login) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 5 Dec 2006 16:25:30 -0000 X-YMail-OSG: v3zy4aIVM1mNQKHZyIBk_ExFMP4S4O9DxCeWwXWFX9jOwUFVzmluzd0N0DQZVItSjnRRAN0P2ZYb3ivRqAL6UlYu0xyIHFpLNVWsZGXoqlqFB_6QiPomGg-- Received: from localhost (localhost [127.0.0.1]) by mail.mikestammer.com (Postfix) with ESMTP id 048BC1146B; Tue, 5 Dec 2006 10:25:29 -0600 (CST) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from mail.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fUv1FchZ5-ye; Tue, 5 Dec 2006 10:25:23 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by mail.mikestammer.com (Postfix) with ESMTP id 27D9311469; Tue, 5 Dec 2006 10:25:22 -0600 (CST) Message-ID: <45759D71.1000901@mikestammer.com> Date: Tue, 05 Dec 2006 10:25:21 -0600 From: Eric User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Ronald Paul References: <457594C2.90803@poklib.org> <457599D5.5000904@rcpaul.nl> In-Reply-To: <457599D5.5000904@rcpaul.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "B. Cook" , 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:25:33 -0000 Ronald Paul wrote: > 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. > this is one reason why dump is better. it only dumps what there is to dump. no need to worry about the extra space, etc after the fact