gbh> I'd like to move my /home directory to /usr/home and would like
gbh> to know the correct way to do it and what problems this may
(Why? The general idea with /usr is that it's data that doesn't
change unless you reinstall or upgrade your distribution, with the
possible exception of /usr/local, and /usr can (should?) be mounted
read-only. Plus AFAIK there's no legacy software out there that
expects to find user directories under /usr/home. If it's "I have a
huge /usr partition but no other space on my disk," and
gbh> I've just installed RH 5.2 and have not setup any user accounts
then you're probably better off reinstalling and either creating a
sizeable /home partition or not splitting off /usr.)
gbh> I created a small partition for the / directory and a large
gbh> partition for the /usr directory. Should I first delete /home,
gbh> then create /usr/home, then create a symbolic link for example
gbh> 'ln -s /usr/home /home'?
If you were going to do this, that's pretty much the right way, with a
check that /usr/home has the same permissions as the original /home.
gbh> What other directories should be moved from / to /usr and linked
gbh> back to /?
None of them.
gbh> And how large should the partition be to hold the / directory? My
gbh> / directory occupies about 30 MB. In future installations, if I
gbh> set the partition to 50 MB would it ever grow to more than this?
This really depends on how you've partitioned your hard drive and what
you install. If your setup is
/ 50 MB
/usr (a lot)
then you'll be hurting for space in the root partition; my Debian
package database, among other things, lives in /var (and I believe RPM
does the same thing), and you'll need more room in /home. If your
setup is more like mine:
/ 32 MB
/usr 1000 MB
/var 300 MB
/home 400 MB
/usr/local 500 MB
(with /tmp being a symlink on to /var, and on three separate disks,
but no other weirdnesses) you'll be fine for space on the root
"Hey, Doug, do you mind if I push the Emergency Booth Self-Destruct Button?"
"Oh, sure, Dave, whatever...you _do_ know what that does, right?"