Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New NAS - Cant mount/see HDD drives [SOLVED]
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Thu May 30, 2013 11:35 pm    Post subject: Reply with quote

Right, I've managed to SSH into my NAS box

It's running
Code:
BusyBox v1.16.1 (2013-04-16 20:15:54 CST) built-in shell (ash)



I've just ran the command that Nelz has stated with the following results

Command =
Code:
sudo mount 192.168.x.x:/volume1/video -t nfs /media/video_share


Error msg =
Code:
mount.nfs: access denied by server while mounting 192.168.x.x:/volume1/video



I've installed syslog server and tried to take a quick look at the logs themselves
(there is an app on the synology's NAS box itself).

I ran Nelz's command again a couple of times, but I cant find any mention of an attempt
to access the NAS from my client PC (in the logs themsleves).

(And yep, "a fart in a wicker chair" I'm stealing that one Very Happy thanks).
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1667
Location: Guisborough

PostPosted: Fri May 31, 2013 1:04 am    Post subject: Reply with quote

Geordie,

That last command was meant to be ran from the client.

Log back on to the NAS via SSH and run these

Code:

cat /etc/exports
exportfs

_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Fri May 31, 2013 1:33 am    Post subject: Reply with quote

Post the infor Ram asked for then find the system log file in var log on the NAS, probably messages but it might be current or syslog, and run

Code:
tail -n 0 -f /var/log/messages


Leave that running and then try to mount the NAS share from another terminal and watch its output. You should see any error messages from the server here.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Mon Jun 03, 2013 10:45 pm    Post subject: Reply with quote

Command 01 =
Code:
cat /etc/exports


Error message =
Code:
cat: can't open '/etc/exports': Permission denied


Command 02 =
Code:
exportfs


Error message 02 =
Code:
exportfs: could not open /var/lib/nfs/.etab.lock for locking: errno 13 (Permission denied)


I also ran Nelz's command on terminal 1 and then tried to mount command in terminal 2.

Nelz's command =
Code:
tail -n 0 -f /var/log/messages


However I didn't see any output in terminal 1.
But in terminal 3 I also managed to cd into the /var/log/messages dir

and saw the following dir's =
Code:
dms.log            log.smbd           messages           partition          synoconn.log
log.nmbd           lvm_lv_create_log  mount.log          pgsql.startup.log  synosys.log
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Mon Jun 03, 2013 11:57 pm    Post subject: Reply with quote

Then you want the messages file. Just to be clear, you are tailing the system log file on the NAS (over SSH) but running mount on the client.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Tue Jun 04, 2013 9:34 pm    Post subject: Reply with quote

Hi Nelz. Yes that's right. However I've just ran those commands again tonight to double check.

Terminal 0 (SSH'd into my NAS box)

Command =
Code:
tail -n 0 -f /var/log/messages


Result =
The cursor sits there blinking (as if it's doing something in the back ground)
which I suspect it is.


Terminal 1 (Client PC)

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
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Tue Jun 04, 2013 9:43 pm    Post subject: Reply with quote

I've just taken another look at terminal 0 and some error messages have appeared
(However nothing to do with mounting HDD's though....)

Code:
Jun  4 22:35:55 kernel: [ 2246.590000] ata2: wake up from deepsleep, reset link now
Jun  4 22:35:55 kernel: [ 2246.920000] ata2: device plugged sstatus 0x123
Jun  4 22:35:55 kernel: [ 2249.600000] ata2: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen
Jun  4 22:35:55 kernel: [ 2249.610000] ata2: edma_err_cause=00000010 pp_flags=00000000, dev connect
Jun  4 22:35:55 kernel: [ 2249.610000] ata2: SError: { PHYRdyChg DevExch }
Jun  4 22:36:02 kernel: [ 2255.790000] ata2: link is slow to respond, please be patient (ready=0)[


Also the time on the NAS is 1 hour fast though.
(I don't think that should make any difference).
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1667
Location: Guisborough

PostPosted: Tue Jun 04, 2013 10:02 pm    Post subject: Reply with quote

Can you run

Code:
ps -ef | grep nfs


On your NAS and post the output back
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Tue Jun 04, 2013 10:37 pm    Post subject: Reply with quote

HI Ram here's the output from your command

Code:
ps: invalid option -- e
BusyBox v1.16.1 (2013-04-16 20:15:54 CST) multi-call binary.

Usage: ps

Report process status

Options:
   w   Wide output
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1667
Location: Guisborough

PostPosted: Tue Jun 04, 2013 10:54 pm    Post subject: Reply with quote

GeordieJedi wrote:
HI Ram here's the output from your command

Code:
ps: invalid option -- e
BusyBox v1.16.1 (2013-04-16 20:15:54 CST) multi-call binary.

Usage: ps

Report process status

Options:
   w   Wide output


Didn't realize BusyBox had no ps command.

Can you try

Code:
 netstat -a | grep nfs


Just trying to work out if nfs is running.
_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Tue Jun 04, 2013 10:56 pm    Post subject: Reply with quote

Code:
tcp        0      0 0.0.0.0:nfs             0.0.0.0:*               LISTEN     
udp        0      0 0.0.0.0:nfs             0.0.0.0:*
Back to top
View user's profile Send private message
Ram
LXF regular


Joined: Thu Apr 07, 2005 10:44 pm
Posts: 1667
Location: Guisborough

PostPosted: Wed Jun 05, 2013 12:23 am    Post subject: Reply with quote

GeordieJedi wrote:
Code:
tcp        0      0 0.0.0.0:nfs             0.0.0.0:*               LISTEN     
udp        0      0 0.0.0.0:nfs             0.0.0.0:*


Looks like it Listening, good sign.

When you ran

Code:

cat /etc/exports
exportfs


Were you root, if not try again has root.

Failing that

Code:
 ls -l /etc/ex*

_________________

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
Back to top
View user's profile Send private message MSN Messenger
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Wed Jun 05, 2013 9:49 pm    Post subject: Reply with quote

Hi Ram.

when I run command 01
Code:
cat /etc/exports
exportfs


result =
Code:
cat: can't open '/etc/exports': Permission denied


I'm pretty sure I'm root (as I log into the admin account vis SSH).


Command 02 =
Code:
 ls -l /etc/ex*


Result =
Code:
-rw-------    1 root     root           273 May 12 22:23 /etc/exports
-rw-------    1 root     root           273 May 12 22:23 /etc/exports_map



Additionally whenever I login into the NAS vis SSH I get the following (error ??) message =

Code:
Could not chdir to home directory /var/services/homes/admin: No such file or directory
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8450
Location: Warrington, UK

PostPosted: Thu Jun 06, 2013 12:39 am    Post subject: Reply with quote

You're not root, you'e logging in as a user called "admin". Can you login as root?
Code:
ssh root@hostname


Alternatively, can you run the commands with sudo?
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
GeordieJedi
LXF regular


Joined: Thu Jun 14, 2007 11:36 pm
Posts: 335
Location: North East England

PostPosted: Sun Jun 09, 2013 8:08 pm    Post subject: Reply with quote

Hi again.

Command =
Code:
ssh root@hostname



Result =
Code:
/volume1/video   Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
/volume1/photo   Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
/volume1/music   Yavin(rw,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
Hoth> exportfs



Command 02 =
Code:
exportfs


Result =
(There was not output but it seemed to have worked, as the shell prompt returned
to it's normal position waiting for it's next command).
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast