webOS Nation Forums >  webOS tablets >  HP TouchPad > How To: Connect TP to network shares
How To: Connect TP to network shares

  Reply
Like Tree52Likes

 
LinkBack Thread Tools Display Modes
Old 08/07/2011, 01:31 PM   #1 (permalink)
Member
 
Join Date: Jun 2004
Location: Netherlands
Posts: 826
Likes Received: 66
Thanks: 78
Thanked 96 Times in 53 Posts
Default How To: Connect TP to network shares

Updated (Oct 13th 2011):
Updated the post. Basically just install the app developed by Norf: http://forums.precentral.net/nelsun-...ve-mapper.html

Updated (Sep 7th 2011):
Rewritten to include a method for stock kernel, make shares usable for KalemSoft Media Player & automount at (re)boot. Thx to everybody who contributed to this thread! (Under construction, finished later)

Updated (Aug 9th 2011): processed some comments from this thread and the fact that uberkernel now also supports CIFS (& NFS).

How to mount Network Shares

Time has passed and Norf has used some of his precious time to develop an awesome app, Enyo Network Drive Mapper, that will do all the hard work for you. Please refer to this thread: http://forums.precentral.net/nelsun-...ve-mapper.html

You'll still need to know some of the stuff I mentioned below:
hostIP = IP address of the computer or NAS you want to connect to. You can use hostnames too, but need to also edit /etc/hosts then.
sharename = The share name you want to connect to as configured on your computer/NAS
mountpoint-path = as discussed above, e.g. /mnt/nas
username & password = share login credentials. There are probably safer ways to do this instead of having this plain text on your device, anyone can tell me how to do that?

Enyo Network Drive Mapper also takes care of mounting the share and making the files available to some PDK apps like Kalemsoft Media Player, as long as you first launch Kalemsoft Media Player before mounting the network share. I don't know whether you have to unmount again before closing the mediaplayer too just to be safe.

I don't know whether the Enyo Network Drive Mapper also takes care of sticky mounting, i.e. remounting after a Touchpad reboot or network disconnect. I think not (yet).

-------------------------------

Original post:

Prerequisites:

