Mount a samba share on Android (Marshmallow) - even possible? How? - Android Q&A, Help & Troubleshooting

I have a NAS (Samba share) which I would really like my phone's file system to be able to hook into whenever I am within wifi range. Ideally it should auto-mount the network share at boot up.
I have got ES Explorer and I can browse the Samba share, but if I want to watch a video for example, it needs to cache the entire file locally before it starts playing. I just want seamless integration by mounting the share so that my device sees it just like any other sdcard or internal memory. I have mounted shares on Windows and Ubuntu before, but can't seem to find any guides for doing the same on Android. The only stuff I could find was outdated and referred to Cifs Modules and Mount Manager, neither of which seem to be hosted anywhere reliable anymore.
I am running rooted MIUI Marshmallow if that matters.

wow... no replies. this makes me wonder if its even possible. has no-one tried to do this recently?

Did you find an easy solution?
I really want to do this too, but it seems you have to install apps to mount, and yes, I too realised that it was copying the files on the phone before playing.
I thought the whole point of streaming from a network share was to not use up space on the phone.
Anyway, I have used a sony xperia z1 and in its options, it lets you mount a network share as a local folder, so then any app see it as one, I wonder how it can be done in other OS like marshmallow?
Im using CM13 btw.

Related

[Q] Encrypted container for Android

I am using Truecrypt on my PC as well as Ubuntu 10.10.
I am looking for a similar technology in Android.
Like you can mount and unmount a container like a SD card.
Nearest I reached was, people suggesting hiding files, which is not secure, simply put the card in another machine, you will see everything.
Another suggestion was to use some secure files, but it can store some information only.
I cannot see any evidence in truecrypt forums, they are working on any android version.
I was just checking Folder Lock, they do have a iPhone version. Not that impressive idea. Needs to upload data online to see in iPhone!!!
We need better and safer ideas from Androids.
Crack on...
I have the same problem for Android.
The only programs I found that you can use are secretvault pro en FileCrypter.
I use the last one. It encrypts the folder you want, but it's a little bit slow for maps above 100 MB.
I don't understand that with more than 250.000 apps, nobody comes out with a program like truecrypt, etc, where you can mount the map as a container with his own driveletter.
Berny Boss said:
I have the same problem for Android.
The only programs I found that you can use are secretvault pro en FileCrypter.
I use the last one. It encrypts the folder you want, but it's a little bit slow for maps above 100 MB.
I don't understand that with more than 250.000 apps, nobody comes out with a program like truecrypt, etc, where you can mount the map as a container with his own driveletter.
Click to expand...
Click to collapse
technical limits maybe?
Just manually encrypting folders and files might be no problem, but truecrypt is different. files from a truecrypt storage are decrypted in memory and there's a driver that makes the native file functions of the OS think that the files are coming from a real storage.
I don't think you can develop such drivers for Android, at least not on non-rooted phones. It would have been possible on Windows Mobile. I mean, it has existed already: SafeGuard for instance.
Thank you very much for your suggestions
I tried both Filecrypter and secretvault pro on Samsung Galaxy S, but encrypted files were visible on gallery!!.
This was after encrypting the folder.
Does android 2.2 saves gallery viewed files in any cache or tmp folder?
Yes we are in a desperate need for encrypted containers, which can store anything.
If we loose phone, nobody will return it, we need to safeguard our personel files.
Let the thief format the sdcard and use it.
Encrypted Container for Android
Hi,
I did a project for a client implementing encrypted container for the android phone. Unfortunately I can't release any source. But, if somebody is willing to recreate this I can guide them. PM me for details.
i know this post is old, but is there anything available today that can mount veracrypt containers? i know of eds but its just awful. android should do this by now.

Possible? Trick dropbox into mounting as sdcard2

