On Saturday 10 November 2001 00:11, you wrote:
I tried it with cp -ax /home/mesa* /mesa2
and found out that none of the hidden directories were copied over to the new location.
Please read this through to the end, *before* starting ;) Recently I had to do something similar (add space for the spool directory on my print-host). In the 'configuration' manual (7.1 p244) I found this bit: (assuming partitions are formatted) # cd /opt # mount /dev/hdc6 /opt2 # tar cSpf - . | (cd /opt2 ; tar xvSpf - ) man tar for the specifics of the switches. This *should* copy all files (dot-files included) to the new partition, preserving ownership/permissions et al. Check the result! If everything looks good: # cd / (just to be sure you're not in the way for the next bit of mounting/unmounting) # mv /opt /opt.old (get the old /opt out of the way) # mkdir /opt (to get a new point on which to mount the new /opt partition) # unmount /opt2 # mount /dev/hdc6 /opt (this gets your new partition mounted in the right spot) This last step (above) is prolly not really necessary, but rather a suggestion to make sure everything still looks right... (check it out by cd'ing to opt, and look around a bit) When you're satisfied that all is well, put an entry into fstab: /dev/hdc6 /opt ext2(or reiser) defaults 1 2 At this point, shut down and reboot. Verify that the new partition is mounted (in the right place) by doing: # mount if everything is o.k. you may now remove /opt.old # cd / # rm -fr opt.old That's about it... :) - Now, I suggest that you do all this in single-user mode (init 1), especially when moving /var... that way you reduce the risk of some process being in the middle of reading/writing files (logs and such) and messing stuff up. Generally when doing this kind of thing, you want as little disk activity as possible... Also I suggest you do *one* partition at a time, making *absolutely* sure everything works properly, before you do the next one... To get to runlevel 1, type linux 1 at the lilo prompt, or # init 1 at the command line I hope this covers everything... (If not, I'm sure someone will step in with corrections... ;) HTH Jon Clausen