Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 1996 09:35:15 -0700 (PDT)
From:      "Rodney W. Grimes" <>
To: (Greg Lehey)
Subject:   Re: disk-to-disk copy
Message-ID:  <>
In-Reply-To: <> from Greg Lehey at "Oct 1, 96 04:08:13 pm"

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> 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.

Note that I very carefully specified ``rsdX'' with no trailing slice
or partition name, this device does not have any of the said interlocks
and it is how I turn out production installed disk drives for clients
machines.  This overwrites any and ALL data on the destination drive,
including the MBR.

Rod Grimes                            
Accurate Automation Company                 Reliable computers for FreeBSD

Want to link to this message? Use this URL: <>