Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2001 05:28:17 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Micke Josefsson <mj@isy.liu.se>
Cc:        questions@freebsd.org
Subject:   RE: Copy a disk using dd
Message-ID:  <15288.17729.723382.466783@guru.mired.org>
In-Reply-To: <79586351@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
[Context recovered from top posting.]

Micke Josefsson <mj@isy.liu.se> types:
> On 30-Sep-2001 Mario Doria wrote:
> > On some machine with 2 identical disks, I want to copy everything on the
> > first drive to the second drive (mirror copy). The disks are da0 and da1.
> > I'm thinking of using:
> > dd if=/dev/da0 of=/dev/da1 bs=8192
> > Is this OK?
> > The purpose of this is to later remove the second hard disk, and use it on
> > another machine (like installing using Norton's Ghost). Both machines are
> > identical, I just don't want to do two separate installations.
> It works if you are absolutely certain that the disks are EXACTLY identical.
> I.e. the disk you are copying to only have bad sectors in common with the source
> drive. Are you willing to take that risc? Probably not.

Don't SCSI drives do the bad block remapping themselves, transparent
to the OS? If so, then this won't matter.

> Format the second disk then use tar or cpio to get the info over.

Since he's talking about moving the installation, he's probably going
to use move root. Dump is the only thing you can depend on to do that
reliably:

	dump 0uf - /srcdev | (cd /destdev; restore -f -)

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15288.17729.723382.466783>