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 2008-03-13 03:46:44

dastrix
Member
Registered: 2008-03-12
Posts: 18

Cant mount NFS?

I have installed the unfs plugin

But I cannot run it..


/mnt/HD_a2/fun_plug.d/etc # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh
ERROR: rpc.portmap not found
Starting unfsd...
/mnt/HD_a2/fun_plug.d/etc #

My exports file looks like this:


/mnt/HD_a2/fun_plug.d/etc # cat exports
/ 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_a2 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_a2/fun_plug.d/etc #


Anyone help me??

How do I get the unfsd to run on start up also?

Thaks!

Offline

 

#2 2008-03-13 03:59:44

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Cant mount NFS?

Port Map is running now... anyone know how I can set portmap & unfs to run on start up?

Still unable to map a drive

Last edited by dastrix (2008-03-13 04:11:11)

Offline

 

#3 2008-03-13 04:28:20

nUll
Member
Registered: 2008-03-09
Posts: 113

Re: Cant mount NFS?

chmod a+x /mnt/HD_a2/fun_plug.d/startup/unfsd.sh

That will set the exec bit and it will start at startup no need to set it up in portmap as it gets called by unfsd.sh

Also make sure you have the exports file in place and with the right permissions for the shares......

/mnt/HD_a2/data 10.30.2.0/24(rw,no_root_squash)

Last edited by nUll (2008-03-13 04:28:49)

Offline

 

#4 2008-03-13 04:31:53

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Cant mount NFS?

Here is my exports file


/mnt/HD_a2/fun_plug.d/etc # cat exports

/ 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_a2 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_a2/fun_plug.d/etc #

Thanks, ive set those scripts portmap one and unfs to startup..

Last edited by dastrix (2008-03-13 04:32:33)

Offline

 

#5 2008-03-13 06:34:20

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Cant mount NFS?

No one?!

Offline

 

#6 2008-03-13 09:37:56

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Cant mount NFS?

dastrix wrote:

Still unable to map a drive

What commands are you trying to execute and what errors are you getting?


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#7 2008-03-13 12:28:17

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Cant mount NFS?

First make sure where the unfsd init script expects to find rpc.portmap:

Code:

/ # cat /mnt/HD_a2/fun_plug.d/start/unfsd.sh |egrep 'rpc|BINDIR'
BINDIR=/mnt/HD_a2/fun_plug.d/bin
    if [ -x "${BINDIR}/rpc.portmap" ]; then
        echo "Starting rpc.portmap..."
        ${BINDIR}/rpc.portmap
        echo "ERROR: rpc.portmap not found"
    if [ -x "${BINDIR}/unfsd" ]; then
        ${BINDIR}/unfsd -e ${exports} -d 1>${LOGDIR}/unfsd.log 2>&1 &

Then make sure that file exists and is executable:

Code:

/ # ls -l /mnt/HD_a2/fun_plug.d/bin/rpc.portmap
-rwxrwxrwx    1 root     root        12888 Jul 22  2007 /mnt/HD_a2/fun_plug.d/bin/rpc.portmap

Make sure your exports file address matches your ip address:

Code:

/ # ifconfig egiga0 |grep inet
          inet addr:192.168.9.2  Bcast:192.168.9.255  Mask:255.255.255.240
/ # cat /mnt/HD_a2/fun_plug.d/etc/exports |egrep '^/ '
/ 192.168.9.0/24(rw,no_root_squash)

And make sure unfsd is running

Code:

/ # ps -ef |grep unfsd |grep -v grep
 1663 root       1616 S   /mnt/HD_a2/fun_plug.d/bin/unfsd -e /mnt/HD_a2/fun_plu
/ #

Then try mounting the filesystem from the client:

Code:

mount 192.168.9.2:/ /mnt

Offline

 

#8 2008-03-13 12:46:47

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Cant mount NFS?

Did the above steps and its working! Ha big_smile

So, now that its mounted there - how do I go about having Windows Map to it?? As my NMT is still seeing a Samba share..

Thanks so much guys! q

Offline

 

#9 2008-03-13 13:15:14

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: Cant mount NFS?

I have no idea how you can map nfs on a Windows client as I don't use Windows... personally I would assume samba is better for linux -> windows mounting...

Offline

 

#10 2008-03-13 21:17:00

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Cant mount NFS?

Damn. What about using a Popcorn hour NMT to map to it using NFS?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB