ln fails over different mounts
I'm setting up my website and I wanted to make a link in the site's new root to the sites old root. I figured that the command to do this would be:
Old root> /var/www/phaux.ath.cx/htdocs
New root> /root/htdocs
ln /var/www/phaux.ath.cx/htdocs /root/htdocs
But this fails, stating "Invalid cross-device link". Could this be that /var/* is mounted on /dev/hda51 and /root/htdocs/* is mounted on /dev/hda52?
EDIT> Nevermind about the site's root and making the link, I fixed that up. But I'd like to know, can I not make a hard link because I'm linking to something on a different mount?
Last edited by Phaux; 12-27-2005 at 07:57 PM.