From owner-freebsd-questions Tue Oct 1 07:37:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA20542 for questions-outgoing; Tue, 1 Oct 1996 07:37:48 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA20531 for ; Tue, 1 Oct 1996 07:37:43 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0v85sr-000QmTC; Tue, 1 Oct 96 15:33 MET From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id QAA21860; Tue, 1 Oct 1996 16:08:14 +0200 Message-Id: <199610011408.QAA21860@allegro.lemis.de> Subject: Re: disk-to-disk copy To: rgrimes@GndRsh.aac.dev.com (Rodney W. Grimes) Date: Tue, 1 Oct 1996 16:08:13 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <199609280752.AAA14955@GndRsh.aac.dev.com> from "Rodney W. Grimes" at Sep 28, 96 00:51:55 am X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Rodney W. Grimes writes: > >> 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 I've been waiting to see if anybody said aye or nay about this one. Last time I tried it, about a year ago both on 2.1-prerelease and 2.2-current, it didn't work: there are various interlocks which prevent you from overwriting volume labels. I don't have the time to check if it's still the case, but I'd be very interested in feedback. Greg