yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] thankyousam:
Thanks for he quick response. I fired up a terminal and managed to mount the IP/Volume_1 as root, but it failed with the same error as cifs manager when I tried IP/Volume_1/Music. Perhaps it's a limitation within the mount command.

I will try and contact the cifs manager dev. to see if this is possible.

EDIT: oops, should have read your links more closely (it's getting late here). :o I got it working as you suggested:

# mount -t cifs -o username=nas_user,password=nas_pwd,prefixpath=Music //192.168.1.168/Volume_1 /mnt/cifs/music

2nd Edit: My head obviously wasn't very clear last night. I can't test it as the N7 is at home, but I think I can add that -o username.... string to the Options text box in Cifs Manager. Will give it a go tonight and report back.

3rd Edit: Just tested this, if you add the prefixpath=path/from/share to the options text box in Cifs Manager then it will mount that directory under the share to the specified mount point.
[Nexus 7 General] Kermee:
Looks good! I'm getting 9.4MB/s to 9.6MB/s on a 10/100Mbit USB-to-Ethernet adapter and about 3MB/s over WiFi. Thank you for your work! Cheers, Kermee
[Nexus 7 General] jsk23:
One of my shares mounts just fine. The other one keeps giving me invalid argument and I am not sure why.

And the first share I put in, while working, wont let me edit it now. Both "edit" and "delete" are greyed out.
[Nexus 7 General] thankyousam:
Can you unmount the first share? I think Cifs Manager won't let you edit or delete while its mounted.

Check the Cifs Manager thread which lists a few common error messages and their cause: http://xdaforums.com/showthread.php?t=756158
[Nexus 7 General] qwerp_:
you are welcome.

glad that the new async one works. i can now also stream full 1080p mkv with no issue.
[Nexus 7 General] pabs23:
a huge thanks to you qwerp_ , and a big thanks to flumpster for his instructions in #10. I used FX File Explorer to create the appropriate folder and copy the files, and used adb from Windows to check the file permissions (all where exactly as flumpster recommended in his post). I am a complete noob to the Android / Linux way of doing things, and mounting my network shares was the only thing I was desperate to achieve, so now I am a very happy bunny - thanks again.
[Nexus 7 General] imagezhang:
Hi Guys, I've tried to compile the cifs module with google prebuilt toolchain and also the kenel source from goole, but somehow, everytime I tried to insmod the cifs.ko I built, the Nexus 7 rebooted...

Would you please kindly share how did you built the module? What kind of options shoud I choose? Or what toolchain should I use?

Thanks and Best Regards
[Nexus 7 General] Lord fiSh:
then i get "Can not access a needed shared library". If i leave the options black it works
[Nexus 7 General] qwerp_:
to use iocharset, you need to make sure you have loaded nls_utf8.ko as well.
[Nexus 7 General] flumpster:
The **** above is because they have banned a word on here which is within the instructions. I have reported it to a mod to try to get it white-listed.

For now replace the **** with the slang for bum ;)

