From owner-freebsd-questions Wed Oct 2 02:28:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA23937 for questions-outgoing; Wed, 2 Oct 1996 02:28:26 -0700 (PDT) Received: from mail001.mediacity.com ([206.24.105.68]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA23932 for ; Wed, 2 Oct 1996 02:28:22 -0700 (PDT) From: brian@mediacity.com Received: (qmail-queue invoked from smtpd); 2 Oct 1996 09:28:22 -0000 Received: from home001.mediacity.com (HELO mediacity.com) (206.24.105.66) by mail001.mediacity.com with SMTP; 2 Oct 1996 09:28:22 -0000 Received: (qmail-queue invoked by uid 100); 2 Oct 1996 09:28:26 -0000 Message-ID: <19961002092826.3593.qmail@mediacity.com> Subject: Re: disk-to-disk copy To: grog@lemis.de (Greg Lehey) Date: Wed, 2 Oct 1996 02:28:26 -0700 (PDT) Cc: rgrimes@GndRsh.aac.dev.com, questions@FreeBSD.org In-Reply-To: <199610011408.QAA21860@allegro.lemis.de> from Greg Lehey at "Oct 1, 96 04:08:13 pm" Reply-To: brian@mediacity.com X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 > Greg Lehey wrote: > 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. I've done this quite extensively. Made 10 FreeBSD drives this way about a month ago via 2.1.5. -- Brian Litzinger Powered by FreeBSD http[s]://www.mpress.com