Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 1998 19:15:12 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Gus Nasses <gus@illumen.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Drive Duplication Utility? 
Message-ID:  <199812010115.TAA03911@n4hhe.ampr.org>
In-Reply-To: Message from Gus Nasses <gus@illumen.com>  of "Mon, 30 Nov 1998 12:09:49 MST." <3662ED7D.5A992A8A@illumen.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Gus Nasses writes:
> Our free BSD server is low on drive space. We are looking for a utility
> similar to drive copy (commercial program from PowerQuest) which can
> copy partitions from one drive to another larger drive. Short of such a
> utilty we should be able to run a backup and restore from boot and root
> floppies shouldn't we?

You have several options for moving your system from one HD to another. 
Suggest reading the man pages for dump(1) and restore(1). You'll do 
something like this for each filesystem:

	dump -0af - / | ( cd /mnt/new; restore -xf - )

Another option is pax. (see the man page for pax). You might use it 
soemthing like this:

	pax -rwt / /mnt/new

The only hitch with the above two options is file flags may be lost in 
the translation. I don't see it mentioned in the man pages. At least 
/kernel has the immutable flag set. Possibly libraries too. See 
chflags(1). A "make world" on the new system would cure this "problem", 
but then again a clean install from CD's would also too.

You know, a clean install from CDROM isn't all that bad if an idea. 
Brining a system back up from a clean HD is a sure way to exercise your 
configuration notes and remind you what is important.

You don't have to boot from floppies to do this. You might do it 
multiuser. But if you boot single user you'll be safest.

--
David Kelly N4HHE, dkelly@nospam.hiwaay.net
=====================================================================
The human mind ordinarily operates at only ten percent of its
capacity -- the rest is overhead for the operating system.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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