yashsingh1/xdaforums huggingface dataset:
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Sorry guys, but you either don't really read what I write or you aren't able to understand!

Is it so difficult to comprehend??

I want to mount a network folder into the filesystem of the phone, not mount the SD card of the phone into the filesystem of a PC (that's what the wireless storage feature does).

Did this many times on other devices, I exactly know what I want and need and how it works. Only information (and nothing else) I want is whether there is a CIFS enabled kernel or a cifs.ko because - I repeat the umpteenth time - this is the only way to achieve it.

Thanks.
[G2 Q&A, Help & Troubleshooting] andybites:
None that I'm aware of.

Though I'm sure with a little forum searching I'm sure you could have come to the same conclusion..
[G2 Q&A, Help & Troubleshooting] War-Rasta:
Dude, I think you need to chill a little. You seem to be getting worked up over nothing here when people are just trying to help you.

That being said, what you're describing here is exactly what the App I recommended claims it does (mounting remote CIFS shares on your device so you can access them from other apps) so you might want to give it a look.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
No, man, you don't know anything about the app and how it works, but I do!

The app requires a CIFS enabled kernel or a working cifs.ko module, and it's just a more comfortable frontend to do the mounting and unmounting which otherwise would have to be done via shell commands.

And yes, I get a little worked up when only people who don't have a clue about the subject try to "help" by suggesting apps they don't have used or tried themselves. That's plain useless, sorry.
[G2 Q&A, Help & Troubleshooting] garywojdan81:
Since you are so apparently well-versed in exactly what you need and how you need it, why don't you compile it yourself instead of copping a superior attitude with people who just want to help you. If this is how you act here, I'd hate to work with you.

Since you're a senior member here, I would've expected a little more from you.

And, also apparently, the answer is no.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
I only answer someone seeking help if I know something about the subject he has problems with. And I expect the same of others. My time is too precious to sift through masses of pages of useless blather on forums, sorry.
[G2 Q&A, Help & Troubleshooting] robogo1982:
Yet not precious enough that you waste it on bickering with others?

No CIFS module enabled kernels that I've seen (and for network folders I use ES File Explorer anyway).
[G2 Q&A, Help & Troubleshooting] garywojdan81:
I'm sure everyone in this thread will remember that whenever you post again, Mr. President.
[G2 Q&A, Help & Troubleshooting] fma965:
Why all the hate on OP he is asking for something and all of your guys were giving him the wrong answers.

HE wants to MOUNT remote file systems on his PHONE not MOUNT his PHONE remotely to his PC.

@ OP although not the answer you want, no there doesn't seem to be any CIFS (SAMBA/SMB) Kernels for the G2. And yes the CIFS app requires a CIF enabled kernel.

---------- Post added at 02:15 PM ---------- Previous post was at 02:13 PM ----------

However this is not the correct attitude and for that i am no longer going to help

DO WORK YOUR SELF ASWELL AS MAKING OTHERS LOOK. ITS FINE TO ASK FOR HELP BUT DON'T ASK FOR HELP WITH A QUESTION WHICH YOU COULD FIND THE ANSWER TO BY LOOKING FOR LIKE 2-5MINS.

Additionaly ES File Explorer does do what OP wants but not system wide, only es file explorer will see it, mx player, play music, poweramp, facebook, dropbox etc WILL NOT!
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Of course I had already done quite some work and again and again looked through XDA and other forums and all the kernel threads and googled and whatnot... I just asked because, although I already spent hours, I probably could have overlooked something or perhaps someone has a secret tip.

(I myself gave such a special tip to Xperia Tablet Z users by pointing out that although there is no native CIFS possibility on the device, a CIFS module from the Xperia Z phone can be used.)
[G2 Q&A, Help & Troubleshooting] Barsky:
He just wants to get to his windows shares from his phone? Numerous file managers do that. I personally use File Manager (and File Manager HD on the tablet).

https://play.google.com/store/apps/details?id=com.rhmsoft.fm&hl=en

but many do. ES File Explorer and others.
[G2 Q&A, Help & Troubleshooting] tribaldoc:
He doesn't just want to get windows shares from his phone using a file explorers access LAN feature. He wants to mount shares on his phone kind of like windows mount network folders. He needs a Kernel with cifs support. That is the only way. It will allow him to create a folder on his phone that is connected to his network drive. You can also use it with a VPN to always have access to your home network.

I haven't seen any kernals with cifs support but I would ask one of the kernel developers nicely if they would look into adding that feature. Wootever has a kernel. Rohan mentioned he might work on a kernel.
[G2 Q&A, Help & Troubleshooting] fma965:
Just to clarify i have compiled a ps3 controller module for my set top android box (sumvision cyclone x2) so i could most likely create a cifs module for the LG-G2 the problem however is i do not have the time. :(

EDIT: http://cyanlabs.co.uk/topic/guide-geniatech-atv1200-sumvision-cyclone-x2-mygica-atv1200-ps3-module
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
OK, how much do you want?
[G2 Q&A, Help & Troubleshooting] fma965:
Thanks for the offer, However i have no intentions on making money on/from XDA-Developers.
[G2 Q&A, Help & Troubleshooting] Barsky:
ok. the confusion in this thread is getting funny. Either way, I have answer with a away to mount his phone from windows using the built in Wireless Storage app in the g2 as well as how get to shares on Windows from the phone. I am out :)
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Barsky, the only thing which is funny is how you STILL don't get what my request is about although it has been explained over and over :D
[G2 Q&A, Help & Troubleshooting] desantim:
Really in essence, the only thing that is funny is that you're likely being ignored by recognized devs who volunteer their hard earned time, due to your attitude, as if you deserve something from the community. Personally, I'd be elated if you stayed away from the G2 entirely so we can have helpful, enjoyable interactions with the community at hand instead of self serving posts and beratement of those who are offering suggestions that may lead in the right direction.

You're posting in a forum which at it's basis is for questions and answers by those who choose to attempt to be helpful and by the community at large. You're neither paying for, nor are alotted a dedicated forum of which you make the rules. If you want something done right, do it yourself. Key words to live by.
[G2 Q&A, Help & Troubleshooting] garywojdan81:
Well said, concise and effective. But still "blather" and a "complete waste" of the op's" valuable" time: end sarcasm.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
If you had read carefully what I have written (but... cough... exactly that often seems to be the problem...) then you would have realized that I only was impatient with those who very evidently offered suggestions that NOT lead in the right direction (absolutely not, not the least) because they simply do not understand what my question is about. And the one poster who said something substantial and correct got a "Thanks" from me!

I can understand people like Franco who is fed up with people who, although he points out in fat letters in the OP that he won't add requested features and that requesting is pointless, ask over and over things like "Could s2w / CIFS /... be added?" People aren't able or willing to read and understand (or they are, but feel entitled to unload their stuff anyway).
[G2 Q&A, Help & Troubleshooting] g.lewarne:
rather than start a thread of failure, all you had to do was come on either mine, or wootevers kernel threads and ask "Hey, can you kindly enable cifs in your next build, thankyou" and since it is a sensible, simple suggestion I would have done so, and whole problem is resolved.

Henceforth, due to your attitude, unless someone ELSE asks me to enable it, am afraid it wont be appearing in my kernel any time soon.

your "precious" time would have been much less "wasted" if you simply applied logic in asking your question in the right place
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Didn't know that XDA is full of oversensitive wimps...
[G2 Q&A, Help & Troubleshooting] garywojdan81:
Nah, just pompous, self-aggrandizing, inflated egos with over-developed entitlement issues.
[G2 Q&A, Help & Troubleshooting] robogo1982:
The OP wasn't the problem, the rest of his posts were.
[G2 Q&A, Help & Troubleshooting] Cal_ab:
I would guess that english isn't his first language.

The OP was ok, but he sure didn't explainwell afterwards.

---------- Post added at 07:37 AM ---------- Previous post was at 07:32 AM ----------

Would it be at all possible for youvto post those files somewhere?

I would like to get cifs working if possible.
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
I don't see why not. Assuming that you trust that I haven't backdoored them or anything. But I guess doing just about anything in this community requires that. :) Only cifs.ko is required for a CIFS mount. The other 3 modules are required for NFS.
[G2 Q&A, Help & Troubleshooting] calisjeff:
Version Number for modules?

Thanks for posting this. I also wanted to get cifs working on my ATT G2. But the modules failed to load on my phone due to unknown symbols.

Can you post the version of the kernel these are for? My ATT G2 has android version 4.2.2 and kernel version 3.4.0.

Do you think it should work on my phone? Thanks.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Hello forrestgump2000, thank you very much!

I don't have time to test it myself ATM, so:

Can you access the mounted directories normally?

Because, I have the StockMod kernel ony G2 since I bought it, it has built-in CIFS support. If one mounts something there, the mounting works, but the mount is only visible for root - > not usable :P
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
The cifs.ko that I posted is for 3.4.0 (kernel source downloaded from LG) and was built using a modified version of the Verizon G2 config. I tried building cifs.ko using the ATT config, and the resulting file is identical to the previous one that I posted. Which I guess makes sense, as the config specifies which kernel features and modules to build, and I'm just explicitly building the fs/cifs module. What symbols are missing? (use dmesg)

With respect to permissions, yes, I can access the CIFS mount as a normal user. I don't have any experience with StockMod, but if the StockMod kernel does indeed have CIFS support, then I'm not sure how my cifs.ko might help. You've either got a cifs.ko already or the cifs support is built into the kernel. You've either got CIFS suport or you don't. Permissions could be another thing. Which could include perhaps the filesystem permissions of the mount point, the permissions of the user that you are using to authenticate with the server, etc. Tools to investigate may include chmod and mount options such as umask, file_mode, dir_mode, etc. But I didn't have to mess with any of that with my phone.

