[Utility] USB Mass Storage Tool Now with OTG Support [Update: 6-13-2011] - Xoom Android Development

UPDATE 6-13-2011 !! HUGE UPDATE.... OTG DRIVES NOW SUPPORTED !! https://market.android.com/details?id=com.skidmrk.umswatcherotg
So it's been a long time since i've checked in. This is mostly due to where i was in the development of the new version. I couldn't really work on fixes when i'd rewritten the entire codebase. Well your waiting should be worth the wait. If you have the old version installed from the market you'll have an update waiting. After the update it will tell you there is a new version for Android 3.1 devices. It will take you to the market to download a new app "UMS Watcher OTG" I know this is kinda dumb not currently the android marketplace will not allow for device or os specific version. So i had to make a 2nd app specifically for 3.1 devices. (Since 3.1 is the first build to offically support OTG mode.)(i retained the old version for pre 3.1 devices)
All of the features of the old version should still exist. But now the mounting dialogs are all handled within app. You'll notice this time we actually have a full interface. More than just the simple settings page. UMS mounting should work just fine. Hopefully this will resolve all of the issues people have been having. At least i think it will. If there are still issues i will now be able to work on it since i'm done with the current code.
With the new version installed you'll be greeted with a dialog anytime you plug in a drive via an otg cable. This will then set UMS watcher otg as the default handler for that device. Then any time you plug that device in again it will automatically open the app. This is where you'll really see changes in the app. You will see each of your attached devices enumerated in an expandable list. If you expand any of the drives you'll see the partitions. You can mount and unmount any partition. When mounting you'll be asked the partition type and target mount point. I attempt to auto-detect the partition fs type but i'm not able to differentiate between versions of ext, and between versions of hfs/hfs+. Each partition's settings will be saved. and is keyed to the uuid of the partition. if you format/partition the drive those uuid's change. When finding the mountpoint you can browse the entire file system and even create new directories within app (i can't tell you how much time i spent working out an in app directory browser.) You will also notice partition sizes and disk usage. Note: you won't see disk usage until the partition is mounted (not really an easy way around it). You should be able to have as many simultaneous drives attached, (with as many partitions as you want).
You should know that the fs types are only supported if you're kernel has the modules for them. Tiamat currently has fat/ntfs/ext/hfs/hfs+ modules so all of these should work. The kernel modules will be loaded on demand, so no need to worry about loading them manually.
BIG NOTE:::: HFS+ DOES NOT CURRENTLY WORK.
This appears to be an issue with the kernel module, I'll start working with BRD to get it sorted out.
Checkout the about page to see all of the features.
With this big of a code change there are bound to be bugs. I'll work on them as quickly as posisble, email me or post here when you find any.
This has been a huge amount of work. (lots of learning) The code has gone up in size by almost 2 orders of magnitude. and has been hours and hours of work, so enjoy and if you do a review on the market would be nice. I really didn't anticipate the amount of downloads that i got on V1. >4000 . I also couldn't believe the different types of device, or locales. On that note if anyone wants to help me localize to other languages I'd really appreciate the help. (Google Translate might have to do).
As before any bugs or feature requests can go here or can be emailed to me at apps <at> skidmrk <dot> com . I really hope people like this and use it. (i'd hate to have all the work go out for nothing.)
Thanks to everyone who have helped out so far.
-D
==============================================
UPDATE 5-20-2011 !! TIAMAT UMS KERNEL FOR 3.1 HAS ARRIVED !!
Ok BRD sent me his 3.1 kernel with ums compiled in. I've attached it below.(install via CMR, following the instructions in the tiamat kernel post)
I haven't finished the updates to the app to add ntfs/fat/etc mounting. Things ended up getting a little busy. I should have an update for the app come sunday/monday (going camping for the weekend)
BRD tells me he can't really support the ums stuff any more so i guess i'll take over ums builds (assuming i can figure it all out).
Getting very close to 1000 market downloads. Wow i didn't ever expect that many. I noticed that we have quite a few people with non english locales. Does anyone want to offer translations. I can and will localize (i feel it's important).
Also any requests for the new app version. So far i have a request for unified otg mounting interface. Localization, Kernel Detection and Download. Anything else you'd like to see?
Enjoy the new kernel (and you can thank BRD for it... i didn't really do anything to build it).
Also you don't need to reinstall my app. Once you install the new kernel it will start working again.
=================================================
UPDATE 5-10-2011 !! We're on the market !!
Nothing new yet (waiting on the otg cable) but now you can get the app via the market:
https://market.android.com/details?id=com.skidmrk.umswatcher
Please use this market link for downloads. It will be easier to keep your app updated ... i will however continue post the apks here and use this post to work with users (bug and features).
I haven't had a chance to test this on 3.1 because i've not yet updated... not to mention there isn't a kernel yet for 3.1.
As always feedback is much appreciated.
UPDATE 5-9-2011 NEW VERSION (new features)
Yeah for updates.
I finally figured out how to detect when something mounts the usb mass storage, so now the notification changes depending on the state of the usb mass storage. Finally it has the exact same behavior as android normally has.
I implemented the requested feature of automounting the usb mass storage. I'm not sure how many people would want it but it's there now (and kinda cool)
I've actually hooked in to the private api calls that android uses to mount usb storage (same call used in the native mount app). I figure that is a very safe way to do automounting. (and was a pain in the but to figure out)
Also out of necessity there is now an app you can run. This is just a page for managing settings. It doesn't have to be run for this app to work. Currently there is the "automount" setting and the "show notifications" setting. I figure with the automount feature this might serve useful on other devices for just that function, so those people can disable the notifications. I'll post this on the market as soon as i figure out how. (free of course).
As far as other devices go i tested it on my droid 1 and it works fine (for both notifications and automount). Feel free to test it on whatever you like.
Let me know if there are any other feature you want. I thought able customizing the notification (with sound, led, or vibrate) but that didn't make it in this build.
As before let me know what you think. Feedback can only make this better.
----------
For people still on tiamat 1.4.0 that want to use usb mass storage, have i got an app for you. I found it tedious to use the recommended scripter. So I saw this as an opportunity to write my first albeit basic application.
So attached you'll find it "Usb Mass Storage Watcher". The app listens for usb connections and when it detects one it will add the "mount usb" notification just like the standard android interface. Click on it and it will bring up the mount usb app.
The app does not need to be run at startup or ever really. When it is installed it registers itself as a listener for the usb connection events. It gets called by android os when those event happen. So basically it operates exactly like android is supposed to.
Special thanks to:
Kevin(at)TeslaCoil
LouZiffer(at)SDX
for their ShellCommand (su/sh) class.
Let me know what you think. I'd really like feedback.
-D

Just tested it, works great, thanks a lot.
Is it possible to have an option to turn on mass storage automatically when it finds a connection? I assume it could be ejected from Windows like a regular flash drive, so I wouldn't have to interact with the Xoom.

Thank you for this. It works perfecftly. I stuck with kernel 1.3.2 because I didn't want to deal with the whole script thing. I'm now running 1.40
Sent from my Xoom using Tapatalk

wow that is a nice app....thank you so much

can't open apk -.-
Hi! This is the app I was waiting for (I didn't realy understand the script thing)
Thanks...
Unfortunatly i can't open the apk file... If I try to, I get an Error (just now it in german): "Beim analysieren des Pakets ist ein Problem aufgetreten"
Google Translate : When analyzing the package a problem accured
Have I done anything wrong?
Im rooted, on tiamat 1.4.1 and in options I have checkt hat I can install apks from unknown origine

Did you download directly from your Xoom? If so, try downloading to your computer and copying it over. Either way should work, but it may help.

Thanks! Downloading to Pc and pushing over to xoom worked!
I love this app...

I am having a hard time with this. I installed the file just fine, but when I plug in a usb cable it doesn't do anything on my xoom I the auto play comes up on the computer but it just shows my xoom not the card. I have tiamat 1.4.1 installed. I've tried with USB debugging on as well as off. I have a buddy who's is working perfectly so I know what it should be doing but it's just not. Suggestions?

nevermind I read back through the change log and behold...
Version 1.4.1
Mass Storage has been removed do to stability issues. Your SD Card still works just fine without it!
More updates from Google AOSP.
Please visit Tiamat Xoom Kernel Github Repo for commit history.
so yeah... that's my issue

UPDATES
New Version - New Features - Better implementation
See Post #1

could you add hooks for NTFS mounting VIA OTG Cable........ that would rock!!

pyrator said:
could you add hooks for NTFS mounting VIA OTG Cable........ that would rock!!
Click to expand...
Click to collapse
I've never looked into it but you're talking about mounting an external drive on the xoom (backwards to what my app currently does).
Are you just looking to automount? or do you want an interface like that used for mounting usb mass storage (ie notifications, page to enable/disable).
Technially that would an entirely different app but if i got my hands on an OTG and tested out how it all works i wouldn't mind looking into integrating it. But i just wanted to clarify specifically what you wanted it to do.
-D

For example when you hook up an externel HD via OTG Cable you have to run this command to have it mounted... If your app could automount it that would be a nice addition.
"
Mounting USB disks
use gscript lite to mount disk(s), or you can test this script via adbwireless,...
Code:
mount -o remount,rw /
mkdir /mnt/ntfsdisk
ln -s /mnt/ntfsdisk /ntfsdisk
ntfs-3g /dev/block/sda1 /mnt/ntfsdisk
"

pyrator said:
For example when you hook up an externel HD via OTG Cable you have to run this command to have it mounted... If your app could automount it that would be a nice addition.
"
Mounting USB disks
use gscript lite to mount disk(s), or you can test this script via adbwireless,...
Code:
mount -o remount,rw /
mkdir /mnt/ntfsdisk
ln -s /mnt/ntfsdisk /ntfsdisk
ntfs-3g /dev/block/sda1 /mnt/ntfsdisk
"
Click to expand...
Click to collapse
+1 here
I'd love to see this kind of integration to your app. Don't mind throwing in some kudoes too on the market.
Sent from my Xoom using XDA Premium App

Agreed, the same UI of the mount SD but with the option of mount and unmout USB storage would be cool.

I mentioned this thread yesterday to BRD. I really liked what the 1.4.0 did, but I'm stuck (by choice) to 1.4.1. If he can re-implement the mass storage in the next release with this and what Pyrator mentioned, we will have a very solid update indeed.

1.1 rocks! I love it!

OTG Cable
I'll implement the otg feature if someone can point me in the direction of a cheap otg cable that i can get fast.

Got mine in 2 days
http://www.amazon.com/gp/product/B00474OYLG

siscim23 said:
Got mine in 2 days
http://www.amazon.com/gp/product/B00474OYLG
Click to expand...
Click to collapse
Thanks I'll start adding the feature as soon as mine gets here.

Related

[FIX/APP] <<RemountSD>> mount external_sd to /sdcard/external_sd

Hi,
I have seen many people asking how to really mount /emmc to /sdcard/external_sd and... keeping it there after a reboot.
I was searching for a solution to this myself and wrote a little app to do the job, for my own usage. I already published the app on request and people keep asking me to createa separate thread for this.
So... I'm doing so
Most of the fixes use a "mount -o bind" command, which will basically do what was expected but people will end up with duplicate media files and so on.
This will not happen with RemountSD. Just one location for your files.
Another plus is, RemountSD will listen for the original mount of the external SD and then kick in and do it's work. This way you do not have to care about it.
Within the application you will have the possibility to deactivate the tool and you are back to the original state after a reboot.
Installation:
* You need root
* Install the apk and launch the app
* RemountSD will ask for super user permissions (grant it)
* Done
From now on you will not have to touch the app ever again.
Usage:
For now, RemountSD has three basic functionalities
* Remount: If the checkbox is ticked, RemountSD will move /mnt/emmc to /mnt/sdcard/external_sd on every boot, furthermore you have the option to trigger this manually
* UMS fix: If ticked, RemountSD will try to fix existing problems with USB mass storage.
* Storage Mode Selection: ON the fly switch between UMS, MTP, PTP
Automatic functions
* Remount on boot
* fix storage mode on boot
(both can be deactivated in the preferences)
Depending on the kernel you use the app may not work, if so, please report back and I will see if I can fix it.
If it works, please report back (kernel, Rom, ...) also, so I can build a list with known working setups.
From version 1.3 on:
This app is designed to fit to the hardware of a Galaxy I9100 but where ever possible I use generic methods to determine the location of system files.
* RemountSD should now work on almost any android version (including JB)
* and possibly on more devices then just the Galaxy S2.
Regards,
Gundalbert
Changelog:
v1.0: Initial release
* Basic remount functionality
* App can be enabled / disabled
* Automatic kick in on first mount of ext_sdcard
v1.1: USB mass storage support
* Added support for USB mass storage of both cards (internal, external)
* Option to enable / disable this fix
v1.2: Toggle storage modes / configurable mount points
* Added the possibility to change storage mode with one click (MTP and PTP experimental, details below)
* Made source and target location changeable
* Added toasts to explain what is going on / what to do next.
v1.3: Complete re-write
* Complete rework of internal functionalities
* Complete rework of the UI (the first time I would call this an UI... but still not very pretty
* Support of more android verisons
* Possible support of more devices (BUT I won't provide support for anything other than I9100)
* Remount triggers media - rescan
Why MTP / PTP experimental?
* If you have set MTP or PTP as your current storage mode on boot time, everything will be working. If you booted with usb mass storage set, the MTPService is not running and the storage mode switch will fail. This can be fixed again by manually setting the storage mode to MTP/PTP in device settings -> storage. Everything will work after this is done.
* I haven't experienced this in v_1.3 yet, but do not consider it as solved yet
Planned:
--
FAQ:
*** My media files are missing / doubled / not working, what went wrong? ***
Android scans the device for media files and supplies applications like gallery, music, ... with the information, which media is available.
After switching to RemountSD it is possible, that files are missing, you see them doubled or they are simply not working anymore.
This is because the scanning has gone wrong, which can be corrected with a one-time fix like this:
* Delete data of your media players / gallery / ...
* Delete data of media storage (I don't know if the name might be different on other roms)
* If you open up gallery for example you shouldn't see any files
* Reboot and let the media scanner work (or alternatively try sdrescan, available at the play store)
** The scan process might take a while, depending how many media files are present
I will add a rescan mechanism to RemountSD at a later point of time.
Known issues (general)
* Save to SD-Card not working in camera app
* System settings -> storage information does not show external sd card
Known issues (v_1.3 specific)
* I experienced long MediaScanner time after a remount / reboot but I'm not sure why this is happening. I tried solving it with different approaches but still had no luck. Maybe it is specific to my ROM, maybe it has to do with changes made to the MediaScanner in Jelly Bean.
If you can reproduce this (or not), please report it (if possible with logcats).
If you have any idea how to avoid this ( I know how to disable the scanner, but this is no permanent solution), I would be thankfull for any hint.
Thank you very much for this.
One positive side effect that I got from this is that when connecting through usb, the 'external_sd' gets mounted first (as opposed to the internal sd)
So this is quite handy for example if you use it for devices that can't read multiple partitions (eg. my car's headunit)
So far I can only replicate this functionality in an AOKP rom...
Do you have any idea what causes the app to change the usb mount order? I would like to see if it can be configured.
Not really... No changes to config-files are made.
One would need to know how exactly the mount order is determined by the device or, respectively, how android does provide a mount order to devices.
I never tried to figure that out.
Realy nice. Trying it wright now on paranoid V1.4a AOSP. got none problems so far. Only a few apps where "confused" but after a reboot and a wipe cache and dalvik-cach all is better as it was with the standard /mnt/emmc.
Thanks, this solved a few Problems.
:thumbup::thumbup::thumbup::thumbup:
Sent from my GT-I9100 using xda premium
TheMatrix2000 said:
Realy nice. Trying it wright now on paranoid V1.4a AOSP. got none problems so far. Only a few apps where "confused" but after a reboot and a wipe cache and dalvik-cach all is better as it was with the standard /mnt/emmc.
Thanks, this solved a few Problems.
:thumbup::thumbup::thumbup::thumbup:
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Which apps and confused about what? Just curious
Sent from my GT-I9100 using xda app-developers app
Titanium Backup was one for example. Couldn't find my backups anymore wich was on /mnt/emmc. It kept searching, searching.. Perhaps only a reboot was enough, but i always do a cleanup of the caches after a change in the system.
Isyncr, or isyncwifi for example are working now on AOSP-ROMS.
Thanks again. Still none problems at the moment with the remount. Will let you now when something strange happens.
Sent from my GT-I9100 using xda premium
Superb. I have been using this app for a while now and it more than deserves to have it's own thread
Also, confirmed as working with:
Resurrection Remix 2.5.1 (AOKP B40)
Android 4.0.4
Siyah 3.3.2 Kernel
I wonder if there are specific things that i need to keep in mind when i move from one app doing remount, to remountsd? I'm currently using ics sd binder
Sent from my GT-I9100 using Tapatalk 2
Big tnx mate, for this simple, and good working app!:good: Installed without any problem on my i9100G, with cm9 nightly build. I'm verry happy with it.
brack11 said:
I wonder if there are specific things that i need to keep in mind when i move from one app doing remount, to remountsd? I'm currently using ics sd binder
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Hi,
I haven't used this app but I read about it and had a look in play store.
As far as I can say, you won't encounter any problems.
This is what I would do, if there were any doubts about losing stuff:
* Do a nandroid backup
* Uninstall ics sd binder
* install RemountSD as stated in the op (don't use both apps!!)
* Reboot
* Check if anything is broken or unusual
If you encounter any problems let me know.
Hi,
a new Version is online.
Added a fix for all guys having problems with usb mass storage.
For me UMS never worked, even before using RemountSD, now it is working.
As always, please report any problems.
Regards
Hi there
I have a weird issue
I just installed 1.1 and enabled the the UMS fix. Now, when I connect the cable, my PC tells me that the USB Device is not functioning correctly and I have no way to access USB. Even disabling the UMS fix doesn't help unfortunately.
Would you have any ideas?
Thanks
wil this also work if my initial external sd mount point is /mnt/external_sd ?
would like to mount it as /mnt/sdcard/external_sd cause some apps only use external sd if mouted that way
tks,
remorema
PureLoneWolf said:
Hi there
I have a weird issue
I just installed 1.1 and enabled the the UMS fix. Now, when I connect the cable, my PC tells me that the USB Device is not functioning correctly and I have no way to access USB. Even disabling the UMS fix doesn't help unfortunately.
Would you have any ideas?
Thanks
Click to expand...
Click to collapse
Hi,
RemountSD should not make any permanent changes, so disabling and a reboot should bring you back to the default of your ROM.
I will add a toast to make this more clear.
I'm just downloading RR 2.5.1 and will try it on my phone, I hope I can reproduce the issue.
Which OS is your computer/notebook on?
Do MTP or PTP work, or are all storage modes non funtional?
Edit: Just tested it with RR 2.5.1 and everything is working for me.
* Installed RR 2.5.1
* Set storage mode to UMS
* Connected the SGS2 to my PC, UMS not working
* Installed RemountSD and granted super user permissions
* UMS starts working emmediately
Even after a couple of reboots everything is fine.
Could you PM me the output of logcat RemountSD *:S ?
I will add the possibility to export the logs later.
remorema said:
wil this also work if my initial external sd mount point is /mnt/external_sd ?
would like to mount it as /mnt/sdcard/external_sd cause some apps only use external sd if mouted that way
tks,
remorema
Click to expand...
Click to collapse
Hi,
not yet.
I will make this configurable in a future version.
gundalbert said:
Hi,
RemountSD should not make any permanent changes, so disabling and a reboot schould bring you back to the default of your ROM.
I will add a toast to make this more clear.
I'm just downloading RR 2.5.1 and will try it on my phone, I hope I can reproduce the issue.
Which OS is your computer/notebook on?
Do MTP or PTP work, or are all storage modes non funtional?
Click to expand...
Click to collapse
Ok, I unmounted, rebooted, uninstalled, rebooted, re-installed, remounted and enabled the UMS fix...now it works
It could have been because I upgraded, rather than uninstalling first.
Now, when I connect the cable, the drives open immediately..rather than having to select Turn USB Storage ON
Is this the expected behaviour? It doesn't seem to affect the ability for the phone to access the cards...even when connected
Thanks
For the record..Windows 7 Ultimate 32bit and MTP was working.
PureLoneWolf said:
Ok, I unmounted, rebooted, uninstalled, rebooted, re-installed, remounted and enabled the UMS fix...now it works
It could have been because I upgraded, rather than uninstalling first.
Now, when I connect the cable, the drives open immediately..rather than having to select Turn USB Storage ON
Is this the expected behaviour? It doesn't seem to affect the ability for the phone to access the cards...even when connected
Thanks
For the record..Windows 7 Ultimate 32bit and MTP was working.
Click to expand...
Click to collapse
I just edited my post above, it's working for me, also.
Glad everything seems to be fine now.
Media scanner doesn't seem to find any of the files in external_sd once I've changed the mount point from /emmc to /sdcard/external_sd.. I've tried to restart the media scanner but still no luck.. Any ideas? I've already wiped cache and dalvik
Sent from my GT-I9100 using xda app-developers app
A new version is online, changelog is given in the OP.
pp085ster said:
Media scanner doesn't seem to find any of the files in external_sd once I've changed the mount point from /emmc to /sdcard/external_sd.. I've tried to restart the media scanner but still no luck.. Any ideas? I've already wiped cache and dalvik
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Hi,
this is still an open topic and on my todo list.
Until I can give you a simple fix, I suggest trying this:
* Delete data of your media players / gallery / ...
* Delete data of media storage (I don't know if the name might be different on other roms)
* If you open up gallery for example you shouldn't see any files
* Reboot and let the media scanner work (or alternatively try sdrescan, available at the play store)
** The scan process might take a while, depending how many media files are present
I hope this helps.

ICS kernel with CIFS and Titanium Backup: Clash.

I'm having an odd and kind of trivial problem, but I thought someone else may have run into this:
I'm about 2 days into having a new/old nexus rather than jump right into JB, where every ROM I read about seems to have quite a few problems, I'm starting with ICS. I've got it rooted, and have cleansed it of the few junkware things I dislike so that the battery lasts all day and am happy with the ICS nexus.
So :: I looked around and found that the 'faux' kernels (for ICS and JB) have CIFS and TUN built in, and installed the ICS version which works nicely. I'm used to using cifsmanager, which doesn't have to load a module since it is built into the kernel, but it basically issues a statement like this:
-- # mount -t cifs //computerName/ShareName /localmnt/mntdir -o user=xxx,domain=yyy
Until that is performed at least once, Titanium backup works great doing all it's neat things. After I either use cifsmanager, or that mount statement, Titanium backup can't seem to find the /sdcard at all. It requires a reboot to get it back working again. Since it is ICS and reboots in 20 seconds or so, I don't mind too much, but it would be cool if someone here had found a workaround. I know cifsmanager is compatible with ICS because I've got a tablet that is ICS and using it all the time. I'm not interested in the built-in SMB modules of filemanagers because this is more for being able to use apps rather than just a file manager. I'm aware it might just be one of those oddball instances where a couple of pieces of software won't play nice together.
Thanks in advance --
hachamacha said:
I'm having an odd and kind of trivial problem, but I thought someone else may have run into this:
I'm about 2 days into having a new/old nexus rather than jump right into JB, where every ROM I read about seems to have quite a few problems, I'm starting with ICS. I've got it rooted, and have cleansed it of the few junkware things I dislike so that the battery lasts all day and am happy with the ICS nexus.
So :: I looked around and found that the 'faux' kernels (for ICS and JB) have CIFS and TUN built in, and installed the ICS version which works nicely. I'm used to using cifsmanager, which doesn't have to load a module since it is built into the kernel, but it basically issues a statement like this:
-- # mount -t cifs //computerName/ShareName /localmnt/mntdir -o user=xxx,domain=yyy
Until that is performed at least once, Titanium backup works great doing all it's neat things. After I either use cifsmanager, or that mount statement, Titanium backup can't seem to find the /sdcard at all. It requires a reboot to get it back working again. Since it is ICS and reboots in 20 seconds or so, I don't mind too much, but it would be cool if someone here had found a workaround. I know cifsmanager is compatible with ICS because I've got a tablet that is ICS and using it all the time. I'm not interested in the built-in SMB modules of filemanagers because this is more for being able to use apps rather than just a file manager. I'm aware it might just be one of those oddball instances where a couple of pieces of software won't play nice together.
Thanks in advance --
Click to expand...
Click to collapse
I knew if I asked this damn question that I'd figure out the answer about 3 minutes later, and I just did. It is cifsmanager, and I don't know what it's doing wrong or why it's having the conflict but that's the problem, so problem is solved or worked around for me.
It turns out I also needed to mount the cifs share out on the /sdcard/xxx because it may also be getting confused with cifsmanager perhaps remounting /mnt/ as something other than what it was originally. I'm not sure but this mount statement works now and I've written scripts to mount and dismount the shares:
(term emulator)
# mount -t cifs -o username=name,domain=domain,password=password //ip addr/sharename /sdcard/mymountdir
Thanks anyway and ignore this.

10.1.2 usb mass storage option?

So i upgraded to cm 10.1.2 and i'm having a hard time trying to figure out how mount as mass storage rather than MTP or PTP
for the life of my, i can't find the option.
i'm running linux so MTP is not an option for me
anyone know where i can change it?
thank you
sam
when you goto storage hit menu do you see any other options when you click menu in your storage settings ?
denti said:
So i upgraded to cm 10.1.2 and i'm having a hard time trying to figure out how mount as mass storage rather than MTP or PTP
for the life of my, i can't find the option.
i'm running linux so MTP is not an option for me
anyone know where i can change it?
thank you
sam
Click to expand...
Click to collapse
That's because they removed mass storage option in 4.2.2
denti said:
guess i'll find another way to move files around as MTP and linux no play well together
Click to expand...
Click to collapse
Some linux distros support MTP. Ubuntu, for example, although it hasn't been officially backported to some older releases. But it is available for older releases in a developer's third-party ppa. Unfortunately, I can't post the link. Still, I prefer USB mass storage to MTP. But I'm going to try MTP for awhile and see if it grows on me.
I noticed that there are a number of apps that come up in the Android Market / Google Play Apps if you search for "USB mass storage", but I haven't tried any of them. There are also third-party apps that provide file sharing via wifi using samba or ftp. Not exactly what you're looking for, but I thought I'd mention it. ES File Explorer is an example. I use it, and like it, but I haven't used the particular features I just mentioned because, until my recent upgrade to JB 4.2 I didn't need them -- I used USB mass storage.
In a thread on AndroidCentral, someone said google does not want to use USB mass storage. I don't know if that's true, and if it is true, I don't know what google's reasons are for abandoning USB mass storage.
stcr1 said:
Some linux distros support MTP. Ubuntu, for example, although it hasn't been officially backported to some older releases. But it is available for older releases in a developer's third-party ppa.
Click to expand...
Click to collapse
I tried this without success. At this point, I forget what the problem was, because I've tried so many different things. I think I was unable to get read-write access. It was read only. Not sure, though. But it didn't work for me.
stcr1 said:
There are also third-party apps that provide file sharing via wifi using samba or ftp.
Click to expand...
Click to collapse
I tried a couple of these and they did not work reliably. I have a large git repo that I was trying to clone, and it would either silently fail mid-way (using Samba Filesharing for Android by funkyFresh), or git would complain about corrupt/missing objects (using Servers Ultimate by Ice Cold Apps). The latter also has an NFS server, but I wasn't able to connect to it. I kept getting a clnt_create Program not registered error. All of the problems here with both the samba servers and NFS could be specific to my hardware and software environment, and/or configuration settings. YMMV.
stcr1 said:
I noticed that there are a number of apps that come up in the Android Market / Google Play Apps if you search for "USB mass storage", but I haven't tried any of them.
Click to expand...
Click to collapse
I tried a ton of these. The only one that looks promising (for my device) is Multi Mount SD-Card Lite by rafoid. I hope it works out. Haven't tried cloning my git repo yet. Again, my experiences could be specific to my hardware and software environment. YMMV.
Off topic: Along the way I found AirDroid. Looks pretty cool, but doens't look like a solution to the problems in this thread.
You can try this mod and see if it works for you. It is really 2 lines on a terminal:
http://forum.xda-developers.com/showthread.php?t=1800935
It worked for me before to force my phone go into mass storage mode. I haven't used it for the latest mods.
angler_fish said:
You can try this mod and see if it works for you. It is really 2 lines on a terminal:
http://forum.xda-developers.com/showthread.php?t=1800935
It worked for me before to force my phone go into mass storage mode. I haven't used it for the latest mods.
Click to expand...
Click to collapse
That's a good idea. I sorta tried that, and it didn't work for me, but it obviously has worked for other people. I say "sorta" because I didn't use a terminal, but used an app in the Marketplace wihich is supposed to do the same thing. The app is USB mode switch for SGS1 on CM by Zatta. It's the subject of a thread here (showthread.php?p=21505914). I would post the link to the thread, but unfortunately I can't post links.
stcr1 said:
That's a good idea. I sorta tried that, and it didn't work for me, but it obviously has worked for other people. I say "sorta" because I didn't use a terminal, but used an app in the Marketplace wihich is supposed to do the same thing. The app is USB mode switch for SGS1 on CM by Zatta. It's the subject of a thread here (showthread.php?p=21505914). I would post the link to the thread, but unfortunately I can't post links.
Click to expand...
Click to collapse
Just download a Terminal Emulator on Google Play. Search Terminal and the first one should work. Make sure you give it root privilege, as you are modding system files. Hope that helps!
angler_fish said:
You can try this mod and see if it works for you. It is really 2 lines on a terminal:
http://forum.xda-developers.com/showthread.php?t=1800935
It worked for me before to force my phone go into mass storage mode. I haven't used it for the latest mods.
Click to expand...
Click to collapse
I put CM10.1.2 on my phone a few days ago. Until today, whenever I plugged it into my computer it would go into mass storage mode as expected and everything was fine. Then, I installed Button Savior, which required me to enable USB debugging mode, and after that it connected in MTP mode every time. If I tapped the notification it would give me an option to uncheck MTP mode, but tapping that any number of times had no effect (the checkmark wouldn't go away). I tried the solution suggested in the linked thread, but now it's even worse. It no longer connects in MTP mode, but it doesn't connect in mass storage mode either. Now, it connects in something called "installer mode" with no option to change anything. It shows up in Explorer on my computer, but when I try to open the drive the computer asks me to insert a drive.
Any idea how I get my mass storage mode back?
Odd, teamchopsticks pulled USB mass storage from cm10.1 because of crashes when disconnecting from the computer.
Sent from my SAMSUNG-SGH-T989 using Tapatalk 4
Cyanogenmod removed support for USB mass storage after CM10.0 because "The kernel support was flaky... USB mass storage has been deprecated by Google and is no longer supported."
https://jira.cyanogenmod.org/browse/CYAN-540
Multi Mount SD-Card Lite by rafoid on Google Play worked for me for awhile, then stopped working reliably. I lost some files as a result. Now I'm going to try adbfs:
https://github.com/spion/adbfs-rootless
(Thanks to dalingrin for this suggestion, made in this related thread: http://forum.xda-developers.com/showthread.php?t=2023066)
This article explains why Android moved from USB Mass Storage to MTP access for the internal storage.
hxxp://androidpolice.com/2011/11/18/impromptu-qa-session-with-android-engineer-dan-morrill-brings-to-light-reasons-behind-galaxy-nexus-lack-of-usb-mass-storage/

[Q] ROM with working USB Mass Storage?

I recently flashed CM-10.1.3-RC2 and still no UMS. I guess it was removed from CM-10.1 earlier this due to bugginess. I wasn't able to tell if the bugs were in the SGS2 hardware, or CM itself. Can someone clarify? Because, if it's in the HW itself, it will most likely never work. I'm not using Windows so MTP/PTP simply do not work. I must boot into TWRP right now to transfer files. Iv'e also tried
Code:
setprop persist.sys.usb.config mass_storage
however no luck there either.
Anyone know of a ROM where UMS is working (AOKP, etc)?
Thanks
Last time I used AOKP (a few months ago), it had working USB Mass Storage. If you don't want to switch ROMs, there's an app called Multi Mount SD Card (Sorry, I can't post a link) that can get UMS working for you.
Noyth said:
Last time I used AOKP (a few months ago), it had working USB Mass Storage. If you don't want to switch ROMs, there's an app called Multi Mount SD Card (Sorry, I can't post a link) that can get UMS working for you.
Click to expand...
Click to collapse
Some of the reviews say that app didn't work for them so I went ahead and flashed aokp_hercules_jb-mr1_milestone-2. No UMS . Perhaps for the same reasons it's no longer in CM I guess. Happy surprise though: PTP *does* seem to be working under Ubuntu 12.04 with this ROM! Hopefully it's stable so I don't have to boot recovery to get the pics off.
EDIT: Nevermind on the PTP. It's actually not working. For some strange reason it's showing some pics that appear to be on the filesystem and not the device :|
EDIT: For anyone interested, found a link that sort-of gets MTP working on Ubuntu 12.04. You have to add some unstable repos and pull down some non-standard 12.04 libraries and edit some udev configurations. There are some limitations like file size, no drag & drop and opening files directly from the MTP mount point. http://forum.xda-developers.com/showthread.php?t=2223401

StickMount Mount Label

Hi, I have StickMount (Paid version) on FTV. I have a USB mounted (Ext4 type).
StickMount mounts it correctly and I can see it with the "mount" command.
The problem is, even though I have selected the option "Mount as partition label", StickMount will mount the USB as "sda1". I have verified that my USB has a partition label of "FTV", set through the MiniTool software. I can clearly see the "FTV" as the label name in the tool.
I also ran "blkid" on FTV and I see this line for the USB storage:
/dev/block/sda1: LABEL="FTV" UUID="......."
Any reason why StickMount is not mounting it as "FTV"?
Well, I have tried both ways by checking/unchecking the option in StickMount, no mas. At this point, is there any manual way by writing a script to do the mount? Do I need to create a block device in /dev/block. I am still trying to understand it, coming from a Windows background. Clearly, there is a bug in StickMount, unless I am missing something very simple. I have scoured through the logcat and I don't see any mention of my partition label name. Any help would be appreciated. Thank you.
Has this bug been fixed yet?
Neo3D said:
Has this bug been fixed yet?
Click to expand...
Click to collapse
I am not sure. I stopped using StickMount a long time back (probably around the time of my OP) as it never worked correctly. E.g. it used to give a bogus message that my USB was mounted when there was no USB connected to FTV.... I used the "OTG Helper" after that, it did not have the mount name option, but it did work correctly as far as basic functionality was concerned. Finally stopped using USB and now use WD MyCloud for my needs.
As regards to the other Q about buying the paid version, I had bought it through Google Play Store and not Amazon. Thanks.

Categories

Resources