Marshmallow usb otg mounting and media players - Nexus 6 Q&A, Help & Troubleshooting

Hi all
6.0 mounts to /mnt/media_rw/ but I can't seem to get any media players to see it. I tried creating a symbolic link in /storage/emulated, but I get an error with root explorer about symbolic links not being supported. Stickmount works fine as it mounts to /sdcard/usbstorage/ but I'd rather not use it. Any ideas?
I'm using Chroma (10/19), not that it really matters. But, battery life is amazing if anyone's interested. I'm now getting about 5.5hrs screen on time from about 3-3.5.

kos26 said:
Hi all
6.0 mounts to /mnt/media_rw/ but I can't seem to get any media players to see it. I tried creating a symbolic link in /storage/emulated, but I get an error with root explorer about symbolic links not being supported. Stickmount works fine as it mounts to /sdcard/usbstorage/ but I'd rather not use it. Any ideas?
I'm using Chroma (10/19), not that it really matters. But, battery life is amazing if anyone's interested. I'm now getting about 5.5hrs screen on time from about 3-3.5.
Click to expand...
Click to collapse
The FUSE file system used for /sdcard does not support symlinks, correct. You can only really do this on EXT4 file systems.
Stick mount and Folder mount will work with root and at the moment you have no choice other than to use them. That is until all the media player apps are updated to look in /mnt/media_rw for data (because at the moment they are only coded to look at /sdcard)

Wish someone to make an Xposed module or something. I really don't understand why marshmallow doesn't make otg mounted like lollipop.

Related

cifs module for 3.1.10-g52027f9

