From owner-freebsd-isp Sat Sep 28 00:52:20 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA16147 for isp-outgoing; Sat, 28 Sep 1996 00:52:20 -0700 (PDT) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA16106 for ; Sat, 28 Sep 1996 00:52:17 -0700 (PDT) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.7.5/8.7.3) id AAA14955; Sat, 28 Sep 1996 00:52:00 -0700 (PDT) From: "Rodney W. Grimes" Message-Id: <199609280752.AAA14955@GndRsh.aac.dev.com> Subject: Re: disk-to-disk copy In-Reply-To: <199609280721.DAA02418@itchy.mosquito.com> from Bruce Bauman at "Sep 28, 96 03:21:59 am" To: boot@mosquito.com (Bruce Bauman) Date: Sat, 28 Sep 1996 00:51:55 -0700 (PDT) Cc: freebsd-isp@freebsd.org, boot@itchy.mosquito.com X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have 2 SCSI disks which are going bad, and I've already > gotten (identical) replacement drives. I'd like to copy > everything (data, partition tables, etc) from the old drives > to the new ones. Is there an easy way to do this? > > Nothing jumped out at me from the man pages. I'd rather > not have to go through disklabel, dump, restore, etc. If they are truely identical in block count this will do it: dd if=/dev/rsdX of=/dev/rsdY bs=8192 Note that hard errors are going to cause this to abort, so turn on ARRE to try and minimize them with: scsi -f /dev/rsdX -m 1 -P3 -e -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD