[Q] Cifs unicode module for Android 3.1 (Prime 1.4) - Eee Pad Transformer General

Hello,
Just got my new TF and thanks to XDA I've already rooted it and installed rom Prime 1.4 to get a rooted 3.1 android version.
Everything goes fine except for mapping network shares. Mounting network shares with cifs manager is ok except that I'm French so some directories in my network got unicode characters and I can't mount them.
Does anyone know how to bypass this limitation ?
On my understanding, I should install a cifs.ko module compiled for the TF and the 3.1 Android version in /system/lib/modules but I don't know where to find such module.
Thanks in advance

Try es strongs file explorer. It allows you to add network shares.
Sent from my Transformer TF101 using XDA Premium App

Thanks, but I've already done it without success.
The issue is not to map a share, this is working. The real issue is that share with unicode characters (like é, è, à...) are not working.
Thanks anyway

Im also rooted with prime 1.4 buf cant get any shared volume to mount via cifs manager. What am i missing here?

Have you tried adding 'iocharset=utf8' to the mount point options?

Don't know if this can help you or not, but my 1st mistake with cifs manager when I tried it fist time was that I haven't put anything on mount point.
What you need on the fields of cifs manager is:
Share Path: The path to your share ==> ex: 192.168.1.5/share (this is the shared dir on your server)
Mount point: The name of the "false" directory that will simulate that your share is on your tablet ==> ex: /sdcard/cifs/share (this is up to you but keep close to this)
Plus of course username and password (I thinks that anonymous connection is not allowed anyway)
Hope this help

Tortel1210 said:
Have you tried adding 'iocharset=utf8' to the mount point options?
Click to expand...
Click to collapse
I don't know how I can do that. Is it an argument to parse in a field of cifs manager ? If so how should I do that ?
Can you help me with this please.

XPNect said:
I don't know how I can do that. Is it an argument to parse in a field of cifs manager ? If so how should I do that ?
Can you help me with this please.
Click to expand...
Click to collapse
If you edit the settings for a mount point (Long press on it, then choose edit), there is an options text field at the bottom. Put it in there, save, and try mounting it.

XPNect said:
Don't know if this can help you or not, but my 1st mistake with cifs manager when I tried it fist time was that I haven't put anything on mount point.
What you need on the fields of cifs manager is:
Share Path: The path to your share ==> ex: 192.168.1.5/share (this is the shared dir on your server)
Mount point: The name of the "false" directory that will simulate that your share is on your tablet ==> ex: /sdcard/cifs/share (this is up to you but keep close to this)
Plus of course username and password (I thinks that anonymous connection is not allowed anyway)
Hope this help
Click to expand...
Click to collapse
Thanks!!! Dont know how or why but now it works!

Tortel1210 said:
If you edit the settings for a mount point (Long press on it, then choose edit), there is an options text field at the bottom. Put it in there, save, and try mounting it.
Click to expand...
Click to collapse
It works fine a big thanks.
I've been abused by the comment and I was thinking that this box was only for a domain name... feel stupid sometime

Related

