CIFS kernel module for ICS - Asus Eee Pad Transformer Prime

I've seen a few posts from people wanting native network file support for our Primes. I'm attaching the cifs.ko kernel module for 2.6.39.4 (ICS on the Prime).
CifsManager (search for in market) makes mapping shares and retaining them very easy and is free...busybox mount can be painful.
You must have root to use the module.
cifs.zip contains cifs.ko and cifs.ko_debugon.
the debug_on module has extra extensions/functionality/debug capability. It's not needed, but I included just in case anyone needs it.

great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS

What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.

Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
I wish...for now I'm using my EVO's hotspot.
ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
I'll be honest, I'm new to development in Android. I've been developing and using Linux for a long time, and these phones/tabs aren't exactly built up the way a real linux box is. On our Primes, the init files appear to be baked into the bootloader, so even if you modify one to add insmod calls, its wiped on a reboot.
Once we get the bootloader unlocked.....
Your best bet is to download ScriptManager or an app from the market which you can set to run a custom script after a reboot.
you just need to create something like:
# LoadModules.sh
# Load my kernel modules
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
# end file
Have ScriptManager run this at startup.

Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee

cifs module for HC
Mr99Lee said:
Is there also a cifs.ko for Kernel 2.6.36.3 (Honeycomb)?
We german USer have to wait for ICS so an interimssolution woud be great...
reagrds
MrLee
Click to expand...
Click to collapse
I can't test this, but here you go. Please let me know if it works

Lock-N-Load said:
great.. now, can you fix the loss of ad hoc network support for tethering we lost in ICS
Click to expand...
Click to collapse
Mine appears fine?

ChrisDos said:
What is the best way to autoload the md4 module when the cifs module is loaded. cifsmanager could not mount the share unless I manually loaded the md4 module from a shell.
Click to expand...
Click to collapse
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko

I just want to say thanks for this...in case anyone's wondering, having the Cifs capability will allow you to run an app like CifsManager to make Samba share folders (for example, the shared folders on a windows network) show up like they're on a drive on your tablet. That means that any file you can open from a memory location on your tablet can be opened from across the network. Apps such as ES File explorer offer a limited capability to open certain types of files directly, if your tablet has an app to open them, but it only works for file types the dev's put into it (in general, movies, music, pictures and pdf's). With Cifs support, anything that can be opened directly on the tablet can be opened over the network, without an intermediary app like ES File Explorer.

sklid said:
I can't test this, but here you go. Please let me know if it works
Click to expand...
Click to collapse
Great!!!!!
Works like a charm. Here comes my 10tb tablet.
Thank you very much!
bis denne
Mr.Lee

ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Yea, I did the same thing. I'll give it another reboot and do some more digging.

This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!

ParaTr00per said:
Works fine in combination with CifsManager. In CifsManager settings I checked "Load cifs module", checked "load via insmod" and in "Path to cifs.ko" I wrote both modules - /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko
Click to expand...
Click to collapse
Works very well, thanks for the tip. I have used Cifs Manager before and it always works well.

Just out of curiosity what tool chain are you using to compile these?

scook9 said:
This probably explains why CIFSManager wouldn't work for me last night
Added the needed 2 modules and provided path to the program, will test when I get home!
Thanks!
Click to expand...
Click to collapse
Worked. Thanks!

still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....

fuzzer said:
still a aos newb...
so, i just extract the files from the zip (3) and move them to - system/lib/modules/ with root explorer?
think this works, but what is the file path for ics? mnt/ isn't correct? i keep getting error saying no such file or directory....
Click to expand...
Click to collapse
I had the same problem and after messing with it for a while, I got it to work.
You do place those files in the system/lib/modules/ folder. You need to make sure those modules get loaded by going to a terminal emulator (available in the market) and typing these lines,
Code:
insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/md4.ko
After that, the Cifs manager app should work, or you can just type the command for it. Cifs manager app basically just uses this command to mount your drive.
Code:
busybox mount -t cifs //192.168.x.xxx/<Share> /mnt/cifs/<Share> -o username=<username>,password=<password>
You can just put those commands in a script to run each time it boots as well with script manager, but I haven't yet gotten that to work. It seems that app is buggy and crashes a lot on my prime.

Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....

fuzzer said:
Thanks, now how about the folder structure? I tried to put it in removable, and it created a new folder on the root?
is it case sensitive?
also, is it becausae of ICS that some apps don't see "Removble"...i hope they fix this, kinda sux not being able to use the removable sd card for everything....
Click to expand...
Click to collapse
Are you using the Cifs manager app (or command line)? I have only mounted mine to /mnt/cifs/<Share>. Root explorer can get you to that directory. I just added the video directory (e.g. /mnt/cifs/<Share>/Movies) to Mizuu. Mizuu is amazing if you are using the network drive to stream movies from. Then I don't have to worry about getting to that directory anymore.
You should be able to tell any media player app where to look. I will have to try a different folder location to see if I can get it to mount anywhere else though. I am at work right now though...

when i move the files from the sdcard using root explorer
and try to run it i get
insmod: init_module '/system/lib/modules/cifs.ko' failed (File exists)
What could be the problem?
Edit: it seames to be that the module is alredy loaded, and my problem was the mount pont, all is working now!

Related

[Q] xperia x10 cifs

I want to mount some cifs or even better nfs mounts. I Found the cool cifs app, but I'm having no luck loading the cifs driver.
I have a rooted x10a
firmware 1.6
Kernel 2.6.29-rel semc-android semc 2
Build r1fa014
so what do I have to do? I have looked high and low for a x10 cifs.ko, and tried a ton of others with the app and insmod. Do I need to upgrde the kernel? build?
Current links to what I have to do would be apreciated.
Thanks
check the kernel compiling topic, I posted cifs kernel module for X10 there.
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
bango123 said:
Thanks for the info
I have found your main post: # 716360, Compiling X10 kernel sources.
And I have downloaded your cifs.zip, put it on my x10. I can insmod or use the cifsmanager gui to load the module, and it appears to be running with no errors, lsmod even shows it.
But when I go to mount I still get the "No Such Device" error. Do i need to upgrade my phone first from the above specs?
I don't want to hijack the other post, so ill reply here.
Thanks
Click to expand...
Click to collapse
use the same command line i used on the kernel topic,
also the destination directory must exists.
last but not least, busybox mount instead of the native android mount
if you succeed, please provide compiled module
After some work, I got it to work, and in the end it was not to complicated at all.
1. Get the CIFS module (driver) for the X10, I have attached a copy I am now using for version 1.6. It was compiled by alx5962 and put on these forums in another thread "Compiling X10 kernel sources". There is more info there. I just added "X10" to the name of his file to avoid confusion and posted it here in case of a search engine brought others here for help.
Unpack and save the file somewhere on your SD card, write down where it is at.
2. Install the CIFS Manager from apps, it will need root access to load the cifs module ("Superuser Permissions" app manages this very well), there is lots of info and this is a easy fix. Should be easy to find.
In settings:
Check "Load cifs module"
Check "Load via insmod"
the under path point it to where you saves the cifs modile (something like /sdcard/cifsx10/cifs.ko)
Then setup your share, for example:
Share Path:
192.168.0.1/Share
Mount Point:
/mnt/cifs/Share
Username"
me
Password:
mepassword
Don't worry about any of the options
And that should do it. I did try the command line mounting in the shell, that worked well too, I even made some scripts with a script app. But the CIFS Manager once i figured out my problem(read my note below), worked very well and very easy.
*NOTE* My big problem was an error when mounting "invalid argument". What I found is even if I have the share open to anyone with no password, it will spit out an error if you leave the username and password blank. I just put in "me" and "pw" (or anything really) and i was up and running in one foul swoop!
can i ask what is the point to all this?
mootmaina said:
can i ask what is the point to all this?
Click to expand...
Click to collapse
CIFS also called SMB is the network file sharing used by windows mostly, this would then let you share a folder on you sdcard over you wifi to your home pc leting you copy files to and from your phone without connectinig USB
I haven't tried to share any folders on the sdcard, but I use it to mount shares that are on the network on my pc. ES File Explorer is a nice app to browse the network, but some files wont open well using this.
My main use is to play media, mainly DIVX movies that are stored on my pc. By mounting a share on cifs ( smb - samba, or windows file sharing, both more or less same thing) I can open my DIVX movies with rockplayer and they play like a charm. I have heard of some other apps that have the same issue.
But now I can have access to all of my media stuff when i want.
you can also use webdrive - windows program for mounting ssh filesystems, and launch ssh daemon on android.
Anyone tried this on 2.1? Do we need a new cifs.ko?
Bump.
Anyone got any info on cifs and 2.1? Id like to upgrade but don't want to lose this use.
[sorry] Bump [/sorry]
I tries some of the cifs.ko files i found trying to use the same kernel version (2.6.29), but insmod gave me errors.
Please, if anyone found a working version of cifs.ko for X10 2.1 kernel, post it - or give us a hint ...
(yes i know, compiling it myself would be a way, ... - i promise i will try, but why reinvent the wheel?)
THANKS,
Bax
Bumpito
Still no news about the new cifs.ko ?
Thanks !
Sony Ericsson haven't released the sources for 2.1 yet, so no "cifs.ko" until then. (It seems SE are breaking the GPL license by not releasing their Linux kernel source code)
And is there a way without using cifs.to to play files (such as mp3 or avi) directly from a samba share on 2.1 or we have to wait ?
Bump
Anyone have any luck with 2.1 yet?
hhave we gotten this yet?
cifs.ko experia x10 2.1 rooted
dutchschultz said:
hhave we gotten this yet?
Click to expand...
Click to collapse
In this thread,
http://forum.xda-developers.com/showthread.php?t=716360&highlight=cifs&page=12
Many thanks to alx5962
goto page 1 for instruction, or just use cifsmanager for market

CIFS support for ICS?

Does anybody know how to get CIFS working on ICS on the Rezound?
This GB kernel appears to be the only one that supports CIFS.
http://forum.xda-developers.com/showthread.php?t=1506892&highlight=cifs
I detailed my method below:
1. Go to Terminal Emulator and type "su", then "cifs enable"
2. Install Busybox 1.18.2
3. Copy cifs.ko and slow-work.ko modules into a folder called "cifs" on the SD card (these can be put anywhere, I just prefer the SD card because its fast and easy)
4. Install CIFS Manager
5. In CIFS Manager settings, check "Loads cifs module" and "Load via Insmod" checkboxes
6. In CIFS Manager settings, type "/sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko" into the the "Path to cifs.ko[:<modpath>]*" field.
7. In CIFS Manager, create a new share and enter the fields- example with computer IP address of 192.168.1.100 with network share called "share" and computer username and password "user" and "password" respectively.:
Share Path:
192.168.1.100/share
Mount Point:
/mnt/sdcard/convert
Username:
user
Password:
password
8. Save Share and restart phone
9. In CIFS Manager, click on a share to mount it
10. Profit!
In any case, you'll note that the modules I used above were for Froyo. I was able to get them to work on the Droid Charge with a Gingerbread ROM.
I tried those Froyo modules to no avail (expected failure.)
I then download md4.ko and cifs.ko ICS modules for some other device to no avail.
I was curious if anybody might have any clues.
CIFS is the sickness!
*EDIT*
I presume that my attempts are in vein until we get kernel that supports CIFS. I suppose we may have to wait until the OTA. That is just my guess.
xdadevnube said:
Does anybody know how to get CIFS working on ICS on the Rezound?
This GB kernel appears to be the only one that supports CIFS.
http://forum.xda-developers.com/showthread.php?t=1506892&highlight=cifs
I detailed my method below:
1. Go to Terminal Emulator and type "su", then "cifs enable"
2. Install Busybox 1.18.2
3. Copy cifs.ko and slow-work.ko modules into a folder called "cifs" on the SD card (these can be put anywhere, I just prefer the SD card because its fast and easy)
4. Install CIFS Manager
5. In CIFS Manager settings, check "Loads cifs module" and "Load via Insmod" checkboxes
6. In CIFS Manager settings, type "/sdcard/cifs/slow-work.ko:/sdcard/cifs/cifs.ko" into the the "Path to cifs.ko[:<modpath>]*" field.
7. In CIFS Manager, create a new share and enter the fields- example with computer IP address of 192.168.1.100 with network share called "share" and computer username and password "user" and "password" respectively.:
Share Path:
192.168.1.100/share
Mount Point:
/mnt/sdcard/convert
Username:
user
Password:
password
8. Save Share and restart phone
9. In CIFS Manager, click on a share to mount it
10. Profit!
In any case, you'll note that the modules I used above were for Froyo. I was able to get them to work on the Droid Charge with a Gingerbread ROM.
I tried those Froyo modules to no avail (expected failure.)
I then download md4.ko and cifs.ko ICS modules for some other device to no avail.
I was curious if anybody might have any clues.
CIFS is the sickness!
*EDIT*
I presume that my attempts are in vein until we get kernel that supports CIFS. I suppose we may have to wait until the OTA. That is just my guess.
Click to expand...
Click to collapse
My question is why you would want a persistent CIFS share mounted on your phone. Most of the file managers have the ability to access CIFS/Samba shares. Really the first time you're out of range of that share(ie away from your wireless) you'd have to remount when you came back in range anyway. Sounds like way too much work for little gain.
CIFS can be useful for a number of reasons. For instance, some media apps cannot browse the network, but they will be able to find media if it is mounted as a folder in the filesystem.
Unfortunately, the CIFS module must be compatible with the kernel. My guess is the kernel source for ICS would be required before a module for the Rezound can be compiled. That said, you may have some luck if you can find another phone with the same hardware that does have a compiled ICS CIFS module. It may work, but it also may not.
What does this offer over noop?
fix-this! said:
What does this offer over noop?
Click to expand...
Click to collapse
has nothing to do with NOOP, which is an io scheduler. CIFS refers to network fileshares, and the module referred to in the OP lets Android mount a shared folder on the network to the local filesystem on your phone, so apps without cifs/smb support can see it.
In other words, a random share on your network could be mounted to a path on your phone such as /sdcard/networkmusic
Yeah, I'm spoiled by using CIFS on my Charge. I can stream any movies, music, docs etc when I'm on Wifi. It is nice for watching DVDs or HD content, as well as streaming lossless CD rips. It sure beats DLNA. It is nice to have everything on tap, very fast, organized, and easy.
Generally, I've had luck on kernels that explicitly state that they have CIFS support. Even with the extra modules I downloaded, I think the kernel has to support it.
We had working CIFS on some of the custom Charge kernels that were based on leaks. I think that few devs do kernel development. I don't want to annoy them, but perhaps I'll politely suggest looking at CIFS support in the future.

