DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-06-06 06:03:01

lionsnob
Member
Registered: 2007-06-06
Posts: 8

NFS mount command?

Hello all!

I'm a total newbie with NFS.  I installed the fun-plug on the DNS-323 and entered this command in the terminal:
sudo mount -t nfs 192.168.0.10:/Volume_1 /home/steve/test

and received this error:
mount: 192.168.0.10:/Volume_1 failed, reason given by server: No such file or directory

What am I doing wrong?

Thanks!

Offline

 

#2 2007-06-06 10:42:50

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

lionsnob wrote:

sudo mount -t nfs 192.168.0.10:/Volume_1 /home/steve/test

Volume_1 is the Windows network name. Real path is /mnt/HD_a2 (and /mnt/HD_b2 for Volume_2):

Code:

mount -t nfs 192.168.0.10:/mnt/HD_a2 /home/steve/test

Have a look at fun_plug.d/etc/exports...

Offline

 

#3 2007-06-06 15:55:55

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

Thanks for your response fonz.  I try the command now and the following happens.

steve@dvr:~$ sudo mount -t nfs 192.168.0.10:/mnt/HD_a2 /home/steve/test
mount: 192.168.0.10:/mnt/HD_a2 failed, reason given by server: Permission denied

Do I have to change permissions for /mnt/HD_a2 on the DNS-323?  Based on the output of:
drwxrwxrwx    5 root     root         4096 Jun  5 22:48 HD_a2

It doesn't look like I would have to.

Also, I could not locate fun_plug.d/etc/exports.

Thanks for all the help!

Offline

 

#4 2007-06-06 16:15:44

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

lionsnob wrote:

Also, I could not locate fun_plug.d/etc/exports.

Have you started the NFS server?

Code:

sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh

Offline

 

#5 2007-06-06 16:28:09

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

Yes.  I still get the same error.  I found the fun_plug.d/etc/exports file, it looks like this:

/ 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_a2 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_b2 192.168.0.0/24(rw,no_root_squash)

Thanks again!

Offline

 

#6 2007-06-06 19:25:28

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

Does this help?

When I try to mount a directory that doesn't exist, I get this:
steve@dvr:~$ sudo mount -t nfs 192.168.0.10:/mnt/test /home/steve/test/
mount: 192.168.0.10:/mnt/HD_a1 failed, reason given by server: No such file or directory

When I try to mount an existing directory, I get the following:
steve@dvr:~$ sudo mount -t nfs 192.168.0.10:/mnt/HD_a2 /home/steve/test/
mount: 192.168.0.10:/mnt/HD_a2 failed, reason given by server: Permission denied

Also, I'm running Ubuntu 7.04 if that makes a difference.

Thanks!

Offline

 

#7 2007-06-06 21:21:16

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

not sure what the problem is. what's the ip address of dvr? have you tried as root (not using sudo)? any messages in "dmesg" output? anything in fun_plug.d/log/unfsd.log? have you used nfs before with that host?

Offline

 

#8 2007-06-06 21:42:04

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

The IP address of DVR is 192.168.0.228.  Using root instead of sudo gave the same results.  How can I get you the dmesg output?

The output of fun_plug.d/log/unfsd.log is:

Code:

bind: Address already in use
Couldn't bind to tcp port 2049
UNFS3 unfsd 0.9.17 (C) 2006, Pascal Schmidt <unfs3-server@ewetel.net>

I have never used NFS at all, but I think I installed the appropriate Ubuntu packages.

Thanks for the patience and continued help!

Offline

 

#9 2007-06-06 22:00:14

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

do you have one or two disks?

Offline

 

#10 2007-06-06 22:12:25

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

Two disks with RAID 0

Offline

 

#11 2007-06-06 22:26:29

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

Is this a single volume or is there are second volume? I.e. does /mnt/HD_b2 exist?

Offline

 

#12 2007-06-06 23:00:28

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

There is a single volume.  The contents of ls /mnt/ are:

Code:

HD_a2     web_page

Thanks!

Offline

 

#13 2007-06-06 23:03:36

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: NFS mount command?

lionsnob wrote:

There is a single volume.  The contents of ls /mnt/ are:

Code:

HD_a2     web_page

Thanks!

Oh boy, should have been my first question... unfs3 is a great program, but it refuses to work if the exports file isn't 100% accurate. You need to remove the HD_b2 export from the exports file. See:

http://dns323.kood.org/forum/p3669-Toda … html#p3669

Someone should start collecting all the Q&A about my funplug in a wiki page...

Offline

 

#14 2007-06-07 00:44:18

lionsnob
Member
Registered: 2007-06-06
Posts: 8

Re: NFS mount command?

That worked!  Thanks!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB