Subject: Re: dd raw disk?
To: Alex <xela@MIT.EDU>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: port-i386
Date: 03/07/2002 16:11:59
--YToU2i3Vx8H2dn7O
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 07, 2002 at 10:04:20AM -0500, Alex wrote:
>=20
> Am I missing something, or is this just not possible with NetBSD?
> The Linux guys tell me it's straightforward there, but if I can
> avoid running a linux box I'll be happier.

sh
# part=3D`sysctl -n kern.rawpartition | tr '[0-9a-f]' '[a-p]'`
# dd if=3D/dev/sd1${part} of=3D/dev/sd2${part}

for example.

Of course, you can hard-wire the necessary partition letter into your brain,
if you always use PCs (d) or always use non-pcs (c).

Regards,
	-is

--YToU2i3Vx8H2dn7O
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPIeDKzCn4om+4LhpAQG62Af+Ln/gjkXoBq9p2VF4p9t/h20NrSMFHW+X
mSUlsrad0//mpevREzkLSpIBW3s2jE0dFKvbyXBYK1VHtrymBpqQcvMNjTA9Xlyf
0jVfCdF9b/T8jPKrFEcss9JoU2CYscrUd9PGNbSAjZDldHDLEAVK0DLCsb7qRGlt
GyvzW8Ztj1xrujgv8GoTLmOOK5wQq5GyBtM3KZatzcwVJQEAxBLO0cL0bJNuHb8q
ODsRoU4HZzIQ6UfMRUm+bU233uLP6Aczzs5O/w53doLNLyrytq0LZOJoy8EZW870
6CdjDkdCKO8u6os4+uTwe/SqbUsUyHLD9OA0uihfq0xzU7rMy87uOA==
=CztN
-----END PGP SIGNATURE-----

--YToU2i3Vx8H2dn7O--