Re: Moving partition
Alexander Kushnirenko hat gesagt: // Alexander Kushnirenko wrote:
> > On Wed, Dec 23, 1998 at 08:49:46AM +0100, root wrote:
> > > I already have different partitions for / , /var , /home , /usr.
> > > In fact, my problem is : How do I move files from an old parttion to a new one while
> > > ensure all links (and things like that) are kept ?
> >
> > Symbolic links are just names of files. If the path of the destination
> > stays the same (/usr is still /usr, even though the mount table is
> > different) you shouldn't have problems just using cp. But I haven't done
> > this before in truth.
>
> I'm not sure about that. If I got it right plain cp will copy the file, it
> will not create a symobolic link. So your symbolic link structure will be
> ruined. tar on the other hand preserves it.
The cp from GNU can be used with the option "-a". It will then copy
symbolic links as well. (see "man cp")
I always use "cp -ax" to copy whole partitions because I cannot memorize
command lines with more than 8 characters.
--
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ \/ / __ \\ ___\
/ / / ____/ / / / // ____// /\ \\ ___\\____ \
/_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\
/_/ \_\
Reply to: