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?
ls -Ld /home/username/Desktop/file
. If it saysls: cannot access /home/username/Desktop/file: No such file or directory
, the link is broken. Otherwise I think the desktop is not updating when the drive is mounted. Try clicking the desktop then pressing F5 or Ctrl+R to refresh it, or try logging out and back in. – wjandrea Jan 19 '19 at 23:17