Sorry for replying to my own post - I have found a problem with the "cp -ax " part of my process (see below). I tried it with cp -ax /home/mesa* /mesa2 When I finished, I compared the sizes of the two directories and found out that none of the hidden directories were copied over to the new location. Obviously I need help there On Friday 09 November 2001 01:42 pm, David Herman wrote:
I feel like I've missed something or perhaps I'm just a little dense.
Quick synopsis When I installed SuSE 7.2 originally I had it create file system-partitions for /boot, /home and /.
/usr, /opt and /var were all created on the / partition (/dev/hdb6)
As my disk filled up I realized I needed more space.
Yesterday I installed a new disk (hdc), created partitions and installed filesystems (reiser & ext2). (thanks to this list I was able to find answers to most of my questions)
I created mountpoints and edited my fstab to mount my new partitions. /dev/hdc5 is mounted as /usr2 /dev/hdc6 is mounted as /opt2 /dev/hdc7 is mounted as /var2
Now I want to copy /usr to /usr2, opt to opt2 and var to var2 keeping my file permissions, user id's and symlinks intact. This seems pretty straightforward cp -ax /usr/* /usr2 cp -ax /opt/* /opt2 cp -ax /var/* /var2 Will this really work? or am I missing something? Is there a better way?
Once this is done I plan to change my fstab to reflect the new assignments /dev/hdc5 will be mounted as /usr /dev/hdc6 will be mounted as /opt /dev/hdc7 will be mounted as /var
If all goes well then I'd like to free up the space from the original /var, /opt and /usr directories on /dev/hdb6. How do I accomplish this as these directories are no longer mounted.
Thanks to the list for all your help, I hope to return the favor.
dh