Skip to content

Commit 653423e

Browse files
committed
follow symlinks
1 parent 0166925 commit 653423e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/resources/shared_filesystems.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,17 @@ mkdir ~/mnt/eos && ln -nfs ~/mnt/eos /eos
2525
### Mount network resources (repeat after timeouts and restarts)
2626

2727
```bash
28-
sshfs [email protected]:/user/ ~/mnt/user
29-
sshfs [email protected]:/nfs/ ~/mnt/nfs
30-
sshfs [email protected]:/eos/ ~/mnt/eos
28+
sshfs -o follow_symlinks [email protected]:/user/ ~/mnt/user
29+
sshfs -o follow_symlinks [email protected]:/nfs/ ~/mnt/nfs
30+
sshfs -o follow_symlinks [email protected]:/eos/ ~/mnt/eos
3131
```
3232

33+
??? info "Follow Symlinks"
34+
When mounting to a different location than `/nfs` or `/user` **locally**, one has to set the `follow_symlinks` option
35+
so that symlinks e.g. pointing to a folder somewhere in `/nfs/` (which locally does not exist) are followed correctly, i.e. to the path on the remote machine.
36+
This is not needed when mounting to `/nfs` or `/user` as the symlinks would point to these locations anyway,
37+
but that comes with its own problems, as the mount needs to be done as **root** in these cases and might not be valid for other users.
38+
3339
### If outside of the GPN, jump through `lxplus` to mount `dev3`-folders
3440

3541
```bash

0 commit comments

Comments
 (0)