---------- Post added at 12:06 PM ---------- Previous post was at 11:53 AM ----------

Re-reading your statement here. If you want CIFS support, you just need cifs.ko. Ignore the others, as they're for NFS. If you do want NFS, then just make sure you load the modules in the appropriate order. IIRC, lockd.ko, then sunrpc.ko, and then nfs.ko
[G2 Q&A, Help & Troubleshooting] calisjeff:
Thanks for the quick reply. Here is what I did and the results I got. Thanks for any info.

root@android:/sdcard/g2-cifs # md5 cifs.ko

05094f1a95bf46b3d436266a5be3a99a cifs.ko

root@android:/sdcard/g2-cifs # insmod ./cifs.ko

insmod: init_module './cifs.ko' failed (Invalid argument)

255|root@android:/sdcard/g2-cifs # dmesg | grep cifs

<4>[147178.719454 / 01-11 12:05:29.865] cifs: disagrees about version of symbol ker

nel_setsockopt

<4>[147178.719467 / 01-11 12:05:29.865] cifs: Unknown symbol kernel_setsockopt (err

-22)

<4>[147178.719476 / 01-11 12:05:29.865] cifs: disagrees about version of symbol soc

k_release

<4>[147178.719483 / 01-11 12:05:29.865] cifs: Unknown symbol sock_release (err -22)

<4>[147178.719494 / 01-11 12:05:29.865] cifs: disagrees about version of symbol __s

ock_create

<4>[147178.719500 / 01-11 12:05:29.865] cifs: Unknown symbol __sock_create (err -22

)

<4>[147178.719508 / 01-11 12:05:29.865] cifs: disagrees about version of symbol ker

nel_sock_shutdown

<4>[147178.719515 / 01-11 12:05:29.865] cifs: Unknown symbol kernel_sock_shutdown (

err -22)

<4>[147178.719545 / 01-11 12:05:29.865] cifs: disagrees about version of symbol ker

nel_recvmsg

<4>[147178.719552 / 01-11 12:05:29.865] cifs: Unknown symbol kernel_recvmsg (err -2

2)

<4>[147178.719760 / 01-11 12:05:29.865] cifs: disagrees about version of symbol ker

nel_sendmsg

<4>[147178.719767 / 01-11 12:05:29.865] cifs: Unknown symbol kernel_sendmsg (err -2

2)

root@android:/sdcard/g2-cifs #
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
Yup, that's the same module that's on my phone. Also:

$ uname -r

3.4.0-perf-g755219d

Perhaps your phone has something else? And if so, you may have to compile your own module. Or possibly see if there's a --force option for insmod to skip version checking.
[G2 Q&A, Help & Troubleshooting] calisjeff:
Tried insmod --force cifs.ko, but did mot take --force. I am att stock, but I took the OTA update. uname shows:

root@android:/storage/emulated/legacy/g2-cifs # uname -r

3.4.0-perf-g2283e9c

So it is different. Guess I have to build it myself. Thanks for the pointers though.
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
One thing that may help out is to check /proc/version. From my phone:

root@android:/ # cat /proc/version

cat /proc/version

Linux version 3.4.0-perf-g755219d (lgmobile@LGEARND4B7) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Dec 4 16:49:44 KST 2013

For all I know, it could be something as simple as the gcc version used to compile the kernel. In which case, the fix would be to update the toolchain path and rebuild the module. If that's the problem, I could build it for you if you like, since I already have the ndk environment set up.
[G2 Q&A, Help & Troubleshooting] calisjeff:
That would be great. Here is the output of /proc/version.