================================(updated 25/07/2012)
recompile new cifs.ko based on code from linux kernel 3.2.1 (with asynchronous read support).
there is 2 extra function needed in part of the kernel (which is not in the current 3.1.10 kernel).
however that doesn't stop it from working.
i am not sure under what conditions those 2 function will be called. when its being called, it might give error.
apart from that, initial test shows promising result. doubled the read speed.
please test.
do note. YMMV
new cifs.ko has a md5sum of
280303e69a92cd56f180956c838edbbd
in
cifs-async.zip
thanks.
===================================
updated,
i have re-compile a new cifs.ko with modified larger rsize, hopefully will have better read performance,
give it a try.
note: it appears that your NFS server needs to have support as well. so check out if you can set it to a bigger send buffer to have a faster read speed.
the md5sum for the new cifs.ko is
7a235de92c855b2933402dd1c62610fe
in
cifs_rsize_128k.zip
===========================================================
(require root to work).
i have created cifs module for the new 4.1.1 kernel for nexus 7
3.1.10-g52027f9
use this in conjunction with cifs manager
both
md4.ko and cifs.ko must be loaded to work.
as for the native language support (nls_utf8.ko), its down to yourself.
to use it,
under cifsmanager (when creating a new share)
set options "iocharset=utf8"
have fun streaming video!!!
qwerp_ said:
(require root to work).
i have created cifs module for the new 4.1.1 kernel for nexus 7
3.1.10-g52027f9
use this in conjunction with cifs manager
both
md4.ko and cifs.ko must be loaded to work.
as for the native language support (nls_utf8.ko), its down to yourself.
to use it,
under cifsmanager (when creating a new share)
set options "iocharset=utf8"
have fun streaming video!!!
Click to expand...
Click to collapse
I guess if I have to ask I shouldn't do it, but but what does this do?
Cgc2 said:
I guess if I have to ask I shouldn't do it, but but what does this do?
Click to expand...
Click to collapse
I may be wrong, but I believe it's to get CifsManager to mount your windows network shares automatically when rebooting your Nexus 7, so you don't have to mount a share manually every time.
Looking forward to trying this out when I get my Nexus 7. Thanks
Cgc2 said:
I guess if I have to ask I shouldn't do it, but but what does this do?
Click to expand...
Click to collapse
this allow you to mount windows drive, or even network enabled storage.
so that your video player like dice player or vlc can stream/play the file as its local.
its similar to using //192.168.1.1 on windows.
Salty Wagyu said:
I may be wrong, but I believe it's to get CifsManager to mount your windows network shares automatically when rebooting your Nexus 7, so you don't have to mount a share manually every time.
Looking forward to trying this out when I get my Nexus 7. Thanks
Click to expand...
Click to collapse
it doesn't mount automatically, but provide the interface to mount drive easily.
Wow, interesting and thanks for educating me on this use. However, why not use Airdroid and achieve similar results? Still learning, Thx folks.
We only have 6/15 GB to work with. Now, for me I can have 500GB and the apps will even index it for me just as if there were a folder with infinite amount of space on my sdcard
Sent from my Nexus 7 using xda app-developers app
this is basically similar to
External Storage Device Compatibility Review
http://forum.xda-developers.com/showthread.php?t=1766260
where instead of the "mounted" drive comes from your usbOTG cable reading from a external hardisk or card reader,
your mounted drive is a shared drive on your network. NAS drive, windows PC, linux, etc, anything that supports
Common Internet File System (CIFS)
http://en.wikipedia.org/wiki/Server_Message_Block
you will need to know abit of linux/android system to properlly use this,
make sure that your "nexus 7" about page, under kernel version matches "3.1.10-g52027f9", meaning you will have to OTA to 4.1.1 JRO03D to be able to use this.
Mate this is exactly what I came looking for. Awesome.
I use cifs manager on all my android devices because ES file explorer insists on fully caching apks before installing them doubling the time to do things.
Been setting up the missus nexus and it was a bit hard to explain to her how to get to the smb movies/series in ES file explorer to stream stuff.
Installed this, mx player and MovieBrowser HD from market and she now only needs to go into MovieBrowser and she has all her movies/series with lovely artwork and synopsis,and just clicks on anything and it automatically plays in mx player.
Good job sir, I don't need a custom kernel just for cifs.
Forgive me for being naive, is this a CWM flashable zip?
if not, what folder do i need to place these modules?
Demented-Idiot said:
Forgive me for being naive, is this a CWM flashable zip?
if not, what folder do i need to place these modules?
Click to expand...
Click to collapse
I created a folder in system/lib/ called modules and gave it permissions rwxr-xr-x
I extracted the 3 files into it and gave them each permissions rw-r--r--
Then install cifs manager from google play.
In cifs manager go to settings.
Click mount point prefix and type /storage/sdcard0/Shares
Tick on "load cifs module"
Tick on "Load via insmod"
Click path to cifs.ko and type /system/lib/modules/cifs.ko:/system/lib/modules/md4.ko:/system/lib/modules/nls_utf8.ko
Go back to main cifs manager page and add new share.
Under share path type "your ip of computer with shares on/sharename of folder on computer" eg. 192.168.0.6/Movies
Click under mount point and it will fill it in for you.
Under username put your username for PC that you log in with
Under password put the password that you log into your computer with.
Under options type ioch****t=utf8 (they have now banned a word that is within this word. It should be i o c h a r s e t without the spaces.)
Click save share.
Now when you click on the share name in cifs manager it should turn the light green to the right of it. If it doesn't you have done something wrong.
Now go to any file manager and go to your sdcard on tablet and there should be a "Shares" folder and inside should be the share you set up.
You can now use that as if it was a local directory. If you restart the tablet you will need to go into cifs manager again and click on the shares you want until they turn green.
HTH
thanks, very detailed response!
Demented-Idiot said:
thanks, very detailed response!
Click to expand...
Click to collapse
You're welcome.
Any probs give me a shout. As long as you know how to make a share on PC the last instructions should sort you out.
Whenever I set "iocharset=utf8" in options, I get segmentation fault when trying to mount a share. If I remove that option, then it mounts fine. But filenames in non-English characters (Chinese in my case) will either become garbage or not show at all.
Any one got "iocharset=utf8" to work? I've verified that all three modules are loaded correctly by cifsmanager.
flumpster said:
Under share path type "your ip of computer with shares on/sharename of folder on computer" eg. 192.168.0.6/Movies
Click to expand...
Click to collapse
Note for some incomprehensible reason CIFS manager requires a static IP address in the share specification.
(Just as described above) Do not assume hostnames will work here. They will not.
Thanks for the guide. Getting this feature turned up was high on my list.
One word of warning because I know a mate of mine did this by accident.
If you have a share set up on your computer with full read/write access and then wipe your SD card on android (or just delete the shares folder in your file manager) while the share is mounted in cifs manager then it will also delete the folder on your computer.
I don't have this worry because all my shares on computer are set up as read only to stop the kids accidentally deleting stuff.
Just a warning
Thanks for the instructions flumpster, helped a lot.
Might also advise on mounting outside of /sdcard, was seeing a lot of LAN traffic and Nexus 7 activity - turned out a number of apps were creating thumbnails and/or indexing items that was on my NAS drive. Poweramp, Gallery, QuickPic etc.
File Manager HD (Tablet) can play / view any type of file over SMB. Very simple.
Hemidroids said:
File Manager HD (Tablet) can play / view any type of file over SMB. Very simple.
Click to expand...
Click to collapse
So can ES file explorer which we already mentioned but that is not what we want.
This makes the folder ( or folders ) appear local so you can add it into any other app directly (mx player, movie browser hd, gallery, play music, etc)
---------- Post added at 08:11 AM ---------- Previous post was at 08:06 AM ----------
Salty Wagyu said:
Thanks for the instructions flumpster, helped a lot.
Might also advise on mounting outside of /sdcard, was seeing a lot of LAN traffic and Nexus 7 activity - turned out a number of apps were creating thumbnails and/or indexing items that was on my NAS drive. Poweramp, Gallery, QuickPic etc.
Click to expand...
Click to collapse
I have not tested this but have you tried putting a .nomedia file inside the "Shares" folder after it is first created? In theory it should stop them apps doing that.
@ OP
Thank you! This is exactly what I was looking for. I don't even have my order yet (was merely hoping for CIFS support), but this is about the only thing that makes this 8GB tablet usable, IMO.
I will provide feedback once I get the tablet in hand and have some time to experiment with CIFS.
Just wondering how these mounts behave as the tablet is moved around in/out of WiFi coverage and between LANs.
Is everything well-behaved? Any gotchas I should be aware of?

Partition problems upgrade to 4.2

howdy yy'all
i have sucessfully upgraded my nexus 7 to 4.2 today but when using storage analyser i get error
unable to detect detect any valid sdcard or usb device
i have installed apps succesffuly with sd data being installed on the device
please can some advise the method i used for upgrade was
nexus toolkit
flashed stock 4.1.2 lost root and cwm
upgraded using tool kit to 4.2 and then reflashed root and cwm
same problem here... they prob just need to update something for 4.2... suspect an update will follow soon
The multi-user abilities in 4.2 are now causing havoc with some apps. used to be /data/media on 4.12. On 4.2, now the partition is /data/media/0/ for the 1st user, /data/media/1/ for the second, and so on and so on. If you're rooted, I think creating a symlink manually should fix this. I suggest you don't create other uses, just stick with the one for now, then you just need a single symlink from /data/media/0 back to just /data/media
There will need to be a lot of apps updated.....
rootbrain said:
The multi-user abilities in 4.2 are now causing havoc with some apps. used to be /data/media on 4.12. On 4.2, now the partition is /data/media/0/ for the 1st user, /data/media/1/ for the second, and so on and so on. If you're rooted, I think creating a symlink manually should fix this. I suggest you don't create other uses, just stick with the one for now, then you just need a single symlink from /data/media/0 back to just /data/media
There will need to be a lot of apps updated.....
Click to expand...
Click to collapse
I could not have said this any better. There will be Hundreds of not thousands of apps that will have to be updated.. Nearly any app that stores data without it having any logic for looking for where to store it at..
I Like the multi user . will create a guest user to keep prying eyes (my son ) off my tablet.
New software has bugs to work out.. this one going to have more then useual
erica_renee said:
I could not have said this any better. There will be Hundreds of not thousands of apps that will have to be updated.. Nearly any app that stores data without it having any logic for looking for where to store it at..
Click to expand...
Click to collapse
Any app which manually specifies a path, such as apps like Storage Analyzer must do in order to operate, should be few. The vast majority of apps ask Android to store the data and Android handles the path.

[GUIDES] CIFS&BIND and BIND4SWAP for use on OUYA

Hi guys!
i wrote a little guide to use DirectoryBind to "emulate" a memory swap, and install apps and data on external storage (USB Pendrive, HDD, mounted CIFS, etc)
This is valid for OUYA, or any rooted device.
hope you found useful.
Note: Is in spanish. use tranlsator to get a translated version. Hope i get some time and generate a proper English version to post here. If there is any guy that wants to help me translating, it will be nice.
http://manguiro.blogspot.com/2013/07/guia-rapida-bind4swap-directorybind.html
I created another guide, similar to BIND4SWAP, and i use a shared directory on my local net to use as a sdcard on any android device. This is useful if you want to "extend" your storage to a remote location, and you can use the same installed files on many android devices. i.e., i tested and use one single installation of my android applications (nova3 in example), and can load an play on my Ouya, JXDS7300B, JXDS5110B, S908, Motorla Razr, GPD5005, etc... all devices are pointing to the same net resource and load the files, without need of installing files on local device.
note: this guide (CIFS&BIND) is for fast local networks. If you have a slow network, then i suggest to use it for small size games, or games that loads small portions of data (i.e. Bard´s Tale is a game that runs ok in a 100mb speed network)
http://manguiro.blogspot.com/2013/07/cifs-directorybind-sambadroid-cifs.html
Now, i´m working in a new version of the CIFS&BIND guide, but i´m using the OUYA as network resource. I attached a HDD via USB to the console (350GB), and ouya uses as their sdcard (via DirectoryBind). I get over 120 games installed on the ouya... and share all these data to my other devices. I have only a problem for now, i want go create a Access Point Wifi on the Ouya, but all the software i tested hangs or get errors. I want to get advantage of the WIFI antenna of the OUYA because runs at 150mbs (wifi n), that is a good speed for many guys that don´t have a fast wifi router on their installations.
if you can help me with this, please send me a mp.
hope these guides will be interesting and useful.
Zalu2!
Deen0X said:
http://manguiro.blogspot.com/2013/07...ctorybind.html
http://manguiro.blogspot.com/2013/07...roid-cifs.html
Zalu2!
Click to expand...
Click to collapse
urls are truncated and invalid
http://manguiro.blogspot.com/2013/07/guia-rapida-bind4swap-directorybind.html
http://manguiro.blogspot.com/2013/07/cifs-directorybind-sambadroid-cifs.html
emulation said:
http://manguiro.blogspot.com/2013/07/guia-rapida-bind4swap-directorybind.html
http://manguiro.blogspot.com/2013/07/cifs-directorybind-sambadroid-cifs.html
Click to expand...
Click to collapse
thanks!
fixed!
CIFS.ko is not present in rom................. anyone have?
http://forum.xda-developers.com/showthread.php?t=2308740 <--- You can try this.
emulation said:
http://forum.xda-developers.com/showthread.php?t=2308740 <--- You can try this.
Click to expand...
Click to collapse
I get OuyaStockPlus installed on my OUYA, and this come with CIFS module...

[Q] Newly installed ROM /sdcard/0 folder problem. Emulated storage

