• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

[APP][18.01.2017] StickMount v3.50 [ROOT]

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
Automatically mount and dismount USB sticks on various devices like the Galaxy Nexus, Nexus 7 and Nexus 10. The Nexus 4 is not supported - this is an issue with the device, not with StickMount !

!!! REQUIRES ROOT !!!

Various Nexus and "stock Android" devices do not automatically "mount" mass storage devices (such as USB sticks). StickMount has been made to solve this problem, and give you access to the files on your USB connected storage from all your apps.

StickMount is known to work on many devices, but is built only with Nexus devices in mind.

Once StickMount is installed and you connect a USB stick with a USB host / OTG cable, the device will show you a popup if you want to open StickMount. It is advised to tell the device that you want to do this by default.

If you have just installed StickMount and you already had a USB stick connected, you must manually launch the program, or disconnect/reconnect the USB stick for StickMount to start working.

Mass storage devices are mounted to /sdcard/usbStorage/xxxx/.

(Pro) Kill apps preventing unmount

Sometimes an app has a file in use located on the USB device, and won't let go of it. This can prevent StickMount from unmounting the USB device. It will seem like the device stays connected (this is harmless). StickMount Pro provides an option that attempts to kill (terminate) all the apps that are preventing the unmount from succeeding.

(Pro) Media scan

StickMount Pro supports triggering the media scanner on each (un)mount action. This will automatically make the files on your USB device available in apps like Gallery and Music. Please note that the media scanner is not a visible process on all Android devices - it might actually work silently in the background without any visual cues. It may take a minute for your files to show up, so don't panic if they don't show immediately.

Even if you have this option enabled, you can prevent folders from being scanned by placing an empty file called .nomedia in that folder. If you put it in the root of the USB device, the entire device will not be scanned.

(Pro) Mount as partition label

Instead of using the block device name (sda1, sda2, sdb1, etc) for the partition, use the partition label as mount name. If the label is not available, fall back to the partition uuid (unique id). Only if that is not available either, use the block device name as mount.

This helps to keep your files in the same and easily identifiable place!

(Pro) Create symbolic links

Create symbolic links in /mnt and /storage to the actual mounts in /sdcard/usbStorage/, handy with some file managers and some apps that auto-detect storage locations.

Filesystem support

The filesystems supported depends on your device firmware. On most devices, at least vfat/fat/fat32 and ext2/3/4 are supported. On the latest Android versions, ntfs is also supported in read-only mode. Some devices also support exfat out the box, but most do not.

StickMount can utilize the ntfs-3g and mount.exfat-fuse binaries to add support for ntfs (untested) and exfat, but these are not included. If you place the ntfs-3g or mount.exfat-fuse files in the root of your internal storage ( /sdcard ), StickMount will automatically use them.

You can find the needed files here:
ntfs-3g
mount.exfat-fuse

Troubleshooting

For some users, the app appears not to work, while in fact it is the device itself or the cable not working. One OTG cable is not the other OTG cable. If you have a USB stick with a light on it, it should light up when you connect it to the Galaxy Nexus using your OTG cable. If it does not, either your cable or your Nexus is faulty. 99 out of 100 times it is going to be your cable. That the cable works fine with another device does not mean anything! Cables known to work on a one devices may not work on another device.

SD card unmounting: If your SD card unmounts when unmounting a USB device, you have a bug in your kernel. This is not a bug in StickMount !

Download

StickMount

StickMount Pro (add-on, requires the free StickMount app)
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
Changelogs

18.01.2017 - v3.50
- (C) 2017
- Handle HTTP redirects when downloading additional tools

23.03.2016 - v3.40
- (C) 2016
- Improve systemless SuperSU compatibility
- Add mount cleanup option

09.10.2015 - v3.33
- Basic M compatibility

13.12.2014 - v3.26
- Minor su policy adjustment

30.11.2014 - v3.25
- Fix unmount+kill issue on L

16.11.2014 - v3.23
- Fix exFAT write issue on L

15.11.2014 - v3.22
- Fix exFAT mount issue on L

06.11.2014 - v3.20 - RELEASE NOTES
- Basic L theming
- Updated SELinux handling, fixes a number of mount/read/write issues on enforcing devices

01.07.2014 - v3.10
- Android "L" Preview compatibility

23.03.2014 - v3.01
- Fix possible force close

23.03.2014 - v3.00
- (Pro) Make mounts available by label or uuid instead of block device name
- (Pro) Make mounts available through /mnt and /storage
- White notification icon for KitKat

10.02.2014 - v2.50
- Fixed a number of (un)mounting issues
- Fixed one possible cause of /sdcard disappearance
- Anticipate and work-around '4.5' issues
- Suggest FS support add-on download

08.02.2014 - v2.40
- Forced a number of commands to toolbox, prevent busybox confusion
- Add mount master usage if available, and warning if not

