Subject: Re: Cloning /dev/wd0
To: Nicolas Saurbier <Nicolas.Saurbier@biodata.de>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 12/10/2002 08:05:17
On Tue, 10 Dec 2002, Nicolas Saurbier wrote:
> I have a Harddisk /dev/wd0 and I want to mirrow it on /dev/wd2. wd0 has s=
everal partitions.
>
> On Linux I would do a "dd if=3D/dev/hda of=3D/dev/hdc" and mirrow everyth=
ing on hda on hdc.
> Now I=B4m looking for a possibility to do a "dd" on NetBSD that copys all=
partitions on wd0 to wd2.
>
> How shall I do this? Is there something like "hda" (the whole HD), may be=
just wd0???? (I know,
> there is no wd0)
On NetBSD, the whole (first) disk is "/dev/wd0d", the third is
"/dev/wd2d".
One warning: sometimes when you try to write past the end, the kernel
spews messages, then downgrades the DMA mode, which is inconvenient.
The work-around is to calculate and supply the exact "count" to "dd"
for a given "bs".
Frederick