On my network, I have a disk on my other computer running Ubuntu (both computers with 18.10) mounted to /home/username/Storage
via nfs
in fstab
. That fstab
line looks like,
192.168.2.33:/otherhome/otherusername /home/username/Storage nfs rsize=8192,wsize=8192,timeo=14,intr
On that other computer, I have a file that I want to symlink so I can open it from an icon on my current desktop. So I do ln -s /home/username/Storage/file /home/username/Desktop
. It works fine until I reboot. Then it says the link is broken, although it lists the correct target if I right-click and look at the properties.
Is there a way to keep a symlink to a file on a mounted network disk after reboot? Am I doing it wrong?
Best Answer
Nope. You can re-create the link on reboot if you want. But the more logical method would be to use the
bind
option frommount
. From man page: