yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] suael:
do i need to use additional app if i want to move desired app instead of moving all apps...and why dont u add thz feature to the mount2sd app//whn i restore app usng titanium backup ..i thnk the apps are restorng to internal memory..how can i move thm to ext3 partiotion...//how can i prevent all apps moving to my second partitn...i av trid rmount and everythng............am on cm10
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
This is Mounts2SD. If you want the option so select which apps should be moved, you should install Link2SD. This feature is never gonna be available here, I find it ugly and unstable.
[Android Software/Hacking General [Developers Only]] guastucci:
Is this works in SG3 with Slim Beam 4.2.2? Thanks.
[Android Software/Hacking General [Developers Only]] Nightshadow931:
Yes, if your phone is rooted, your kernel supports init.d and you've created ext partition on ur sdcard.
[Android Software/Hacking General [Developers Only]] gu5t3r:
It's due to kernel, not rom... Ask you kernel developer if he has proper exec init.d support for full Mounts2SD support?
[Android Software/Hacking General [Developers Only]] Nightshadow931:
Thanks for this app, it works well on my cm10.

A lot faster than int2ext*.

One thing to ask though, how can I see how much my /cache is actually using? I'm considering to move /cache or dalvik-cache to internal memory for the speed.

Here's my config..
[Android Software/Hacking General [Developers Only]] BleedingIris:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

diskusage app

LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.

If I haven't given you link, it's above. Just click it
[Android Software/Hacking General [Developers Only]] Guitwo2:
I was wondering...

You propose in your script to set a readahead value.

I supposed the max readahead value is the write cache size.

Why not set /sys/devices/virtual/bdi/$mmcMM/min_value and /sys/devices/virtual/bdi/$mmcMM/max_value to other values than 0 and 100 for better QoS ?

---------- Post added at 12:44 PM ---------- Previous post was at 12:38 PM ----------

Plus, why do you adjust all other readahead values (/data /system ....) to 4kb ?

Why not also here set min and max values ?
[Android Software/Hacking General [Developers Only]] Cabronbr:
it works fine

it works very well in my phone with more than one rom. Just change your recovery to 4xt
[Android Software/Hacking General [Developers Only]] hajdulak:
So if I run into safe-mode because of the fact described in the OP, how do I fix it manually? (JB 4.2.2)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Just disable safe-mode from the configure screen
[Android Software/Hacking General [Developers Only]] gu5t3r:
Hi. I'm testing Vengeance 1.34 kernel, LuPuS was installed before...

Phone booted normal and sd-ext is properly mounted but Mounts2SD app is giving error/warning on boot...

When I look at log, it states

Can it be because of older busybox in Vengeance kernel?

---------- Post added at 04:52 PM ---------- Previous post was at 04:51 PM ----------

And I don't get why is it trying to revert back to /data when /sd-ext is selected?

Will try to replace /sbin/busybox...
[Android Software/Hacking General [Developers Only]] gu5t3r:
Replaced busybox with newer one and it works ok again...
[Android Software/Hacking General [Developers Only]] kla960:
Vijendrahs new CM10.1 ROM includes a new init.d script called 03sdcard that prevents mounts2sd from acting.
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Here is a link to the OP for this ROM: http://xdaforums.com/showthread.php?t=2070704

Here is the content of the script (removing it made m2sd works :angel:):

#!/system/xbin/bash

mount='/system/bin/mount'
mkdir='/system/bin/mkdir'
sdext='/dev/block/mmcblk0p2'

$mount -o remount,rw /
$mkdir /sd-ext
$mount -o remount,ro /

if [ -e $sdext ];
then
$mount -t ext4 $sdext /sd-ext
$mount -t ext3 $sdext /sd-ext
fi;
[Android Software/Hacking General [Developers Only]] hajdulak:
Nah, it mounts and moves everything but doesn't load the apps
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Apps is always available, even with safe-mode. I will need a log from you if you need further help. You need to enable debug first to get a more extended log entry.
[Android Software/Hacking General [Developers Only]] vikasb32:
Hello mount2sd works very good but i updated my rom now its not working.i just select reverse mount and reboot the phone.i saw android is upgrading but then boot animation is start and my phone is stock at boot animation.i tried all three partition ext2,ext3,ext4 but same result.any idea whats wrong.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No, I cannot mind read. A log would maybe help a bit ;)