Can't vpn on root, stock firmware

Hi guys,
i can't vpn using openvpn app. Anyone have a same problem? I have checked that sgs 3 don't active tun.ko in kernel, try to install tun.ko but don't know where to place this file because there no folder /system/lib/modules.
Do you know how to install tun.ko on galaxy S3?
Thanks
The tun.ko must be strict conformance with kernel.
So you can compile a tun.ko from kernel resource code with same version.
Extract /proc/config.gz from the Android phone to Linux paltform.
Use that .config to make tun.ko module.
insmod tun.ko on the phone.
Use lsmod and dmesg command to check tun status.
working openvpn, very easy
According to to viulian in this cifs mod thread the s3 kernel already has a tun module so hurray for that.
However, I used to use openvpn settings and installer I couldn't get these to play.
instead I tried "openvpn for android" and it works a charm with all my open vpn certificates out of the box, no root required. Happy days.
beetnubbin said:
According to to viulian in this cifs mod thread the s3 kernel already has a tun module so hurray for that.
However, I used to use openvpn settings and installer I couldn't get these to play.
instead I tried "openvpn for android" and it works a charm with all my open vpn certificates out of the box, no root required. Happy days.
Click to expand...
Click to collapse
Could you please tell how you got OpenVPN for Android to read the openvpn configuration ffiles?
I have three:
*_ddwrt_small.sh
*_ddwrt.sh
*.ovpn
The "*" is my OpenVPN account name from strongvpn.com. I put the files in /sdcard/openvpn but just get a bunch of errors
Thanks in advance!
aZooZa said:
Could you please tell how you got OpenVPN for Android to read the openvpn configuration ffiles?
I have three:
*_ddwrt_small.sh
*_ddwrt.sh
*.ovpn
The "*" is my OpenVPN account name from strongvpn.com. I put the files in /sdcard/openvpn but just get a bunch of errors
Thanks in advance!
Click to expand...
Click to collapse
You have to load each individual certificate. Click on "all your precious vpns" then click on the folder icon and direct the app to your vpn certificates, select one and click save. It's a bit annoying that it doesn't automatically load the folder and that you have to name them manually but it does work and you can also create shortcuts to each vpn and put them in a folder for super quick access.
Hope that helps
beetnubbin said:
You have to load each individual certificate. Click on "all your precious vpns" then click on the folder icon and direct the app to your vpn certificates, select one and click save. It's a bit annoying that it doesn't automatically load the folder and that you have to name them manually but it does work and you can also create shortcuts to each vpn and put them in a folder for super quick access.
Hope that helps
Click to expand...
Click to collapse
Thanks for that. I just can't get OpenVPN to work, so have installed PPTP/L2TP from strongvpn.com which works just fine, and also on my other devices that don't support OpenVPN without jailbreaking. I won't name those devices here
Phuongld said:
Hi guys,
i can't vpn using openvpn app. Anyone have a same problem? I have checked that sgs 3 don't active tun.ko in kernel, try to install tun.ko but don't know where to place this file because there no folder /system/lib/modules.
Do you know how to install tun.ko on galaxy S3?
Thanks
Click to expand...
Click to collapse
Anyone know how? Please explain in the noobest way as possible. I'm new to this kernel thing. :|

[Q] CIFS Support in kernel

Anyone here using an app to Auto Mount CIFS name Mount Manager? I WAS using CIFSManager and it seems like the built in kernal support CIFS, because it was able to mount my SMB shares.
But I wanted automation and found an app call Mount Manager. However it wasn't able to mount the SMB shares.... I thought it was strange... but wanted to see if anyone else had this problem with Mount Manager, or know of an alternative to auto mount SMB shares via CIFS
I can't mount cifs at all on my AT&T GS3 using cifs manager or mount manger. There is a folder named "/sys/modules/cifs" on my system, but there is no cifs.ko module anywhere. I get a segmentation fault when I try to mount.
Anyone have cifs.ko?
redondo_se said:
Anyone have cifs.ko?
Click to expand...
Click to collapse
I don't think you need cifs.ko because I believe CIFS support is compiled into the kernel directly.
Take a look at https://github.com/sgs3/SGH-I747/blob/master/arch/arm/configs/m2_att_defconfig, the default AT&T configuration from the kernel sources. It includes "CONFIG_CIFS=y". The Sprint and Verizon configurations include the same.
Cifs works fine with the stock kernel, I didn't need to patch. I used Cifsmanager as well.Just make sure to root.
Sent from my SGH-I747M using xda premium
I was able to mount smb file shares without a cifs ko as well. Pretty cool that they decided to leave that as part of the kernel...
Sent from my SGH-I747M using xda premium
redondo_se said:
I can't mount cifs at all on my AT&T GS3 using cifs manager or mount manger. There is a folder named "/sys/modules/cifs" on my system, but there is no cifs.ko module anywhere. I get a segmentation fault when I try to mount.
Anyone have cifs.ko?
Click to expand...
Click to collapse
I got it working now.
I was trying to mount shares on a W2K8 server on a domain. I was getting a segmentation fault when specifying the domain in the options. I removed the domain from the extra arguments, and it works fine.
On my Epic 4G, I specified the domain and it worked fine. Oh well, whatever it takes.

[HOW TO] Mount wireless HDD or network share as folder (just like local MicroSD)

