Subject: Re: How to move usr and var folder to a partition?
To: firstname.lastname@example.org <email@example.com>
From: gabriel rosenkoetter <firstname.lastname@example.org>
Date: 02/19/2003 15:06:17
Content-Type: text/plain; charset=us-ascii
On Wed, Feb 19, 2003 at 08:42:10PM +0100, Mattias Sandstrom wrote:
> Pascal BEZOU wrote:
> >Do I must use mv, cp, cpio, tar or pax to copy or move the content of the
> >usr and var folders to my partitions?
> pax works great, and probably tar too with some piping magic. mv and cp=
> won't work afaik. i would mount the partitions somewhere first, but i=20
> guess pax might be able to write to the raw device as well...
Maybe, but it's much less painful to actually mount things.
I'd go to single user mode, mount your old partitions read-only,
mount the new partitions somewhere (call it /new), and then:
pax -rw -pe -v /usr /var /new
(This assumes you've got /new/usr and /new/var mounted on the new
partitions. /new's a new directory off of your old / partition.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
-----END PGP SIGNATURE-----