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 2009-06-23 21:56:49

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

NFS server on 323, with fw < 1.08?

Hi, I've just bought a DNS323 and it looks a nice bit of kit. Unfotunately one of the reasons I bought it was to serve my many omnifi DMs1 media streamers around the house which are UPnP compatible with the likes of Twonky, Tversity, Simple Centre etc.

Now I can use an NFS server if I load Openfi on all my boxes and am testing on one at the moment.
However to do that I had to upgrade to fw 1.08 and add the nfs app. this however locks the unit randomly and only unplugging from the mains will correct that. Obviously this makes it a little unreliable for my other purpose of backing up my PCs.

If I take the funplug route and add the nfs server that it uses, will I still get these lockups, or can people report that it works fine.?

I am a novice at Linux, but remember the old Dos command days, so I presume it would be doable for me, perhaps with a little help.

Can anyone please advise.?

TIA


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#2 2009-06-24 02:11:14

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: NFS server on 323, with fw < 1.08?

I have used the userspace nfs that fonz has bundled with ffp, I haven't had any lockups, but I don't use it that often, nor for a while, I think it is considered stable here though.  See http://dns323.kood.org/howto:ffp

installing ffp is easy (just download 2 files, copy them to the root of the volume_1 and reboot and you are done), then set the telnet password, login and issue a few simple commands and your nfs will be running, so yes, I am sure it is doable

Offline

 

#3 2009-06-24 20:54:03

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

Thank you Luusac,

I've looked over how to install ffp and am really impressed with the quality of the instructions. Even a novice like myself should be able to manage it.

I have to get one of my DMS1 with Openfi to recognise the nfs server automatically and then I'll probably go for it.

Now if only it had a standard UPnP server, :-).


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#4 2009-06-27 20:21:31

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

Currently getting "permission denied" when trying to access the dlink nfs server. There appears to be no log to determine what the cause is.

Does the ffp version have some sort of log to identify problems.?

I did have it working previously with a different client ip address. Changed the host ip address in the DNS323 and even restarted the nfs server, but still denied.???

TIA


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#5 2009-06-27 20:24:45

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

Re: NFS server on 323, with fw < 1.08?

/ffp/start/syslogd.sh start
Then check /var/log/messages

Offline

 

#6 2009-06-27 20:56:29

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

Thank you fonz.

Followed the instructions, but have not yet disabled telnet as the ssh does not seem to work properly with Putty.

In telnet I have issued the command with the following results

/ # sh /ffp/start/nfsd.sh start
Creating default exports file...
/mnt/HD_a2 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/HD_a4 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/HD_b4 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/web_page 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
Linking /etc/exports ...
Starting /ffp/sbin/rpc.portmap
Starting /ffp/sbin/rpc.statd
exportfs: could not open /var/lib/nfs/xtab for locking
Starting /ffp/sbin/rpc.nfsd 8
Starting /ffp/sbin/rpc.mountd
/ #

In SSH I can login and it displays "Enter 'help' for commands", but help does not work. I get no response. Also I have not been able to log out without just closing the window. exit does not work.

Have I missed something. I checked the commands on the display shown here
http://nas-tweaks.net/Image:Fun_plug-telnet-session.png

and see I have missed the echo command at the top. In the web page it mentions pwconv.??

Can I correct, or do I need to start again.? If so is it just a case of deleting the ffp directory, replacing the two files and a restart.?

TIA

Last edited by gasman (2009-06-27 21:41:13)


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#7 2009-06-27 22:41:51

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

Have this from the messages file, still not sure what it cannot find for mount command on the client

$ mount -t nfs 192.168.2.101:/mnt/HD_a2 /storage/disks/nas1
mount: 192.168.2.101:/mnt/HD_a2 failed, reason given by server: Permission denied

On the NAS the messages file is as below.???

/var/log # cat messages
Jun 27 19:36:39 DLINK323 syslog.info syslogd started: BusyBox v1.12.1
Jun 27 19:36:39 DLINK323 user.notice kernel: klogd started: BusyBox v1.12.1 (2008-09-29 20:38:04 CEST)
Jun 27 19:37:27 DLINK323 daemon.notice rpc.statd[5692]: Version 1.1.0 Starting
Jun 27 19:37:27 DLINK323 daemon.notice rpc.statd[5692]: statd running as root. chown /var/lib/nfs/sm to choose different user
Jun 27 19:37:27 DLINK323 daemon.err nfsd[5703]: nfssvc: No such device
Jun 27 19:37:41 DLINK323 daemon.notice mountd[5713]: authenticated mount request from 192.168.2.3:792 for /mnt/HD_a2 (/mnt/HD_a2)
Jun 27 19:37:41 DLINK323 daemon.warn mountd[5713]: getfh failed: No such device


If I stop the nfs server I get

/ # sh /ffp/start/nfsd.sh stop
Stopping rpc.mountd
killall: nfsd: no process killed
killall: nfsd: no process killed
Stopping rpc.statd
Stopping rpc.portmap
/ #

etc/exports was created as

/ # cat /etc/exports
/mnt/HD_a2 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/HD_a4 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/HD_b4 192.168.2.0/24(rw,no_root_squash,no_subtree_check)
/mnt/web_page 192.168.2.0/24(rw,no_root_squash,no_subtree_check)

Last edited by gasman (2009-06-27 22:46:46)


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#8 2009-06-28 12:29:15

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

Re: NFS server on 323, with fw < 1.08?

you can't use /ffp/start/nfsd.sh witholder firmwares, as they don't have kernel-nfs support. use unfsd.sh as described in http://dns323.kood.org/howto:ffp#nfs_ne … ile_system

PS: for you ssh problem, also read http://dns323.kood.org/howto:ffp#shells

Offline

 

#9 2009-06-28 14:18:53

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

Working a treat now, nfs serve and shell.

Many thanks for your help and patience fonz.

Last edited by gasman (2009-06-28 14:19:06)


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

#10 2009-06-29 10:59:05

bodbod
Member
Registered: 2007-11-22
Posts: 109

Re: NFS server on 323, with fw < 1.08?

Hey Gasman,

I saw one post from you on the D-Link forum saying that NFS was crashing the DNS-323 after a certain time because of the heat & the disks which never stop spinning, could you confirm please ?

thanks

Offline

 

#11 2009-06-29 12:48:10

gasman
Member
From: Swansea,UK
Registered: 2009-06-23
Posts: 94

Re: NFS server on 323, with fw < 1.08?

I reported that the device locked up in the same way as someone else reported, and only removing the power would reset it.
This has happened twice since I upgraded. I have since disabled the dlink nfs server, and will monitor it for a while. It has not locked up a third time, yet.

I could not give you a reason as to why though, just it had only happened since upgrading the firmware to 1.08. If it occurs again I will downgrade to either 1.06 which the unit came with or 1,07.

bodbod wrote:

Hey Gasman,

I saw one post from you on the D-Link forum saying that NFS was crashing the DNS-323 after a certain time because of the heat & the disks which never stop spinning, could you confirm please ?

thanks


DNS-323 FW 1.08 (05/15/2009) HW:B1
2 * Seagate    ST3500630AS (500GB)  Fun_plug 0.5
DNS-323 FW 1.08  (12/18/2009) HW:B1
2 * Hitachi    HDS5C3020ALA632 (2TB)  Fun_plug 0.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB