[Q] Can't mount samba share in Android Lollipop - Nexus 7 (2013) Q&A

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

Related

CIFS issue

Hi,
I am using CIFS manager and ES File Explorer. The first time I mount a share, it will open in ES as an empty folder. I'd have to unmount and remount, open it again. Good chance it will show the content but not always.
When it does show content, if I try to install an APK in the remote folder, it will generate error "there was a problem parsing the package". However, I can copy the file to a local folder and then install successfully.
And I can't seem to write to any mounted folder, regardless the permission I used.
Any way to fix this?
I am not sure if these are related to
Fix for empty app-mounted directories (CifsManager, etc.) in Android 4.2. Does anyone know if it's in this build?
Thanks
You can open CIFS shares directly from ES File Explorer.
Greek2me said:
You can open CIFS shares directly from ES File Explorer.
Click to expand...
Click to collapse
Yes. However, it will copy it to local if you try to read the file.
For something that's properly mounted, it should not happen that way -- it should be transparent to the program.

[Q] 4.3 can not mount ext4 hdd manually via otg cable

english is not my mother language, so i my not describ clear.
when my device system version is 4.1.2, i can mount my hdd(external power) in terminal emulator, use command like this:
mount -t ext4 /dev/block/sda1 /mnt/UsbDriveA
after run the command above, root explorer and mx player can read and write my hdd via otg cable.
when system update to 4.3, i can run that command, terminal emulator can view file list, but root explorer can no view file list any more, there is a empty fold on root explorer 's UI.
there is the same problem in my friend's device.
who can tell me, how to mount my hdd(ext4 format, external power) in android 4.3(rooted,busybox installed).
Wut
Same issue here on my note 2. Tried 7 different roms but got me nowhere including stock and obviously trying to connect with alot of mounting apps... still useless.
It seems to work, but every time I connect the same drive it gives it another name like (driveB) while driveA is still there with the same files but I am unable to modifi it. So like this it will go to DriveZ... damn.
I finally went back to 4.1.2. A bit sad, but what can you do?
bamboothin said:
english is not my mother language, so i my not describ clear.
when my device system version is 4.1.2, i can mount my hdd(external power) in terminal emulator, use command like this:
mount -t ext4 /dev/block/sda1 /mnt/UsbDriveA
after run the command above, root explorer and mx player can read and write my hdd via otg cable.
when system update to 4.3, i can run that command, terminal emulator can view file list, but root explorer can no view file list any more, there is a empty fold on root explorer 's UI.
there is the same problem in my friend's device.
who can tell me, how to mount my hdd(ext4 format, external power) in android 4.3(rooted,busybox installed).
Click to expand...
Click to collapse
Grab wanam and set selinux to permissive...I couldn't get paragon ntfs to work until I did this

Mount samba share

I am trying to download to my samba share through xbmctorrent plugin but i get an error that it cannot download to unmounted share.
is there any way of mounting the sambashare in the ftv system so it will see it as an internal folder or something ?
I am also looking to do the same thing for retroarch. The 8GB internal storge aint big enough for all the roms
quacka said:
I am also looking to do the same thing for retroarch. The 8GB internal storge aint big enough for all the roms
Click to expand...
Click to collapse
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
rooted
gujju said:
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
Click to expand...
Click to collapse
yes i have rooted it and yes i see it in xbmc. the problem is with xbmctorrent plugin that cannot download to an unmounted share drive.
gujju said:
Did you root your fire tv? Did you see drive in xbmc? If not then you have to root it then mound hdd. Follow following guide.
http://forum.xda-developers.com/showthread.php?t=2783805
Click to expand...
Click to collapse
Think this is missing the point, the issue is attempting to mount network shares as native paths, not within another app. The link provided only discusses USB drives, not network.
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
Thanks hmagoo, that worked for me finally.
I think I was trying it via SSH hence never got it to work.
How do I make the share remain after a power cycle?
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
Please make a guide
If using this code using ADB allows us to mount network drives a little more elaboration needs to be done..
Vylle said:
Please make a guide
If using this code using ADB allows us to mount network drives a little more elaboration needs to be done..
Click to expand...
Click to collapse
I only tried using samba shares because I wanted to launch MXPlayer as an external player to play xvid files through xbmc, but I found it was easier to just disable libstagefright and mediacodec in xbmc settings and the xvid files play smoothly.
if you used an app like Script Manager you should be able to run a script upon boot-up that makes the directory and mounts the share.
hmagoo said:
I only tried using samba shares because I wanted to launch MXPlayer as an external player to play xvid files through xbmc, but I found it was easier to just disable libstagefright and mediacodec in xbmc settings and the xvid files play smoothly.
if you used an app like Script Manager you should be able to run a script upon boot-up that makes the directory and mounts the share.
Click to expand...
Click to collapse
I have installed tasker. I set the command to run on boot as Shell Script but it doesn't seem to work. it seem only to work when running via adb shell for me. No idea what I am doing wrong
I have to apply the script after every reboot also. Has anyone found a way to keep it after boot?
hmagoo said:
Code:
mount -o noperm,unc=\\\\192.168.0.21\\putsharenamehere,username=putusernamehere,password=putpasswordhere -t cifs none /mnt/obb/nas
the mount command has to look like that, in order for it to be seen by apps I had to mount to /mnt/obb/nas (make the nas directory)
that may not be your solution but it should help, I have seen people say they can set up a mounting app to use those parameters.
FYI, if you are going to try the mount out from the command line you need to be in adb shell, not an ssh session.
you can find answers like this in search as well.
Click to expand...
Click to collapse
dont want to get too off topic but what if you are using NFS. since that doesnt require a username and password what would the command look like?
mejdam said:
dont want to get too off topic but what if you are using NFS. since that doesnt require a username and password what would the command look like?
Click to expand...
Click to collapse
same sort of thing
mount /mnt/obb/nas 192.168.1.23:/path/to/share
adionita said:
I have to apply the script after every reboot also. Has anyone found a way to keep it after boot?
Click to expand...
Click to collapse
Sorry to bump this old thread but I'm also in the need of this,
Have you figured out a way of auto remounting the share???

mount cifs share from nas

My firetv is rooted and has busybox and terminal emulator loaded.
I want to mount a cifs share from my nas.
1. The following does not work and fails with "invalid argument" error:
mount -t cifs username=<username>,password=<password> //192.168.0.1/<sharename> /mnt/obb/<foldername>
2. However, the following works, mounts and I can see the folder contents inside the terminal emulator:
mount -t cifs unc=\\\\192.168.0.1\\<sharename>,username=<username>,password=<password> none /mnt/obb/<foldername>
But, I cannot see the shared folder contents outside the terminal emulator - i.e., say in ES file explorer or in xbmc.
Can someone help me how to fix this - i.e., how to do a proper mount. Thanks.
ps. the first mount given above works great in linux. thanks.
EDIT on Nov 25 2014: Now I am on rbox custom rom 51.1.4.1 and the above same command works like a charm via adb. No idea how though. Now, my xbmc can use the mounted folder and play videos flawlessly.

[Q] mount shared folder in android

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.

Categories

Resources