As far as I can tell dropbox for android doesnt make a mount point like it does on a PC, but the function is there. Could android be tricked into doing this?
Hello, i a, looking for for something like this aswell. The only posibility i know is dropsync, but this mirrors the dropbox to the local storage... It would be great to be able to Mount the dropbox like a network drive
Es file Explorer can add your dropbox folder as a share in its app. Actually it supports GDrive and Box too...
david279 said:
Es file Explorer can add your dropbox folder as a share in its app. Actually it supports GDrive and Box too...
Click to expand...
Click to collapse
Yes but the share in not available to other apps as if it were mounted as another external SD drive. I want to use an encryption software but I need to point it to the encrypted file. For that the dropbox folder needs to look like an android system folder.
ParrSt said:
Yes but the share in not available to other apps as if it were mounted as another external SD drive. I want to use an encryption software but I need to point it to the encrypted file. For that the dropbox folder needs to look like an android system folder.
Click to expand...
Click to collapse
I have been looking for something similar. so far, (apart from apps like es file explorer) the closest i have found is [puts on protective suit] this
https ://github.com/arekzb/dropfuse
now - yes, I know that it is linux and not android, but given the similiarities in the systems (ducks flaming posts), it may server as a planning base for a (much smarter/more knowledgeable) person to expand upon.
My thoughts (possibly invalid) would be that the mount point could be created at/after(?) boot via some sort of script - not sure if this is even possible, but if it could be done, you could then potentially modify for other storage services.
Purpose's could be to - stream media, store files for online viewing/editing/reading etc...
******
update - just tested and have not got it working on my ubuntu system - possibly due to a backend dropbox change (or just me not being able to follow instructions)
*******
okay - so tried again and it works (for ubuntu) - help read instructions and google - works wonders
needed to install setuptools and pyquery, and it only works while the terminal window is open (there may be a way to run as a service or something - but not checked yet).
so all good - so far.
Did some checking and there is python for Android around, so am thinking (once i get a chance) I will try to see if i can emulate the linux success.....
Great for Ubuntu, any chance for Android

[Q] How to access Android data from Touch in dual-boot.

I set up the dual boot on my Maguro, and I want to have a shared directory to drop my music into that will play on both Ubuntu touch and CM 10.2. However, I cannot find the ubuntu data folder from Android. I understand that there is supposed to be an ubuntu folder in /data from the android side, but I don't see it. On the Ubuntu side, I can see everything in my home folder, but when I go up to filesystem, I see nothing, and can't go any further up. Any ideas?
i used ES for this. check root explorer then go up to /data/. you'll find ubuntu's user & system data folders. as for ubuntu, since /data is mounted there must be a way to see the files in android. i think with root permission you might be able to do it . my terminal app doesn't work (trusty r79, already a thread for it) and my ssh connections are rejected. i'll report back when i get it to work
there should be a way (using root ofcourse) to make both OSes see each other's user space (again after i get my terminal working i'll see if i can find something)
ES worked well for this. Once I found /data/user-data/phablet/Music, I just moved all my music into it, and set a custom path in VLC to point there. It's not as nice as being able to share the whole user space between OS's, but it works well enough for me.

cifs.ko module / Busybox / mounting CIFS shares

