Unable to get my NAS mounted and seen by client PC's
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to get my NAS mounted and seen by client PC's
Hi all.
OK, I've finally taken the plunge and gotten a fantastic nice new shiny NAS
(A Synology DS413J)
However I'm struggling to get my NAS HDDs mounted and visible on my PC/network.
I've ran through the set-up (using Synology Disk Station Manager = DSM).
I can connect to the NAS via a web browser fine.
I can also ping and SSH in to the NAS without any issue.
I have added mount point entries in the fstab.
(Which I beleive are correct and "should" work).
I have created a static IP for my NAS and other client equipment.
(This is just within my internal network).
My main questions are -
1. How do I now get my NAS and it's HDD's to appear/mount/be usable on my network
so that either PC can connect to it and share/swap data and files ?
I have followed the tutorial on the website, but it's still not working properly
yet.
NB - I have ran through every step except the last one (which is - "How to make your
synology NAS accessible via the internet"). As I'm only interested in accessing my files
via my own internal network at the moment. Eventually I'd like to be able to access
my files over the internet, but I'm not to worried about this at the moment.
I've created some mount points in my fstab, here's an example -
When I go to Dolphin (the file manager) there are icons for the 3 networked drives,
however if I click on them I get the following error message =
Code:
"An error occurred while accessing 'volume1/music on Hoth', the system responded: mount:only root can mount Hoth:/volume1/music on mnt/music_share/music"
The main problem I seem to be getting is a permissions denied error coming from the NAS.
E.G. -
Command =
Code:
sudo mount 192.168.x.x:/volume1/video -t nfs /media/video_share
Error message =
Code:
mount.nfs: access denied by server while mounting 192.168.x.x:/volume1/video
Useful info
Hoth = NAS
Yavin = Client PC
OS = Linux / Ubuntu 12.04
Desktop Environment = KDE
File manager = Dolphin
Virgin media cable modem/router (downstairs)
Cat cable run upstairs to switch (upstairs in office)
PCs and NAS connected to switch (upstairs in office)
Synology DS413J NAS =
2x 3TB HDD's in Synolgys hybrid RAID array (Kinda RAID 1) making a total of
2.68 TB usable space
Any help or advice would be gratefuly appreciated !
Thanks.
Well it's obviously your NAS exports are not setup properly. Or there's some firewall blocking access. Since you're using NFS, can you run the command below on your linux box (as root) and post the output?
Code:
showmount -e Hoth
It should output something like this:
Code:
Export list for Hoth:
/volume1/video 192.168.x.x/255.255.255.0
/volume1/photo 192.168.x.x/255.255.255.0
/volume1/music 192.168.x.x/255.255.255.0
If not, you your exports on the NAS aren't setup properly or it's being blocked by a firewall.
Looks to me that you're exports on the NFS server are not setup properly. They seem to be exported to the domain advancedsearch.virginmedia.com.
Now I can only assume that virginmedia.com is your internet provider and that the NAS is getting it's FQN from there and using it as a domain to export to.
The other thing that just occurred to me is that you may be using NFS4 on the NAS and try to use NFS3 on the client. Can you please confirm that on both sites you're using the same NFS version? If you're using NFS4 then nfs4 should be the filesystem to use in your fstab. (And I believe the mount options change as well, but sorry, if that's the case, I'm not an expert in that area).
Quote:
Originally Posted by GeordieJedi
Hi all. Thanks for all the help so far.
OK, I tried the following command on the client PC.
mount.nfs: access denied by server while mounting Hoth:/volume1/video
Well, that means you're client is OK but your NAS is denying the connection. From your earlier outputs I can see that the directories are exported. So, what options did you use for the export? And more important, are they exported to "the world" or just to (a wrong) single host?
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
I am trying to use the defualt shared directorys (music, photo, video) that are created when you set up the
1st volume (when I set up the NAS in the begining).
Sorry, that's not what I meant. It seems that your NAS (Hoth) is denying the mount request. So that should:
1. Export the shares (which it does, as can be seen from the output of the showmount command)
2. Allow your client to actually mount the share.
So check on your Hoth server if your client is allowed to perform the mount (Sorry, I don't have a Synology NAS, so I can't provide you with information on how to set that on your NAS.
Quote:
Originally Posted by GeordieJedi
Hi there lpwevers.
I'm not entirely sure what you mean by that.
Here is the exports file from my laptop -
Code:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
I am trying to use the defualt shared directorys (music, photo, video) that are created when you set up the
1st volume (when I set up the NAS in the begining).
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
#
192.168.x.x Yavin
192.168.x.x stardestroyer
Here is the output from my exports file on the NAS box =
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.