i o c h a r s e t without the spaces.
[Nexus 7 General] qwerp_:
good spot flumpster, i didn realise that the problem can be this simple. :D
[Nexus 7 General] Demented-Idiot:
Thanks, finally got around to doing this. Now i need to find a player that works! Stock video player on my N7 doesnt like whatever audio my mkv files are :(

VLC Beta is choppy too
[Nexus 7 General] qwerp_:
try dice player or mx player.

both are quite good.
[Nexus 7 General] cryporchild:
Is this cifs module all i need to mount nfs partitions, or are there other modules i need too?
[Nexus 7 General] mike_dangerous:
I'm trying to use this to set up remote access to my WD My Book Live to enable much more flexible streaming of my media than the WD2go app offers. I can SSH into my drive fine using Astro File Manager and IP is set to static.

I rooted my Nexus 7 and I have followed these steps (I would have been completely lost without them, thanks!). I created the directory /system/lib/modules and put the three .ko files in there. I then ticked the boxes and changed the settings to point to the files.

I then created the share, put in the IP Address of my drive, the SSH username and password, the mount point and iochar set=utf8 (without the space). However, when I then go to mount the drive I get the following error: Mounting the share has failed with an error. mount: Invalid Argument.

What am I doing wrong/what is it that is causing this error? I hope someone can help me, the flexibility of being able to mount my drive on the go is the holy grail of the media set up I have been building over the past few months.

Thanks
[Nexus 7 General] pabs23:
I'm no expert I'm afraid, but a first guess would be that the string in the path to cifs. ko is not quite right - I would double check this and make sure there are no spaces too.
[Nexus 7 General] mike_dangerous:
Thanks, I have re-entered it and am reasonably sure it is correct (although I am hella tired). I have also gone through and changed the read/write access of the modules folder and its contens and they are all now correct. However this hasn't worked, I still get the same error.
[Nexus 7 General] pabs23:
I seem to recall some having problems with the set utf8 setting, try removing this and see if it helps
[Nexus 7 General] qwerp_:
the word iochar set=utf8 needs to be a single word.

the original poster have to split the word because of offensive word filtering.

it will be "i_o_c_h_a_r_s_e_t_=_u_t_f_8"

without all the underscores.

or just leave it empty.

you will be fine untill u have files in other languages.
[Nexus 7 General] mike_dangerous:
I just aded the space on here so I didn't make an **** of myself. It doesn't work with or without that line...
[Nexus 7 General] pabs23:
Thought I would post how one of my shares is setup, may help you find your problem:

Settings

Mount Point Prefix

/storage/sdcard/Shares

Load cifs module

ticked

Load via insmod

ticked

Path to cifs.ko[:<modpath>]*

/system/lib/modules/cifs.ko:/system/lib/modules/md4.ko:/system/lib/modules/nls_utf8.ko

One of my share mounts (from a WD network drive, the 1TB one with a white light)

Share Path

192.168.1.66/general

Mount Point

/storage/sdcard0/Shares/general

Username

pabs

Password

(filled in)

Options

rw,noperm

Please note, I found the "rw,noperm" setting from some googling as I couldn't write to the share without it.

Hope this helps :)
[Nexus 7 General] mike_dangerous:
I have just changed the location from just an IP address to 192.168.1.4/shares and it now says device not found rather than invalid argument???

Could there be an issue with port forwarding or something? I opened up port 22 yesterday for astro to connect to it...Cifsmanager doesn't have any options for that...
[Nexus 7 General] pabs23:
sounds like we are making progress, could you provide details of how your share is set up on the network drive, and how your settings for your share are setup in CifsManager? May help us find the problem.
[Nexus 7 General] flumpster:
The share path has to point to a sharename of a folder as I pointed out in the instructions. What is the name of one of the folders on your drive?

If you have one called movies then put that after the / not shares.

At the moment it is looking for a folder called shares on your drive.
[Nexus 7 General] pabs23:
This is what I believe is the problem, hopefully with some more info on the setup of network shares we can resolve the problem.
[Nexus 7 General] mike_dangerous:
It is looking for a folder called shares because that is the default directory structure of my My Book Live. It goes like this: /shares/Public/shared music. I have tried different directories and get the same result.

Currently my share is set up the same as the one you posted other than IP address, mount point and user & password. I logged in to the settings of my My Book and set it to static IP address and I have enabled SSH. Using these settings, it works fine in Astro File Explorer...
[Nexus 7 General] pabs23:
How about this:

Share Path

192.168.1.4/Public

Mount Point

/storage/sdcard0/Shares/Public

Username

(your network drive admin username)

Password

(your associated network drive admin password)

Options

(leave blank)
[Nexus 7 General] mike_dangerous:
Thanks for that response, so what I have tried (based on above) is replace my ssh user and pass with my username and password for administrating the network drive. What I now get is segmentation fault, we are moving on! Thanks so far

---------- Post added at 02:56 PM ---------- Previous post was at 02:52 PM ----------

Leaving the options blank has worked!! Thanks so much guys! Quick question, how do I unmount it as it is always saying the drive is busy? This wouldn't be a problem normally but I need to change a few directory settings.
[Nexus 7 General] pabs23:
glad you got it working :)

to unmount, hold down on the share in cifs manager and you will see some options, one of which is unmount.
[Nexus 7 General] mike_dangerous:
That's what I tried but it said it was busy. So I rebooted my tablet. It is proving to be pretty temperamental though. It seems I have to connect to IP/Public so it doesn't have access to the root directory. But I can't set /Public/Shared Music as my directory, is it the space in the folder?

I am trying to set it up so that Play Music will see all my music when I mount it. If I can mount directly to say /Public/Music and then mount it so /storage/sdcard0/Music then I should be albe to view my files in Play Music?

