Mount remote folder

scimitar973

Cadet
Joined
Nov 8, 2021
Messages
9
Good morning to all forum members. A few months ago I installed Truenas on a PC with a 4x4TB HD pool. I need to mount on Treunas a remote folder (a shared folder on a Synology NAS) permanently. I'm a newbie!!!. Can someone help me by leading me without having suggestions like: "the command is well documented etc". I searched Google but couldn't find very detailed documentation

Thanks!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you can get it to happen from the CLI by using some variant of the mount command, then the way to make that survive a reboot is with a script set to run as a post init task.

Get your command right, then add the script after marking it executable with chmod +X /path/to/script.sh

The script contents might look something like this if your Synology is sharing over NFS:

Code:
#! /bin/sh

mount synology.local:/mnt/shared /mnt/synology


It requires that the path /mnt/synology exists and is empty.

You would then go to Tasks | Init/Shutdown Scripts and create a new task pointing it at the script.
 
Top