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

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

Postby GeordieJedi » Thu May 30, 2013 10:35 pm

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

It's running
Code: Select all
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: Select all
sudo mount 192.168.x.x:/volume1/video -t nfs /media/video_share


Error msg =
Code: Select all
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 :D thanks).
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby Ram » Fri May 31, 2013 12:04 am

Geordie,

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

Log back on to the NAS via SSH and run these

Code: Select all
cat /etc/exports
exportfs

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
User avatar
Ram
LXF regular
 
Posts: 1679
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby nelz » Fri May 31, 2013 12:33 am

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: Select all
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)
User avatar
nelz
Site admin
 
Posts: 8523
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby GeordieJedi » Mon Jun 03, 2013 9:45 pm

Command 01 =
Code: Select all
cat /etc/exports


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


Command 02 =
Code: Select all
exportfs


Error message 02 =
Code: Select all
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: Select all
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: Select all
dms.log            log.smbd           messages           partition          synoconn.log
log.nmbd           lvm_lv_create_log  mount.log          pgsql.startup.log  synosys.log
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby nelz » Mon Jun 03, 2013 10:57 pm

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)
User avatar
nelz
Site admin
 
Posts: 8523
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby GeordieJedi » Tue Jun 04, 2013 8:34 pm

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: Select all
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: Select all
sudo mount 192.168.x.x:/volume1/video -t nfs /media/video_share


Error message =
Code: Select all
mount.nfs: access denied by server while mounting 192.168.x.x:/volume1/video
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby GeordieJedi » Tue Jun 04, 2013 8:43 pm

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: Select all
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).
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby Ram » Tue Jun 04, 2013 9:02 pm

Can you run

Code: Select all
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.....
User avatar
Ram
LXF regular
 
Posts: 1679
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby GeordieJedi » Tue Jun 04, 2013 9:37 pm

HI Ram here's the output from your command

Code: Select all
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
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby Ram » Tue Jun 04, 2013 9:54 pm

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

Code: Select all
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: Select all
 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.....
User avatar
Ram
LXF regular
 
Posts: 1679
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby GeordieJedi » Tue Jun 04, 2013 9:56 pm

Code: Select all
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:*
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby Ram » Tue Jun 04, 2013 11:23 pm

GeordieJedi wrote:
Code: Select all
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: Select all
cat /etc/exports
exportfs


Were you root, if not try again has root.

Failing that

Code: Select all
 ls -l /etc/ex*

lubuntu LXDE 13.10 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
User avatar
Ram
LXF regular
 
Posts: 1679
Joined: Thu Apr 07, 2005 9:44 pm
Location: Guisborough

Postby GeordieJedi » Wed Jun 05, 2013 8:49 pm

Hi Ram.

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


result =
Code: Select all
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: Select all
 ls -l /etc/ex*


Result =
Code: Select all
-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: Select all
Could not chdir to home directory /var/services/homes/admin: No such file or directory
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

Postby nelz » Wed Jun 05, 2013 11:39 pm

You're not root, you'e logging in as a user called "admin". Can you login as root?
Code: Select all
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)
User avatar
nelz
Site admin
 
Posts: 8523
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby GeordieJedi » Sun Jun 09, 2013 7:08 pm

Hi again.

Command =
Code: Select all
ssh root@hostname



Result =
Code: Select all
/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: Select all
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).
User avatar
GeordieJedi
LXF regular
 
Posts: 337
Joined: Thu Jun 14, 2007 10:36 pm
Location: North East England

PreviousNext

Return to Help!

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests