RE: How copy /usr contents to a new partition?
- From: john bray <jmblin@xxxxxxxxxxx>
- Date: Fri, 13 Jan 2006 11:09:09 -0600
On Fri, 2006-01-13 at 06:52 -0700, STYMA, ROBERT E (ROBERT) wrote:
> >
> > I want to copy /usr to a new partition and then attach that
> > at /usr. I
> > issued a command
> >
> > cp -options(recursive included) /usr /mnt/"mountpoint
> >
> I often use the following syntax to copy directory structures and
> preserve permissions, dates, soft links, etc.
>
> intially name /mnt/"mountpoint /mnt/usr
>
> (cd /;tar cf - usr) | (cd /mnt; tar xf - )
>
> After that you can name the mountpoint whatever you want.
>
> Bob Styma
>
>
heheh...one of the wonderful things about *x is that we can do it so
many ways. my favorite is:
cd /usr
find . -print | cpio -dump /mnt/<yourmountpoint>
if there are things you don't want to move, say huge .iso files, you can
filter them out with grep before cpio sees them.
i'd settled on cpio years ago because it's a byte copy, as opposed to a
block copy like tar. the difference can make a huge difference if you
are moving tons of small files. less difference if you are moving only
very large files.
john
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- Follow-Ups:
- Re: How copy /usr contents to a new partition?
- From: Angus MacGyver
- Re: How copy /usr contents to a new partition?
- References:
- RE: How copy /usr contents to a new partition?
- From: STYMA, ROBERT E (ROBERT)
- RE: How copy /usr contents to a new partition?
- Prev by Date: Re: Setting up remote login in xp
- Next by Date: Re: Toshiba Satellite A60S1591 - shutting down
- Previous by thread: RE: How copy /usr contents to a new partition?
- Next by thread: Re: How copy /usr contents to a new partition?
- Index(es):
Relevant Pages
|