On Android 4.3 and 4.4, using SuperSU v1.93 or newer is advised, as it provides some features that greatly improve reliability of (un)mounting, versus older versions of SuperSU or other Superuser management apps.

02.11.2013 - v2.30
- Android KitKat 4.4 related fixes

14.12.2012 - v2.20
- Adjustment to NTFS mounting
- UTF-8 mount adjustment (now enabled by default for new users)
- Changed (un)mounting strategy to repetitive scan
- Rearranged preference order
- Adjusted partition detection
- Reworked notification (Jelly Bean +)
- Toast notification no longer shown if turned off in preferences

02.12.2012 - v2.10
- More Android Jelly Bean 4.2 related fixes
- Only works for primary user
- Twitter/G+ spam now included

20.11.2012 - v2.0
- Android Jelly Bean 4.2 related fixes
- Various bug fixes
- Various text changes
- exFAT mounting if "mount.exfat-fuse" is present
- Fixed mounting sdXXYY (as opposed to sdXY) block devices
- (Pro) Kill processes that are preventing unmounting
- (Pro) Trigger media scanner on (un)mount

09.07.2012 - v1.5
- "The Jelly Bean Update"
- ActionBar restored (by many requests !)
- Modified permissions
- Async mounting
- Force holo theme

11.03.2012 - v1.3
- Modified NTFS mounting process
- Various texts adjusted
- App no longer quits on rotate
- ActionBar removed (double title)
- Added codepage and UTF8 options (experts only, will mount with default options on failure)

02.01.2012 - v1.2
- Modified mounting process
- Support different partition layouts
- Support mounting extX partitions
- Support mounting ntfs partitions (if kernel module present and loaded)

20.12.2011 - v1.1
- Added option to disable visual notifications of (un)mounting
- Fixed a number of possible crashes
 
Last edited:

qwerp_

New member
Oct 8, 2010
381
158
0
i believe this requires custom kernel with USB-OTG enabled?

i tried this on stock 4.0.2, the usb port is just not kicking out any power still.
 

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
:( tried on my stock rooted 4.0.2, first of all, its not requesting for root permission.

and second of all, nothing happen when i plugged in a usb stick. the usb stick did not even lit up.

any ideas?
Doesn't light up... are you using the right cable? I think my USB stick lit up even when I was using the original no-USB-host Nexus kernel ?
 
  • Like
Reactions: 7071 and Jsilver73

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
Weird. As I said, it works on my stock rooted Galaxy Nexus (no custom kernel, the ICL53F kernel but rooted). And your USB lighting up actually has nothing to do with StickMount. The device already talks to the USB stick - the only thing StickMount does is mount the partition.
 
  • Like
Reactions: Jsilver73 and ALD3

qwerp_

New member
Oct 8, 2010
381
158
0
Weird. As I said, it works on my stock rooted Galaxy Nexus (no custom kernel, the ICL53F kernel but rooted). And your USB lighting up actually has nothing to do with StickMount. The device already talks to the USB stick - the only thing StickMount does is mount the partition.
weird for me. thanks for the support anyway.

for some reason, it just won;t supply any 5+ to the usb devices.

can i know what usb-otg cable you using?
 

dahotz

New member
Jun 10, 2010
88
8
0
NJ
Hello Chainfire,
Thank you for all your help so far. I am trying this, using the OTG cable that worked with my Motorola Xoom. Unfortunately, it is not working. The drive lights up, but it does not mount the partition.

Galaxy Nexus (CDMA) - Rooted
ROM: Android Revolution HD 2.1.1 LTE
Android Version: 4.0.2 (ICL53F)

Kernel version: 3.0.8-gaaa2611 [email protected] # 1
 

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
Hello Chainfire,
Thank you for all your help so far. I am trying this, using the OTG cable that worked with my Motorola Xoom. Unfortunately, it is not working. The drive lights up, but it does not mount the partition.

Galaxy Nexus (CDMA) - Rooted
ROM: Android Revolution HD 2.1.1 LTE
Android Version: 4.0.2 (ICL53F)

Kernel version: 3.0.8-gaaa2611 [email protected] # 1
Do you know the filesystem of the stick ? fat32 ? ntfs ? ext ?

I should probably make a log function for info I need, heh.
 

Luxferro

New member
Nov 19, 2009
1,510
433
0
Long Island, NY
is there any chance the mount location can be changed so it's not within the /sdcard folder? Perhaps /mnt unless that isn't the proper place to for mounted devices?

The reason I ask is for backing up the /sdcard. It would be easier to copy /sdcard to a folder that wasn't within the /sdcard path.
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,421
87,559
0
www.chainfire.eu
is there any chance the mount location can be changed so it's not within the /sdcard folder? Perhaps /mnt unless that isn't the proper place to for mounted devices?

The reason I ask is for backing up the /sdcard. It would be easier to copy /sdcard to a folder that wasn't within the /sdcard path.
The reason this stuff is usually under /sdcard is because all programs that can work with the external storage can then access it...