Mounting NAS

Asked by Gordon Murray

I'm a beginner at Ubuntu and I'm wondering if it's possible to map a network drive in a similar way to windows or mac? Is it necessary to create a folder as a mount point? This is so Plex can see the nas.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What sharing system does the NAS use? SFTP? FTP? SMB?

Nautilus can connect to these OK and will manage mounting for you. If you want it to be mounted at boot then I suggest you add it to /etc/fstab
This will need a folder to mount to (as you already know)

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#2

I have SMB and AFP enabled but NFS is also available.

I'm unsure how to use Nautilus.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Then treat is as a windows share. Nautilus has "Other Locations" in the left pane, try that

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

or "Browse network"

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#5

I have typed the following in the /etc/fstab file:

//192.168.1.10/DiskStation /media/DiskStation cifs auto,iocharset=utf8,uid=gordon,credentials=root/.cifscredentials,file_mode=0775,dir_mode=0775 0 0

It was working on reboot yesterday, mounting the nas automatically with read/write privileges, but today its giving me the error Unable to access "DiskStation" mount:/media/DiskStation: operation permitted for root only.

Can someone help me fix this?

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#6

Ok so I have gnome tweaks installed and I've noticed that if I have show mounted volumes selected in gnome tweaks then the nas automounts but if I have it off then i get the error when I try to click the mount on the sidebar

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

Try adding "user" to the options in your fstab line

(e.g. ... cifs auto,user,iocharset...)

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#8

That returned error 13

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

What action did you execute, which then gave error 13 (Permission denied)?

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#10

I added the word user as instructed above

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

How did you try doing this?
Editing this config file requires administrative rights.

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#12

yeah I did sudo nano /etc/fstab and then have the following

##DiskStation Mount
//192.168.1.10/DiskStation /media/DiskStation cifs auto,users,iocharset=utf8,uid=1000,gid=gordon,credentials=/root/.cifscredentials,,file_mode=0777,dir_mode=0777 0 0

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

Now try accessing the NAS again.

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#14

Seems to be automounting now. Done two reboots with the nas automounting with no problems and read/write privileges. Thank you very much.

Revision history for this message
Gordon Murray (gordon-n-murray) said :
#15

Thanks Manfred Hampl, that solved my question.