- HP Touchpad, webOS 3.0.2 or later.
- One of the following Kernels:
---- Stock kernel
---- Uberkernel 3.0.2-52 or later (Next to support for CIFS & NFS this kernel also supports UTF-8. More info here: http://forums.precentral.net/webos-i...er-kernel.html
---- F15C,.. (completed later)
- Terminal access to your TP, either via webOS Quick Install or Xecutah + Xserver + Xterm (install from preware)
- Internalz Pro with show hidden files set to yes

Three parts:

This guide has three parts:
  1. Basic Mounting
  2. Mounting with shares visible in apps like Kalemsoft Media Player
  3. "Sticky" mounting: Auto mount at (re)boot

Definitions:

hostIP = IP address of the computer or NAS you want to connect to. You can use hostnames too, but need to also edit /etc/hosts then.
sharename = The share name you want to connect to as configured on your computer/NAS
mountpoint-path = as discussed above, e.g. /mnt/nas
cifs = type of filesystem to mount (cifs is better version of smbfs, I've been told)
auto (or can also be noauto) auto/noauto determines if the share is mounted automatically at startup.
username & password = share login credentials. There are probably safer ways to do this instead of having this plain text on your device, anyone can tell me how to do that?
rw = access mode, in this case read & write, other possibilities exist too
The numbers have someting to do with filesystem check at boot.

1a: Basic Mounting (without fstab)

- Create a mountpoint, a path where the share will be accessible, e.g. /mnt/nas or /mnt/media/internal/nas I used Internalz Pro in master mode for this.
- In a terminal type:
mount.cifs //<hostIP>/<sharename> <mountpoint-path> -o username=<username>,password=<password>
Example: mount.cifs //10.0.1.26/DataVolume /mnt/Shared -o username=foo,password=bar

1b: Basic Mounting (with fstab, not supported by stock kernel)

- Create a mountpoint, a path where the share will be accessible, e.g. /mnt/nas or /mnt/media/internal/nas I used Internalz Pro in master mode for this.
- Open /etc/fstab again you can use Internalz Pro in master mode for this
Add a line:
//<hostIP>/<sharename> <mountpoint-path> cifs auto,username=<username>,password=<password>,rw 0 0

- Save the file
- Open a terminal
- type in this command:
mount -t cifs //<hostIP>/<sharename> <mountpoint-path> -o username=<username>,password=<password>
No idea whether all the -o options are still needed, as they are in the fstab line already as well.

Apparently mount -a should also mount your shares inside fstab. But for me that didn't work, maybe because I have it set to noauto.

This should do it.

Unmounting as follows:
umount <mountpoint-path> e.g. umount /mnt/nas

2: Mounting with shares visible in apps like Kalemsoft Media Player

For now please refer to:
Road to Success - How to allow NAS to show up under /media/internal on Touchpad Apps?
http://forums.precentral.net/3128665-post70.html
http://forums.precentral.net/3128969-post75.html

3: "Sticky" mounting: Auto mount at (re)boot

For now please refer to:
Road to Success - Mounting SAMBA/CIFS Permanently on Touchpad

Last edited by spud101; 10/13/2011 at 07:11 AM.
spud101 is offline   Reply With Quote
Liked by 60milesmile, phaedrus, PF Graham and 19 others like this.
Old 08/07/2011, 01:42 PM   #2 (permalink)
Member
 
timjhenry's Avatar
 
Join Date: Jul 2010
Posts: 107
Likes Received: 2
Thanks: 16
Thanked 24 Times in 11 Posts
Default

This is pretty clever! Thanks for posting this!

ADD: one question though... Does anything bad happen if the share isn't available?
timjhenry is offline   Reply With Quote
Old 08/07/2011, 03:16 PM   #3 (permalink)
Member
 
phaedrus's Avatar
 
Join Date: Dec 2005
Location: Netherlands
Posts: 18
Likes Received: 0
Thanks: 1
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by spud101 View Post
auto (or can also be noauto) some option regarding the mounting, no clue what it actually does.
auto/noauto determines if the share is mounted automatically at startup.

Quote:
No clue what the two 0s (zeroes) are there for.
The numbers have someting to do with filesystem check at boot.

Quote:
- type in this command:
mount -t cifs //<hostIP>/<sharename> <mountpoint-path> -o username=<username>,password=<password>
No idea whether all the -o options are still needed, as they are in the fstab line already as well.
'mount -a' should be sufficient.
__________________
Psion 3a > Palm IIIx > Sony CLIÉ NR70 > Tapwave Zodiac 2 > Palm Centro > Nokia N900
> HP Veer & Touchpad
phaedrus is offline   Reply With Quote
Thanked By: spud101
Old 08/07/2011, 04:48 PM   #4 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

We will add the cifs support to the UberKernel too.

-- Rod
rwhitby is offline   Reply With Quote
Liked by spud101, sps_2k1, FischOderAal and 1 others like this.
Thanked by DaDueler, sps_2k1, spud101
Old 08/07/2011, 05:16 PM   #5 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

Put this in a wiki.
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Thanked By: CWFlink
Old 08/07/2011, 05:18 PM   #6 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by Abyssul View Post
Put this in a wiki.
Excellent. Where did you put it?

-- Rod
rwhitby is offline   Reply With Quote
Old 08/08/2011, 12:49 PM   #7 (permalink)
Member
 
Downtime500's Avatar
 
Join Date: May 2011
Posts: 64
Likes Received: 3
Thanks: 44
Thanked 7 Times in 5 Posts
Default

Instead of CIFS, what about NFS shares for TouchPad to Unix/Linux NAS shares. Has anyone tried this? Does the Kernel support NFS?
Downtime500 is offline   Reply With Quote
Old 08/08/2011, 03:03 PM   #8 (permalink)
Member
 
phaedrus's Avatar
 
Join Date: Dec 2005
Location: Netherlands
Posts: 18
Likes Received: 0
Thanks: 1
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by Downtime500 View Post
Instead of CIFS, what about NFS shares for TouchPad to Unix/Linux NAS shares. Has anyone tried this? Does the Kernel support NFS?
Both F15C and UberKernel support NFS, at least it says so in the descriptions in Preware and the kernelthreads (haven't tried it myself yet).
__________________
Psion 3a > Palm IIIx > Sony CLIÉ NR70 > Tapwave Zodiac 2 > Palm Centro > Nokia N900
> HP Veer & Touchpad
phaedrus is offline   Reply With Quote
Old 08/08/2011, 05:03 PM   #9 (permalink)
Member
 
Join Date: Jul 2009
Location: Lausanne, Switzerland
Posts: 75
Likes Received: 6
Thanks: 110
Thanked 9 Times in 8 Posts
Default

Thanks for the guide. I'm now able to access my NAS and see all my video collection.

Unfortunately, I don't manage to read my mp4 files. I copy one of them to the internal/media folder and I can read it though.

Has anyone succeeded to read mp4 files from a shared folder?
phil71 is offline   Reply With Quote
Old 08/08/2011, 05:54 PM   #10 (permalink)
Member
 
Join Date: Jun 2004
Location: Netherlands
Posts: 826
Likes Received: 66
Thanks: 78
Thanked 96 Times in 53 Posts
Default

Quote:
Originally Posted by phaedrus View Post
auto/noauto determines if the share is mounted automatically at startup.
Does this need to be set to auto for mount -a to work? Because mount -a doesn't work with noauto for me.

I'll update the OP soon, as uberkernel indeed now also supports cifs & nfs. Super great that webosjnternals so quickly added it after me trying to get this to work. When my creditcard monthly cycle is through I'll donate or purchase the homebrew documents app.
spud101 is offline   Reply With Quote
Old 08/08/2011, 05:58 PM   #11 (permalink)
Member
 
hrminer92's Avatar
 
Join Date: Jun 2009
Posts: 905
Likes Received: 31
Thanks: 89
Thanked 85 Times in 62 Posts
Default

Quote:
Originally Posted by phil71 View Post
Thanks for the guide. I'm now able to access my NAS and see all my video collection.

Unfortunately, I don't manage to read my mp4 files. I copy one of them to the internal/media folder and I can read it though.

Has anyone succeeded to read mp4 files from a shared folder?
The "Open/Play" option on the TouchPad file manager apps doesn't work?
hrminer92 is offline   Reply With Quote
Old 08/09/2011, 08:13 AM   #12 (permalink)
Member
 
Join Date: Jun 2004
Location: Netherlands
Posts: 826
Likes Received: 66
Thanks: 78
Thanked 96 Times in 53 Posts
Default

Updated the OP!
spud101 is offline   Reply With Quote
Old 08/09/2011, 02:08 PM   #13 (permalink)
Member
 
Join Date: Sep 2009
Posts: 34
Likes Received: 0
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by phil71 View Post
Thanks for the guide. I'm now able to access my NAS and see all my video collection.

Unfortunately, I don't manage to read my mp4 files. I copy one of them to the internal/media folder and I can read it though.

Has anyone succeeded to read mp4 files from a shared folder?
I'm having the same problem. I'm using the latest UberKernel and I can see my network shares fine in Internalz Pro when I mount to /mnt/sharefolder. However, I can't make the files accessible in the /media/internal path.

I've tried mounting to /media/internal/sharefolder. When I do that, I can see my files via the WOSQI terminal, but they do not appear in Internalz Pro or in the KS Media Player.

I also tried creating a symbolic link to /mnt/sharefolder, but /media/internal is a FAT file system, so that didn't work.

Any ideas on getting my shared files visible to apps via /media/internal/ ?
zentraed is offline   Reply With Quote
Old 08/14/2011, 07:30 AM   #14 (permalink)
Member
 
Join Date: Jul 2010
Posts: 282
Likes Received: 84
Thanks: 26
Thanked 187 Times in 40 Posts
Default

So I just added this to the latest build of warthog (3.0.2-39).

However, I have built cifs and nfs as modules instead of compiling it into the kernel. So I need people to help test this to make sure that the modules are being properly loaded and unloaded.
__________________
Follow me on Twitter: http://twitter.com/warthogkernel

Experimental warthog kernels for webOS devices. Patches such as Muffle System Logging, Max Blocker etc.

Donations go towards further experimentation.
codecrumb is offline   Reply With Quote
Old 08/14/2011, 08:36 AM   #15 (permalink)
Member
 
phaedrus's Avatar
 
Join Date: Dec 2005
Location: Netherlands
Posts: 18
Likes Received: 0
Thanks: 1
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by codecrumb View Post
So I just added this to the latest build of warthog (3.0.2-39).

However, I have built cifs and nfs as modules instead of compiling it into the kernel. So I need people to help test this to make sure that the modules are being properly loaded and unloaded.
The modules are not automatically loaded.
Code:
lsmod
Module                  Size  Used by
ar6000                238552  0 [permanent]
CIFS
"insmod /lib/modules/$(uname -r)/kernel/fs/cifs/cifs.ko" loads the module without problems and I can mount shares from my Ubuntu Server. The full path is necessary, "insmod cifs.ko" doesn't work.

NFS
Two modules (sunrpc.ko & lockd.ko) load fine. Trying to load nfs.ko results in an error.
Code:
insmod /lib/modules/$(uname -r)/kernel/net/sunrpc/sunrpc.ko
insmod /lib/modules/$(uname -r)/kernel/fs/lockd/lockd.ko
insmod /lib/modules/$(uname -r)/kernel/fs/nfs/nfs.ko

insmod: error inserting '/lib/modules/2.6.35-palm-tenderloin/kernel/fs/nfs/nfs.ko': -1 Unknown symbol in module
dmesg gives this output.
Code:
[ 3320.993789] RPC: Registered udp transport module.
[ 3320.993809] RPC: Registered tcp transport module.
[ 3321.001941] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 3331.649022] nfs: Unknown symbol nlmclnt_proc (err 0)
[ 3331.768063] nfs: Unknown symbol svc_gss_principal (err 0)
[ 3331.770732] nfs: Unknown symbol nlmclnt_init (err 0)
[ 3331.779452] nfs: Unknown symbol nlmclnt_done (err 0)
[ 3375.295644] nfs: Unknown symbol svc_gss_principal (err 0)
[ 4049.834199] nfs: Unknown symbol svc_gss_principal (err 0)
[ 4057.571632] nfs: Unknown symbol svc_gss_principal (err 0)
[ 4247.286141] nfs: Unknown symbol svc_gss_principal (err 0)
[ 4271.222659] nfs: Unknown symbol svc_gss_principal (err 0)
[ 4272.736239] nfs: Unknown symbol svc_gss_principal (err 0)
I tried installing portmap but that didn't help.
Code:
ipkg-opt install portmap

Installing portmap (4-5) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/portmap_4-5_arm.ipk
Configuring portmap
Successfully terminated.
__________________
Psion 3a > Palm IIIx > Sony CLIÉ NR70 > Tapwave Zodiac 2 > Palm Centro > Nokia N900
> HP Veer & Touchpad
phaedrus is offline   Reply With Quote
Thanked by codecrumb, Downtime500
Old 08/14/2011, 10:31 AM   #16 (permalink)
Member
 
Join Date: Jun 2004
Location: Netherlands
Posts: 826
Likes Received: 66
Thanks: 78
Thanked 96 Times in 53 Posts
Default

Quote:
Originally Posted by zentraed View Post
I tried mounting to /media/internal/sharefolder. When I do that, I can see my files via the WOSQI terminal, but they do not appear in Internalz Pro or in the KS Media Player.
Still weird. I have no idea how to fix that. I personally have no problem seeing the files in Internalz. They don't show up in KS Media Player, but I assumed that's because it's a PDK app.
spud101 is offline   Reply With Quote
Old 08/14/2011, 10:38 AM   #17 (permalink)
Member
 
Join Date: Sep 2009
Posts: 463
Likes Received: 31
Thanks: 231
Thanked 49 Times in 36 Posts
Default

Pretty sure Jason (@jaycanuck) said he was looking into SMB shares for Internalz HD. Maybe he can make it an extra feature for those who have the respective kernel installed.
FischOderAal is offline   Reply With Quote
Old 08/14/2011, 11:06 AM   #18 (permalink)
Member
 
phaedrus's Avatar
 
Join Date: Dec 2005
Location: Netherlands
Posts: 18
Likes Received: 0
Thanks: 1
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by spud101 View Post
mount -t cifs //<hostIP>/<sharename> <mountpoint-path> -o username=<username>,password=<password>
No idea whether all the -o options are still needed, as they are in the fstab line already as well.

Apparently mount -a should also mount your shares inside fstab. But for me that didn't work, maybe because I have it set to noauto.
'mount -a' is the command to mount everything from /etc/fstab. If it doesn't work there is probably something wrong with your /etc/fstab (i.e. some typing error).
You can try 'mount /mountpoint/path' (i.e. mount /media/nas) to see if it gives an error.

When doing mount -t cifs etc. there is no reason to edit /etc/fstab.

update:
I just tried it myself and 'mount -a' works. However, the share is not mounted at boot (which normally should be the case).

PS. This is with Uberkernel-36
__________________
Psion 3a > Palm IIIx > Sony CLIÉ NR70 > Tapwave Zodiac 2 > Palm Centro > Nokia N900
> HP Veer & Touchpad

Last edited by phaedrus; 08/14/2011 at 11:23 AM.
phaedrus is offline   Reply With Quote
Old 08/14/2011, 12:10 PM   #19 (permalink)
Member
 
Join Date: Aug 2011
Posts: 723
Likes Received: 37
Thanks: 13
Thanked 38 Times in 31 Posts
Default

For those of us who don't "play" Unix, is there a way with Uberkernel (which I have loaded) to get access to Windows shares? What's the arcane magic instructions?

Alan
alan sh is online now   Reply With Quote
Old 08/14/2011, 01:04 PM   #20 (permalink)
Member
 
Join Date: Jul 2010
Posts: 282
Likes Received: 84
Thanks: 26
Thanked 187 Times in 40 Posts
Default

phaedrus, looks like you need to do the following for nfs

/lib/modules/2.6.35-palm-tenderloin/kernel/fs/nfs/nfs.ko: /lib/modules/2.6.35-palm-tenderloin/kernel/fs/lockd/lockd.ko /lib/modules/2.6.35-palm-tenderloin/kernel/net/sunrpc/auth_gss/auth_rpcgss.ko /lib/modules/2.6.35-palm-tenderloin/kernel/net/sunrpc/sunrpc.ko

so mount the dependent modules first including auth_rpcgss.ko
__________________
Follow me on Twitter: http://twitter.com/warthogkernel

Experimental warthog kernels for webOS devices. Patches such as Muffle System Logging, Max Blocker etc.

Donations go towards further experimentation.
codecrumb is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0