Re: disk-to-disk copy

[ Available lists | Index of freebsd-isp | Month of Sep 1996 | Week of 28 Sep 1996 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Rodney W. Grimes <rgrimes@GndRsh.aac.dev.com>
Date
28 Sep 1996 00:52:20
Subject
Re: disk-to-disk copy
Message-ID
199609280752.AAA14955@GndRsh.aac.dev.com


[ Hide this part ]
> 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


Elapsed time: 0.107 seconds