From owner-freebsd-questions Sun Sep 30 23:33: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from isy.liu.se (isy.liu.se [130.236.48.10]) by hub.freebsd.org (Postfix) with ESMTP id 1066437B405 for ; Sun, 30 Sep 2001 23:32:45 -0700 (PDT) Received: from lagrange.isy.liu.se (lagrange.isy.liu.se [130.236.49.127]) by isy.liu.se (8.11.4/8.11.4) with ESMTP id f916WYc19184; Mon, 1 Oct 2001 08:32:34 +0200 (MET DST) Message-ID: X-Mailer: XFMail 1.5.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <002f01c14947$ac9a8d00$0a00a8c0@midgar> Date: Mon, 01 Oct 2001 08:32:51 +0200 (CEST) From: Micke Josefsson To: Mario Doria Subject: RE: Copy a disk using dd Cc: FreeBSD Questions 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 It works if you are absolutely certain that the disks are EXACTLY identical. I.e. the disk you are copying to only have bad sectors in common with the source drive. Are you willing to take that risc? Probably not. Format the second disk then use tar or cpio to get the info over. Off the top of my head: cd /wherefrom find . -depth -print | cpio -pudm /whereto or according to man tar(1): To move file hierarchies, use a command line like this: tar -cf - -C srcdir . | tar xpf - -C destdir /Micke On 30-Sep-2001 Mario Doria wrote: > Hi, > > On some machine with 2 identical disks, I want to copy everything on the > first drive to the second drive (mirror copy). The disks are da0 and da1. > I'm thinking of using: > > dd if=/dev/da0 of=/dev/da1 bs=8192 > > Is this OK? > > The purpose of this is to later remove the second hard disk, and use it on > another machine (like installing using Norton's Ghost). Both machines are > identical, I just don't want to do two separate installations. > > Thanks, > > > Mario Doria > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- Michael Josefsson, MSEE mj@isy.liu.se This message was sent by XFMail running on FreeBSD 4.4-STABLE ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message