Related
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
Hi,
I am trying to get my GT-7510 (retail with the latest updates, rooted) mount an NFS share.
I have built the necessary modules and loaded them via insmod.
However, when I attempt to mount a share the tablet freezes. Screen is on, can't connect or ping in any way.
I've tried adb logcat - it just stops showing any output. I've tried getting a core dump without any success.
Is there any way I can see what the dmesg output was when the thing froze? Any suggestions on how to troubleshoot this?
And I don't want to use CIFS because it's slow and it generally sucks.
Thanks in advance!
Does anybody use NFS on the GT-7510?
Hi weasel,
I'm also struggeling with NFS. I tried using pershoot's Kernel with his modules. But I'm not even near to get NFS mounted or the Tab frozen ;-)
Maybe you can share which modules you loaded, which kernel, which mount command, how you issued the command.
So far I don't have a solution but maybe we can find one together!
Here is what I did so far:
[Kernel] - 2.6.36.4 - OC-VFPv3-d16_FP 1.4GHZ - Galaxy Tab 10.1 (9/13/11; 9.00PM EDT)
Installed the kernel above, loaded the following modules in the following order:
1. sunrpc.ko
2. auth_rpcgss.ko
3. lockd.ko
4. nfs_acl.ko
5. nfs.ko
When I try to mount my nfs share running on a Ubuntu 10.04 server with this command line:
mount -o nolock -t nfs <IP>:/<Path> /sdcard/<mountpoint>
I'm getting the following error message: Invalid argument
Is this a bug in the kernel/module. Am I doing something wrong?
I did get it to work but I had to use the source from Samsung's site and not the android source.
The modules you have listed are correct but you need to use the mount command that comes with busybox because the built-in mount doesn't support nfs. Also check your dmesg output after you load the last module to make sure there are no error messages.
So try using
/system/xbin/mount
instead of just mount
Oh, and I'm using the stock kernel so that's why I needed Samsung's source, you shouldn't need to re-compile your modules.
weasal said:
Oh, and I'm using the stock kernel so that's why I needed Samsung's source, you shouldn't need to re-compile your modules.
Click to expand...
Click to collapse
Did you compile those modules on your own? Do you know any howto for doing that? Or can you even provide me with the modules?
I'd like to use the stock kernel as well!
Thanks again!!
I already managed to compile them on my own. Thanks again for the hint.
For all of you who are searching for the required modules for the stock Kernel as well - please find attached.
The correct mount option:
/system/xbin/mount -t nfs -o nolock <ipaddress>:/<path> <mountpath>
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.
Information and Modules description
I was in the need to add some missing kernel modules to my Xperia Mini Pro sk17i with v4.0.2.A.0.58, but I could only find modules compiled form ICS sources, so I decided to build them myself.
All modules have been compiled from official sony Xperia v4.0.2.A.0.58 kernel sources, using Android NDK r5, and they should be fine with any GB based Xperia 2011 device (with that kernel version at least).
This is the list of modules, with some interesting programs using them:
fuse.ko: Cryptonite (used to create encrypted EncFS or Truecrypt volumes, adds support to mount drives so that are visibile to the whole Android system. Note: Cryptonite is not currently able to load the module automatically, you need to load it from Terminal Emulator..se more below)
usb-storage.ko, nls_utf8.ko, ntfs.ko (compiled with write support, currently untested): USB OTG Helper (used to mount external USB drives with USB On The Go cables).
cifs.ko, slow-work.ko, md4.ko: CifsManager (used to mount network shares)
ext4.ko, jbd2.ko: if you wish to use the EXT4 filesystem
tun.ko: needed by VPN clients, like OpenVPN or DroidVPN
Installation Instructions
Attached to this post you will find a ZIP that can be used along with CWM Recovery to install the modules in system.
Download the module, put it inside you SD card, reboot your phone in CWM (which you can install with the Xperia CWM Auto-Installer) and select install zip from sdcard, and browsed to the ZIP. Reboot your phone when install finishes.
Loading Modules
No module is automatically loaded at system startup: this saves your memory and battery (some of those modules are known to drain your battery if always loaded).
To manually load a module you have to open the Android Terminal Emulator and tap:
Code:
su
insmod /system/lib/modules/MODULENAME.ko
where MODULENAME is the name of the module you want to load.
Other useful commands:
Code:
lsmod
to see currently running commands
Code:
rmmod MODULENAME.ko
to unload a module.
If you wish to manually load a module at phone startup you should use init.rd or any other method (?) to run custom scripts at startup.
Load Order
Some modules need to be loaded in a specific order:
slow-work.ko must be loaded before cisf.ko
jbd2.ko must be loaded before ext4.ko
Other Firmware Versions
I've released the same package for other firmware versions, click on the firmware version to go to the specific thread:
ICS v4.1.B.0.587 Kernel Modules package by zxp
Changes
v2 - 2012.07.19
===========
- customized, built and added slow-work.ko, which is needed to load cifs.ko
- added jbd2.ko, which is needed to load ext4.ko
v1 - 2012.07.12
===========
- First release
Thanks for this..
Fuse, and the rest as required, are automatically loaded as required by USB OTG Helper if found in /system/lib/modules.
shardul_seth said:
Thanks for this..
Fuse, and the rest as required, are automatically loaded as required by USB OTG Helper if found in /system/lib/modules.
Click to expand...
Click to collapse
Yes, the same applies to CifsManager, even if it requires some fiddling in options, while your USB OTG Helper does it automagically...by the way, it would be really nice of you if you could add the same auto-load code to Cryptonite, which is open source somewhat related to your work! :good:
zxp said:
Yes, the same applies to CifsManager, even if it requires some fiddling in options, while your USB OTG Helper does it automagically...by the way, it would be really nice of you if you could add the same auto-load code to Cryptonite, which is open source somewhat related to your work! :good:
Click to expand...
Click to collapse
I have my own encryption script, and I am happy with it.. So no fiddling with cryptonite for me
Updated both install and uninstall packages to fix cifs.ko and ext4.ko that couldn't be loaded because of missing dependencies (slow-work.ko and jbd2.ko).
You can find the updated zips in the first post.
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
lightdesiny said:
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
Click to expand...
Click to collapse
I don't know where to find it, I don't have upgraded to ICS yet, sorry.
If you are sure that no one have released it I may build a package similar to this one once I upgrade to ICS, in the coming weeks. Keep an eye on this forum :cyclops:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
hadics1 said:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
Click to expand...
Click to collapse
Don't complain if none will answer you.
hadics1 said:
hi when I type the cod say me that not found that I istall it with recovery please help me
my phone xperia ray
my rome is 2.3.4 - 4.0.2.A.0.58 GB
Click to expand...
Click to collapse
Can you please explain your problem better?
I can't understand your post.
zxp said:
lightdesiny said:
where i can find the ext4.ko module for Xperia 2011 ICS?, i can't find it nowhere, can you help me with it?
sorry for my bad english
Click to expand...
Click to collapse
I don't know where to find it, I don't have upgraded to ICS yet, sorry.
If you are sure that no one have released it I may build a package similar to this one once I upgrade to ICS, in the coming weeks. Keep an eye on this forum :cyclops:
Click to expand...
Click to collapse
I've just released the same package as this for Xperia ICS v4.1.B.0.587, you can now use ext4 on the latest ICS firmware
This is great
Sent from my WT19i
mount nfs share works with busybox - but won't with cifsmanager
Hello folks,
as this is my first post here, i'd like to thank all of the contributors for the excellent Guides and Howtos on this platform. Based on the instructions in this forums i was able to root my Xperia Mini Pro sk17i and greatly expand my devices applicability. Thanks to all of you!
Sorry, that the post got that long - hope that someone is still so kind to read and answer to it. I just wanted to be as precise as possible in the desription of my problem.
And here it comes. As the title of my post already implies, my ultimate goal is to mount nfs shares of my NAS and Router in my private network as user-friendly and simple as possible.
So far, I tried the following to achieve this goal:
Install busybox to generally expand linux capabilities of the device
install the Android Terminal emulator also from Google play
as previuosly mentioned, the device is rooted and Super user capabilities are set
created a mount-point for the nfs share
installed cifsmanager for mounting/unmounting with one click later
I tried to manually mount the share in the terminal. Without busybox i had no luck, but actually that was not sursprising at all. With busybox however, it worked instantly - what indeed surprised me, because this thread here implied somehow the kernel, as is, wasn't even capable to do it without additional modules. I could easily browse the share with ES file manager etc. and make use of my shares. So far, so great. :good:
But opening a terminal, get super user rights and mount manually by typing the whole sequence of
Code:
busybox mount -o nolock,vers=3 -t nfs 192.xxx.xxx.x.x:/my/nfs/share /mnt/MyLocalFolder
is not what you'd call simple or user-friendly at all.
So i aimed to improve the mount procedure with cifsmanager, but I always fail. And do no not understand what i am doing wrong. Initially i tried it without further kernel modules, encouraged by the success i had with busybox. But i always got a "Invalid argument" reply.
During the troubleshooting I stumbled upon this post, and thx to zxp's files, i managed to add the kernel modules to my /system/lib/modules folder (and yes, I have the exact same original/stock GB kernel version they are intended for).
But still no luck - even after i added slow-work.ko to the list of modules loaded by cifsmanager in the properties (placed before cifs.ko as it was suggested by another thread found somewhere in the forum). The info tab states the modules are loaded, but i still receive the same crooked "Invalid argument" message. What the heck am I doing wrong?
Seems to me there is some sort of general syntax issue - here is what info I give the app:
Share: 192.xxx.xxx.x.x:/my/nfs/share
Mount Point: /mnt/MyLocalFolder (tested with and without the mount point prefix in properties)
User: guest (default - without it, it wont work,app description states it will be ignored for nfs shares anyway)
Pwd: left empty
Options:nolock, vers=3 (tested with and without these - but where generally considered essential in some threads + my shares are nfs_v3)
Does somebody have an idea what is going wrong and might point me in some useful direction?
Thanks and Cheers to you all,
Nix
Use script manager and create a script!
Nixblicker said:
Hello folks,
as this is my first post here, i'd like to thank all of the contributors for the excellent Guides and Howtos on this platform. Based on the instructions in this forums i was able to root my Xperia Mini Pro sk17i and greatly expand my devices applicability. Thanks to all of you!
Sorry, that the post got that long - hope that someone is still so kind to read and answer to it. I just wanted to be as precise as possible in the desription of my problem.
And here it comes. As the title of my post already implies, my ultimate goal is to mount nfs shares of my NAS and Router in my private network as user-friendly and simple as possible.
So far, I tried the following to achieve this goal:
Install busybox to generally expand linux capabilities of the device
install the Android Terminal emulator also from Google play
as previuosly mentioned, the device is rooted and Super user capabilities are set
created a mount-point for the nfs share
installed cifsmanager for mounting/unmounting with one click later
I tried to manually mount the share in the terminal. Without busybox i had no luck, but actually that was not sursprising at all. With busybox however, it worked instantly - what indeed surprised me, because this thread here implied somehow the kernel, as is, wasn't even capable to do it without additional modules. I could easily browse the share with ES file manager etc. and make use of my shares. So far, so great. :good:
But opening a terminal, get super user rights and mount manually by typing the whole sequence of
Code:
busybox mount -o nolock,vers=3 -t nfs 192.xxx.xxx.x.x:/my/nfs/share /mnt/MyLocalFolder
is not what you'd call simple or user-friendly at all.
So i aimed to improve the mount procedure with cifsmanager, but I always fail. And do no not understand what i am doing wrong. Initially i tried it without further kernel modules, encouraged by the success i had with busybox. But i always got a "Invalid argument" reply.
During the troubleshooting I stumbled upon this post, and thx to zxp's files, i managed to add the kernel modules to my /system/lib/modules folder (and yes, I have the exact same original/stock GB kernel version they are intended for).
But still no luck - even after i added slow-work.ko to the list of modules loaded by cifsmanager in the properties (placed before cifs.ko as it was suggested by another thread found somewhere in the forum). The info tab states the modules are loaded, but i still receive the same crooked "Invalid argument" message. What the heck am I doing wrong?
Seems to me there is some sort of general syntax issue - here is what info I give the app:
Share: 192.xxx.xxx.x.x:/my/nfs/share
Mount Point: /mnt/MyLocalFolder (tested with and without the mount point prefix in properties)
User: guest (default - without it, it wont work,app description states it will be ignored for nfs shares anyway)
Pwd: left empty
Options:nolock, vers=3 (tested with and without these - but where generally considered essential in some threads + my shares are nfs_v3)
Does somebody have an idea what is going wrong and might point me in some useful direction?
Thanks and Cheers to you all,
Nix
Click to expand...
Click to collapse
that works, but...
Well, yeah - that was an option. I already did, and it works with the busybx mount as stated.
But i would have to write another to mount another share, unmount them, and one to prevent ES file manager to somehow occupy the mount to make it busy before unmounting etc.
I hoped that cifsmanager would smooth and ease the mounting/unmounting.
Thank you for your suggestion, anyway!
Cheers, Nix
shardul_seth said:
Use script manager and create a script!
Click to expand...
Click to collapse
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 :]