[Galaxy S II Themes and Apps] gundalbert:
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.