Ok so, this is a bit hard to explain, I can only take SS's of some of the problem. So a while ago I installed android revolution hd 10. I've since upgraded to 12.x. I noticed sometime inbetween then. That when I go to clock work recovery I am always greeted with the contents of my sd card before I installed the ROM, I have to click on a folder called '0' which is in my sdcard folder. so /sdcard (this is where all my old data is)/0 (then '0' is where all my new stuff since I installed revolution is. To access the location where all of my stuff saves.
So this is the highest level I can get to on my computer and with root browser/es file explorer on my phone: http://gyazo.com/7a3831c0d9934732b8dc5b2e700e422d
But, when I go into recovery I am greeted with this:
http://gyazo.com/13baa0cb30a21c0fb83db3a35965ced3
see how at the top there it says /sdcard That is full of all my old files. and here when I click on /sdcard/0 : http://gyazo.com/8d39545d7561de02452ef3964e4df6fc
You can see at the bottom of these two, a little window into the past. Because my phone has been using this /0 folder as root I guess? So what is going on, it's using about 8gb or so, maybe more idk, has all my pictures and stuff. And I can only get to it in clock work recovery. Which I don't understand.
Hope you can make sense of this. I'm Australian which is why I'm posting now. time zone is incredibly annoying I hardly get replies. Thanks though
I have the same question, hopefully bumping this will get a good response. I can't even transfer my cwm backups because I have no idea how to access them outside of cwm recovery.
lopuandroid said:
Ok so, this is a bit hard to explain, I can only take SS's of some of the problem. So a while ago I installed android revolution hd 10. I've since upgraded to 12.x. I noticed sometime inbetween then. That when I go to clock work recovery I am always greeted with the contents of my sd card before I installed the ROM, I have to click on a folder called '0' which is in my sdcard folder. so /sdcard (this is where all my old data is)/0 (then '0' is where all my new stuff since I installed revolution is. To access the location where all of my stuff saves.
So this is the highest level I can get to on my computer and with root browser/es file explorer on my phone: http://gyazo.com/7a3831c0d9934732b8dc5b2e700e422d
But, when I go into recovery I am greeted with this:
http://gyazo.com/13baa0cb30a21c0fb83db3a35965ced3
see how at the top there it says /sdcard That is full of all my old files. and here when I click on /sdcard/0 : http://gyazo.com/8d39545d7561de02452ef3964e4df6fc
You can see at the bottom of these two, a little window into the past. Because my phone has been using this /0 folder as root I guess? So what is going on, it's using about 8gb or so, maybe more idk, has all my pictures and stuff. And I can only get to it in clock work recovery. Which I don't understand.
Hope you can make sense of this. I'm Australian which is why I'm posting now. time zone is incredibly annoying I hardly get replies. Thanks though
Click to expand...
Click to collapse
Daman09 said:
I have the same question, hopefully bumping this will get a good response. I can't even transfer my cwm backups because I have no idea how to access them outside of cwm recovery.
Click to expand...
Click to collapse
OK, guys a bit of searching would have helped, but here's the short version:
In Android 4.1.2 /data/media = internal storage (or sdcard; whatever you feel like calling it)
as of 4.2.2+, (for multiuser support) it was changed to /data/media/0
so 4.1.2 /sdcard was a symlink to /data/media
in 4.2.2+ /sdcard is a symlink to /data/media/0
Everything (except 0 and legacy which is empty) in /data/media should be moved to /data/media/0
CWM still links to /data/media which you can no longer see on your PC, since it only shows /data/media/0
if you do want it to show, then use this guide to create a symlink: http://forum.xda-developers.com/showthread.php?t=1991657
That's it in a nutshell, if you want more details, search for differences of the file structures of 4.1.2 and 4.2.2+
nkk71 said:
OK, guys a bit of searching would have helped, but here's the short version:
In Android 4.1.2 /data/media = internal storage (or sdcard; whatever you feel like calling it)
as of 4.2.2+, (for multiuser support) it was changed to /data/media/0
so 4.1.2 /sdcard was a symlink to /data/media
in 4.2.2+ /sdcard is a symlink to /data/media/0
Everything (except 0 and legacy which is empty) in /data/media should be moved to /data/media/0
CWM still links to /data/media which you can no longer see on your PC, since it only shows /data/media/0
if you do want it to show, then use this guide to create a symlink: http://forum.xda-developers.com/showthread.php?t=1991657
That's it in a nutshell, if you want more details, search for differences of the file structures of 4.1.2 and 4.2.2+
Click to expand...
Click to collapse
Thanks for this. Oddly, my searching came with this thread.
Now I guess the question is, why hasn't CWM updated to place the backups in easily accessible locations one devices like the One?
Daman09 said:
Thanks for this. Oddly, my searching came with this thread.
Now I guess the question is, why hasn't CWM updated to place the backups in easily accessible locations?
Click to expand...
Click to collapse
You're gonna have to ask the developers about that, just create a symlink as described here: http://forum.xda-developers.com/showthread.php?t=1991657
and it works perfectly, it's what I've done to be able to access the CWM folder from my PC.
Hit the thanks button if I helped

[Q] Mount Network Drive CIFS empty

I am trying to implement something that must be interesting to a lot of people.... it would be great if someone could give me some pointers
I want to mount a shared folder on my home network so that I can use my HTC One to play music and videos stored on my desktop PC
I am running a CM11 Nightly from last week on an HTC One.
I installed Mount Manager but the CM11 kernel does not support CIFS which the app relies on
So I flashed this kernel with CIFS support http://forum.xda-developers.com/showthread.php?t=2522854
The CIFS shared network folder mounts but the folders are empty
mkasick describes the problem and a fix here but I do not know how to implement: http://forum.xda-developers.com/showthread.php?t=2106480
If anyone could help that would be amazing. Apologies if this is in the wrong place.
I guess the other way to phrase this is how do I customise a kernel?

Categories

Resources