Tested cifs.ko and nls_utf8.ko (from factory kernel)

Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
hiway123 said:
Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
Click to expand...
Click to collapse
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
techmik67 said:
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
Click to expand...
Click to collapse
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files' names, such as asian characters. Then the second one is needed.
hiway123 said:
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files, such as asian characters. Then the second one is needed.
Click to expand...
Click to collapse
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Kaik541 said:
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Click to expand...
Click to collapse
Don't quite understand your meaning, sorry. But anyway, just for interested people...
the module works great thanks for your effort.
network pimp... android novice.
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
tucxforever said:
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
Click to expand...
Click to collapse
I have a samba server in LAN, say at 192.168.1.1. So, I do these steps:
1. unzip my package to your computer, there are two ko files. Then use USB cable to transfer these two files to your phone in /sdcard folder.
2. on the phone, I used "terminal emulator", run "su" into root mode, make new folders like "busybox mkdir /system/lib/modules", you may try other directory name, I don't think that does a matter. Move the two ko files from /sdcard to this newly created folder, remember to use "busybox mv" command.
3. create a mount point on your phone, "mkdir /sdcard/smb" for example. or "busybox mkdir" I cannot remember.
4. insert modules, using "insmod /system/lib/modules/cifs.ko" and "insmod /system/lib/modules/nls_utf8.ko", remember these commands must be run everytime after you reboot your phone, so I use Gscript to create a shortcut, it's very convenient.
5. mount server's samba share folder in the phone, using "busybox mount -t cifs //192.168.1.1/your_share_folder /sdcard/smb -v -o user=yourusername,pass=yourpasswd,iocharset=utf8".
6. now, you can use rockplayer to browse into /sdcard/smb on your phone to view what is shared.
7. It is better to umount your folder once you finish transferring files. Then simply do "busybox umount /sdcard/smb".
Actually, only commands 5-7 are needed after your first attempt. Of course, if you have not done step 4 after a reboot, you need to do that step as well. I use Gscript in market to create shortcuts to these 4-7 commands. That's more convenient instead of typing on such small screen.
Have you tried this with any of the Custom ROMs in this section? If so, which ones work? Can you tell me how to compile a CIFS.KO?
Can it be compiled against the ROMs supplied here?
Thanks in advance,
Freaking brilliant, was exactly what I was looking for...thanks OP!
*edit*
Should mention, I used the posted .KO with stock rogers rom (i896) and it seems to be working flawlessly from my testing so far. I've even been able to stream some lower bitrate HD video and have it run smoothly and consistantly
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
something wrong?
i use SetiroN's kernel... and I9000 Froyo - maybe that is the reason?
Id assume that the kernel you are using isn't compatible and the module will have to be compiled for it.
Sent from my SAMSUNG-SGH-I896
love the rom just wish had few diff tweaks

[GUIDE] Mount Windows or Linux share on Kindle using CifsManager

