Subject: Re: switching a full system from an hd to another..
To: Luca Sironi <luca@sironi.tk>
From: William Fletcher <wfletcher@omina.co.za>
List: netbsd-help
Date: 05/08/2007 11:29:54
--cuYGGMKi0BuiS2pJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

If your new drive is wd1.

fdisk -u wd1

Make appropriate partitions to match wd0:

disklabel -e wd1

newfs your partitions...=20

newfs /dev/wd1a
newfs /dev/wd1e ....=20

Mount all the file systems under /mnt..=20

mount /dev/wd1a /mnt
mount /dev/wd1e /mnt/usr
etc, etc...

Then use pax to copy from partition to partition.

pax -v -X -rw -pe / /mnt=20
pax -v -X -rw -pe /usr /mnt=20

Then, use installboot to make the drive bootable:

installboot -v -o timeout=3D5 /dev/rwd1a /usr/mdec/bootxx_ffsv1

On Tue, May 08, 2007 at 11:13:38AM +0200, Luca Sironi wrote:
> Unfortunatly I must substitute the main hd (wd0) of a netbsd4-beta server.
> What's the speedest way to do it ?
> Can I simply partition the new hd, copy the whole file system and
> substitute the hard disk ?
>=20
> luca
> --=20
> listen  http://radio.sironi.tk

--=20
Omina Solutions  | http://omina.co.za | (012) Ph. 664-2480 F. 664-2474=20


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFGQEMS0o1hk/SHCkoRAmNpAJ9Uwe04W42OC6nA8gl2UuYer2NrKgCfY+aL
gB0A7a34CUg0Sbtpp5N401c=
=0XJ7
-----END PGP SIGNATURE-----

--cuYGGMKi0BuiS2pJ--