starkx
Posts: 1
Joined: Sat Feb 10, 2018 2:19 pm

Mounting QNAP NAS

Sat Feb 10, 2018 2:31 pm

HI I've been having issues mounting my QNAP drive on a Raspberry PI 3

I can access the NAS by using the GUI (FileManager>go>network)

so added this to /etc/fstab

//192.168.69.69/Qmultimedia/Audio /mnt/QNAP cifs username=pi,password=raspberry,workgroup=WORKGROUP,users,auto,user_xattr 0 0

ive created a directory
/mnt/QNAP

but it doesn't connect on startup.

Furthermore a sudo mount -av shows that it then mounts...but the NAS contents aren't listable/browsable in the share (see image below)

https://www.dropbox.com/s/fx64usvg4drxh2k/Capture1.PNG

any thoughts? been wracking my brains and trawling the internet for a day trying to solve this

sinkers
Posts: 1
Joined: Mon Apr 22, 2019 1:58 pm

Re: Mounting QNAP NAS

Mon Apr 22, 2019 2:00 pm

Did you ever solve this? Encountering a similar problem myself

fruitoftheloom
Posts: 19541
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Mounting QNAP NAS

Mon Apr 22, 2019 4:18 pm

sinkers wrote:
Mon Apr 22, 2019 2:00 pm
Did you ever solve this? Encountering a similar problem myself

Well the OP appears to be absent:

Joined:Sat Feb 10, 2018 2:19 pm
Last active:Sat Feb 10, 2018 2:53 pm
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Buster.
Raspberry Pi Model 2B v1.1

Man in a van
Posts: 112
Joined: Sat Dec 27, 2014 2:41 pm
Location: Staffordshire, UK.

Re: Mounting QNAP NAS

Wed Apr 24, 2019 9:22 am

sinkers wrote:
Mon Apr 22, 2019 2:00 pm
Did you ever solve this? Encountering a similar problem myself

I have a raspberry pi 3b running Raspbian Stretch with desktop.

I can mount a share on a Qnap TS121 NAS using NFS.

If this would be of help to you, I can post a "how I do it" guide (it might not be too correct, but it works for me :) )

regards

ronnie

stackola
Posts: 1
Joined: Fri Jun 14, 2019 7:53 pm

Re: Mounting QNAP NAS

Fri Jun 14, 2019 7:55 pm

Man in a van wrote:
Wed Apr 24, 2019 9:22 am
sinkers wrote:
Mon Apr 22, 2019 2:00 pm
Did you ever solve this? Encountering a similar problem myself

I have a raspberry pi 3b running Raspbian Stretch with desktop.

I can mount a share on a Qnap TS121 NAS using NFS.

If this would be of help to you, I can post a "how I do it" guide (it might not be too correct, but it works for me :) )

regards

ronnie
Hey,
I'd be interested in your solution.

Regards,
stackola

Man in a van
Posts: 112
Joined: Sat Dec 27, 2014 2:41 pm
Location: Staffordshire, UK.

Re: Mounting QNAP NAS

Sat Jun 15, 2019 1:03 pm

Just to preface this post with the warning that this is a method I use, I have cobbled it together from trial and tribulation. It worked for me this morning and I suggest that you try it on a spare card before commiting to a build (at least back up the fstab file first).

So this is a rpi3b running raspbian-stretch 2019-04-08 desktop fully updated.
Qnap NAS TS121 current firmware 4.3.3.0868 (2019-03-22)
Shared Folder to connect is called Nastest
Performed this morning on fresh image.

First obtain the IP address of the pi and add it to the NFS Host Access under Shared Folder Permissions.
[ Control Panel > Shared Folders > click on folder Nastest > click on Edit Shared Folder Permissions (the centre box under Actions).
In the dropdown select NFS host access > Access right change to No limit > Add the raspberry pi Ip address to Allowed IP Address or Domain Name> Apply > Close ]
On the pi open raspi-config and tick "wait for network", click OK

Then open a terminal, decide where and what you want to call the storage folder ( I choose Music) and type

Code: Select all

sudo mkdir /mnt/Music
Then do a manual mount to see if everything works, example:

Code: Select all

[email protected]:~ $ sudo mount 192.168.1.***:Nastest /mnt/Music
if there are no errors returned, check everything is OK

Code: Select all

[email protected]:~ $ cd /mnt/Music

Code: Select all

[email protected]:/mnt/Music $ ls

Code: Select all

2 Meter Sessies 1  @Recycle.
So now we need to put the command line into fstab (enter it onto the bottom line)

Code: Select all

[email protected]:~ $ sudo nano /etc/fstab

Code: Select all

proc            /proc           proc    defaults          0       0
PARTUUID=0c889426-01  /boot           vfat    defaults          0       2
PARTUUID=0c889426-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
192.168.1.***:/Nastest /mnt/Music nfs _netdev,auto 0 0
Save and leave with Ctrl+X, Y, Enter

Check that the folder is mounted with

Code: Select all

[email protected]:~ $ sudo mount -a
If no errors are returned, reboot the pi and check again that the folder is mounted.

If the folder does not mount try and add a number after "nfs" in the command line (eg nfs4_netdev, auto 0 0 ).

It might be necessary to add "vers=1 or 2 or 3) into the line as well.

Hope this helps (and hope, even more, that it works :roll: )

ronnie

Return to “Beginners”