NOTE: These instructions may be outdated. If you've installed a recent ROM, the cifs drivers are probably built in, and you should be able to use Cifsmanager as long as the "Load cifs module" option is checked.
These are my notes for mounting a remote Windows share on my Kindle Fire. Note that this also works with CM7.
Why do this? My usage example is so I don't have to manually copy comics down to the Kindle for reading with Perfect Viewer. I can read them directly via Wifi on my Kindle. It's also a lot easier to manage the files on the PC.
Root is required
CifsManager Free
https://market.android.com/details?id=ws.plattner.cifsmanager&hl=en
Drivers
http://forum.xda-developers.com/showthread.php?t=1396960
Big thanks to riverzhou for providing these files!
Steps
1. Install root if necessary - find another guide for this
2. Ensure a proper share is available from PC
3. Install CifsManager - note, not available on Amazon appstore, so will have to install from Android Market, or side load
4. Copy drivers to /sdcard/cifs
5. CifsManager
Load cifs module -> checked
Load via insmod -> checked
Path to cifs.ko: /sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko
Use IP for share, like this: 192.168.15.100/sharename
Create folder on sdcard for mount point, like /sdcard/comics
Ectoplasmic said:
These are my notes for mounting a remote Windows share on my Kindle Fire. I have it working, and will tidy up the steps as time passes.
Why do this? My usage example is so I don't have to manually copy comics down to the Kindle for reading with Perfect Viewer. I can read them directly via Wifi on my Kindle. It's also a lot easier to manage the files on the PC.
Root is required
CifsManager Free
https://market.android.com/details?id=ws.plattner.cifsmanager&hl=en
Drivers
http://forum.xda-developers.com/showthread.php?t=1396960
Big thanks to riverzhou for providing these files!
Steps
1. Install root if necessary - find another guide for this
2. Ensure a proper share is available from PC
3. Install CifsManager - note, not available on Amazon appstore, so will have to install from Android Market, or side load
4. Copy drivers to /sdcard/cifs
5. CifsManager
Load cifs module -> checked
Load via insmod -> checked
Path to cifs.ko: /sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko
Use IP for share, like this: 192.168.15.100/sharename
Create folder on sdcard for mount point, like /sdcard/comics
Click to expand...
Click to collapse
Worked out pretty good for me! Thanks
I just tried this... worked well for me as well.
Nice, now if only I can get rooted again after the 6.2.1 update, I'll be able to follow my own guide again
Can someone explain how to set up the computer side of this? I got the Fire side working (I think), but I'm not sure how to get a remote share working under Windows.
brian112358: it really depends on your version of windows.
Ectoplasmic: You're Awesome. You just single handedly gave my kfire 2TB of resources while on my home network.
brian112358 said:
Can someone explain how to set up the computer side of this? I got the Fire side working (I think), but I'm not sure how to get a remote share working under Windows.
Click to expand...
Click to collapse
I was having problems with my Windows shared folder as well. After trying all kinds of variations on my path name I eventually started from scratch, but instead of manually entering my mount paths I let CifsManager do it for me. Then everything worked as it should, even though my manual entries were exactly the same as the automated ones. Go figure.
Anyway, I'm on a 32-bit Windows 7. First, find the folder you want to share and Right-Click>Properties>Sharing>Advanced Sharing>Check the Share this Folder box>Ok. Take note of the name. (Mine was "Downloads")
The share path for my folder is now:
192.168.1.101/Downloads
In CifsManager I followed the OP's instructions for setting the driver paths, but I did not create a folder for the mount point on the KF. Instead, I set Mount point prefix to: /mnt/sdcard/cifs. I then added a New Share Path and only entered the following:
Share Path: 192.168.1.101/Downloads
*Tap on Mount Point field and it should auto fill
That's it. CifsManager then created a new folder: /mnt/sdcard/cifs/Downloads. I do not have a password login for my pc so I left user as "guest" and password blank. Works perfectly now. Like I said, everything was exactly the same as my manual entries, but for some reason it works now
Hope that helps.
golucky said:
brian112358: it really depends on your version of windows.
Ectoplasmic: You're Awesome. You just single handedly gave my kfire 2TB of resources while on my home network.
Click to expand...
Click to collapse
Glad it's working. I also noticed a little better Wifi performance since the 6.2.1 update, at least with this app.
This is really handy to have. Saves a lot of trouble copying files to the Kindle. This is the sort of thing that needs to be baked into custom roms.
Followed the steps in the OP. Only thing is I'm still getting the same errors that I got before adding the drivers provided.
if I use the IP of the share I get : Mounting the share has failed with an error. mount: No such device or address. (I can browse to the IP/path with ESFE)
if I use the network name I get: Mounting the share has failed with an error. mount: Invalid argument.
I tried to insmod the cifs.ko via terminal and it threw an error code there too. "Exec format error"
I'm running NRG's ICS CM9 ROM 6/23 with Hashcode's 3.x kernel (dated Jun 8 in About tablet info)
Edit: or could it be the drivers just don't like the 3.x kernel. Leaning towards that after a little more reading.
ProfEngr said:
Followed the steps in the OP. Only thing is I'm still getting the same errors that I got before adding the drivers provided.
if I use the IP of the share I get : Mounting the share has failed with an error. mount: No such device or address. (I can browse to the IP/path with ESFE)
if I use the network name I get: Mounting the share has failed with an error. mount: Invalid argument.
I tried to insmod the cifs.ko via terminal and it threw an error code there too. "Exec format error"
I'm running NRG's ICS CM9 ROM 6/23 with Hashcode's 3.x kernel (dated Jun 8 in About tablet info)
Edit: or could it be the drivers just don't like the 3.x kernel. Leaning towards that after a little more reading.
Click to expand...
Click to collapse
I just installed cifs from the market. Did not bother with the drivers and cifs connected with my server the first time. I am on twa's job ROM.
ghost_og said:
I was having problems with my Windows shared folder as well. After trying all kinds of variations on my path name I eventually started from scratch, but instead of manually entering my mount paths I let CifsManager do it for me. Then everything worked as it should, even though my manual entries were exactly the same as the automated ones. Go figure.
Anyway, I'm on a 32-bit Windows 7. First, find the folder you want to share and Right-Click>Properties>Sharing>Advanced Sharing>Check the Share this Folder box>Ok. Take note of the name. (Mine was "Downloads")
The share path for my folder is now:
192.168.1.101/Downloads
In CifsManager I followed the OP's instructions for setting the driver paths, but I did not create a folder for the mount point on the KF. Instead, I set Mount point prefix to: /mnt/sdcard/cifs. I then added a New Share Path and only entered the following:
Share Path: 192.168.1.101/Downloads
*Tap on Mount Point field and it should auto fill
That's it. CifsManager then created a new folder: /mnt/sdcard/cifs/Downloads. I do not have a password login for my pc so I left user as "guest" and password blank. Works perfectly now. Like I said, everything was exactly the same as my manual entries, but for some reason it works now
Hope that helps.
Click to expand...
Click to collapse
Hi -
I set mine up just like this ... and it did indeed create the mount point /mnt/sdcard0/cifs/comic. I get the little green circle on CifsManager ..BUT.. when I click on the mount, CifsManager gives me this error: This feature depends on an installed file manager (astro/estrongs).
I do have Astro installed, and also Perfect Viewer (comic reader). I can navigate to /mnt/sdcard0/cifs/comic via root-manager and I see my comics, but can't load them. If I try to load them via any other method (while cifs mounted) I get file not found.
What could be the problem please ??
Thanks
Not sure if this will help anyone. I just came back to this thread thinking I needed the syntax for installing the drivers. Turns out I didn't.
Every relatively modern ROM I've installed (CM9, CM10) has not needed drivers, either on my KF, or my Samsung. However, I found it necessary to ensure "Load cifs module" is checked in the CifsManager settings.
Also, if you're using PerfectViewer, something I didn't know for quite a while is that you can actually browse and read from network shares directly from the app. Use the "open file" method and not the bookshelf, change from Local to Lan and go from there.
I still like to use CifsManager for various reasons