Also, when a you have problems, its' best to keep with the default settings first to see if that helps. That way you would know if this issue is related to R-Mount, which I would stop using as this will be removed in the next release.
[Android Software/Hacking General [Developers Only]] rkmiks:
I have been using mounts2sd on my galaxy y for a while and have no problems as such with only one problem that after booting the phone the phone starts and then mounts2sd starts (I know it because of the superuser permissions granted prompt) and after some time it becomes kind of unresponsive and boots again and then it works normally. So I disabled mounts2sd on startup with startup manager and now there is no double boot. There is nothing abnormal in the log. I suppose this problem is because of low RAM device. What I need to ask is that - Is it Ok this way or enabling mounts2sd on startup is absolutely necessary ?
[Android Software/Hacking General [Developers Only]] post-mortem:
Do you mean that if you disable Mounts2SD on startup, you can still access your EXT partition?
[Android Software/Hacking General [Developers Only]] rkmiks:
Even after disabling mounts2sd on startup I can still access EXT partition because accessing that partition depends on the script in init.d folder right ? All I need to know is If thats okay to keep the application mounts2sd disabled from running at startup .
[Android Software/Hacking General [Developers Only]] post-mortem:
I suppose, once you have a working script, you'll have no need for the app. It would be helpful if you wanted to make any changes to the configuration (obviously), or to monitor the log.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The way the application works now, it does execute some final steps of the application which needs to be executed after the device has been booted. This will of cause not be executed until the app has been run. However these steps are very minor, in form of changing the storage threshold and such, which is already set correctly if it has been executed once already. So the answer is no. Nothing will stop working if you disable the app at startup. Only issue for you, is that you will get the first time configuration the first time you open the app. This would have been done in the background during boot if the app was not disabled.

In the new Script/App that I am working on, I have removed the final script steps from the app, as I found a way to initiate this from within the script while it is being executed by init. So here there will be absolutely no issues by disabling the app at startup.
[Android Software/Hacking General [Developers Only]] efuzone:
Hello,

I am familiar with mounts2sd and using in my mobile just want to ask a question i hope people will not laugh. If someone has stock gingerbread in this htc explorer, and he has bootloader unlocked and rooted will this work in his mobile?
[Android Software/Hacking General [Developers Only]] Nightshadow931:
You have to be rooted, with kernel which supports init.d and an ext partition on your sdcard.
[Android Software/Hacking General [Developers Only]] post-mortem:
You might need to flash a kernel for it to work. The kernel you're using must support init.d. I think most/all stock kernels don't have init.d support, since they don't design the OS with root access in mind (if you're not rooted, you don't need init.d, so they don't put it in).

Anyway, no harm in trying it.
[Android Software/Hacking General [Developers Only]] Guitwo2:
All kernel can have init.d support. See http://xdaforums.com/showthread.php?t=1933849
[Android Software/Hacking General [Developers Only]] atmos929:
Hello there.

