Author Topic: WD HDTV + ASUS 500gp  (Read 3165 times)

April 03, 2009, 12:15:45 PM
Read 3165 times

fast_checkmate

  • Newbie

  • Offline
  • *

  • 3
hello, i have a WD HTDV with ext3-boot 0.9 and a asus router with oleg's firmware
the ip of the router is 192.168.1.19, the ip of the wd hdtv is 192.168.1.235

facts:
the network functions properly (i can ping / telnet)
i can acces CIFS from a computer share on the wd hdtv and it plays correctly (i can access the hdd from the router via \\192.168.1.19\disc0_3

however i can't acces the router via CIFS / NFS from the wd box

my net.mount looks like this:

xmount //192.168.1.19/disc0_3 samba cifs
xmount 192.168.1.19:/tmp/mnt/disc0_3 nfs nfs

i get empty folder for both

media library is off


i've enabled the NFS server from the web of the asus:
 
cat /etc/exports
# automagically generated from web settings
/tmp/harddisk 192.168.1.19(rw,async,no_root_squash,anonuid=0,anongid=0)


any ideas?
thanks in advance

April 03, 2009, 01:56:06 PM
Reply #1

b-rad.cc

  • Hero Member

  • Offline
  • *****

  • 833
  • Personal Text
    FW Hacker
    • B-RAD
to determine whats available

with NFS:
Code: [Select]
# showmount -e <ip>
with CIFS/Samba:
Code: [Select]
# smbclient -L <ip>
those commands will give you valuable information about whats available to you.

April 03, 2009, 02:15:39 PM
Reply #2

shadow

  • Newbie

  • Offline
  • *

  • 33

 Hi,

 I have a D-Link DIR-320 running with DD-WRT Linux... and I'm having pretty much the same problem with CIFS.

 The Cifs support included in the ext3 custom firmware (CIFS 1.39) apparently don't like to connect in SAMBA shares. I tried with 3 different linux servers on my network and WDTV failed to connect in all of then (the servers had different versions of samba, all working, with "open" configurations - guest access, etc). I SUCESSFULY tried with XP, Win Server3, etc and WDTV always connects corretly in windows shares.

 Another linux here have CIFS version 1.50cRH and this one connects with no problem in my DD-WRT shares.

 Enabling debugs in WDTV CIFS 1.39, here is what I got:

 fs/cifs/cifsfs.c: Devname: \\192.168.2.10\storage flags: 32832
 fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 1 with uid: 0
 fs/cifs/connect.c: Username: guest
 fs/cifs/connect.c: UNC: \\192.168.2.10\storage ip: 192.168.2.10
 fs/cifs/connect.c: Socket created
 fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffff
 fs/cifs/transport.c: Sending smb of length 68
 fs/cifs/connect.c: Demultiplex PID: 2357
 fs/cifs/connect.c: Existing smb sess not found
 fs/cifs/transport.c: For smb_command 114
 fs/cifs/transport.c: Sending smb of length 47
 fs/cifs/connect.c: rfc1002 length 0x82000004)
 fs/cifs/connect.c: Good RFC 1002 session rsp
 fs/cifs/connect.c: rfc1002 length 0x52)
 fs/cifs/connect.c: No session or bad tcon
 fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 1) rc = -5

 (the mount fails)

  In the linux with CIFS 1.50RH, mounting the same share:
 fs/cifs/cifsfs.c: Devname: //192.168.22.195/storage flags: 64
 fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 287 with uid: 0
 fs/cifs/connect.c: Username: guest
 fs/cifs/connect.c: UNC: \\192.168.22.195\storage ip: 192.168.22.195
 fs/cifs/connect.c: Socket created
 fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
 fs/cifs/transport.c: Sending smb of length 68
 fs/cifs/connect.c: Demultiplex PID: 10344
 fs/cifs/connect.c: Existing smb sess not found
 fs/cifs/cifssmb.c: secFlags 0x7
 fs/cifs/transport.c: For smb_command 114
 fs/cifs/transport.c: Sending smb of length 78
 fs/cifs/connect.c: rfc1002 length 0x82000004
 fs/cifs/connect.c: Good RFC 1002 session rsp
fs/cifs/connect.c: rfc1002 length 0x52
fs/cifs/cifssmb.c: Dialect: 2
 fs/cifs/cifssmb.c: share mode security

 (... log continues)

 ... and mount works.

  I haven't made any tests with NFS because the optware packages ofr NFS servers are not avaiable for DD-WRT distribution....

  Anyone has wdtv accessing SAMBA SHARES IN LINUX???


April 03, 2009, 02:20:39 PM
Reply #3

b-rad.cc

  • Hero Member

  • Offline
  • *****

  • 833
  • Personal Text
    FW Hacker
    • B-RAD
  I haven't made any tests with NFS because the optware packages ofr NFS servers are not avaiable for DD-WRT distribution....

  Anyone has wdtv accessing SAMBA SHARES IN LINUX???


