[Q] mount shared folder in android - Galaxy Tab 3 Q&A, Help & Troubleshooting

Hi guys,
I have some problems with the mount options in android.
I often use ES File Manager but it's very annoying to always download the media i need.
I want to mount the shared folder in my tablet, but first of all my specs:
-SM-T311 (3G+Wi-Fi) with stock rom and rooted
-Apparently no cifs.ko / smb.ko /nfs.ko module inside /system/lib/
My shared folder is available through SMB (SAMBA) and NFS (Network File System) but none of these two are working via mount command in terminal, already tried with thousand of combination.
Even SSH/SFTP is available if this is the only option for me.
With Ubuntu i'm easily able to mount the folder in the system, but with android it always lack of functionality.
Can anyone help me?
Do i need to add the module in my system? If yes, how? Can i extract the module from the CM rom and copy/paste to my directory?
Thank you guys, I'm really looking forward for some help.

Related

[Q] Permanently mount cifs share on KF2?

Hi there!
My goal is to playback any content files from my home (local network) NAS on KindleFire tablet. Current ROM is CyanogenMod RC5.
Is there an easy way to AUTOMATICALLY mount my network share?
The only thing I've got working is manual mount with CIFS Manager. After reboot I have to open the app and activate my share. This sucks.
- which files do I need (cifs.ko ....?), found tutorials for other androids than CM, so the linked files may be incompatible
- how to install them
sorry for bad english I speak german
Thanks so far
Download es file explore, you can open cifs and save them.
Needs root.
Sent from my Amazon Kindle Fire2 using xda app-developers app
Other apps still don't see the network files, like photo and video players. I know it is possible to mount network shares into local folders. But at boot without having to open the cifs app?
Not sure if this will help:
http://reviewlagoon.com/nexus-7-tutorial-mount-network-share-as-a-drive/
I found all kinds of stuff on google that may help...
--
Sent from my mind to your screen.
Thank you for the link. Very detailled. I'll test it soon.
Hightideboots said:
Thank you for the link. Very detailled. I'll test it soon.
Click to expand...
Click to collapse
Please let me know if it works.
It looked good
Sent from my SGH-I727 using Tapatalk 2
I found some threads explaining a procedure for google Nexus 10. You need a custom ROM + kernel with built-in CIFs module. So it is definitely possible to mount shares automatically, even with JB 4.2.2.
My problem is I have no idea if a ROM, designed for other Tablet, would run on KindleFire2.
Hightideboots said:
I found some threads explaining a procedure for google Nexus 10. You need a custom ROM + kernel with built-in CIFs module. So it is definitely possible to mount shares automatically, even with JB 4.2.2.
My problem is I have no idea if a ROM, designed for other Tablet, would run on KindleFire2.
Click to expand...
Click to collapse
Not sure if i was cery clear, ES file explorer will save a cids file share location including cerdentials, from thre you can open any type file your device is able to open like photos, word docs, music, etc. Its not necessary to copy the file to the device, you can open it straight from the cids file share location. Same with various cloud offerings like box.com and dropbox.
https://play.google.com/store/apps/...id.pop&feature=nav_result#?t=W251bGwsMSwyLDNd
Tried to load cifs modules via mount manager, no success. Now looking for cifs enabled kernel. In the above linked thread they say cifs.ko is included in CM10 but didnt find any in my installation.
*bump*, any News?
I'm looking for mounting to a mount point like /mnt/cifs too, accesing smb through external file managers works, but i need a destination for a app (Manga Watcher Application), which uses the Basic or a own simple simple file Manager.
I tried CifsManager and Mount Manager, I can see the share and navigate through, but no luck with writing.
In System/lib/modules are some modules, but no cifs.ko,
How can i try to build cifs.ko in my kernel?
I'm using CM 10.2 latest nightly with Kernel 3.072, Android 4.3 from Hashcode.
But i have not 10 posts to ask in developement thread :< ^^
Thanks in advance,
Tim.