1|u0_a197@android:/ $ cat /proc/versionLinux version 3.4.0-perf-g2283e9c (lgmobile@LGEARND8B5) (gcc version 4.6.x-google

0120106 (prerelease) (GCC) ) #1 SMP PREEMPT Sat Oct 19 16:32:16 KST 2013

u0_a197@android:/ $
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
Well, I'm at a loss here. I'm no Linux expert, but I would think that because the kernel and gcc versions are the same, the kernel module should load without complaining about symbol versions. I think the "force" option for insmod is "-f", which should make it not care about disagreeing versions. Possibly the busybox version of insmod might be required.
[G2 Q&A, Help & Troubleshooting] calisjeff:
uncompressed /proc/config.gz from att stock g2

Find attached uncompressed /proc/config.gz

Hope this helps figure out why your cifs.ko does not load on att g2.
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
I don't see any relevant difference that could explain why the module doesn't load on an ATT G2.
[G2 Q&A, Help & Troubleshooting] Cal_ab:
Thanks for the files. Unfortunately, they don't work for me...

# insmod ./cifs.ko

insmod: init_module './cifs.ko' failed (Exec format error)

# dmesg | grep cifs

... cifs: disagrees about version of symbol module_layout

# uname -r

3.4.0

(I'm going to have to get SSH working so I don't have to type this stuff out manually :p )
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
Care to mention which model/carrier G2 you have?

Also, as previously mentioned, perhaps indicate what /proc/version says? (You may want to use adb shell to allow copy/paste)

Perhaps a Linux guru can chime in here to indicate what to do when "disagrees about version of symbol" errors happen. My google-fu has been exhausted.
[G2 Q&A, Help & Troubleshooting] Cal_ab:
Now I feel like an idiot...

I don't know how I got onto this thread originally - I was looking for cifs.ko for an LG G-Pad (V500) tablet.

