I am new to linux and to EOS, using xfce if that is relevant.
I want to permanently mount folders from a Synology NAS (on PC boot up and on demand) from within a local network. The NAS is active during the day and inactive during the night, so it needs to be able to re-connect on demand.
I installed AUR package nfs-utils in preparation.
Preparation on the NAS I already did:
- Enabled NFS service on the Synology NAS - control panel / file services / NFS
- Assign NFS permission to shared folders - control panel / shared folder
- Mount shared folders via NFS IP on my PC using these commands:
sudo mount -t nfs [Synology NAS IP address]:[mount path of shared folder] /[mount point on NFS client]
In my example, I create a folder in mnt directory and then allow read/write permission:
sudo mkdir /mnt/nas
sudo chmod +rx /mnt/nas
next I mount the folders folder1 and folder2 from NAS IP to the newly created mnt/nas directory
sudo mount -t nfs 192.1xx.xxx.xx:/volume1/folder1 /mnt/nas
sudo mount -t nfs 192.1xx.xxx.xx:/volume1/folder2 /mnt/nas
Now everytime I restart my PC I have to manually mount all folders again.
Also, if the PC is still on and the NAS is switched off, the mounted folders disappear and will not come back even if I restart the NAS.
How can I have the mounted NAS folders permanently mounted or automate the mounting process on my PC?