Mount cifs shares

I have a stock rooted Note 2 that has android 4.1.2 on it, and I'm trying to get mount manager to work.
I've been doing as much reading as i can 'think' I may need some additional cifs modules to mount the shares.
Is anyone able to mount shares, and explain how thy did it? I really want to mount to a local folder so that various apps (movies, etc) see them as a local folder.
I'm open to changing roms, or whatever it takes. just want to get it working.

[Q] Can't mount samba share in Android Lollipop

In android 4.4 I used the ElementalX kernel and cifs manager to mount samba shares so I could watch videos from WiFi.
Then I've upgraded to Lollipop, rooted, installed the ElementalX 3.2 kernel but when I try to mount a dir with Cifs Manager and Mount Manager in my tablet, it says it has mounted the share sucessfully but when I try to open the files I want all I find is an empty folder. I tried looking at the folder through the Terminal Emulator or through my PC but the folder is empty in all of them.
Is there any fix for this? Does anyone know if it's a kernel problem or a Lollipop problem?
Download terminal emulator and run the two commands below
su
restorecon -FR /data/media/0
SwoRNLeaDejZ said:
Download terminal emulator and run the two commands below
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Just did that, it said it loaded some file_contexts. But it didn't solve my problem
Wait, is this otg?
SwoRNLeaDejZ said:
Wait, is this otg?
Click to expand...
Click to collapse
No, I'm not trying to mount an usb otg device. I'm trying to mount a samba share using the Wi-fi network. I can mount usb sticks using otg just fine.
What is the exact path of the directory?
SwoRNLeaDejZ said:
What is the exact path of the directory?
Click to expand...
Click to collapse
Share path: 192.168.1.112/Teste
I tried these two mount points:
Mount point: /storage/emulated/legacy/cifs/Teste
Mount point: /mnt/cifs/Teste
Can you get to it from es file explorer/lan? I watch vids from a nas drive and windows samba shared folders all the time. If the folder opens and you click on a file, es fx will give a choose menu to open the file with MX player or others if installed.
matt55555 said:
Can you get to it from es file explorer/lan? I watch vids from a nas drive and windows samba shared folders all the time. If the folder opens and you click on a file, es fx will give a choose menu to open the file with MX player or others if installed.
Click to expand...
Click to collapse
It worked! I didn't know you could watch videos from Es File Explorer... Many thanks to you!
RodrigoDavy said:
In android 4.4 I used the ElementalX kernel and cifs manager to mount samba shares so I could watch videos from WiFi.
Then I've upgraded to Lollipop, rooted, installed the ElementalX 3.2 kernel but when I try to mount a dir with Cifs Manager and Mount Manager in my tablet, it says it has mounted the share sucessfully but when I try to open the files I want all I find is an empty folder. I tried looking at the folder through the Terminal Emulator or through my PC but the folder is empty in all of them.
Is there any fix for this? Does anyone know if it's a kernel problem or a Lollipop problem?
Click to expand...
Click to collapse
For future reference, fix here: http://forum.xda-developers.com/showpost.php?p=58032907&postcount=2

MOUNT command fails in FTV2

