[TouchPad General] Palmetto_X:
How To: Connect TP to network shares

How To: Connect TP to network shares

spud101

Member

Join Date: Jun 2004

Location: Netherlands

Posts: 574

Likes: 34

Thanks: 43

Thanked 69 Times in 34 Posts

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).

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: WebOS Internals Uber-Kernel

---- 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:

Basic Mounting

Mounting with shares visible in apps like Kalemsoft Media Player

"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)

To be finished later

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

To be finished later

For now please refer to:

Road to Success - How to allow NAS to show up under /media/internal on Touchpad Apps?

How To: Connect TP to network shares

How To: Connect TP to network shares

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

To be finished later

For now please refer to:

Road to Success - Mounting SAMBA/CIFS Permanently on Touchpad

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

Original post:

In short: The stock kernel on a webOS 3.0.2 Touchpad does not support CIFS. Or at least I didn't get it to work just the same way I do get it to work out of the box on a 1.4.5 Pre-.

Then I saw this thread: F15B & F15C test kernels

It says CIFS support! So I hesitantly installed this experimental F15C kernel, quickly ran Govnah to set max speed to 1.5 GHz (I don't want no real overclocking beyond this speed). But, YES, it does work, I now can access my NAS!

After I initially posted this thread webosinternals also added support for CIFS (& NFS) to the uberkernel (as of version 3.0.2-36). Thanks a lot for that guys!!

So how to go about:

- Install the F15C kernel from the testing kernel feed

The rest is standard linux stuff for mounting Samba shares:

- 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

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.

- 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

Note: as soon as you have a kernel running that supports CIFS, you can also use the xt tools. See this thread and the threads referenced inside it. samba filesharing - install/support thread

The xt tools will take over all the fstab editing and directory creation.

I agree this is still cumbersome. On an Android phone for example this is buildin in every decent filemanager. So I really, really hope that either or both Gemini and Internals HD will have some easy solution for this (both configuring and the actual mounting/unmounting). Or a solution straight from HP, this is also aimed at enterprise market after all!

Last edited by spud101; 09/08/2011 at 07:41 PM.

Thanked by 60milesmile, cookie_42, El_Titi, flyers333, ichi2k, Major Payne, mivoligo, Nightburn, obarthelemy, PF Graham, phil71, pre101, RickNeff, runner77, sf3000, sjp770, sps_2k1, tabaloos, teng_lin, thomaz, timjhenry, tlaswell​