On Wed, Feb 23, 2000 at 02:35:02PM +0100, S.P. van Noort wrote: > Hello, > > I decided to put /var on a seperate partition, and I used the command > cp -R /var/* /tmpvar (/tmpvar the new partitiona for /var) > and then deleted /var and mounted the new partition on /var. > > It was (a couple of minutes) later that I found out that everything > on the new partition has owner and group root, and it looks that also some > of the permissions have changed, although I'm not sure of that. > > Can someone help me, for example by sending me a full ls -Rl of /var. > > And can someone tell me what I should have done, a special flag for cp for > example.
One option is to use tar through a pipe: Moving from /somedir to /otherdir: cd /somedir tar cvf - . | ( cd otherdir; tar xvf - ) ...not sure why I prefer this (I'm an old fart, I guess), but it preserves links and file permissions in a good way. ...it's also a good idea to at least to a quick visual analysis of the results and compare target to source before blowing away the original. -- Karsten M. Self (kmself@ix.netcom.com) What part of "Gestalt" don't you understand? SAS for Linux: http://www.netcom.com/~kmself/SAS/SAS4Linux.html Mailing list: "subscribe sas-linux" to mailto:[EMAIL PROTECTED]