New NAS - Cant mount/see HDD drives [SOLVED]

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Postby paulm » Thu Aug 15, 2013 1:48 pm

Not sure whether its helpful or not. The only thing I can think of which might cause it is a failure of local DNS services.

Can you try setting up the share again, but using the IP address of your PC instead of its name?

Paul.
paulm
LXF regular
 
Posts: 242
Joined: Mon Apr 03, 2006 4:53 am
Location: Oxfordshire, UK

Postby GeordieJedi » Sat Aug 17, 2013 7:35 pm

Thanks Paulm

As an aside, is it possible to SSH into a/my NAS as a standard user ?

I can SSH in as either Admin (an admin user, that's not root itself)
and as root proper.

The reason being is, i'd like to know the user ID of my standard user account on my NAS.
(And I currently can't login as my standard NAS user account via SSH. I'm certain that I'm using the right credentials).
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby paulm » Sun Aug 18, 2013 4:10 am

GeordieJedi wrote:Thanks Paulm

As an aside, is it possible to SSH into a/my NAS as a standard user ?

I can SSH in as either Admin (an admin user, that's not root itself)
and as root proper.

The reason being is, i'd like to know the user ID of my standard user account on my NAS.
(And I currently can't login as my standard NAS user account via SSH. I'm certain that I'm using the right credentials).


Can't say for certain, but it would be unusual - most user acounts on the NAS systems I'm familiar with have shell set to something like /bin/false, since they shouldn't be able to log in to a shell. Which means there is no chance to SSH in either.

Also not universal, but not unusual, root and admin are often synonomous (sp).

Paul.
paulm
LXF regular
 
Posts: 242
Joined: Mon Apr 03, 2006 4:53 am
Location: Oxfordshire, UK

Postby GeordieJedi » Fri Dec 06, 2013 10:18 pm

OK, here is some more information.

N.B. I tried these commands on my 2nd PC (laptop) but with the same entries in the FSTAB


Command 01 (on the client PC)
Code: Select all
mount | grep nfs


Result 01 (on the client)

Code: Select all
nfsd on /proc/fs/nfsd type nfsd (rw)




Command 02 (on the client PC)
Code: Select all
sudo mount /mnt/video_share/video


Result 02
Code: Select all
mount.nfs: access denied by server while mounting Hoth:/volume1/video




Command 03 (on the client PC)
Code: Select all
ls -l /mnt


Result 03
Code: Select all
drwxr-xr-x 3 root root 4096 Dec  6 21:47 music_share
drwxr-xr-x 3 root root 4096 Dec  6 21:47 photo_share
drwxr-xr-x 3 root root 4096 Dec  6 21:47 video_share
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby GeordieJedi » Wed Jan 01, 2014 9:45 pm

OK, I have attempted a couple of new things.

Whilst logged into the NAS box I have updated the hosts & hosts.allowed files.
I have added both the IP addresses and host names into these files.

E.G.

Hosts file -
Code: Select all
127.0.x.x       localhost
192.168.x.x     Hoth
192.168.x.x     Yavin
192.168.x.x     stardestroyer


Hosts.allow file -
Code: Select all
#
# 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 =

Code: Select all
/volume1/video  stardestroyer(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0) Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)

/volume1/photo  stardestroyer(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)  Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0

/volume1/music  stardestroyer(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0) Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)

/volume1/homes  stardestroyer(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)



I still get the error message when I run the following code =

Code =
Code: Select all
sudo mount /mnt/video_share/video


error message =
Code: Select all
mount.nfs: access denied by server while mounting Hoth:/volume1/video



N.B.
Yavin and stardestroyer are the hostnames of my client PC's
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby GeordieJedi » Mon Jan 13, 2014 8:28 pm

IT'S WORKING !!!!
(Apologies for the caps but I'm absolutely over the moon !)

I'm not 100% sure but, I believe that updating the hosts and
hosts.allowed files has done the trick.

I now have access to my NAS via the web browser and more importantly the GUI.

I have been able to back up my data and media from my PC's to the NAS
It's working well.

(All I need to do now, is figure out how to get it talking to my Raspberry Pi
and then I'm going to be cooking with gas !)

A BIG THANK YOU everyone who helped me with this
issue.

You are all legends, and I owe you all a pint !

Thanks again, it's MUCH appreciated.

Take it easy
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Previous

Return to Help!

Who is online

Users browsing this forum: towy71 and 3 guests