Hi!
This was made possible by the great & powerful crpalmer, who has added the working CIFS support to his wonderful kernel.
So - now we can totally duplicate (and expand!) the functionality of the missing MicroSD slot on Droid DNA. Using this tutorial, you will be able to mount any network share as normal "local" folder, for example "External_SD", and use its content with ANY software, including stock music & video players, book readers, image viewers e.t.c.
Combine this with pocket WiFi-SD reader like this one or this one, or even the wireless HDD from Seagate, and the result will become, effectively, a smartphone with up to 1TB of internal (!) storage, accessible just like an ordinary MicroSD. Not to mention all the possibilities of shared drives at home...
So! You will need:
1) crpalmer kernel http://forum.xda-developers.com/showthread.php?t=2137293Version 2.0.38 or newer (it's Sense kernel)
2) Mount Manager from market (or just the Terminal)
3) Root & busybox, of course.
In two words, the terminal command for mounting shared resource looks like this:
Code:
busybox mount -t cifs //[COLOR=Lime]path[/COLOR]/[COLOR=Lime]folder[/COLOR]/ /storage/sdcard0/cifs/[COLOR=Lime]folder [/COLOR]-o ip=192.168.[COLOR=Lime]x[/COLOR].[COLOR=Lime]xx[/COLOR],unc=\\\\192.168.[COLOR=Lime]x[/COLOR].[COLOR=Lime]xx[/COLOR]\\[COLOR=Lime]folder[/COLOR],iocharset=utf8,noserverino,username=[COLOR=Lime]username[/COLOR],password=[COLOR=Lime]password[/COLOR]
You should give special attention to slashes - it took me A LOT of time to find the correct syntax. Also, note that "unc=" command accepts only IP, not the network path.
So, let's do some practical example; let's say, you have a Windows PC with the name "MyPC", where there's a shared folder named "GameOfThrones", and local IP of this PC is 192.168.1.3. You want to mount this folder as "Series" under "Video" on your Droid DNA's internal storage. (Don't forget, that Windows shares do not work unless your user account is password-protected).
Using terminal:
Code:
busybox mount -t cifs //[COLOR=Lime]MyPC[/COLOR]/[COLOR=Lime]GameOfThrones[/COLOR]/ /storage/sdcard0/[COLOR=Lime]Video[COLOR=Black]/[/COLOR]Series [/COLOR]-o ip=192.168.[COLOR=Lime]1[/COLOR].[COLOR=Lime]3[/COLOR],unc=\\\\192.168.[COLOR=Lime]1[/COLOR].[COLOR=Lime]3[/COLOR]\\[COLOR=Lime]GameOfThrones[/COLOR],iocharset=utf8,noserverino,username=[COLOR=Lime]username[/COLOR],password=[COLOR=Lime]password[/COLOR]
Using MountManager:
1) Create new mount
2) Topmost box: //MyPC/GameOfThrones/ (with ending slash!)
3) Second box: /storage/sdcard0/Video/Series (without ending slash!)
4) Mount type: cifs
5) User: username
6) file_mode: 0777
7) dir_mode: 0777
8) Password: password
(For every next option, press green + to add new option box if there isn't one already)
9) iocharset: utf8
10) unc: \\\\192.168.1.3\\GameOfThrones (use "\" slashes, NOT "/")
11) (enter just value, don't enter anything in "Name" box) : noserverino
Press OK and save configuration. Now you can enter Mount Manager options and check "Auto mount" to have your folder automatically available as soon as smartphone is started, or connects to WiFi e.t.c.
That's it
Best regards - Draco.
Been at this for over an hour... Keeps giving me message "No such device"... Any ideas? When entering local IP I use my PC's IP for both, correct? Or do I use the IP of my phone for one of them? I want to get this working and try it out over VPN. Thanks man.
Hi.
"No such device" means that CIFS module doesn't work. Do you have crpalmer's kernel version 2.0.38 or newer? What ROM have you installed? This method works only with crpalmer's kernel, which is made for Sense.
Drakosha said:
Hi.
"No such device" means that CIFS module doesn't work. Do you have crpalmer's kernel version 2.0.38 or newer? What ROM have you installed? This method works only with crpalmer's kernel, which is made for Sense.
Click to expand...
Click to collapse
Yes, I flashed 2.0.38. I'm running Newts 2.03, his 4/27 release. I flashed kernel via CWM, s-off obviously. Kernel shows correct when I test it through terminal. But last night I was trying your mount method using terminal emulator, and after sever no-go's, I ran the commands another several times via command prompt & adb shell. I am on a 10.20.x.x network if that makes any difference. I tried the commands with both WiFi on and off on my phone. I straight copied and pasted into cmd prompt, with edits only to ip address, computer name, and share. I didn't even touch storage/sdcard0/video/series (manually created the video/series before hand).
Oh, and obviously I changed username & password.
Sent from my HTC6435LVW using XDA Premium App
Hi.
Try installing Mount Manager from market and see if CIFS modules are loaded. ("green box" button to the right of toolbar). Do you have your phone & PC in the same network? Do you have firewall installed on your PC? Can you see your shared folder from another PC, for example notebook connected to the same WiFi as your phone?
If ALL of this works, try Mount Manager method from my post.
Here is what I ran: busybox mount -t cifs //Diamond/VirtualSD/ /storage/sdcard0/Video/Series -o ip=10.20.x.x,unc=\\\\10.20.x.x\\VirtualSD,iocharset=utf8,noserverino,username=xxxxxxxx,password=xxxxxxxx
I understand, but ANY terminal command makes sense only if CIFS modules are present & functional. Mount Manager can check that, and load modules if they aren't loaded at boot time.
Drakosha said:
I understand, but ANY terminal command makes sense only if CIFS modules are present & functional. Mount Manager can check that, and load modules if they aren't loaded at boot time.
Click to expand...
Click to collapse
Well there is my problem, no modules. What am I supposed to add?
There should be at least three modules present if you flashed crpalmer's kernel correctly - ntfs.ko, cifs.ko & bcmdhd.ko . You can try lo "force load" them using Mount Manager's settings. All three are (should be...) located in /system/lib/modules
If they are missing, than your ROM is probably not compatible with this kernel. Try NOS 2.0.3 - wonderful problem-free & ultrafast Sense 5 rom.
Drakosha said:
There should be at least three modules present if you flashed crpalmer's kernel correctly - ntfs.ko, cifs.ko & bcmdhd.ko . You can try lo "force load" them using Mount Manager's settings. All three are (should be...) located in /system/lib/modules
If they are missing, than your ROM is probably not compatible with this kernel. Try NOS 2.0.3 - wonderful problem-free & ultrafast Sense 5 rom.
Click to expand...
Click to collapse
That's the ROM I am running, I don't see those modules when I hit the "green box button, but I can try to load them via mount manager. I looked quickly and I see kifs.co, didn't check for the others. Are you saying if the Kernel flashed successfully those modules would load (show) in mount manager automatically?
Yes, they should. Use MountManager settings to load these three modules, check "Load modules at startup" & try mounting again, it should work. I use the same rom with the same kernel, and everything works.
Ok I'm on the road right now, I'll be back in front of a PC in about an hour and a half, I'll download kernel again and flash, see if modules load automatically, if not, force them to mount, and go from there. I'll let you know. Thanks for the help!
Sent from my HTC6435LVW using XDA Premium App
Here is what I just tried
Redownloaded Kernel
Booted to recovery, wiped cache & Devlik Cache
Flashed kernel zip
rebooted
checked mount manager - no modules loaded
"force loaded" the 3 modules
tried to mount and got error message: mount: mounting //Diamond/VirtualSD on /storage/sdcard0/Video/Series failed: Invalid Argument
I can access the shared drive from other computers on my network... Phone is on same network... UGGGHHHHH Should wifi be on the whole time or what? I've just left it on.
EDIT: GOT IT WORKING! Don't know what I did differently, but it works. This is great man thanx again. Now to try it over VPN...
Have you successfully gotten the HTC music app to recognize a mounted folder/music? If so where did you mount to? I can only get Google play music to see the files..
Sent from my HTC6435LVW using XDA Premium App
mcampos7 said:
Have you successfully gotten the HTC music app to recognize a mounted folder/music? If so where did you mount to? I can only get Google play music to see the files..
Sent from my HTC6435LVW using XDA Premium App
Click to expand...
Click to collapse
i had the same issue while on viperdna 1.3.5, i fixed the issue by moving all music files to /sdcard/Media and they should appear instantly in the music app now :]

Categories

Resources