I used to able to mount (using either NFS or CIFS) a shared folder on my NAS (Western Digital MyCloud) on FTV 1.
IP of the NAS: 192.168.5.6
Mountpoint on FTV: /mnt/obb/WD
I could use either of the following commands on FTV 1:
busybox mount -v -o udp,async,nolock,noatime,nodiratime,soft,intr,vers=3,rsize=65536,wsize=65536 -t nfs "192.168.5.6:/nfs/Devices" "/mnt/obb/WD" (NFS)
busybox mount -v -o noperm,unc="\\192.168.5.6\Devices",username=public,password=public -t cifs none "/mnt/obb/WD" (CIFS)
On the new FTV2, rooted, with Busybox and running RBox's latest ROM, both the above commands (running under SU) gives me an error "Device Not Found"... I searched and found that folks talk about these 3 things that might affect the mounting..
1. Related to SELINUX.. (I have tried "setenforce permissive", but that does not fix it)
2. Related to new permission paradigm on Android 5.1 where writes to external devices is prohibited by default. Not sure how it would affect mounting, but.....
3. ROM has no CIFS/NFS modules loaded.
Another data point, I can navigate to my shared folder on NAS using ES File Explorer, though. I also tried mounting to a different location "/mnt/sdcard/WD" instead of in "/mnt/obb", but that doesn't work either.
I have another FTV in a different room (first generation rooted FTV running the last pre-rooted ROM from RBox for FTV 1) and the above commands run fine. So my guess it has to do something with Lollipop... But I am not sure about the reason and I don't know how to go about fixing it. Any ideas would be very welcome. Thanks.
It will probably be the write permissions on lollypop mate, if say for instance I wanted to download something to my sd card (internal,external or usb device) via kids it won't write! But if I download it within inside the kodi files by making a new folder & set the download there it will download, & then I can transfer it to my internal, external or usb device. This is probably why you can't use your Nas in that directory? I don't know how or what Nas is properly (I'm thinking its a storage sharing unit which can be pushed or received?) Try what I said & maybe you might have some luck doing it this way?
Hope this helps, If so press that thanks button.
@dbdoshi
AFTV2 don't support any Network File Systems on kernel level (if I'm right understand from kernel source)
Ok, I guess the support for NFS or CIFS is not there in FTV2. I ran "cat /proc/filesystems" and I don't see NFS or NFS4 or CIFS... On the older FTV1, I do see them in the filesystems file. Wow. Any workarounds?
I even tried mounting using CIFS to a test shared folder my Windows 10 laptop and thats a no go too..
This is for Kodi. I move all its files to the NAS to run it and save the space on FTV. I have now started to use SDCard1 location to accomplish it as NAS does not seem to be an option in FTV2. But the strange thing is, if I add a source in Kodi using "Network File System (NFS)" option, I can navigate to my NAS fine.. Any way to know the command Kodi uses when you add a source like that?
ES File Explorer (for example) can see network shares too
Sorry to revive this old thread but I'm running into the same problem. I want to mount my network share to the fire tv 2 but neither cifs nor nfs worked... It used to work fine with my old firetv.
Any work arounds?
This is a very old thread, but I am bummed I can't run a network file server on my ftv2 stick and have to resort to using DLNA which just isn't quite the same.

CIFS mount on nougat systemless root SuperSU

Anyone successfully mounted a cifs share on 7.1.2 that's visible to all apps?
I tried patched cifs manager and --master-mount command from terminal, but all I get is an empty folder.
My setup:
Nexus 5x on PureNexus 7.1.2
FrancoKernel (cifs support)
SuperSU systemless root
I can create the mount but it's just an empty folder and I have received permission on it.
Also tried mount manage, but I can't load the modules in settings.
have you found a solution?
Nope. Seems it's not possible ATM
Lord_Flaya said:
Anyone successfully mounted a cifs share on 7.1.2 that's visible to all apps?
I tried patched cifs manager and --master-mount command from terminal, but all I get is an empty folder.
My setup:
Nexus 5x on PureNexus 7.1.2
FrancoKernel (cifs support)
SuperSU systemless root
I can create the mount but it's just an empty folder and I have received permission on it.
Also tried mount manage, but I can't load the modules in settings.
Click to expand...
Click to collapse
Works fine with a kernel that supports CIFS.
Fransisco's kernel supports CIFS.
I have tried francos kernel. But it does not work. See.. I'm trying to mount a folder to be used over SMB. I don't now anyone that has successfully used their phone as a SMB server in the scenario I intend to.
To be specific:
I have a PS2 running FMCB (FreMCBoot) for playing backups of my games. I have a HDD shared on my network thru SMB. This runs great.
My main goal is to be able to use a folder inside my Nexus 5x as a portable version of this HDD. To put a few backups and play on my Consoles.

Categories

Resources