From owner-freebsd-questions Sun Nov 24 2:13:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 779CF37B401 for ; Sun, 24 Nov 2002 02:13:34 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA8A543E3B for ; Sun, 24 Nov 2002 02:13:33 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gAOADPUf003583; Sun, 24 Nov 2002 02:13:25 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gAOADJU5003582; Sun, 24 Nov 2002 02:13:19 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 24 Nov 2002 02:13:19 -0800 From: David Schultz To: Mark Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Disk copying Message-ID: <20021124101319.GC3172@HAL9000.homeunix.com> Mail-Followup-To: Mark , freebsd-questions@FreeBSD.ORG References: <20021121234452.GJ6062@HAL9000.homeunix.com> <200211220009.GAM09KI87184@asarian-host.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211220009.GAM09KI87184@asarian-host.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Mark : > > Are the disks the same size/geometry? If so: > > > > dd if=/dev/olddisk of=/dev/newdisk bs=32k > > Can "dd" also be used to copy to/fro my RAID disks (40G), to a single 40G > disk? The latter is of a different brand, but has the same size. In other > words: how identical does the geometry need to be? > > If I can use dd here, I think I will use dd to create a "core" system; and > then use additional dumps to backup individual slices. If the drives have the same geometry as far as the BIOS is concerned, you should be okay. Basically, the partition table you copy has to be valid for the target drive. But it's much more reliable to just use dump/restore. If you want to have a spare `live filesystem', just restore the backup to the new disk. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message