Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jun 2003 20:55:53 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        questions@freebsd.org
Subject:   Re: Disk copy -- WAS: Re: Can you copy freebsd from one of mypresent machine and load itto a new
Message-ID:  <20030607195553.GB39573@users.munk.nu>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGAEMKDOAA.FBSD_User@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGAEMKDOAA.FBSD_User@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Not sure what happened to the original poster here...

Anyway I was just thinking there's the system util 'pax' which is very
good for copying filesystems (handles permissions, symlinks, irregular
files quite well).

There's a few lines on it in one of the FreeBSD articles I think...
mmm ok it's quite a small section - 4.2 in this article:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/x211.html

The text is here:

> 4.2 Copying the Contents of Disks
> Submitted By: Renaud Waldura (<renaud@softway.com>)
> 
> To move file from your original base disk to the fresh new one, do:
> 
> # mount /dev/ad2 /mnt
> # pax -r -w -p e /usr/home /mnt
> # umount /mnt
> # rm -rf /usr/home/*
> # mount /dev/ad2 /usr/home

I've used pax in the past to migrate filesystems with success.

Jez



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030607195553.GB39573>