Re: switching a full system from an hd to another..

William Fletcher <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
If your new drive is wd1.

fdisk -u wd1

Make appropriate partitions to match wd0:

disklabel -e wd1

newfs your partitions... 

newfs /dev/wd1a
newfs /dev/wd1e .... 

Mount all the file systems under /mnt.. 

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 
pax -v -X -rw -pe /usr /mnt 

Then, use installboot to make the drive bootable:

installboot -v -o timeout=5 /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 ?
> 
> luca
> -- 
> listen  http://radio.sironi.tk

-- 
Omina Solutions  | http://omina.co.za | (012) Ph. 664-2480 F. 664-2474
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFGQEMS0o1hk/SHCkoRAmNpAJ9Uwe04W42OC6nA8gl2UuYer2NrKgCfY+aL
gB0A7a34CUg0Sbtpp5N401c=
=0XJ7
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.