Mount Synology NAS Hard Drive for Space Expansion on Linux (NFS)
If your server is running low on storage space, you can consider mounting a hard drive from your Synology NAS to expand your storage capacity.
Configuration on Synology NAS
Enabling NFS Service
- Open your Synology DiskStation's settings.
- Navigate to
File Services
and selectNFS
. - Enable the NFS service, and choose the latest protocol.
Configuring NFS Permissions for Folders
- Under
Settings
, go toShared Folders
. - Select the shared folder you wish to make accessible via NFS and click
Edit
. - Go to the
NFS Permissions
tab and clickAdd
to create a new NFS rule. - For the
Server or IP address
field, enter the IP address of the server that needs access to your Synology (e.g., if your server and Synology are on the same local network, enter your server's local IP, such as 192.168.1.2). - Check the boxes for
Allow connections from non-privileged ports
andAllow users to access mounted subfolders
. Keep other settings at their default values.
Mounting on the Server
First, install the NFS service:
Next, create a mount point on your server, for example:
Finally, execute the mount command:
For example:
If there are no errors, you can use the df
command to check the mounting status.
References and Acknowledgments
[to_be_replaced[1]] [to_be_replaced[2]]
This post is translated using ChatGPT, please feedback if any omissions.