So I renamed my directory to Music and put in IP address/Public/Music and it gives a network error but /Public on its own works fine?
[Nexus 7 General] pabs23:
I don't believe you can mount a subfolder of a share, one way to achieve what you want would be to make a new share on your network drive called Music (or whatever you like) and mount that in cifs manager. Alternatively you could just mount the Public share and leave your media player of choice to find the music files within the Shared Music subfolder.

Regarding getting the built-in media player to pick up your music in this way, I don't know if it would work. You do not want to mount your network share to an existing folder (I don't think this is doable anyway, but someone more knowledgeable may help here). Instead personally I would try mounting your Public share on your network drive to sdcard0/Music/MyMusicShare - maybe the built-in media player will pick up files in subfolders.
[Nexus 7 General] mike_dangerous:
Thanks. What I did was move a song to the Public directory so the file was mounted like this: /storage/sdcard0/Music/Fascination.mp3 however I can't get any of my media players, play music, winamp or Twonky to realise that I have all of these music files mounted.
[Nexus 7 General] pabs23:
If I read you correctly, you have mounted your Public directory on your network drive to a directory called /storage/sdcard0/Music/Fascination.mp3 ?

What you say is ambiguous that's all, or you have mounted the Public directory to /storage/sdcard0/Music ?

Basically what I am asking is have you used a file explorer on your N7 to verify that the song Fascination.mp3 is in the Music folder? If so, can you play the song by opening the mp3 using your file explorer? (and hence getting a dialogue to choose which app to open the mp3 with) ?

(I wondering if we are cluttering up this thread with troubleshooting, maybe it's better others can see what's going on, or forum etiquette may dictate we pm each other - will keep it in the thread for now unless a mod instructs us otherwise - I'm new here :) )
[Nexus 7 General] mike_dangerous:
Public is mounted to /storage/sdcard0/Music so I have an mp3 file sitting in Music. I can open it from file explorer but I can't view it in my media library which is what I need otherwise it isn't any better than connecting to the drive from ES File Explorer.
[Nexus 7 General] pabs23:
Have you rescanned for music in your media player? If you are using the built-in player, I don't think this is an option though.
[Nexus 7 General] pabs23:
OK, got it working. The problem is to do with permissions on your music files on the network drive. I tried some things that didn't work, then I changed the permissions on an mp3 on my network drive so that the 'everyone' username has 'full control' permissions:

[edit] I put this test mp3 in the Public folder, not in a subfolder [/edit]

I mounted my Public network share on my network drive to /storage/sdcard0/Music/Mymusic

Then on your network drive right-click on an mp3 and choose properties (I'm assuming you are using Windows to manage your network drive).

Go to the Security tab and click on the Advanced button

Click on the Change Permissions button

Highlight the Everyone entry in the Permissions list and click the Edit button

Put a tick in the 'Full Control' Allow check box and click OK

Now click Apply then OK

OK and OK again to close all the property windows

Now open the built-in Google Play Music app and you should see the music file

Of course be aware of the permissions you are putting on your music, everyone really means everyone. There is probably a more secure way of specifying a username on your music files properties and setting permissions for your N7, but I'm not sure how at the moment.

Applying this methodology to a folder on a network share is a different kettle of fish I think, I've had a quick go with little luck, but I'm a bit distracted at the mo so see how you get on (permissions may have to be managed from your network drives interface).
[Nexus 7 General] dazdaz:
To create the directory /system/lib/modules don't you need root access.

Is there an alternate directory where we can store the kernel modules that you could suggest ?

Actually should'nt that be /sys/module where all of the loadable kernel modules are stored. That is also restricted...

Thanks for any tips.

---------- Post added at 06:16 PM ---------- Previous post was at 06:10 PM ----------

I just realised that CIFS Manager will require root access in order to load the kernel modules :)
[Nexus 7 General] pabs23:
Yeah, you need root :)

regarding my endeavours with getting the Google Play Music app to pick up music mounted to the device, it's really hit and miss, I'm a noob to Android so will leave it to more knowledgeable souls to pursue. For reference, I use Poweramp and just set my Music folder to my mounted share and all is well.
[Nexus 7 General] thankyousam:
You can mount a subfolder of a share, but you need to add an extra parameter to the options. See my earlier post: http://xdaforums.com/showthread.php?p=29326263#post29326263

