Hello everyone,
I need help with a very peculiar problem that has popped up recently. Before, I was able to stream video files on my external hard drive connected to my Windows 7 PC, both through CIFS and SMB through ES File Explorer. Yesterday, I found that I can do neither! It is frustrating because all my shows are on the external hard drive. Here are the error messages I get through SMB and CIFS:
SMB: I generally like SMB better because it is less buggy and doesn’t require kernel support. Before, I could access the external HDD through my PC’s IP but now I cannot seem to connect to the external HDD or any folders I’ve shared that is on the external HDD. It is weird because I can connect to shared folders that are on the local HDD via SMB, just not the external HDD. When I try to connect to the external HDD an error message pops up saying “cannot connect” along with a list of possible reasons:
1. Wifi is off (it's not)
2. SMB server is out of network scope (??)
3. The IP is invalid (uhhh I can browse the IP)
4. Blocked by the firewall (maybe... how do I fix?)
5. SMB service is off (why would it be off for only external HDD?)
CIFS: This one is even weirder. When I try to mount it I get a “out of memory” error. WTF??? Again this error only occurs on external HDDs.
Let me know if you have any suggestions for fixing the android phone or maybe fixing something in Windows 7?
What kernel are you running? I can use ES File Explorer without an issue however I believe CIFS has to be in the kernel and I think most kernels do not include it. I don't know why since it would be handy. Certainly would for me. I've never found a definite answer to why CIFS is not cooked in with kernels.
If I recall correctly, CIFS support is implemented in the very latest Trinity kernel, Alpha56. You can check the Der Kernel thread in the Dev section for more info.
I'm having an odd and kind of trivial problem, but I thought someone else may have run into this:
I'm about 2 days into having a new/old nexus rather than jump right into JB, where every ROM I read about seems to have quite a few problems, I'm starting with ICS. I've got it rooted, and have cleansed it of the few junkware things I dislike so that the battery lasts all day and am happy with the ICS nexus.
So :: I looked around and found that the 'faux' kernels (for ICS and JB) have CIFS and TUN built in, and installed the ICS version which works nicely. I'm used to using cifsmanager, which doesn't have to load a module since it is built into the kernel, but it basically issues a statement like this:
-- # mount -t cifs //computerName/ShareName /localmnt/mntdir -o user=xxx,domain=yyy
Until that is performed at least once, Titanium backup works great doing all it's neat things. After I either use cifsmanager, or that mount statement, Titanium backup can't seem to find the /sdcard at all. It requires a reboot to get it back working again. Since it is ICS and reboots in 20 seconds or so, I don't mind too much, but it would be cool if someone here had found a workaround. I know cifsmanager is compatible with ICS because I've got a tablet that is ICS and using it all the time. I'm not interested in the built-in SMB modules of filemanagers because this is more for being able to use apps rather than just a file manager. I'm aware it might just be one of those oddball instances where a couple of pieces of software won't play nice together.
Thanks in advance --
hachamacha said:
I'm having an odd and kind of trivial problem, but I thought someone else may have run into this:
I'm about 2 days into having a new/old nexus rather than jump right into JB, where every ROM I read about seems to have quite a few problems, I'm starting with ICS. I've got it rooted, and have cleansed it of the few junkware things I dislike so that the battery lasts all day and am happy with the ICS nexus.
So :: I looked around and found that the 'faux' kernels (for ICS and JB) have CIFS and TUN built in, and installed the ICS version which works nicely. I'm used to using cifsmanager, which doesn't have to load a module since it is built into the kernel, but it basically issues a statement like this:
-- # mount -t cifs //computerName/ShareName /localmnt/mntdir -o user=xxx,domain=yyy
Until that is performed at least once, Titanium backup works great doing all it's neat things. After I either use cifsmanager, or that mount statement, Titanium backup can't seem to find the /sdcard at all. It requires a reboot to get it back working again. Since it is ICS and reboots in 20 seconds or so, I don't mind too much, but it would be cool if someone here had found a workaround. I know cifsmanager is compatible with ICS because I've got a tablet that is ICS and using it all the time. I'm not interested in the built-in SMB modules of filemanagers because this is more for being able to use apps rather than just a file manager. I'm aware it might just be one of those oddball instances where a couple of pieces of software won't play nice together.
Thanks in advance --
Click to expand...
Click to collapse
I knew if I asked this damn question that I'd figure out the answer about 3 minutes later, and I just did. It is cifsmanager, and I don't know what it's doing wrong or why it's having the conflict but that's the problem, so problem is solved or worked around for me.
It turns out I also needed to mount the cifs share out on the /sdcard/xxx because it may also be getting confused with cifsmanager perhaps remounting /mnt/ as something other than what it was originally. I'm not sure but this mount statement works now and I've written scripts to mount and dismount the shares:
(term emulator)
# mount -t cifs -o username=name,domain=domain,password=password //ip addr/sharename /sdcard/mymountdir
Thanks anyway and ignore this.
Hi,
I'm looking for some advice on gettings CIFS working so I can mount network storage to my phone. The phone is connected to the network full time as a gaming platform and requires in app access to network files (ROMS) to play various games. The only way I can figure out how to access the ROMs is through mounting.
So, I've played around a bit with CIFS apps and haven't had much luck. I've tried CIFSmanager and Mount Manager.
The phone is running Android 4.2.2 AOKP milestone 2 and 3.0.85 lean kernel 7.1-00041 gc1d5b9c. The phone is rooted of course and running busybox.
I'm guessing the problem is a lack of CIFS modules. When I check system/lib/modules/ none of the cifs stuff is there. Getting the CIFS modules for the correct kernel seems somewhat challenging.
Can someone point me in the right direction or alternate paths I can take?
Hey, I kno its possible to view network shares and access them on android with apps like solid explorer and es explorer, but is there any way to mount a network share into jb/kk do that other apps can access the data natively (like poweramp for example) ?
I vaguely recall it working on my nexus s on ICS , but I can't seem to find any information about JB/KK. I tried both CIFS manager as well as the other mount manager app and neither of them seem to work. Anybody with any suggestions ?
You would need a kernel with loadable module support, Google removed it.
This is a good place to start:
forum(dot)xda-developers(dot)com/showthread.php?t=2469040
Hi all, if your goal is simply to play music and video from your NAS to your android device, you can use Kodi (xbmc) that can access cifs path directly!
I would like other apps to be able to access the contents of a shared network drive.
I hacked up a script to mount a single Samba/CIFS share using adb shell directly on the firetv. This can be executed using any script manager (I use Rom Toolbox Pro's scripter) and if configured by your script manager it will in fact execute and mount the share on boot. If you have more than one share just use more than one copy of this script or feel free to hack it up yourself to extend it I am pretty much done with it at the moment but wanted to share.
Requires root and a script manager that can run scripts as root - also I have busybox installed on my firetv so that may be helpful as well.
https://github.com/mattgyver83/pyro
mattgyver83 said:
I hacked up a script to mount a single Samba/CIFS share using adb shell directly on the firetv. This can be executed using any script manager (I use Rom Toolbox Pro's scripter) and if configured by your script manager it will in fact execute and mount the share on boot.
Click to expand...
Click to collapse
Awesome! Any chance that games/apps could be run off of the mounted SMB share?
What is the purpose of this? Can you not just use an app like ES File Explorer or another SMB app to browse to a shared LAN folder?
Thanks.
tdfsu said:
What is the purpose of this? Can you not just use an app like ES File Explorer or another SMB app to browse to a shared LAN folder?
Thanks.
Click to expand...
Click to collapse
Unfortunately no. ES File Explorer lets you browse network shares but it does not let you mount them and this means that only ES File Explorer can see the contents no other application can see those files and that problem is two fold, not only is that because its not a feature of ES File Explorer but its because of the security implementation of Android even if they tryed to implement it. The purpose of this script is to mount the network share to a local folder on the filesystem so that within any application you can browse to that directory and see those network files so they can be used, this is GREAT if you have a device that has a small storage footprint like the FireTV and you are already sharing out files on your network.
onlinespending said:
Awesome! Any chance that games/apps could be run off of the mounted SMB share?
Click to expand...
Click to collapse
Sorry I thought I had already replied to this a few days ago but apparently I didnt hit submit or something. Yes, that is exactly what this script is for and for that use case it works very well.
Edit: Sorry, I incorrectly answered your question. You can't run or install android applications over the network with this but you can perhaps store data on your network and load it within the application. An example would be like installing an emulator on your firetv and browsing to a ROM share on your network and loading the rom over the LAN. It would be pretty complicated to execute games or applications and likely troublesome.
I think I get the basic idea but I have questions...
1. Will this make it possible for aftv to be seen in workgroup by my other devices or at least show up if added as a network share?(remembered I don't think android can be in workgroup)
2. If your aftv's external drive is already mounted with adbFire mount samba drives script, are there any potential conflicts? Busybox is installed through adbFire.
This is the last piece for me. Every xbmc device can connect to the others, all connect to server, but my 2 aftvs can't share local files over smb with any other devices or each other.
KLit75 said:
I think I get the basic idea but I have questions...
1. Will this make it possible for aftv to be seen in workgroup by my other devices or at least show up if added as a network share?(remembered I don't think android can be in workgroup).
2. If your aftv's external drive is already mounted with adbFire mount samba drives script, are there any potential conflicts? Busybox is installed through adbFire.
This is the last piece for me. Every xbmc device can connect to the others, all connect to server, but my 2 aftvs can't share local files over smb with any other devices or each other.
Click to expand...
Click to collapse
To answer your questions;
1. No, this doesn't implement samba which is what would make it seen on your network. The way that I personally achieve this on my firetv is by sideloading and running "Samba FileSharing", that will do exactly what your trying todo there.
2. Until you said that I had no idea that adbFire even offered this kind of feature and have never used it. I would have to play with it but assuming its doing things the same way then unless your using the same mountpoint then no there should be no issues.
edit: The adbFire thing intrigued me so I took another look at it - please correct me if I am wrong though. From what I gather it does not actually mount a network share, what it does is start a samba server to share out your attached USB drive as a network share. This is very different than what my script does as it just connects network shares to your fireTV locally. My answers remain the same then, it shouldn't hurt anything. What I think you are looking for is probably more along the lines of a Samba Server running on the FireTV and you would only require my script if you need the other fireTVs to be able to see the shared out files as if they resided locally on it for apps to use.
Hope that helps
mattgyver83 said:
To answer your questions;
1. No, this doesn't implement samba which is what would make it seen on your network. The way that I personally achieve this on my firetv is by sideloading and running "Samba FileSharing", that will do exactly what your trying todo there.
2. Until you said that I had no idea that adbFire even offered this kind of feature and have never used it. I would have to play with it but assuming its doing things the same way then unless your using the same mountpoint then no there should be no issues.
edit: The adbFire thing intrigued me so I took another look at it - please correct me if I am wrong though. From what I gather it does not actually mount a network share, what it does is start a samba server to share out your attached USB drive as a network share. This is very different than what my script does as it just connects network shares to your fireTV locally. My answers remain the same then, it shouldn't hurt anything. What I think you are looking for is probably more along the lines of a Samba Server running on the FireTV and you would only require my script if you need the other fireTVs to be able to see the shared out files as if they resided locally on it for apps to use.
Hope that helps
Click to expand...
Click to collapse
Thanks. I wish I could speak a little more confidently about it it but at this time I've got more to learn.
Yes. That's exactly what I want--aftv to act as a server just like my computers do. I didn't fully understand that function on adbfire so I did install 3rd party smb software on aftv. There was a conflict. I needed to uninstall the software. Now I can transfer files over sftp, I can ssh to aftv but my Mac won't connect to the smb://adbfire/USB/ I tried cifs as well. Adbfire's script DOES support this but I can't get it working with Mac. Normally I'd say user error but I'm not the only one who can't do it. And it doesn't work on the new aftv I just bought so definetly not something I messed up.
I hesitate just because adbfire uses the same binaries as one of the popular smb softwares on play store. So I don't want to potentially break things trying to make it better. But this would be a great feature to get working. I know, as you said, your script doesn't do that. But if I get samba working as it should your script might be useful.
Sorry. I'm probably just filling this with words that don't all apply. Apparently I could benefit from what your offering but not until I get samba working correctly. And I'd be appreciative for any info to get that going but it MIGHT be a little off topic here. Thanks a lot for the quick detailed response!
Hey no problems glad I could help get you sorted out, I'll PM you with some more specific information that I think you are after that should get you where you want to be.
mattgyver83 said:
Sorry I thought I had already replied to this a few days ago but apparently I didnt hit submit or something. Yes, that is exactly what this script is for and for that use case it works very well.
Click to expand...
Click to collapse
Perfect. Any chance you can share how you actually install Fire TV apps to the SMB share? This would be great given the limited internal storage
Any chance you can share how you actually install Fire TV apps to the SMB share?
Click to expand...
Click to collapse
I don't use it in that way I just use it for accessing my current network shares from within applications on the fireTV, that is about all this script is intended for. To be honest I don't even think the way that the script is mounting the shares and in order for it to work would have to be implemented at the lower android levels so it could even properly boot that way. Its for the best though, networks generally are not as reliable as direct disk IO so I would suggest sticking to using internal storage, possibly checking out one of the external USB methods, and then just using your shares to house large data so you can basically make the most of all of your storage along the way. Hope this helps.
Edit: I just wanted to add that I looked back at our conversation and I see how I made it seem that might be possible. Sorry I clearly did not answer your question correctly for some reason what I read and what you said were two very different things, I was of the mindset that you were asking about loading ROMs persay over the network from within an emulation app and I have no idea why I thought thats what you were asking. That is not what your asking, no this wont load android applications over the network - Ill edit that post to make that distinction clearer.
mattgyver83 said:
I hacked up a script to mount a single Samba/CIFS share using adb shell directly on the firetv. This can be executed using any script manager (I use Rom Toolbox Pro's scripter) and if configured by your script manager it will in fact execute and mount the share on boot. If you have more than one share just use more than one copy of this script or feel free to hack it up yourself to extend it I am pretty much done with it at the moment but wanted to share.
Requires root and a script manager that can run scripts as root - also I have busybox installed on my firetv so that may be helpful as well.
https://github.com/mattgyver83/pyro
Click to expand...
Click to collapse
Works for me, thanks
Hi Mr Richard Dean Anderson
Magyver or O'neil?
..does this ciffs method depend on having fire tv i.e. a fire tv OS/kernel
What i mean is, can this script, potentially, be used, to work on "any" android, or does this only work for fire tv specifically?
banderos101 said:
Hi Mr Richard Dean Anderson
Magyver or O'neil?
..does this ciffs method depend on having fire tv i.e. a fire tv OS/kernel
What i mean is, can this script, potentially, be used, to work on "any" android, or does this only work for fire tv specifically?
Click to expand...
Click to collapse
Looks like it should work for android where you can enable adb, must have root and busybox.
Thank you for the script. Got it working using your example, but with one caveat I can't figure out.
So here's what I was trying to accomplish using this. I have a large library in Kodi so I was going to move all the data to my NAS and point Kodi to it. I had originally moved everything to a usb disk but just preferred the NAS route. The share mounts to /mnt/obb/myfiles and if I'm logged in as 'su' I can see the directory inside myfiles. Problem is anything stored inside myfiles isn't viewable outside of 'su'. How do I setup the share to be viewable by the shell acct?