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 2010-06-12 17:08:37

dudu7731
Member
Registered: 2010-06-12
Posts: 6

telnet & NFS problems

Hi,

I've just installed fun_plug on my DNS-313 RevA1 firmware ver : 1.00, all is right but i can't telnet to my NAS.

the port is open but i'have this display :

----------------------------------------------
telnet nas
Trying 192.168.1.10...
Connected to nas.
Escape character is '^]'.

Linux 2.6.15 (NAS) (0)


NAS login: root
Password:


BusyBox v1.00-pre1 (2007.08.28-03:13+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
----------------------------------------------------

the prompt never appear ....

i need to launch a NFS server so i need to setup it by telnet.

i tried to chmod 777 all /ffp/start scripts to launch the NFS server but i couldn't connect to it :
"sudo mount 192.168.1.10:/mnt/HD_a4 tmp
mount.nfs: access denied by server while mounting 192.168.1.10:/mnt/HD_a4"

i tried to edit /ffp/etc/exports via the fun plug script :
"echo '/mnt/HD_a2 192.168.1.2(rw,no_root_squash,no_subtree_check) 192.168.1.5(rw,no_root_squash,no_subtree_check)' > /ffp/etc/exports
echo '/mnt/HD_a4 192.168.1.2(rw,no_root_squash,no_subtree_check) 192.168.1.5(rw,no_root_squash,no_subtree_check)' >> /ffp/etc/exports
echo '/mnt/web_page 192.168.1.2(rw,no_root_squash,no_subtree_check) 192.168.1.5(rw,no_root_squash,no_subtree_check)' >> /ffp/etc/exports "

but nothing work ....

what can i do to telnet my nas ? and  setup  NFS please ?

Last edited by dudu7731 (2010-06-12 17:10:29)


Attachments:
Attachment Icon ffp.log, Size: 2,316 bytes, Downloads: 437

Offline

 

#2 2010-06-12 17:51:16

dudu7731
Member
Registered: 2010-06-12
Posts: 6

Re: telnet & NFS problems

I'm able to have the prompt entering the unlock code (???!!!???)  5784468

but i can't launch the nfs server :


Starting /ffp/sbin/rpc.portmap
Starting /ffp/sbin/unfsd -e /ffp/etc/exports
bind: Address already in use
Couldn't bind to tcp port 2049


any ideas ?

Offline

 

#3 2010-06-12 19:29:17

dudu7731
Member
Registered: 2010-06-12
Posts: 6

Re: telnet & NFS problems

i killed the processes ans restarted and i exported PATH with $PATH:/ffp/bin.

i can mount NFS now but there are several problems

why do i have to kill NFS server each reboot ?
why do i have to enter unlock code each ssh or telnet connection ?

Offline

 

#4 2010-06-14 15:48:23

dudu7731
Member
Registered: 2010-06-12
Posts: 6

Re: telnet & NFS problems

lol i make questions and answers, but it can be useful for another beginner ...

both nfsd.sh and unfsd.sh were launched so when i wanted to launch unfsd sockets were alredy used.

also to wipe off the unlock code i had to chsh the user root (see wiki for more explanations http://dns323.kood.org/howto:ffp)

i changed ntfs partition to ext2, but it doesn't mount on start ....

i solved this problem with editing /etc/rc.d/rc.init.sh :

root@NAS:/sys/crfs/samba# more /etc/rc.d/rc.init.sh
#!/bin/sh

route add default gw 192.168.1.1
HOSTNAME='NAS'
echo "Setting hostname .... $HOSTNAME"
/bin/hostname $HOSTNAME

echo "Starting DHCP client ...."
/sbin/udhcpc -i egiga0 -H NAS -p /var/run/udhcpc.pid -s /usr/share/udhcpc/default.script -x 192.168.0.32 -q -b

mkdir /mnt/HD_a2
/bin/mount -t ext2 /dev/sda2 /mnt/HD_a2


and creating a script like store_passwd.sh => store_rc_init.sh:
~/HD_a4/ffp/bin/store_rc_init.sh
#!/bin/sh

echo "Copying files to mtd1..."
mount -t minix /dev/mtdblock0 /sys/mtd1
cp -f /etc/rc.d/rc.init.sh /sys/mtd1/.
sync
umount /sys/mtd1


echo "Copying files to mtd2..."
mount -t minix /dev/mtdblock1 /sys/mtd2
cp -f /etc/rc.d/rc.init.sh /sys/mtd2/.
sync
umount /sys/mtd2

so when I reboot, the changes are taken

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB