[App] CifsManager v1.5a - Manage your CIFS/NFS network shares (28/04/2011)

Search This thread

jknisley

Member
Dec 2, 2007
39
1
San Francisco, CA
I has having that problem, too, but it turns out that the server example is really true. On the mount line, you use //server/share, but here, you use server/share instead. Try that?
 

k4p741nkrunch

Senior Member
Jun 14, 2010
512
153
Florida
I followed every trick in the book to get this to work with Windows 7 ultimate shares, but until went to the network and sharing center and left the homegroup I was in nothing worked.

Now that I've done that it's working flawlessly with the configured users.
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
In my Samsung Galaxy Tab (Froyo 2.2), trying to connect to a shared directory, I have this error message:

Mounting the share has failed with an error.
mount: Invalid argument


I search about this "Invalid argument" problem, but I didn't find an explanation of what it means.

Any idea?

make sure, your kernel supports cifs, and/or the cifs module can be loaded by the settings you supplied

Swyped with HTC Desire. Excuse typos.
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
Seconded. Although I think I'd rather have the ability to use a script, instead. It might make it a little more generic. And if something unforseen happens in the future, it'd be an allowance before patching is done. Yeah, we could put module loads in userinit, but the script might allow for more stuffs, like starting a vpn tunnel, without having to drop to terminal as frequently.

Scripts are a great thing. I also thought about it. But how DO you wanna start them? Is there any way I miss to start a script without starting a terminal first?

Swyped with HTC Desire. Excuse typos.
 

kenshinta

Senior Member
Dec 13, 2004
430
69
Redmi Note 10S
Cifs manager is only a frontend, which finally calls the mount command. Mount uses the kernel itself to do the network communication via the cifs module.

I don't know droid wall, but I would check on a kernel or mount option there.
I had guessed that's the background on this app, and hoped that the allow all root apps rule of droidwall would cover that, but unfortunately it doesnt. Will try/ hope to look for solutions elsewhere.
 

jknisley

Member
Dec 2, 2007
39
1
San Francisco, CA
Scripts are a great thing. I also thought about it. But how DO you wanna start them? Is there any way I miss to start a script without starting a terminal first?

Swyped with HTC Desire. Excuse typos.

I dunno. Do most of these devices come with a command interpreter? At the very least some sort of sh clone? I'm pretty sure my GTab came with sh, but I'm not the biggest guru on Android distributions.

JK
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
I dunno. Do most of these devices come with a command interpreter? At the very least some sort of sh clone? I'm pretty sure my GTab came with sh, but I'm not the biggest guru on Android distributions.

JK

Most custom roms got busybox included. If you got root, and /system can be written to, you can install latest busybox via market.

But still, opening a terminal and enter a command is very much worse than using a gui app. No option for me, since this is no linux box with keyboard where you can hammer in commands like a pro.

Somehow I was hoping you got a way to call linux commands via home screen

Swyped with HTC Desire. Excuse typos.
 

jknisley

Member
Dec 2, 2007
39
1
San Francisco, CA
Most custom roms got busybox included. If you got root, and /system can be written to, you can install latest busybox via market.

But still, opening a terminal and enter a command is very much worse than using a gui app. No option for me, since this is no linux box with keyboard where you can hammer in commands like a pro.

Somehow I was hoping you got a way to call linux commands via home screen

Swyped with HTC Desire. Excuse typos.

I'm a little confused. My suggestion was that either have us have a pointer to slow-work.ko or have us be able to run a shell script from the program before running anything else. So you put in the name of the shell script, and like many a UNIX program before it, it calls the shell script you specified to do work.

I'm not sure where the "Opening a terminal..." thing is coming in?

JK
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
I'm a little confused. My suggestion was that either have us have a pointer to slow-work.ko or have us be able to run a shell script from the program before running anything else. So you put in the name of the shell script, and like many a UNIX program before it, it calls the shell script you specified to do work.

I'm not sure where the "Opening a terminal..." thing is coming in?

JK

You meant to enter a command option to cifs manager? Then I got you all wrong

Edit: after reading the start of the conversation again, you suggested using a script instead of cifs manager, and I pointed out, there is no gui way to do so.

At least that was what I understood :)

Swyped with HTC Desire. Excuse typos.
 

jknisley

Member
Dec 2, 2007
39
1
San Francisco, CA
You meant to enter a command option to cifs manager? Then I got you all wrong

Edit: after reading the start of the conversation again, you suggested using a script instead of cifs manager, and I pointed out, there is no gui way to do so.

At least that was what I understood :)

Swyped with HTC Desire. Excuse typos.

Oh! I'll have to go back and reread, but what I was attempting to actually say was to give the option to call a shell script at startup of CIFS Manager, so if someone had some weird situation not covered by simply starting the CIFS module, then they could make a shell script to do it instead and call that. I'm sure there are tons and tons of special cases people have that we couldn't consider totally in a generic app.

And I really do like the CIFS Manager application, actually. My GTab connects to my home network, to other networks, and Sprint as well, so it's nice to have a nice "Turn it on, turn it off" way of doing stuff, rather than enter all of those commands (painfully) via Terminal.

Sorry about the confusion.
JK
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
Haha, yeah also sorry it took us that long to find out we misunderstand each other :)

I would like to see that feature, too. Right now I do well with first starting openvpn d settings gui and after that cifs manager

Swyped with HTC Desire. Excuse typos.
 

krrrk

Member
Sep 7, 2010
6
0
has anyone been able to get this to work on a dell streak?

does the streak 2.2 support CIFS?
 

thanku

Member
Apr 2, 2008
42
1
CiFs strange problem it works but

Hi,
Many Thanks for the excellent app it works great but I have one small problem I can not start the app by clicking the icon in application

However each time I click the cifs app it says application not install but when I go to the market to try to download it again it shows as it already install so when I click open it it open and work with no problem

In short I cannot open the cifs by clicking the application icon.

I wipe everything before I install the rom, I am using HTC desire with DeFroST 6.0h

Many thanks
 

f3d0r

Senior Member
Feb 8, 2007
67
47
Hi,
Many Thanks for the excellent app it works great but I have one small problem I can not start the app by clicking the icon in application

However each time I click the cifs app it says application not install but when I go to the market to try to download it again it shows as it already install so when I click open it it open and work with no problem

In short I cannot open the cifs by clicking the application icon.

I wipe everything before I install the rom, I am using HTC desire with DeFroST 6.0h

Many thanks

This seems to be a problem of your ROMs launcher.
for detailed info see
http://xdaforums.com/showpost.php?p=9070078&postcount=184

regards
 

thanku

Member
Apr 2, 2008
42
1
Thank you very much the problem is solved, it was the launcher causing the problem.

Many Thanks once again.
 

tallnerd1985

Senior Member
Dec 8, 2008
341
45
Vancouver, WA
Is there a writeup or something for getting OpenVPN up and running to work with CIFS manager? I tried using the native VPN client in Android but I guess its not compatible with a lot of Windows based VPN servers.

Sent from my SCH-I500 using XDA App
 

mad-murdock

Retired Recognized Developer
Oct 11, 2010
2,390
1,679
Detmold
Is there a writeup or something for getting OpenVPN up and running to work with CIFS manager? I tried using the native VPN client in Android but I guess its not compatible with a lot of Windows based VPN servers.

Sent from my SCH-I500 using XDA App

I start openvpn gui first and then start cifs manager second.
The mentioned shell command option in cifs would be a awesome feature and only require to start cifs manager

Swyped with HTC Desire. Excuse typos.
 

hawkeyexp

Senior Member
May 26, 2006
220
40
[Problem with RootExplorer and SMB-Shares]

Hi Guys,

since a while i can't get access to my files on mounted windows drives with rootexplorer.
I can mount them without errors and can use them for example in rockplayer and there i can browse files and filders.
With rootexplorer i can see the size of the volume but no files or folders.
Can anybody help to solve the problem or knows the reason ?

greats hawkeye
 

hawkeyexp

Senior Member
May 26, 2006
220
40
Problem is fixed - seems to be a bug in the nightly-builds of cm6.1.

With RC2 for Desire it works again :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 32
    I coded a small app to manage your CIFS/NFS network shares on your Android device. It allows you to conveniently mount/unmount your network accessible file resources and transparently access the files via your favourite Android app (playing music / videos, accessing documents etc.).

    Elementary support for NFS2/3 shares is included since v1.1.

    Prerequisites:
    * device must be rooted
    * kernel with CIFS support
    * Android >= 1.6

    Most Frequently Asked Questions:


    • Q: When trying to mount a share I only get an error message saying something like...
      1. "Error running exec().Command: [su]"
        A: Most probably your device is not properly rooted or the su command is missing.
      2. "No such device".
        A: Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support.
      3. "mounting <yourshare> on <yourmountpoint> failed: No such file or directory"
        A: Your "Mount Point" simply does not exist and CifsManager is not able to automatically create it for you. As automatic Mount Point creation is not done with su rights, CifsManager can only create Mount Points in directories with permissions 777 or on your SD-Card.
    • Q: I have installed CifsManager but launching the app fails with something like "Application not installed on your phone"
      A: This is not a problem caused by CifsManager but a bug in your ROMs launcher. Look for an updated version of your launcher.
    • Q: I mounted my favorite share successfully but files with special characters are not displayed correctly.
      A: Try to use a kernel with explicit UTF-8 support or try to find/load the kernel module nls_utf8.ko.

    Download:
    This app is now available in the Android market.
    img.php


    Attention:
    Do not download similar named APKs from anywhere else but Android market as doing so puts your device/data at serious risk (Malware, Spyware etc.).

    Screenshots:
    attachment.php
    attachment.php
    attachment.php


    regards, F3d0r
    8
    Anyone having mountspace issues (see here) try this patched version. It uses prefixed mount command (su --mount-master -c) and thus needs SuperSU from @Chainfire. Credits to @f3d0r for CifsManager.
    Also, here's a different mount method (based on sh/gscript/SuperSU).
    7
    Most Frequently Asked Questions:


    • Q: When trying to mount a share I only get an error message saying something like...
      1. "Error running exec().Command: [su]"
        A: Most probably your device is not properly rooted or the su command is missing.
      2. "No such device".
        A: Your current kernel or rom lacks the necessary CIFS support. Try to find a matching kernel module (cifs.ko) or use a rom with explicit CIFS support.
      3. "mounting <yourshare> on <yourmountpoint> failed: No such file or directory"
        A: Your "Mount Point" simply does not exist and CifsManager is not able to automatically create it for you. As automatic Mount Point creation is not done with su rights, CifsManager can only create Mount Points in directories with permissions 777 or on your SD-Card.
    • Q: I have installed CifsManager but launching the app fails with something like "Application not installed on your phone"
      A: This is not a problem caused by CifsManager but a bug in your ROMs launcher. Look for an updated version of your launcher.
    • Q: I mounted my favorite share successfully but files with special characters are not displayed correctly.
      A: Try to use a kernel with explicit UTF-8 support or try to find/load the kernel module nls_utf8.ko.


    28/04/2011 - Changes in v1.5a:

    - improved compatibility with various Launchers
    - removed permission to write to external storage/sdcard
    - username now mandatory share parameter (default value "guest")


    19/01/2011 - Changes in v1.5:

    - added multi-module load support
    -- it's now possible to configure and load multiple kernel modules via CifsManager
    -- specify multiple modules in the "Path to cifs.ko" preference by separating them via a colon ( : ).
    -- e.g. /system/lib/modules/cifs.ko:/system/lib/modules/nls_utf8.ko

    - you can now review the list of loaded kernel modules via the "Modules..." button in the "Info..." dialog
    -- if your kernel has cifs support built-in, the cifs will not show up there, this is no problem ;)

    - added a rudimentary check to try to prevent mounting shares on the sdcard if it is unavailable (mass-storage-mode).


    10/14/2010 - Changes in v1.41:

    - fixed problem with keeping track of shares with symbolic links in Mount Point


    09/07/2010 - Changes in v1.4:

    - added link to changelog in "About..." dialog
    - now available in Android market


    09/03/2010 - Changes in v1.31:

    - added correct quoting for special characters (",',{,[,\...)
    -- for Share Path, Mount Point, Username, Password
    -- using NICE mount points like /mnt/cifs/S{\ pace and safe passwords possible now :)
    -- eventual shell metacharacters in Options string have to be explicitly quoted

    - re-added permission WRITE_EXTERNAL_STORAGE
    -- so CifsManager is able to auto-create mount points on your SD-Card (without asking for root)
    -- convenient and useful for feature crippled software like Rockplayer

    Remark:
    Do not mount/umount shares on your SD-Card when in Mass-Storage mode.
    In other words: Avoid using mount points on your SD-Card if possible ;)


    09/01/2010 - Changes in v1.21:

    - reworked the "Open Directory..." feature
    -- should work with Estrongs (again) and Astro
    -- due to the lack of a standard intent Estrongs is preferred if both file managers are installed
    -- this command is available in a share's context menu when mounted

    - changed the standard action for mounted shares to "Open Directory..."


    08/31/2010 - Changes in v1.1:

    - added elementary support for mounting NFS shares
    -- specify the Share Path as <server>:<path> (e.g. 192.168.1.17:/mnt/Spajz)
    -- Username and Password fields are ignored in this case

    Remark:
    - If you want to mount NFS shares you should have the basic knowledge to load the necessary kernel modules in an appropriate init script yourself.
    - The newest version of EStrong FileExplorer lacks the necessary intent-filters to be launched with the "Open Directory..." context menu option.


    08/20/2010 - Changes in v1.0:

    - added option to directly open a Mount Point in file manager (browse directory)
    -- works with popular file managers like EStrong or ASTRO

    - added German language support
    -- if you want to help translating the GUI to different languages please contact me ;)

    - removed menu option to refresh share states manually

    Remark:
    Unfortunately it's not possible to launch the file viewer of Rockplayer 1.0.31 (blame them). Rockplayer even lacks the necessary intent filters to be launched with a video file.


    08/18/2010 - Changes in v0.99:

    - added settings dialog to provide control over the following features:
    -- default mount prefix (leave it at default if unsure about permissions/side-effects)
    -- load cifs module on startup (on/off)
    -- module load method (modprobe/insmod)
    -- module location (when insmod is selected)

    - Removed all references to sdcard to prevent side effects with USB-Mass-Storage mode
    -- new default mount prefix is /mnt/cifs, try to avoid mounting shares on sdcard directories
    -- /mnt/cifs should also work on devices with write disabled root filesystems like HTC Desire
    -- fixed permission problems with mount points created by CifsManager (files not showing up in File Managers etc.)
    -- moved persistent settings from sdcard to android default location (/data/data)

    - added menu option to unmount all currently mounted cifs shares
    - added menu option to refresh share states manually

    - share states now synchronized with kernel mount list on activity resume


    08/16/2010 - Changes in v0.93:


    - Fixed problem in serialization code (shares should be saved correctly now)
    - Try to automatically insert CIFS module (only on initial startup)
    - added "options" value to Share settings so arbitrary additional mount options can be specified (separate options with comma ,)

    Remark:
    The type of supported additional options depend on your specific kernel/cifs-module settings.


    08/16/2010 - Changes in v0.91:

    - Mountpath will be created (if needed and possible)
    - Settings are stored on SDCARD (/sdcard/cifs/cifsshares.dat)
    - Added permission to write to SDCARD
    3
    Updated to v1.5a

    28/04/2011 - Changes in v1.5a:

    - improved compatibility with various Launchers
    - removed permission to write to external storage/sdcard
    - username now mandatory share parameter (default value "guest")

    regards
    3
    For those looking for it, it's here https://xdaforums.com/showpost.php?p=53760495&postcount=537 .


    To add more shares: https://xdaforums.com/showpost.php?p=77221125&postcount=604 ,
    or do it manually with adb/terminal shell :

    su --mount-master -c mount -o username=myUsername,password=myPw -t cifs //192.168.0.XXX/Movies /mnt/cifs/Movies