If you've got 192.168.x.x/Share/Music then the Share Path should be 192.168.x.x/Share

Then in options put prefixpath=Music

It works for me with my NAS drive, but I guess YMMV :)
[Nexus 7 General] qwerp_:
you just need root to load the modules.

the .ko file can stay anywhere you like. people just like to store it in the system disk, thats all.

it will work as will if you put it on sdcard.
[Nexus 7 General] pabs23:
That's great information, thank you :)
[Nexus 7 General] dazdaz:
I got CIFS Manager working, however I had to workaround a strange problem with Windows, does anyone know what causes this ?

I had to create a new user account, which was not being used, and then I could remotely authenticate with that account.

I could not authenticate with the default windows account, which had a password set.
[Nexus 7 General] qwerp_:
if you are using windows 7, then its known that it has allot of issue.

we are even talking windows XP getting access to windows 7. there is a lot of settings that you need to unwind to get it to work better.
[Nexus 7 General] dazdaz:
Could you be more specific, Microsoft KB or Blog articles documenting registry fixes or mount options ?
[Nexus 7 General] qwerp_:
here is a example.

http://lifehacker.com/5262706/setup-file-and-printer-sharing-from-xp-to-windows-7
[Nexus 7 General] thankyousam:
It would be good to know if this method works for you too as, to date, I've only got my own experience to back it up! :)
[Nexus 7 General] StuMcBill:
Does anyone know how I could make these files into a flashable zip so I can flash this after flashing a new ROM?
[Nexus 7 General] pabs23:
Sadly this isn't working for me, I've been experimenting for a while with no luck. From some googling, I'm guessing it is a cifs.ko issue (bare in mind I am new to Android/Linux) - I will keep investigating and post back when I have some joy.
[Nexus 7 General] dazdaz:
1. Do you have root.

2. What error messages do you see.

3. Did you follow the setup instructions within this thread precisely ?

4. Are you connecting to Windows 7 or XP

5. Did you create a separate user account to authenticate with and test this from a MacOSx or another Windows box to check that CIFS connectivity is working.
[Nexus 7 General] flumpster:
I think he's referring to not getting the subfolder prefixpath to work not actual cifs. He's already commented earlier in the thread that he has cifs working ;)
[Nexus 7 General] qwerp_:
i can make this into a CWM zip, however its not adviseable as i said in the original post. this varies from kernel build.

so, for example, if google updated this to 4.1.2 (argument sake), i have to recompile the cifs.ko to make it work.
[Nexus 7 General] pabs23:
Yes flumpster is correct, many thanks for the help though dazdaz, I'm sure it will come in handy for someone else trouble shooting :)
[Nexus 7 General] don_ernesto:
hey guys, this worked great!! many thanks

just in case nobody mentioned it (i confess, i didnt read the whole thread), i had to reboot the tablet for this to work. dont know if it is always required, but i had to
[Nexus 7 General] weedy2887:
Can you either change the default of echo_retries to 1 or merge this patch?

http://thread.gmane.org/gmane.linux.kernel.cifs/5505/focus=5519
[Nexus 7 General] jmdearras:
I am a little confused as to the best cifs.ko module to use. I'm using the one bundled in the 4.1.1 zip, but I have stuttering streaming video.

Thanks,

Jim
[Nexus 7 General] weedy2887:
the cifs module won't really control the speed at which you stream data. tcp buffers and more importantly server settings.

I changed a couple samba and sysctl settings in order to get my NAS to transfer at gigabit speeds over lan, now I know WIFI is the only bottle neck.
[Nexus 7 General] quidnunc:
When I mount my media server it makes all the symbolic links (to directories) into files. Does anyone else have that problem?
[Nexus 7 General] Pulsio:
Perfect

This worklfow is perfect and just worked fine for me. Thanks!

Keep in mind that you need a Root browser in order to be able to create the /modules folder and copy the 3 files into it. I used "Root Browser lite" from Google Play to do so. The rest really is copy and paste.
[Nexus 7 General] GERBIL21:
Cant get this to work

so far i have did everything right i filed in everything perfect added all files need (followed flumpster post) i am rooted and using codename android 3.6.0 but when i click on the share it gives me a error it says error:operation now in progress