well I don't have any windows machines in my house, so when I made the samba.app.bin pack for WDLXTV I was using a linux box as the Samba server. It works just fine, even with user & password enabled.

so the samba.app.bin pack I made, does work with Linux servers.

April 03, 2009, 03:36:35 PM
Reply #4

fast_checkmate

  • Newbie

  • Offline
  • *

  • 3

root:~> showmount -e 192.168.1.19
Export list for 192.168.1.19:
/tmp/mnt/disc0_3 myshare


how can i mount this now and where can i access it?

iif i run

root:~> xmount 192.168.1.19:/tmp/mnt/disc0_3 myshare nfs
mkdir: cannot create directory 'myshare': File exists
mkdir: cannot create directory 'myshare': File exists
mount: 192.168.1.19:/tmp/mnt/disc0_3 failed, reason given by server: Permission
denied
mkdir: cannot create directory 'myshare': File exists
root:~>

any clues?

April 03, 2009, 04:27:18 PM
Reply #5

b-rad.cc

  • Hero Member

  • Offline
  • *****

  • 833
  • Personal Text
    FW Hacker
    • B-RAD

root:~> showmount -e 192.168.1.19
Export list for 192.168.1.19:
/tmp/mnt/disc0_3 myshare

unless your WDTV's hostname is myshare and you have it listed in /etc/hosts your /etc/exports is wrong.

Mine returns the following:
Code: [Select]
# showmount -e deadzone
Export list for deadzone:
/media wdtv-01

deadzone is the server & wdtv-01 is the wdtv. This means wdtv-01 is allowed to mount /media.

my /etc/exports on deadzone contains the following:
Code: [Select]
/media wdtv-01(rw,async)
...errr wait...that is your wdtv, isn't it? That <ip> is supposed to be your NFS server. You're just asking the wdtv what it would share with itself.

April 03, 2009, 07:59:18 PM
Reply #6

shadow

  • Newbie

  • Offline
  • *

  • 33
  I haven't made any tests with NFS because the optware packages ofr NFS servers are not avaiable for DD-WRT distribution....

  Anyone has wdtv accessing SAMBA SHARES IN LINUX???


well I don't have any windows machines in my house, so when I made the samba.app.bin pack for WDLXTV I was using a linux box as the Samba server. It works just fine, even with user & password enabled.

so the samba.app.bin pack I made, does work with Linux servers.

 b-rad.cc,

 I tried with your pack too (I manually mounted samba.app.bin in another directory, rmmod cfis "zorander distr module", insmod ./b-rad/cifs "b-rad.cc pack module").
 ... And the same behavior happens (mounts only XP Shares, none Samba share).

  I tried connecting shares in servers with these samba server versions:
    - Samba 2.2.12
    - Samba 3.0.10-1.4E.12.2
    - Samba 2.2.7-security-rollup-fix

  All these are configured with security=Share and "guest ok"=yes. And in all of these I can connect from WDTV using smbclient and list shares or even transfer files (thru smbclient). But CIFS mount always fails.

  One example that you can try, is to enable debug and try mount a "WDTV share" in WDTV itself:
  (my wdtv = 192.168.2.101)

  echo 1 > /proc/fs/cifs/cifsFYI
  cd /boot
  mkdir test
  mount -t cifs //192.168.2.101/media /boot/test -o user=guest,pass=guest
 
  In my WDTV, it do not work (mount finishes, but directory is empty) and the debug messages in dmesg are the same when I try with those Samba servers listed above:
 
(...)
 fs/cifs/connect.c: rfc1002 length 0x52)
 fs/cifs/connect.c: No session or bad tcon
 fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 1) rc = -5

  Any idea??

April 04, 2009, 01:06:11 AM
Reply #7

fast_checkmate

  • Newbie

  • Offline
  • *

  • 3
Thanks brad

i modified the export line on the NFS server (asus router) to

/tmp/mnt/disc0_3 192.168.1.235/32(rw,async,no_root_squash,anonuid=0,anongid=0)

and now it functions properly..

Thanks for everything u do for the community

April 04, 2009, 10:16:30 AM
Reply #8

packer

  • Newbie

  • Offline
  • *

  • 5
I was just going to say that you have different paths in your exports on WL500gP and net.mounts on WDTV  ;) but I see you got it to work already.

I have a similar config - ext3 formated HDD connected to WL500gP with both NFS/samba shares enabled. In general it works just fine.
However I've noticed weird behaviour today. On the HDD I have 2 directories: "Downloads" and "Media". When I tried to access the "Media" folder it was empty (the contents of "Downloads" dir were just fine). I tried to access the dir via Windows/putty/from WDTV - it was empty all the time. Umounting and mounting again didn't help, so I had to reconnect HDD and reboot WL500gP. Now it works ok - I wonder how long.
Any ideas?