Hello all. In the last 24 hours I've racked my head against a wall and I can't seem to get past this. So some pointers would be very welcome.
Backstory - Been doing backups of Titanium Backup onto my Nexus 9 (16GB internal storage) and I'm running into problems with running out of storage space. So I thought I'd look into doing a CIFS share mountpoint to my tablet and backup directly to the CIFS shares on my FreeNAS box. I figure a couple TB of storage is enough to store my Titanium Backups.
So first I read about CIFS Manager. Seems it may be discontinued or not functional on Lollipop.
Then I read about Busybox. Very cool, I think I'd marry Busybox if it was a woman. It seems so amazing I bought the Busybox Pro version.
So I tried to mount the CIFS/SMB share but I keep getting the dreaded "no device found" which means the cifs.ko isn't loaded. Apparently it's not in OS by default, so I need to compile it. (I'm not against someone giving me the .ko file, but I'd rather learn how to fish for myself than expect someone to give me a fish when I'm hungry) I have no clue how to compile it or even where to start to get a resemblance of the necessary steps. My experience is mostly Windows and FreeBSD, with only enough knowledge of linux to be very dangerous. I've tried searching all over for some kind of guide, pointers on what files I need to get, where to go to compile, etc but there seems to be nobody out there with any kind of good guide, even an outdated one I could use to fill in the blanks. I was hoping to put together a fairly detailed guide that includes steps on how to compile the cifs.ko yourself from source as well as mount your share on the device for whatever purposes you desire. But I'm finding that there is basically no info online on how to do this, where the source is, how to compile it, etc. If you know how to do this and are willing to help me write the guide (I've written quite a few articles on FreeNAS and ZFS) I'd be more than happy to give you some credit. I have no doubt lots of people will use the document once it is created.
Alternatively I considered doing the same with NFS but again I'd need to compile the nfs.ko module, so I'm stuck at the same point there.
Anyone have any pointers on how to do this? Or, anyone have any other options that will work just as well that allow me to not have to store the actual titanium backup files locally?
About the only thing I can find is someone saying that you need a Linux VM, the kernel sources, sdk, some knowledge in unix, and patience. But hell, I don't know if by saying "kernel sources" they are talking about the kernel source for the Linux VM or the Android OS I'm running (or both), if the SDK is referring to the Android SDK or not, etc.
Thanks in advance!
Joshy8 said:
Or, anyone have any other options that will work just as well that allow me to not have to store the actual titanium backup files locally?
Click to expand...
Click to collapse
I was in the same boat as you a few years back. Basically I would root, find a kernel that had the CIFS module, then use CIFS Manager to mount the shares. I would also use rsync & busybox. This stuff is tricky. The command to get Android to mount the shares, the CIFS module and kernel always has to be up to date, changes in busybox, etc.. I dreaded Android system updates. It starts to feel like a Rube Goldberg machine.
I started using an app called FolderSync (there's a paid version, too) and never looked back. It works quietly in the background and have never had any problem with it. It's one of the best apps on Android.
I do thank you for the advice, but that's how I've been doing backups for several years. I bought it back when the original Droid phone came out.
However in this case, since my tablet has only 16GB of internal memory and you can't easily have permanently attached external storage I'm forced to come up with an alternative of some kind.
I have had some problems lately with FolderSync. Not sure exactly what the problem is, but FolderSync seems to have issues from time to time and it gets stuck on random files and never finishes, even if left to complete for several days. I've had this issue randomly on 3 different devices, and one of my friends that also uses FolderSync has had the same issue on his. So I'm pretty sure there's a bug of some kind in FolderSync that sometimes breaks it.
Anyway, since my tablet has only 16GB of internal memory and you can't easily have permanently attached external storage I'm forced to come up with an alternative where the data is never actually stored on the device itself. :/
I know this isn't the answer you were looking for, but have you seen these:
http://www.meenova.com/st/p/mrg2.html
It's the closest thing I've found to convenient usable external storage.
Sent from my Nexus 9
The Fire-Ice kernel (http://forum.xda-developers.com/nexus-9/orig-development/kernel-fire-ice-t2930451) supports CIFS. I use it to connect to my SAMBA linux server. I also did the following, not sure if both of these are necessary: set SELinux to permissive with SELinux Mode Changer, and use the "patched" version of CIFS Manager (found on this forum).
I'm still hoping somebody will just write or cross-compile a FUSE module (like SMBnetFS) that works on all rooted devices, so we don't have to rely on custom kernels/modules anymore...
Since you asked for alternatives, you can also just get an OTG cable and hook up a USB stick or external HD to your phone (needs root and an app like StickMount).
Thanks for the reply. Been a bit busy with life stuff and just finally got to sit back down and look at this again.
I agree that a FUSE module would be useful for something like this. I don't have a need for high performance with regards to this problem, so a FUSE module would seem very appropriate.
I do have an OTG cable and I do have a 64GB thumbdrive I can use. I was just hoping for something that was a little non-obtrusive and passive so that I'm not actively having to be involved in the backup process itself. As soon as someone in the meat-world has to take active steps to make a backup every time, that's when backups typically stop happening, and then the next thing that happens is data loss. So I'm trying to remove myself from the equation as much as possible.

microSD card access in Android Apps

Hello,
I'm considering purchasing the Samsung Chromebook Plus when it gets released and I don't to get anything wrong considering I live in the EU and will be importing it from the USA shall I decide to make this purchase. What finally pushed to towards purchasing a Chromebook is Android Apps and Play Store availability. However, as I understand, the only folder Chrome OS and Android actually have in common and can both access in the Downloads folder, which means no access to microSD card. In any case, if a purchase a chromebook, I plan to put it in Developer Mode, for multiple reasons among which is the ability to install a APK. My question is : is it possible, when in Dev Mode, to create a symlink (the way you create a symlink in *NIX systems) in the Downloads folder that leads to the microSD card and access the external storage from Android Apps (one of the main reason I want to do that is sync Dropbox and OneDrive files to the microSD) ? I thought I read it was possible sometimes in late 2016 but I can't seem to find it anymore.
Thanks in advance for your help.
There's a way to mount it as read only: http://nolirium.blogspot.com/2016/12/making-sd-card-content-accessible-to.html
Or if you get root within the android application it may work: http://nolirium.blogspot.com/2016/12/android-on-chrome-os-rooting-shell.html
Wow thanks! That's not even very difficult (at least for read access). Only problem is when suspending. Maybe that could be solved by automating the process!
Do you know if it is possible to manually mount ext4 sd cards in chrome os ? I just thought you might be unable to write due to folder ownership but maybe setting it manually would help.
Do you what the unix username of Android user is ?
EDIT: there is so little information about it that I believe I'll have to try it out myself

Categories

Resources