That explains why it doesn't work. Next time more sleep and less coffee! :silly:
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
I suspect that downloading the V500 kernel source ( http://www.lg.com/lgecs.downloadFil...02/LG_V500_Android_JB_10c.zip&newOpensource=Y ) and following the instructions that I listed in Comment #29 should let you build your own cifs.ko. It's really not that tricky.
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
Note that the latest busybox version available (1.22.0-Stericson) supports the -f (Force) option for insmod. I'm still curious why it's complaining about symbol versions, but perhaps it's worth a shot.

https://play.google.com/store/apps/details?id=stericson.busybox
[G2 Q&A, Help & Troubleshooting] farhanito:
Hi guys,

Any of you tried Dorimanx kernel? It has CIFS module built-in.

I managed to load the module, but i don't know why mounting never works.

Tried cifsmanager, it said mounted successfully. But no.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
Is the same as with Stockmod kernel. The mounting works as root, the mounted folder is visible for root only. Thus unusable. Is a problem which stems from the multi-user environment in Android > 4.2.
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
(replying to both posts at same time)

Depends on what you mean by mounting not working. Post #29 includes the instructions on how to mount the share (busybox, etc.) I cannot claim that any other method will work, including cifsmanager. Post #35 includes some suggestions about permissions.

There's nothing architectural about Android (at least 4.2.2) that should prevent a normal user from accessing a CIFS share. From my phone (note that "cifsmount" is just a shell script I made to do the mounting):

root@android:/system/xbin # ./cifsmount

root@android:/system/xbin # mount

rootfs / rootfs ro,relatime 0 0

<SNIP>

rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

//[IP]/store /mnt/store cifs rw,relatime,sec=ntlm,unc=\\[IP]\store,username=[USERNAME],uid=0,noforceuid,gid=0,noforcegid,addr=[IP],unix,posixpaths,serverino,acl,rsize=61440,wsize=65536,actimeo=1 0 0

root@android:/system/xbin # exit

u0_a205@android:/ $ cd /mnt/store

u0_a205@android:/mnt/store $ ls

Backup

<SNIP OTHER DIRS AND FILES>

Again, I cannot claim that any ROM other than the stock ROM will work. (but it should)
[G2 Q&A, Help & Troubleshooting] farhanito:
Can i have your cifsmount script please... minus your credential ofc.

Thanks
[G2 Q&A, Help & Troubleshooting] forrestgump2000:
#!/system/bin/sh

mount -o rw,remount /

mkdir /mnt/store

mount -o ro,remount /

insmod /system/lib/modules/cifs.ko

/system/xbin/mount -t cifs //[IP]/store -o username=[USER],unc=\\\\[IP]\\store,pass=[PASS] /mnt/store

Where "store" is my share. Modify accordingly.
[G2 Q&A, Help & Troubleshooting] emil_b:
Hi,

I'm trying to map windows shares to access my server folders in my G2, because of missing card reader. After a long search over Xda and Interner I am using the Dorimanx kernel that have cifs support. But, if I mount manualy using your script the network share is only accessible on terminal with su privilege. I cannot access it anywhere else...Frustrating.. I am using Android 4.4.2, 80220d. Thanks for any help.
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
I would anyway rather not do it (and instead simply use ES File Explorer or a similar app for accessing the shares) because it is slow and causes stability problems to mount CIFS.
[G2 Q&A, Help & Troubleshooting] emil_b:
I agree with you, but I need this for access to my MP3 collection that is folder based and there is no player able to play folder structure on network share or DLNA. And the LG G2 doesn't have microsd card....Big mistake. Also using USB OTG stick or even Meenova micro sd card reader is not so good because of power used when connected. The phone use a lot of power when external memory is connected to USB OTG. I've made some investigations and reader alone use about 40 mA when idle. Also the CPU is used intensively when USB connected. Also there is no deep sleep with USB OTG connected, no power managemen.

So, single way to have a balanced solution beetwin power and usability is network share and normal applications.

With my old Samsung tablet I was able to do this, now I am stuck without any solution.

Thanks.
[G2 Q&A, Help & Troubleshooting] jazzl:
Not sure if it´s wise to pick up such an old thread or if I should start a new one, but I try here first:

I have a rooted LG G3, so I thought I´d try to do this for my phone, on which I both want to have NFS and CIFS support. Es Explorer etc. is great, but not what I need.

I found an Ubuntu 12.04 image and ran it in my vmware, got latest NDK and the Marshmallow Kernel from LG´s website. For the defconfig, there are plenty of configs for G3 so I chose a random and rather small one (1 kb instead of the others that are typically around 20 kb) and followed the steps. When I came to the .config screen I did not find any option to enable cifs or nfs support, so I did the whole thing over again for G2 - just to see if that´d give me the option. I found a Jellybean kernel on Lgs website for G2, assuming that´s what was used back in 2013 when this thread was started, and NDK 8d which was the current version back then. I found a small config file there as well for the defconfig, and got into the menu again. Other options it seems, but still none for cifs and nfs. What am I doing wrong?

Thanks in advance!
[G2 Q&A, Help & Troubleshooting] hasenbein1966:
For what do you need CIFS support?

CIFS is really superfluous on mobile devices.
[G2 Q&A, Help & Troubleshooting] jazzl:
Hi there,

Thank you for your reply.

My shared folders on windows are cifs, but I´ll be fine with nfs support only since I also have an nfs server running on the windows machines for raspberry and previous mediaboxes that had occasional issues with accessing the cifs shares.

And just in case the q will come up: Es file explorer can access shares, yes. But I need certain apps to directly access the shares rather than opening via es file explorer.

For instance, VRTV has a great control feature where you can use a bluetooth gamepad. One of the very neat things you can do is by the click of a button on the gamepad to skip to the next clip in the directory you´re in. Really handy when you´re with a headset on. Now that won´t work if you opened the clip via Es File Explorer, since it will not forward any information about the other files to VRTV. Hence you need to get your VR headset off, phone out of the headset, go back to Es File Explorer and manually select the next file.

Orange VR Player has a nice way to set up streaming from PC via an app where you choose which clips you want to have access to on the mobile, but gamepad support is very limited in that app.

I hope this brings some more clarity.
[Omni Q&A] florian83260:
Hi everyone,

I'd like to know what shall I do to be able to use multiwindow in my Note 2.

I've just flashed the new version 20131117, working well, very smooth but i don't know what must i do to have multiwindows.

Can you explain me step by step ? plz

Thanks for all !! (sorry I'm french)
[Omni Q&A] leechseed:
Hi,

if its included it should work via longpress the app you want in recent apps.

Slim-4.3.1||i9100¬Tapa2
[Omni Q&A] Entropy512:
Multiwindow will only be found in unofficial builds where the implementation was cherry-picked, as that feature is not yet finished.
[Omni Q&A] duckhawk:
Is it possible to change switches in upper panel? I can't find how to change it in settings app :(