Plz. somebody help me
[Nexus 7 General] jiujitiancai:
please update to support 4.1.2
[Nexus 7 General] kokotron:
Yup, support for 4.1.2 would be trully appreciated :) Also, Cifs manager gives a "no such device" error without the iocharset=utf8 line, and a "segmentation fault" error with it.
[Nexus 7 General] darkuni:
Yep, 4.1.2 definitely seems to break things :)

Looking forward to an update!
[Nexus 7 General] glimmling:
+1 :good:
[Nexus 7 General] cedrickinnard:
+2 :p
[Nexus 7 General] papayayoghurt:
-1 :D

Gesendet von meinem LT18i mit Tapatalk 2
[Nexus 7 General] D-m-x:
Anything new on 4.1.2 Support? Would be appreciated!
[Nexus 7 General] intronauta:
Please, someone can compile an updated cifs module for 3.1.10-g009b6d1??

A HOWTO would be much appreciated :D
[Nexus 7 General] darkuni:
He has it working in SmoothROM 3.2+, so those CIFS files must be compatible with 4.1.2. Perhaps I'll rip them out and one of you can try them - I don't have the means to test them now.

Anyone game?
[Nexus 7 General] D-m-x:
Yeah, would be great rip em out and Upload them please. Anyone interested will try it. After work I will also try them myself. Thanks!
[Nexus 7 General] darkuni:
Here it is:

http://1190.me/bmtrma

... this is taken from system/lib/modules/

It needs proper perms; Read for all, write for owner.

Let me know so I can update my tutorial...
[Nexus 7 General] booce:
Didn't work for me :(
[Nexus 7 General] darkuni:
That is unfortunate. I'll ask the ROM developer.
[Nexus 7 General] intronauta:
this cifs.ko is for 3.1.10-gf6abaa7
[Nexus 7 General] darkuni:
Ah yes. I'm using Bricked kernel. I guess I would need to go back to stock to get the right one...
[Nexus 7 General] D-m-x:
Got it working with Cifs Manager and Paranoid Android 2.20. At least my shares work. I'm using Bricked Kernel, it seems that there is a Cifs.ko included.
[Nexus 7 General] darkuni:
It seems that most Custom ROMs and/or kernels have it built in.

I'd love to get it working on stock+root though. Not everyone wants to run SmoothROM or Paranoid :)
[Nexus 7 General] ea_:
Is there cifs / nfs support on Franco kernel? It seems like not...

I tried to install that 'Bricked Kernel' with default values and it actually bricked my nexus ;)

...thanks god I've been able to boot into recovery mode and reflash my last recovery (cheers ClockWorkMod Recovery!)

Hmm, a cifs and nfs module for 4.1.2 would be much appreciated I guess :)
[Nexus 7 General] ea_:
BTW: right now I've been able to access my cifs shares installing this kernel:

- grouper-faux123-kernel-v012b7.zip

(sorry I'm not allowed to post urls)

uname -a
3.1.10-faux123-grouper-00768-g7cdb72b-dirty #127 SMP PREEMPT Mon Oct 15 23:23:31 PDT 2012 armv7l GNU/Linux

mount | grep cifs
1023,default_permissions,allow_other 0 0
//192.168.0.254/media /storage/sdcard0/cifs/media cifs rw,relatime,sec=ntlm,unc=\\192.168.0.254\media,username=eaman,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.254,unix,posixpaths,serverino,acl,rsize=16384,wsize=131007,actimeo=1 0 0

Cifs is built in so there's no need to inject and insmod any external modules.
[Nexus 7 General] chrkad:
Care to try out my attempt at getting the cifs modules compiled for (stock Android) Nexus 7? I don't have a device myself so I can't verify that these works. They are however built for Nexus 7, 4.1.2 (JZO54K), kernel 3.1.10-g009b6d1 (Wed Sep 26 12:53:01 PDT 2012).

cifs.ko	(MD5) b9833b309a50f94585f24f7f73d80f95

md4.ko	(MD5) 48ddff41470e792e400963f4a79f6590

nls_utf8.ko	(MD5) a845e0db30599a33b9847c032d4b9b6a
[Nexus 7 General] glimmling:
Thank you!

I did a quick test and it mounts succesfully.

This way I can stay with the stock kernel. :good:
[Nexus 7 General] rom4you:
Is it too much to ask to describe me how did you build it ? I would like to be able to do it myself next time kernel version changes. Where did you get the kernel source and cifs module source from ? I can figure out the rest