[Q] cifs kernel module?

Is it possible for someone with Linux experience to compile a cifs kernel module for use with the stock 4.0.3 kernel? I would like to be able to mount smb shares and know nothing of Linux compilation ...obviously I am rooted......and also, why doesn't a business class device come with cifs support? Lenovo...I'm looking at you....
Thanks to anyone who may help our with insight on this issue.
lmbea4 said:
Is it possible for someone with Linux experience to compile a cifs kernel module for use with the stock 4.0.3 kernel? I would like to be able to mount smb shares and know nothing of Linux compilation ...obviously I am rooted......and also, why doesn't a business class device come with cifs support? Lenovo...I'm looking at you....
Thanks to anyone who may help our with insight on this issue.
Click to expand...
Click to collapse
Here it is. Compiled from the official Lenovo ICS sources. Needed to setup my build system anyway.
Edit:
If it doesn't work please post your precise kernel-version (setting->info) with all the characters and numbers and everything.
(exec format error)
I tried the file you made, placed it in the /system/lib/modules directory...Insmod /system/lib/modules/cifs.ko and got the (exec format error) ...am I doing something wrong...and also, thank you so much for helping! Awesome work
2.6.39.4-g9b8008b-dirty
[email protected]#1
lmbea4 said:
I tried the file you made, placed it in the /system/lib/modules directory...Insmod /system/lib/modules/cifs.ko and got the (exec format error) ...am I doing something wrong...and also, thank you so much for helping! Awesome work
2.6.39.4-g9b8008b-dirty
[email protected]#1
Click to expand...
Click to collapse
Next try. If it doesn't work this time please post the last lines of dmesg
yes...but
Yes! the new module loads wonderfully ....now as for getting cifs manager to work,I keep getting "mount: no such file or directory" ...and yes I have the latest busybox, and yes I made the mount point rw...strange....also I noticed that other kernel modules have the cifs.ko and a md4.ko...could the problem lie in not having a md4.ko? Also, you are awesome at this, thank you so much for your continued help!
What I'm trying to accomplish
I'm trying to get the Cifs Manager application to function on my thinkpad tablet. I thought it might help to give out that information so you can see where I'm heading with all of this. Thanks again
lmbea4 said:
I'm trying to get the Cifs Manager application to function on my thinkpad tablet. I thought it might help to give out that information so you can see where I'm heading with all of this. Thanks again
Click to expand...
Click to collapse
A logcat might tell you whats wrong. Try to start searching there, most times its something simple.
Edit: You might be right, a md4.ko seems to be necessary. Will build it as soon as i find out what md4 exactly is.
Edit2: And here it is. Its a crypto module.
awesome!!
That did the trick, cifs manager works great now!! Thank you so much!
lmbea4 said:
That did the trick, cifs manager works great now!! Thank you so much!
Click to expand...
Click to collapse
Hi, could you share your process to mount cifs on thinkpad tablet? I have followed on one tutorial on thinkpadtabletforums. But failed unfortunately. Could you give me a hint? Thanks in advance!
cifs manager
kpf190 said:
Hi, could you share your process to mount cifs on thinkpad tablet? I have followed on one tutorial on thinkpadtabletforums. But failed unfortunately. Could you give me a hint? Thanks in advance!
Click to expand...
Click to collapse
Sure, first download the cifs manager from the play store. (none of this works of you don't have root). then download the two files (in one zip file,2 posts up) and place the two files in the system/lib/modules/ directory. now, open the cifs manager app and go to settings. you need to check the "use insmod" and then in the option below that you need to put /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko that whole thing, no spaces, the : will make it run the second command which is a required modules for the cifs one to work.
good luck
lmbea4 said:
Sure, first download the cifs manager from the play store. (none of this works of you don't have root). then download the two files (in one zip file,2 posts up) and place the two files in the system/lib/modules/ directory. now, open the cifs manager app and go to settings. you need to check the "use insmod" and then in the option below that you need to put /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko that whole thing, no spaces, the : will make it run the second command which is a required modules for the cifs one to work.
good luck
Click to expand...
Click to collapse
Noted and tried but still get msg as "mount: No such device".
I think I have no luck with CIFS...
Thanks Koshu and all. Mounted my NAS shares with no problems.

[Q] Cifs/Mount Manager "Empty Folder"

Been trying to get this to work for hours, followed endless amounts of tutorials, I've hit a brick wall and am finally at the point I need to ask for more specific help.
I have 32gb Nexus 7 wifi only
Version: 4.2.1
Kernal: Motley's kernal 3.1.10-motley-v3+
Build Number:JOP40D
I started with CifsManager, couldn't get it to work because of no/wrong modules, tried many I found in tutorials around the net, eventually found I needed a new kernal, settled on Motley's, this finally allowed cifs to mount the folder, but the folder is always empty.
Came across Mount Manager, set it up, same problem.
Here's what my settings look like:
CifsManager:
Share Path: 192.168.1.18/y
Mount Point: /mnt/sdcard/cifs/pcY
Username: Comp1
Password: Password
Options: iocharset=utf8
I have tried it with options blank, same thing, yes my share is called y, Comp1 is the account I set up to access shares, no my password is not really password but you get the idea. I can access this share fine from other devices including my wii using the same settings.
Mount manager is basically the same except I made the mount point /compY because I didn't know if it would conflict, and it has file_mode and dir_mode = 0777.
Thank you for your time and any help is greatly appreciated.
Still searching for a solution, even a nudge in the right direction would help a lot right now.
I found out how chainfire solved this problem. (And did not said how ) I think my thread got lost ist the Android General section.... I should have posted it in the Nexus 7 General. (I tested it on my Nexus 7)
http://forum.xda-developers.com/showthread.php?t=2062768
vorcers said:
I found out how chainfire solved this problem. (And did not said how ) I think my thread got lost ist the Android General section.... I should have posted it in the Nexus 7 General. (I tested it on my Nexus 7)
http://forum.xda-developers.com/showthread.php?t=2062768
Click to expand...
Click to collapse
Thank you very much for your reply.
I am very new to this, I can't quite follow what I am supposed to do, I think start the file debuggerd as a system service? I can find the file, but I can't find out how to start it, I've done a few searches on this site and google but have come up empty, could you please explain exactly what I need to do to make this solution work?
Thanks again for your help
(For germans: "Bitte nagelt mich nicht darauf fest" (Auf die Informationen) Sorry, I don't know the english phrase for this...)
The "debuggerd" is an "debugger daemon". It can be started with "start debuggerd" and stopped with "stop debuggerd". I think errors at excecution are posted in dmesg or logcat.
The main thought behind this, that the debuggerd is started by "start" with higher privileges even then our normal su. (Or it does mount something, I don't know) So, if you backup the original /system/bin/debuggerd and write your own commands into that file and start it via "start debuggerd" these commands are executed with these "high privileges". For example, if you write these content in debuggerd and start it, the share should be available for all apps. (Well, only if "others" have r (? wx ?) permissions on server...)
/system/bin/debuggerd
Code:
#!/bin/sh
busybox mount -t cifs //server/share /mnt/sdcard/mnt -o username=max,password=mustermann)
You can also mount devices with this method...
Well, you can't use this with the manager, because the manager needs to be changed to support this.
I hope this helps you.
You can turn on your "ADB over network".Then you con connect from your device with
adb connect 127.0.0.1:5555
Click to expand...
Click to collapse
now youre ready to mount but the foders are visable only in the apps that are been started befour mount can see the folder.
Tornadough said:
Still searching for a solution, even a nudge in the right direction would help a lot right now.
Click to expand...
Click to collapse
Here's a solution that can be implemented by ROMs or kernels to fix app mount support in Android 4.2 without requiring modifications to CifsManager or other apps.
I'd recommend asking your favorite ROM to incorporate the dalvik/init.rc patches.
vorcers said:
The main thought behind this, that the debuggerd is started by "start" with higher privileges even then our normal su.
Click to expand...
Click to collapse
What's happening is that the debuggerd process is spawned directly by init, which uses the default mount namespace, so any mount operations are shared with/visible to all other processes.
The problem is that when an app calls "su" to mount a file system, it's already walled off in a separate mount namespace by virtue of the app itself having been spawned from zygote. Basically, any process whose ancestry can be traced back to zygote can't mount file systems visible to other apps. Those whose process ancestry don't include zygote can. Which is why manually mounting file systems from adb (with either "su" or "adb root") also works.
After all this time nobody has updated any app to fix this problem?

[Q] Connecting to Network Shares

I've been reading as much as I can if it is possible to mount a network share with your Nexus 10. I've downloaded both cifsmanager and mount manager, and can get neither to work.
I can connect to my network with mount manager and some other apps. But getting the Nexus 10 to see your shares as a local folder seems to be a big PIA.
Does anyone have it working, and can they document the steps?
I'm also using CM 10.1, but will flash to any kernel if it can be done.
Thanks
PT
ptmuldoon said:
I've been reading as much as I can if it is possible to mount a network share with your Nexus 10. I've downloaded both cifsmanager and mount manager, and can get neither to work.
I can connect to my network with mount manager and some other apps. But getting the Nexus 10 to see your shares as a local folder seems to be a big PIA.
Does anyone have it working, and can they document the steps?
I'm also using CM 10.1, but will flash to any kernel if it can be done.
Thanks
PT
Click to expand...
Click to collapse
Here is a link that discusses CIFS.
http://goo.gl/ot1mi
Also search for CIFS in the developer's forum that discusses your ROM. The issues with CIFS surround the addition of multi-user support in 4.2.2. That feature meant the mount command needed additional arguments plus you need to create RSA keys. The link above provides that information and other details.
I have it working. Requires a specific set of kernel modules, which means a specific ROM/kernel combination.
I use mrRobinsons AOKP PUB ROM with KTmanta kernel.
After that, I run a script as root to mount the CIFS share, in my case:
Username is the source PC windows username, and then password
The 192.168.1.101\files is the path to my share, extra \ needed for *nix escaping
The /data/media/0/TV-PC is the path on my tablet, empty directory where the mount will occur.
#!/system/bin/sh
#This will mount cifs shares if the network is available
insmod /system/lib/modules/md4.ko
insmod /system/lib/modules/cifs.ko
busybox mount -t cifs -o username=tv,password=<YOUR_PASSWORD>,rw,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,unc=\\\\192.168.1.101\\files //192.168.1.101/files /data/media/0/TV-PC
sttovo said:
I have it working. Requires a specific set of kernel modules, which means a specific ROM/kernel combination.
I use mrRobinsons AOKP PUB ROM with KTmanta kernel.
After that, I run a script as root to mount the CIFS share, in my case:
Username is the source PC windows username, and then password
The 192.168.1.101\files is the path to my share, extra \ needed for *nix escaping
The /data/media/0/TV-PC is the path on my tablet, empty directory where the mount will occur.
#!/system/bin/sh
#This will mount cifs shares if the network is available
insmod /system/lib/modules/md4.ko
insmod /system/lib/modules/cifs.ko
busybox mount -t cifs -o username=tv,password=<YOUR_PASSWORD>,rw,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,unc=\\\\192.168.1.101\\files //192.168.1.101/files /data/media/0/TV-PC
Click to expand...
Click to collapse
Thanks Stove. I'm changing to mrRobinsons AOKP PUB ROM with KTmanta kernel.
But when it comes to running the script, do you need to have the app open first before mounting the share? Or will the native apps find everything with not issues?
Just an update that I SSH'd into my Nexus 10 and ran the script in a terminal.
I now see the shares mounted in a terminal. But I do not see anything mounted when in either ES File Explorer any other app.
ptmuldoon said:
Just an update that I SSH'd into my Nexus 10 and ran the script in a terminal.
I now see the shares mounted in a terminal. But I do not see anything mounted when in either ES File Explorer any other app.
Click to expand...
Click to collapse
I think I had this problem too, but I regret I don't remember how i fixed it. I *think* it had something to do with permissions. Did you use the uid and gid arguments that I had in my script? Also, my CIFS mount point is under my data /sdcard (data) mount, if you're mounting under / then that might change things.
I run my script directly from my Nexus 10 in a terminal as root.
May want to look in the thread linked below, this is where I got what I needed for the script.
Edit - check post 62 in this link. Looks like it's related to setting the ownership bits… 0777
http://forum.xda-developers.com/showthread.php?t=2003836
I use esfileexplorer to access my samba shares. It's not a permanent mount in the root fs, but i can watch videos thid way.
nvertigo67 said:
I use esfileexplorer to access my samba shares. It's not a permanent mount in the root fs, but i can watch videos thid way.
Click to expand...
Click to collapse
Yes, but that's not the same as mounting a shared network folder. The idea is for all native apps to see your media as if it was locally on your device
sttovo said:
I think I had this problem too, but I regret I don't remember how i fixed it. I *think* it had something to do with permissions. Did you use the uid and gid arguments that I had in my script? Also, my CIFS mount point is under my data /sdcard (data) mount, if you're mounting under / then that might change things.
I run my script directly from my Nexus 10 in a terminal as root.
May want to look in the thread linked below, this is where I got what I needed for the script.
Edit - check post 62 in this link. Looks like it's related to setting the ownership bits… 0777
http://forum.xda-developers.com/showthread.php?t=2003836
Click to expand...
Click to collapse
Sttove.. You may be on to something. .. The script/mount command already is suing 0777, but I noticed i could not create a folder in terminal after mounting the share.
I hope to do some more testing and research when I get back home tonight.
ptmuldoon said:
Yes, but that's not the same as mounting a shared network folder. The idea is for all native apps to see your media as if it was locally on your device
Sttove.. You may be on to something. .. The script/mount command already is suing 0777, but I noticed i could not create a folder in terminal after mounting the share.
I hope to do some more testing and research when I get back home tonight.
Click to expand...
Click to collapse
One other thing I just thought of, how is your share setup on the server side? If you go into Advanced Sharing for the share, then Permissions, make sure you have Everyone set to read, write, etc… That leaves your share wide open, but at least something you can test.
sttovo said:
One other thing I just thought of, how is your share setup on the server side? If you go into Advanced Sharing for the share, then Permissions, make sure you have Everyone set to read, write, etc… That leaves your share wide open, but at least something you can test.
Click to expand...
Click to collapse
I can SSH into the Nexus10 via a terminal/putty from a PC. Create the mount point, and then see my share info. I am then also able to create a directory in terminal as well.
But when I than go to the Nexus and ESFile Explorer or any other app, the mapped share folder is blank.
I think I read something on blank mount/shares, but will have to keep looking into it.
Has anyone seen that happen before and know its cause?

Categories

Resources