On Sat, 1 Nov 2003, H du Plooy wrote:
I want to move /var /tmp and swap to partitions on a second disc. Swap and /tmp is easy, but how do I move the contents of /var without screwing up any permissions? If I just do mv * /var will it mess anything up?
mv * /var shall put all from your current dir into var [which you may not be able to do as non-root]. Is this what you wanted to do? May be a better thing to try would be to boot off rescue system, create a new partition on your second/new disc, create a tar of existing /var man tar [to be more sure for preserving attribs/permissions etc. Hope you are not actively using ACLs] tar cvpf var.tar /var should to do the trick. After this has moved, do a ... tar xvf var.tar in your var directory. In the simplest case, using a rescue system and doing an mv properly would work. rohit ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com