ln fails over different mounts
Hi,
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? |
syntax:
ln[-s] (existing file/folder) (link to existing file) your command is: ln -s /var/www/phaux.ath.cx/htdocs /root/htdocs I think the problem is that you weren't making a symlink, symlink are more flexible. |
All times are GMT -5. The time now is 06:16 AM. |