Access Files (using SMB) on the Synology NAS from a Virtual Machine on the Synology NAS

Synology Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPL8Yx7FxnY6xKxcMiVWkkJ

Access using NFS: https://youtu.be/j625yzl78nA

Synology DS918+ (Amazon Affiliate)
US: https://amzn.to/2EECW3Q
UK: https://amzn.to/35BD9jW
CA: https://amzn.to/35ILfYs
DE: https://amzn.to/2VsP561
ES: https://amzn.to/3eIwJWc
FR: https://amzn.to/2VqZHCo
IT: https://amzn.to/2XEQC8T
IN: https://amzn.to/2Th9pom

(x4) WD RED WD40EFRX CMR* (Amazon Affiliate)
US: https://amzn.to/3ewSHvC
UK: https://amzn.to/354lcOk
CA: https://amzn.to/3l5syGK
DE: https://amzn.to/2IfafjF
ES: https://amzn.to/2TXqa99
FR: https://amzn.to/35178VF
IT: https://amzn.to/32fNx28
IN: https://amzn.to/3l5X6bh
AU: https://amzn.to/2JCUyn7

* Please verify that you have chosen the WD40EFRX (CMR) model when ordering. Also check that you got the correct drives when your order arrives. Avoid the WD40EFAX SMR models!

Crucial 16GB (8GBx2) RAM CT2K8G3S186DM (Amazon Affiliate)
US: https://amzn.to/35TmsB1
UK: https://amzn.to/35Pvsa5
CA: https://amzn.to/2thVWUy
ES: https://amzn.to/2VgoecJ
FR: https://amzn.to/2NoBZSv
IT: https://amzn.to/2VgwIkb
DE: https://amzn.to/3avuVwe (HX318LS11IB/8)
IN: https://amzn.to/37Y1Fgz
AU: https://amzn.to/2CGypRH

Install CIFS Software
sudo apt install cifs-utils
Create Mount Point
sudo mkdir /mnt/DS_Share
Find Current Username
whoami (returns username)
Find User ID of User
id -u rick
Find Group ID of User
id -g rick
Mount Share
sudo mount.cifs -o user=rick,uid=1000,gid=1000 //ip_of_Synology]/DS_Share/ /mnt/DS_Share
Move to Share Directory
cd /mnt/DS_Share
List Contents of Share Directory
ls -l
Return to Home Directory
cd
Unmount Share
umount /mnt/DS_Share
Mount Share Upon Startup
sudo nano /etc/fstab
//ip_of_Synology/DS_Share /mnt/DS_Share cifs user=rick,pass=password,uid=1000,gid=1000 0 0

Type control-o to save, control-x to exit.

Mount all Volumes in fstab
sudo mount -a
Check to see if Mounted
ls /mnt/DS_Share

Note on SMB setup: In the Synology’s File Services settings for SMB, when you click on “Advanced Settings”, I have Maximum SMB Protocol set to SMB3 and Minimum set to SMB1. I also have these four settings with check marks in them, “Enable Opportunistic Locking”, “Enable SMB2 lease”, “Enable Local Master Browser” and “Enable SMB durable handles…”

Leave a comment

Your email address will not be published. Required fields are marked *