Mounting smb share - One (M8) Q&A, Help & Troubleshooting

Hello,
I want to mount a shared Folder of my Fritzbox.
I'm searching for a while now, I found out i need the cifs.ko module but all i can find is for other devices, isn't there a way for the M8 despite a custom kernel?
As far as is remember i managed it with my One S with something like "busyboy mount -t cifs //Ip.ip.ip.ip/sharename /mnt/name -o user=xxx,password=www" But all i get is "failed: No such device"

ElementalX supports CIFS: http://goo.gl/jFKhfy
You can use ES file Explorer (without cifs module) to enter the drive of your Fritzbox, if it's a smb mount in your network

Related

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.

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] 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.

[root] busybox mount -t nfs works ...but why can I see the share only as superuser?

Hi. I have a rooted aftv 1 running 5.2.1.1 with busybox installed.
I try to mount my nas via nfs.
I open up a terminal via adbFire,
#su
#mkdir /mnt/obb/nas300
#busybox mount -t nfs -o nolock,ro 192.168.0.300:/mnt/Share /mnt/obb/nas300
That will mount my share to nas300 where I can access it as root.
But how can I access that share, that directory as a normal user? (I want to access it from within retroarch)
Because when I #exit the superuser, and look into /mnt/obb/nas300, it's empty.
Also #mount doesn't show the share anymore.
As soon as I become #su again, the nas is still mounted and the share is still there.
Please help, I'm too stupid, it's killing me.
Do I have to set another mount point on the aftv? Chose a more convenient folder? Give the folder other rights?
I actually have the exact same question.
Did you ever find a solution?
Thanks!

Categories

Resources