Subject: Re: Help Cloning a drive -- dd broken?
To: amaya <amaya@idiom.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 06/19/2001 19:01:53
On Mon, Jun 18, 2001 at 09:18:43PM -0700, amaya wrote:
> 
> >On Sat, Jun 16, 2001 at 09:20:43AM -0700, amaya wrote:
> >> I have been trying to clone an existing installation of 1.41-i386 by
> >> dd-ing it from source drive (rwd0a) to an identical destination drive
> >> (rwd1a) but dd always fails with a "read-only" error on the destination
> >> drive. What is the problem?
> >
> >Do you really want to do this ?
> >with 'rwd0a' you're not cloning the drive, only the root partition.
> >To close the whole drive you want to use rwd0d/rwd1d
> >
> >--
> >Manuel Bouyer <bouyer@antioche.eu.org>
> >--
> 
> Yes, I had already copied the /usr and /users partitions with pax but was
> unsuccsesful to make a bootable drive with installboot/fdisk so I thought
> in my innocence that dd would avoid all that trouble...

As dd doesn't copy the MBR this may not work either.

Did you run 'fdisk -i' then 'installboot' ?
Also don't forget to mark the NetBSD partition active (this is something
I forget often).

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--