I have tried wiping dalvyk in recovery but I still get the "android is upgrading" stuff on everyboot. :(

also I have installed several versions of sqlite with sqlite_installer_for_root, but I always get the "Storage threshold not changed, sqlite returns result code 255"

what's the implication of these threshold?... can I live with it? :)

I am currently using a CM10 rom. Let me know if you need more information as I am writing this post in a hurry :D.

Cheers!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
"android is upgrading" is an issue with the cache issue while the ROM uses CM's System Davik (/cache/dalvik-cache). Just disable the cache option for now and the issue will go away.

About sqlite3, could you enable debug and then include the error message for this issue? 255 usually means that a binary is not available which I find strange since M2SD checks for this before attempting to use it.
[Android Software/Hacking General [Developers Only]] atmos929:
thank you for your swift response.

I did a clean install of kernel and ROM... and when installing mount2sd, I have checked Applications and Data, and unchecked Dalvik Cache and Cache... rebooted and I don't see "android is upgrading" stuff anymore... and I don't see the sqlite error either... O_o.

Thanks!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Within a week or so, I will release a new major update of Mounts2SD, which will contain

New Re-written script with additional new option

Seperate option for app libraries (Android 4.x)

New option to move /data/media (The new type of internal sdcard used on Samsung among others)

Ability to enable ZRAM

Ability to set preferred scheduler on external and internal MMC

Ability to also set readahead on internal MMC

Ability to set preferred storage threshold, or disable it (Instead of hard coded value)

The finalising part has been added to a sub-process which is started by the app itself. This is no longer depended on the app to execute it after boot

Default values will be configured based on the device and it's abilities

And more....

New Re-written app

Live overview (No more pre-defined onboot status properties)

New layout

3 different layout's for small phones screens, normal phone screens and tablet screens (And of cause different landscape/portrait layouts for each of them)

Only allow the owner to control the script (Android 4.2 multi-user)

New Re-written RootFW (Spazedog Root Framework)

New and better extended AsyncTask for background loading

Overview and Configure will now adapt to the abilities available on the device (For an example, SWAP will not be displayed at all on devices without SWAP suppport)

And more...

However, before this is finished, I would like it very much if someone could provide me with a version of /system/etc/recovery.sh after Link2SD has added whatever content it adds to this file, so that I can update the auto sd-ext deletion script to better remove Link2SD from a device. I have tried installing Link2SD on two of my test devices, but on neither was anything added to this file. So for now I have just update the deletion script to also include the Link2SD app, which should take care of most of the problems when migrating from this.
[Android Software/Hacking General [Developers Only]] post-mortem:
I think the file you're looking for is /system/etc/install_recovery.sh.
[Android Software/Hacking General [Developers Only]] gu5t3r:
/system/etc/install-recovery.sh
[Android Software/Hacking General [Developers Only]] mixednuts:
That's a service type init.d... can be limited.

I believe he needs an actual file from someone's whose made use of Link2sd :p
[Android Software/Hacking General [Developers Only]] gu5t3r:
Here We Go
[Android Software/Hacking General [Developers Only]] gu5t3r:
Also, L2SD doesn't add code to install-recovery.sh, it overwrites it...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Thanks :)

Some devices use this file to add init.d support. If Link2SD overwrites this file, then those devices would loose the init.d support? In those cases, seeding the Link2SD content out of that file would still create problems when adding Mounts2SD, as init.d would not be executed?

Sorry for the questions, just trying to figure out how Link2SD operates. For some reason, install-recovery.sh is not used by Link2SD on all devices. The two test devices I tested the script on, did not add that file.
[Android Software/Hacking General [Developers Only]] gu5t3r:
Correct...

Before I UBL, had init.d support from install-recovery.sh but L2SD overwritten it...

I needed to add init.d code again to install-recovery.sh
[Android Software/Hacking General [Developers Only]] mbirth:
When setting up m2SD on my Nexus One with Evervolv 4.2.2, I got into a hanging boot when enabling reverse_mount.

The problem was the /sd-ext/backup (internal memory) folder which didn't get moved to the /data (ext4-partition on SD) folder. There was a file /sd-ext/backup/pending/journal1234567890.tmp still in use and thus the file couldn't be moved. Maybe that's why m2SD failed moving it. But creating the folder structure in /data alone was sufficient and after one more reboot, it worked.

The structure is like this:

/data

┗backup

┣com.android.internal.backup.LocalTransport (empty folder)

┣com.google.android.backup.BackupTransportService (empty folder)

┗pending (folder)

┗journal1234567890.tmp (file)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes, this has been known for a while. However, reversed mount is gonna be removed in the next release, so no fix needed.
[Android Software/Hacking General [Developers Only]] MathSWE:
Can get to work.... :-\

Hello All!

Im having problems getting this to work on a HTC Nexus One with Cyanogenmod 10.1.

I tried to mkdir the missing directories to the partition but its read only when I use the terminal emulator. Should I just add the sd-ext/tmp and sd-ext/cache by USB-connecting the SD-card with an adapter to a linux computer? (I dont want to fiddle with the work windows-computer).

Or is the problem itself that the partition somehow is read only and the script cant create the required folders?

Parts of the log:

v/script - Attaching /sd-ext/cache to /cache

e/enable_cache - It was not possible to attach /sd-ext/cache to /cache!

d/script - Shell Error Message: [mount: mounting /sd-ext/cache on /cache failed: No such file or directory ...]

d/script - Examining how to handle /data/data/com.android.providers.downloads/cache

v/script - Attaching /data/data/com.android.providers.downloads/cache on /sd-ext/data@providers.downloads@cache

w/script - Could not attach /data/data/com.android.providers.downloads/cache on /sd-ext/data@providers.downloads@cache

d/script - Shell Error Message: [mount: mounting /sd-ext/data@providers.downloads@cache on /data/data/com.android.providers.downloads/cache failed: No such file or directory ...]

v/script - Changing permissions on /data/local/tmp

v/script - Attaching /data/local/tmp on /sd-ext/data@local@tmp

w/script - Could not attach /data/local/tmp on /sd-ext/data@local@tmp

d/script - Shell Error Message: [mount: mounting /sd-ext/data@local@tmp on /data/local/tmp failed: No such file or directory ...]

Help appreciated, really need to get this phone up and running!
[Android Software/Hacking General [Developers Only]] mbirth:
WHY? I like it that Preferences → Apps shows the real space available on the microSD on the bottom instead of the few MB available on /data (internal) without knowing that the apps don't count against that.
[Android Software/Hacking General [Developers Only]] leolawliet:
No matter what I try I can't get it to work on mg device running ICS.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Try updating busybox

And that is the only benefit with R-Mount. Do you have any idea how much extra code is needed for this option? On top of that this option has created one issue after another since day one, and there is no reason for using it, other than having the partition size displayed in Android settings. You can see both partition from the app. I am sorry, but it is just not worth the trouble.

I need a little more specific information
[Android Software/Hacking General [Developers Only]] droidblade:
Not working in my HTC Explorer with Ext 4 partition. It says "The sd-ext partition could not be mounted " :/
[Android Software/Hacking General [Developers Only]] MathSWE:
Busybox wasnt installed... :o so I did it. Then I did a remove data for the Mounts2SD in the app settings. I uninstalled and reinstalled Mounts2SD.

But still the same error message. Complete log: pastebin.com / tnBLDi3Q

Spaces inserted since I cant yet paste direct links in here due to <10 posts.
[Android Software/Hacking General [Developers Only]] Fat_boy555:
Can I use this with other scripts? I have cronmod int2ext+v2 installed and the dalvik cache on internal is giving me problems. Every time the dalvik cache is full, all the apps I installed crash and I was. So can I use this to move my dalvik cache to sdext in conjunction with cronmod scripts? Or do I have to u install and use this instead? Someone please help me.
[Android Software/Hacking General [Developers Only]] Anath_Akhan:
Kernel 3 problem with ext4

Hi,

If you are using ext4 with kernel 3.0.16 for Pico, then it isn`t the scripts fault. The kernel can`t handle ext4. Try ext2 or 3.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
First of all, the script does not run if busybox is not available, it will instead quit with an error, so you must have had busybox. Second, busybox is so limited than even the error messages are trimmed down. This means that you cannot trust what the error tells you as most busybox versions will report the same error message for every type of error. Try another version of busybox.

Second, you have another sd-ext script installed. This is also reported in the log. Remove this before attempting to use this script.

No. You should not have two seperate scripts working on the same things, also why would you? If you install multiple sd-ext script, then don't post errors here. This will be at your own risk as issues will be expected.
[Android Software/Hacking General [Developers Only]] gu5t3r:
I think it's old busybox incompatibility.... As ROM's come with old 1.18.xx busyboxes...
[Android Software/Hacking General [Developers Only]] mixednuts:
Try using TWRP to create your EXT partitions.
[Android Software/Hacking General [Developers Only]] SeRPRo:
I just checked I have BusyBox 1.21.0-jb

---------- Post added at 04:55 PM ---------- Previous post was at 04:30 PM ----------

I tried to install it and I got this:

fastboot flash recovery openrecovery-twrp-2.5.0.0-m7wls.img
sending 'recovery' (7912 KB)... OKAY
writing 'recovery'... FAILED (remote: image update error)
[Android Software/Hacking General [Developers Only]] gu5t3r:
Dunno then...

I have the same in LuPuSv12 for ARC and Mounts2SD works perfect, also installed it to friends PRO with latest LuPuS and also works perfect...

---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------

Stock ROM's
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Read the log properly

w/script - The sd-ext device /dev/block/mmcblk0p2 is already in use by another script!
[Android Software/Hacking General [Developers Only]] Superpiffer:
You have to follow this instructions! :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Again, just what it said. The file system check found some errors on your partition. Everything is still working though, it is just a warning. You properly have to format sd-ext to fix the partition, but it is not that important.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Strange, try wiping dalvik in recovery
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Maybe you don't have enough space left on /data to contain the dalvik-cache?
[Android Software/Hacking General [Developers Only]] atanasmk16:
I installed this script with the app from play store. It works great on my HTC explorer, but on samsung galaxy ace after installation it wasn't fully working. When I was downloading apps, it moved them to sd-ext, but they didn't appear in launcher. I tried rebooting, reinstalling the app but nothing worked. After that I reflashed my rom, but after I flashed the new rom, I cant install mounts2sd. After installation and configuration, it says that the script didn't run on boot. After reboot, it says that there is already mounts2sd installed on the device.

What should I do? And how to fully remove the script so I could install it all over again?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well, that means that your busybox needs updating. However, the new script does not use "-w" with grep, so when I get the new app done, this problem should be solved. However, it is a very basic feature, so I would still update busybox as you could experience other issues with it.
[Android Software/Hacking General [Developers Only]] lousou76:
Yes thank you, i have.updated busybox and it did work but now i am.getting sqlite binary.giving 255 unable to change threshold. What is this?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It means that you have the binary, but are missing the libraries for it. Search sqlite on play store. There should be an installer which can fix your issue. However, it is not a warning to be worried about. It is a very minor feature.
[Android Software/Hacking General [Developers Only]] siavash2death:
Hello dk. I want to use this for desire. For JB like 4.1.2 or 4.2.2 . I must use mtd version, right? Some problems I have: in some ROMs like VJ ROMs the only thing the developer recommends is activating a2sd with terminal Y/N/Y. and Y/Y/Y is not working. When I want to use m2sd and flash it says that a block of SD is being used by another script and I don't know which one. When I want to use this with a custom hboot, the situation has gotten even worse. After booting ROM, I can't even use the rom and it gives me a lot of FC. Like system ui, android core and so on. Last thing, I'll really be appreciated if you create next version with options can be set when flashing that in recovery, like V4.6.2 . thank you so much.
[Android Software/Hacking General [Developers Only]] atanasmk16:
Still no answer?

I think fully removing the script and installing it again will fix the problem, but any tips on how to fully remove it?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
He changed his ROM and added his own sd-ext script which is activated by default. Remove /system/etc/init.d/03sdcard and Mounts2SD will work again. The new release of this app (Not out yet) have been updated to handle the new script of his

I think your problem is that you already have another sd-ext script installed, or you are missing the init.d support. Could you give me a list of the files located in /system/etc/init.d ? And also a copy of your /init.rc file and /system/etc/install-recovery.sh
[Android Software/Hacking General [Developers Only]] MetinKale38:
Hey,

Great script, I am using it with my HTC Desire.

But I have problems installing it on my brothers desire hd. Neither init.d nor install-recovery.sh are being executed during boot, what to do now?

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
That would be a question better suited on the Desire HD specific forum, or in the thread for the ROM you are using.