>Trivial: make usr, var and opt to be subdirectories in home, mount home
>ln -sf /home/usr /usr
>ln -sf /home/var /var
>ln -sf /home/opt /opt
Thank you and Phil Adamson for your similar suggestions.
I've tested the performance by timing
find /usr >/dev/null
find /link >/dev/null
where /link is a symlink to /usr. I've seen no significant
However, there is a problem. If I do what you suggest,
"find /usr" or "ls -l /usr" don't work anymore because /usr
is a symlink. Couldn't this break existing scripts or
makefiles or programs ?
Note 1 : On the other hand, "find /usr/." and "ls -l /usr/."
(note the "/.") work.
Note 2 : I can use "find -follow" or "ls -L" to force
dereferencing of symlinks, but then _every_ symlink in the
tree is dereferenced and that's not what I want (it's
I wonder how this is handled in the real world. I've seen
several FTP servers with links to places like "/pub1",
On AIX, they don't really solve the problem; they just
create one filesystem for /home, another one for /usr, etc.
I seem to remember that on HP-UX it's the same.
Maybe they chosed that approach because on those systems the
number of filesystems per disk is not severely limited as it
is on a PC.
And on AIX, you can have segmented filesystems. Thus you can
easily enlarge a filesystem as it grows. I don't think I can
do that on Linux. But don't take that as some Pro-AIX
adverti*t, no, no :)
Andre Majorel (my name is "amajorel" and my server is "teaser" dot "fr")
I have no sigblock