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

William Fletcher <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
On second thoughts, if this is for a drive failure, you should consider
putting the disk into a one drive RAID frame, and buy a new drive
next week or something. That way next time a drive fails you won't
have to do this, you'll just buy a new drive and make it part of
the RAID frame.

Want instructions on how to do that?

On Tue, May 08, 2007 at 11:29:54AM +0200, William Fletcher wrote:
> 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 
> 



-- 
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)

iD8DBQFGQEQn0o1hk/SHCkoRArciAJ0dOJd7+XcLw721RhaUUZF8AgL8swCfcjNs
pQgzSXOcdJVLfRCoh0DSt34=
=zyxl
-----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.