Friday, January 07, 2011

Pogoplug and WDTV sharing via NFS

Finally I get Pogoplug and WDTV linked. Yahoo!!

NFS Server (Pogoplug)
Reference to 'Running an NFS Server' in http://openpogo.tumblr.com/

ipkg install nfs-server
vi /opt/etc/exports
# add following line 
/tmp/.cemnt/mnt_sdb1/download 192.168.1.0/255.255.255.0(rw,async,no_root_squash) 
 
Because nfs-server depends on the portmapper, we must verify that portmapper is running before start nfs-server.

# start nfs server
/opt/etc/init.d/S56nfsd

# make sure nfsd started
ps -w


NFS Client (WDTV)
Devices I have:
* WDTV: gen 1 with B-Rad's unofficial firmware WDLXTV 0.5.8.1
* Wireless adapter: Rosewill RNX-EasyN1 (Chipset Ralink 3070)
* USB drive: a very old timer -- Apacer 32M. Yes, and don't laugh. It is 32M. You read it correctly. It came back to life again. :)

- Config network with Wireless adaptor

Fortunately Pogoplug has web interface wireless support in my.pogoplug.com. So I first plug RNX-EasyN1 into pogoplug and set it up in the web interface. Then simply copy /etc/Wireless/RT2870STA/RT2870STA.dat out from pogoplug to root of the start up USB drive.

Download wireless app wireless-mod-rt.app.bin (search in WDTV Forum) and put in root of usb drive.

- Add NFS app
download nfs.app.bin-0.3 and copy to root of USB drive.

-Config NFS Client
Edit net.mounts and put into usb drive root.
xmount 192.168.1.3:/tmp/.cemnt/mnt_sdb1/download Pogo nfs udp,soft,rsize=32768,wsize=32768


Evertything is ready now. 'Restart' WDTV.
There are 2 ways to restart WDTV:
- Pull out power adaptor and wait a while (let's say 20 sec) and plug in
or
- Telnet/SSH into WDTV if you have network setup successfully already. Run reboot.

Check if NFS share is success from your WDTV GUI. If there is problem, telnet/ssh into wdtv and check mount, /etc/fstab... My link is not stable at first, after several reboot, it's there finally. Cheers!

No comments: