Joe Menola wrote:

On Thursday October 6 2005 7:49 pm, Matthias Langer wrote:
I want to move the /usr and /home directories to another partition,
because I'm thinking of buying a new HD. It would be great if both
directories were on the same partition, as splitting drives never seemed
very appealing to me. As far as I know, one possibility would be to
[with the boot-cd]

# mv /usr /mnt/newHD/
# mv /home /mnt/newHD/
# ln -s /mnt/newHD/usr usr
# ln -s /mnt/newHD/home home

However, I'm not sure if this is the suggested method of doing so and to
be honest, I'm not completley sure if this would even work.

Any comments or suggestions ?

In theory I suppose that would work. Myself, I would copy the contents to /mnt/newHD/ then rename the original directories and create the links. The renamed directories can be deleted after you've verified positive results. And if it all craps out, the originals can simply be renamed back to /usr and /home. You should consider creating separate partitions for these though. At some point you may wish to blow out the install but retain your /home. Separate partitions makes this much easier. And also opens the possibility of sharing your /home with multiple installs.

HTH -jm
Well, maybe you are right and creating a /usr and a /home partition is the better choice. As I want to buy a 250GB drive, I'm thinking of 20G for /usr and 230GB for home, while still 16GB remain for /opt, /root, /bin .... . Now another genooist pointed out that it would be wiser to use rsync or tar instead of just
# cp - r /usr /mnt/newHd_part_usr/
So, should I enter
# rsync -r /usr /mnt/newHd_part_usr/
or are there some options I should activate to make sure I get what I want ?

Thanks, Matthias
--
gentoo-user@gentoo.org mailing list

Reply via email to