NFS mount to Synology share

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
alan
Level 1
Level 1
Posts: 4
Joined: Sun Sep 19, 2021 10:33 am
Location: Essex UK

NFS mount to Synology share

Post by alan »

Hi,
I am a new user of linux mint (from windows 10). I have been using mint for just a few days. I am trying to mount a shared drive on my synology nas but it fails with "access denied by server". This is the command I am using: sudo mount 192.168.0.100:/volume1/shared /data

I would be grateful for any help to solve this.

Thank, Alan
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
djph
Level 7
Level 7
Posts: 1910
Joined: Thu Jun 27, 2019 5:43 am
Location: ::1

Re: NFS mount to Synology share

Post by djph »

what's the share configuration (you can find it in /etc/exports) on the NFS server side?
alan
Level 1
Level 1
Posts: 4
Joined: Sun Sep 19, 2021 10:33 am
Location: Essex UK

Re: NFS mount to Synology share

Post by alan »

Share configuration? I am a complete newbie to mint. From your question, it looks like i have missed something important.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: NFS mount to Synology share

Post by rene »

Note that it can also be a simple matter of needing sudo apt-get install nfs-client on the Mint system; with the correct RPC daemons not running, NFS tends to give nonuseful error messages.
alan
Level 1
Level 1
Posts: 4
Joined: Sun Sep 19, 2021 10:33 am
Location: Essex UK

Re: NFS mount to Synology share

Post by alan »

I tried to install nfs-client - got this as a result

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'nfs-common' instead of 'nfs-client'
nfs-common is already the newest version (1:1.3.4-2.5ubuntu3.4).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade
alan
Level 1
Level 1
Posts: 4
Joined: Sun Sep 19, 2021 10:33 am
Location: Essex UK

Re: NFS mount to Synology share

Post by alan »

Thanks for the replies so far. Can anyone suggest anywhere I can do more reading/learn more about NFS shares to help me resolve this?

Thanks in advance for any help,
Alan
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: NFS mount to Synology share

Post by rene »

User avatar
AndyMH
Level 21
Level 21
Posts: 13696
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: NFS mount to Synology share

Post by AndyMH »

PM me with an email addy and I'll send you a pdf 'how-to' that I wrote for someone else.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Grayfox
Level 4
Level 4
Posts: 332
Joined: Sun May 21, 2017 5:10 am
Location: In a hole

Re: NFS mount to Synology share

Post by Grayfox »

Add the following to the fstab located in /etc
//<I.P Address of NAS>/<SHARE FOLDER/ /mnt/<SHARE FOLDER>/ cifs username=User,password=password,_netdev,iocharset=utf8 0 0

eg of it
//192.168.1.3/DS418j/ /mnt/DS418j/ cifs username=User,password=password,_netdev,iocharset=utf8 0 0

I have reserved the IP address 192.168.1.3 to my NAS so if their is a power failure or the Router is disconnected when power is restored the NAS uses the same IP address so scripts have to be changed

My NAS is a Synology DS418j, when I created it I made share folder with that name

I mount in /mnt and I make a folder in /mnt with DS418j, mainly so I know what that folder is for.

//<I.P Address of NAS>/<SHARE FOLDER/ /mnt/<SHARE FOLDER>/ cifs username=<passwordhere>,_netdev,iocharset=utf8 0 0

Once you've added the line into the fstab and added the correct details(IP address, Share folder, Mount Point, Username and Password), typing in sudo mount -a in the terminal will mount the NAS and it should be accessible.
On boot, it will mount unless it is a laptop as fstab mounting happens before WiFi connections.
PC: Intel i5 6600K @4.5Ghz, 1TB NVMe SSD, 32GiB 3000Mhz DDR4, GTX1080 running Mint 21.3
Laptop: Asus UM425UAZ running LMDE 6
pixel24
Level 3
Level 3
Posts: 144
Joined: Wed Oct 14, 2020 4:41 am

Re: NFS mount to Synology share

Post by pixel24 »

Code: Select all

showmount -e [IP from NAS]
User avatar
AndyMH
Level 21
Level 21
Posts: 13696
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: NFS mount to Synology share

Post by AndyMH »

Grayfox wrote: Sun Sep 19, 2021 8:06 pm Add the following to the fstab located in /etc
//<I.P Address of NAS>/<SHARE FOLDER/ /mnt/<SHARE FOLDER>/ cifs username=User,password=password,_netdev,iocharset=utf8 0 0
The OP is asking about an NFS mount, not CIFS.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
linuxology
Level 1
Level 1
Posts: 3
Joined: Sun Jan 28, 2018 1:34 pm

Re: NFS mount to Synology share

Post by linuxology »

alan wrote: Sun Sep 19, 2021 10:43 am Hi,
I am a new user of linux mint (from windows 10). I have been using mint for just a few days. I am trying to mount a shared drive on my synology nas but it fails with "access denied by server". This is the command I am using: sudo mount 192.168.0.100:/volume1/shared /data

I would be grateful for any help to solve this.

Thank, Alan
Alan: It should be

sudo mount -t nfs4 192.168.0.100:/volume1/shared /data /mnt/synology
Locked

Return to “Beginner Questions”