Re: Symbolic links behaviour
Hello James,
> Umm, perhaps I'm missing somthing, but I once had to do a similar thing. I
> simply mounted the new partition in /hdd2, and created symlinks
> /home->/hdd2/home, /usr/local->/hdd2/usr/local. Nested symlinks are
> perfectly legal. (Indeed, when the kernel went to dcache, there were quite
> a few hoops jumped through to still support it cleanly.)
Yes, that works ok. But now try the following:
cd /home
ln -s ../tmp tmp (I suppose you have a /tmp...)
cd tmp
You should get a "No such file or directory" error here.
If you don't, then my system is broken and I would like to know how to
fix it. :)
The problem seems to be that the ../tmp in the link is interpreted as
pointing to (in your case) /hdd2 and not to / as I was expecting.
Please let me know the result of the above commands.
Thanks.
--
Ruben Leote Mendes - etruben@ua.pt
Reply to: