yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Parastie:
I figured it out. I flashed gapps before installing the script, which of course is filling up the /system directory and causing problems. I reflashed the rom, then install your script and it worked fine. Flashed gapps and it killed everything. I have to find a smaller gapps installer. :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
And I have to add a system remaining space test to the app script installer :)

B.t.w. About gapps. Extract the ZIP. Create new folders in the root of the zip data/app-system. Move everything from system/app into data/app-system. Re-zip and flash the gapps package. Reboot and M2SD will link all the package files to /system/app on your device. Problem solved.
[Android Software/Hacking General [Developers Only]] mixednuts:
Nice... what minimum are you thinking?

Great tip! No modification to the scripts, within the gapps zip, needed? Also, when re-zipping it does have to be the storage compression level, correct?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

Everything above 0

No just move the apps rezip with normal compression
[Android Software/Hacking General [Developers Only]] kla960:
AW: [SCRIPTS]CronMod-A2SD/D2EXT/INT2EXT (updated 09/19)

This is a feature request. In most CM ROMs zram can be used as swap. It is handled be the init script called 06handleswap. But that script is deleted by mounts2sd.

Can you add support for that?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It is deleted because it also handles the SWAP partition on the sdcard.

But I will see to that this is added to M2SD. Not sure when, right now I am cleaning up, rebuilding and adding support for different screen types
[Android Software/Hacking General [Developers Only]] gregferns:
@dk

I have a small situation. I flash different rooms on the N1 but I have a lot of apps.

Now after flashing a new rom, if I log in while setup is getting done, then google

starts restoring all my apps and my data partition gets filled. I can stop it, install your app

from the play store, configure it and reboot, but then after reboot, sometimes google doesn't

AUTOMATICALLY restore all my apps.

So is there a way I can configure your zip file to install R-MOUNT at the time of initial flashing of rom?

Thanks
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Why not just use the ZIP in recovery? M2SD stores it's configs in /data/property, so if you don't wipe, then all your configurations are preserved while flashing new ROM's and M2SD will handle it's tasks during first boot.
[Android Software/Hacking General [Developers Only]] NeoFox69:
After version v4.5 of CM10.1 VJ Jelly Bean, doesn't work for me...

Hello DK.

Definitely, there's something wrong, because even with the latest update (v4.7.1), the script doesn't work.

With the v4.5 it works excellent, but from v4.6 forward, I can't install nothing after installing the script.

I've re-partitioned my SD, I've installed fresh ROM, with full-wipe, but can't get it work.

Maybe it's some change that happened in the ROM that is causing the problem?

Sorry, but I'm not a developer, so can't help you much, but I've tried different ways.

Thanks, and be cool everybody!
[Android Software/Hacking General [Developers Only]] luminata:
Samsung GT-S5570i GB 2.3.6

Hi,

I tried to apply the script on the above phone.

I rooted stock ROM by applying an update.zip file found in anoter forum.

Partitioned the sd-card using 4ext from my HTC desire.

I installed mounts2sd app and configured busybox and init.rc from the application.

When I enable the script and reboot the phone, the app shows an error.

the only line in the log is "the script has not been fully executed during boot "

Can you kindly let me know what I need to do to fix this please as the log is I cannot find a solution from this log entry.

Thanks in advance
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
First, the Ext4 partition should be the second partition on your sdcard. Second, you need to apply init.d support to your Ramdisk (Boot.img / kernel). Without init.d support, the script will not be executed during boot.
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

Please add aroma support, it was a great thing and you could let us decide within the app wether we have a mtd device or an ext device.

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] gregferns:
Thanks for your reply, but the issue here is that I do FULL WIPES OF ALL PARTITIONS INCLUDING SD-EXT when I am flashing from let's say EVERVOLV Rom to CYANMOBILE GB rom. So I don't think settings will remain.

Hence I need to MAYBE modify the script so that when I flash at boot, it will set it to RMOUNT and then I will setup the phone.

Is something like this possible?

Thanks

Greg

Edit : also as Martin mentioned is it possible to have the recovery zip in aroma installer? Maybe that's asking too much but.......
[Android Software/Hacking General [Developers Only]] luminata:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

I set 2nd partition as ext 3.

Should work aswell. I will need to find how to set boot.img.....any pointers? :p
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

After flash, just execute "echo 1 > /data/property/m2sd.enable_reversed_mount". Remember to mount data.

I will see if I get some time to include Aroma.

You will have to create a thread for this question. I know how on Linux, I don't touch Windows.
[Android Software/Hacking General [Developers Only]] gregferns:
Forgive the noob question, but how do I do that? I use 4ext as my recovery.

Do I have to execute it via adb by any chance?
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
@DK

To be sure, is there a difference between R-mount + data and no R-mount + app + cache ?

Because R-mount still breaks the dev settings =(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes that is done via ADB from recovery after flashing the ROM. That will create the mentioned file with the flag 1, which will enable rmount in m2sd during boot.

Yes. R-mount + data will store application data on your real data partition (/sd-ext) while no R-mount + data will store application data on your sd-ext partition (/sd-ext).

Enabling data will always move application data into /sd-ext. Only difference is which partition is mounted on that location.

And the cache option is not affected by R-Mount. It will move your cache partition to the partition (data or sd-ext) that has the most available space, no mater where that partition is located.

If R-mount does not work for you, then keep it disabled. There really is no point in enabling it. I added the option pr request, but I have never seen any real usage for it.
[Android Software/Hacking General [Developers Only]] lichan:
DK, what, specifically, are the package manager and download manager caches? I've lost the ability to download/update from the Play Store and I noticed in the log that m2sd could not find the /data/data/com.android.providers.downloads/cache. There was also no cache directory in the /sd-ext/data/com.android.packageinstaller directory, if those are the locations where they are supposed to exist. I created a cache directory in each of those locations but still get the 492 error in the Play Store. Any thoughts? Thanks.
[Android Software/Hacking General [Developers Only]] uf0999:
Sorry, this is from gapp updater-script:

[B]run_program("/sbin/busybox", "mount", "/system");[/B]
show_progress(1, 15);
delete("/system/app/Calendar.apk","/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk");
[B]ui_print("Copying files...");
package_extract_dir("system", "/system");[/B]
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
ui_print("Setting Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("Unmounting system...");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");

How it is supposed /sd-ext/system-app will be moved to sdext partition since, if I'm not wrong, script will mount and move only /system folder?

---------- Post added at 09:29 AM ---------- Previous post was at 09:26 AM ----------

This is from my ROM updater script:

mount("yaffs2", "MTD", "system", "/system");

Am I supposed to use MTD version of the script?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It's because gapps does not unpack anything else other than system. Just add

[B]run_program("/sbin/busybox", "mount", "/data");
[/B][B]package_extract_dir("data", "/data");[/B]
[B]set_perm_recursive(0, 0, 0755, 0644, "/data/app-system");[/B]

to your updater-script. And then make sure that /data/app-system/ exist in the root of your ZIP containing the system applications.
[Android Software/Hacking General [Developers Only]] uf0999:
Like I supposed :D

Thanks.

And for the MTD?

Which version I have to use?

I'm planning to include directly in the rom zip
[Android Software/Hacking General [Developers Only]] imedia0:
I tried formatting and partioning and flushing rom(aokp b3) and m2sd.

But It's same situation. :(

I tried another rom(CM9 ics).. It's also. I think it occurred problem to my phone, on any roms.

I don't know what I doing wrong.

Please help any advice to me, for install rom with m2sd.

Desire, 8g mSD, rooted, CWM 5.0.x, S-off

want to: AOKP rom with m2sd(apps to sd) :o
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Then change your gmail account to googlemail account (<name>.gmail.com ~ <name>.googlemail.com). It is the only thing left that has worked for others.
[Android Software/Hacking General [Developers Only]] TBagwell:
Thanks for your answer. I just got time to test it again.

When the phone goes back in recovery after begin crashed, I have nothing in /data/.m2sd/... :confused: (the folder is missing)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Ok, then the phone stalls before anything is done in the script.

Try moving m2sd away from init.d, boot the phone, move it back and execute it when the phone has booted. Then you will be able to any problems.

(From recovery) mount /system

(From recovery) mv /system/etc/init.d/10mounts2sd /system/etc/

Reboot phone

su

mount -o remount,rw /system

mv /system/etc/10mounts2sd /system/etc/init.d/

(Execute m2sd) /system/etc/init.d/10mounts2sd

(Check status) m2sd log && m2sd status
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
P.S.

Disable anything that moves content around. We don't want it to move content when the system is booted.

m2sd apps disable

m2sd dalvik disable

m2sd data disable

m2sd cache disable

Now it will only mount sd-ext, but it will not actually do anything besides that :)
[Android Software/Hacking General [Developers Only]] TBagwell:
At step 2, I'm using 4EXT recovery and I don't have a shell on it, how to move 10mounts2sd ?

From step 4 do I have to be on the ROM running and using a shell ? On step 7, how do I need to execute m2sd ? From the recovery ?

Thanks for your precious help !
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You use ADB to shell your way to your phones recovery from your PC.

The two first steps is done from recovery. The rest is done after the phone has booted into Android. Here you can use ADB as well.

I will guess and say that you are a happy windows user? Well when it comes to getting ADB to work on windows, I am a very very happy Linux user :D

But here you have a guide to help you get it working: http://www.theandroidsoul.com/how-to-install-adb-on-windows-full-guide/

After you have this up and running, you can go to your Windows Shell and type "adb shell" to get access to your Android Phone. And it is a lot easier to handle shell commands from your own PC rather than from a terminal on the Phone.
[Android Software/Hacking General [Developers Only]] erlucky:
Hi dk_zero-cool

Thank you for your job.

I want use your script for my rom but with my aroma installer 2.00 A4.

I would like to integrate my aroma installer with your installer I'd like to end the installation of the rom choose your options of your aroma.

Is possible?

I can send you my meta-inf if can help me.......

I use 2.00 A4 the last of amarullz with multilanguages (only first part).

Link of my rom ---> Here

Bye and thank you.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Don't think much have changed in the structure of the checkboxes in aroma from the version I use to the 2.0 version. So just add the parts along with my m2sd configuration script and you should be good to go. Most of the Aroma changed are Touch Screen fixes and language support for now.
[Android Software/Hacking General [Developers Only]] CrimsonKnight13:
Best app2sd script around. Thanks dk_zero-cool!
[Android Software/Hacking General [Developers Only]] erlucky:
I try today to include your script into my aroma installer.

Ok the difference from 2.00 and 2.00 A4 is little but i must include on the end of installation your script first of reboot.....

Bye.
[Android Software/Hacking General [Developers Only]] TBagwell:
Once again, thanks. Unfortunately, even after moving mv /system/etc/init.d/10mounts2sd to /system/etc/, the phone isn't booting. :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well then it can't have anything to do with the script. If the script is not placed in /system/etc/init.d, then it is not executed during boot.

Maybe it's some of the ext2 libraries that is packed with m2sd?

Try unpacking the ZIP file on your computer.

Delete the folder "lib", repack the files into a ZIP and flash it.
[Android Software/Hacking General [Developers Only]] TBagwell:
Actually the folder was in init.d. But after moving it I wasn't able to boot the phone. I'll try your new solution.

Thanks
[Android Software/Hacking General [Developers Only]] vikasb32:
I am using cm7 and when i flash mounts2sd-2.2.0_legacy.zip i got status0 error.plz help me with this
[Android Software/Hacking General [Developers Only]] TBagwell:
Hi !

Just tried to remove the lib from the zip but it doesn't work too... :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
then try aroma

What phone are you using? And what ROM?
[Android Software/Hacking General [Developers Only]] vikasb32:
But my rom not supported aroma.:(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Your ROM has nothing to do with Aroma, so what in gods name are you talking about. Aroma is executed from within recovery, just like the regular update binary. And since Aroma is not depended on any external libs, there is no dependencies.

Have you even tried it?
[Android Software/Hacking General [Developers Only]] TBagwell:
A Desire with RevolutioN Rom v3.0.
[Android Software/Hacking General [Developers Only]] paradoxiumwind:
Seem to have all my issues sorted out now. Thanks for the help earlier OP.

Just wondering, are the default settings the best / optimal for speed? Or will, for example, enabling data/data on sd-ext/data make things faster, or slower? same for dalvik cache? and what about cache auto/on/off, for speed which should be set? Readahead for the SD card also, no idea what this means, my card is 32gb, is the default value for that fine or does it not make a difference? (Class 10 microSD 32gb samsung card)

There's also the setting to disable tmpfs cache, and disable cache folders, leave those off for speed, or turn them on for speed?

Apologies for the simple questions, basically I'm looking for what would be best to increase speed overall.
[Android Software/Hacking General [Developers Only]] KindredPhantom:
Hi, I'm having a problem trying to move internal data from my phone to the sd card partition using Mounts2SD. The app tells me in the status that

so I am unable to move it. Any help is appreciated, thanks.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

It means that you have another script handling sd-ext. Did you use Link2sd before? It seams users have trouble getting rid of that without a wipe, a problem that I am looking into.
[Android Software/Hacking General [Developers Only]] KindredPhantom:
This is my first time using it. Seems I'll have to wipe and try again, no problem.
[Android Software/Hacking General [Developers Only]] juancollado2003:
it worked like a charm,in my atrix 4g very thx, now I have a hided partition in my cell :laugh: :good: :highfive:
[Android Software/Hacking General [Developers Only]] masoudr:
In older versions when I booted my phone the application showed notification icon with unknown error,but everything worked fine except moving data to sd.

did you fix it in newer version ?

and I have Xperia mini pro with ext4 partition and swap,

which recovery is suitable for me ?

MTD or Ext4 ?

I want to install it from cwm

thanks and sry for bad english
[Android Software/Hacking General [Developers Only]] paradoxiumwind:
Can anyone answer this for me please?
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
The best speed is when you don't use Mounts2SD.

Not the script is slowing your device, but putting data, apps or anything else on your SD is often equivalent to slow down your device (I don't think SD is faster than inner memory).

So you will need to choose between more space and full speed. But you could use Mounts2SD without significant slow down. Personally, I use app+dalvik with the readahead related to my class10 card.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

It is working fine, your busybox just does not support any additional arguments being parsed when mounting. Just update busybox and the warning will go away.
[Android Software/Hacking General [Developers Only]] KindredPhantom:
Oh right, thanks. I guess I was just a little confused about it.
[Android Software/Hacking General [Developers Only]] eikeime:
problem with reverse mount

hi,i had a problem with mounts2sd.

Device:htc desire

Rom: cm10.1 vj

problem: when active reverse mount developer options FC, deactive reverse mount developer options works fine again.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Reversed mount works for some devices, depending on how init.d is handled in your boot.img. If it does not work for you, then keep it disabled. It is not an important feature anyway.
[Android Software/Hacking General [Developers Only]] gps3dx:
Hi..

a quick question which I didn't find any answer:

Using m2sd, I have enabled : apps, data, r-mount + safemode is OFF and it's working properly.

If I go to recovery and delete "dalvik+cache" - do I need to do anything to get back into android WITHOUT BOOTLOOPS ?:confused:

Do I need to do something in m2sd's configuration app, before I delete "dalvik+cache" ?

please advise,

thnx.:o
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No. Dexopt will rebuild the cache during boot. It's actually the same thing that hapens when you move dalvik-cache, the script deletes it, and Android rebuilts it in the new location.
[Android Software/Hacking General [Developers Only]] nik007rock:
apps are optimizing on every boot

takes too much time to boot how to stop it ??
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Clear dalvik-cache in recovery should work. Still trying to locate the issue on this one.
[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

Which Rom are you using bro?

cm10 htc a310e k2.6 w /smooth of butter
[Android Software/Hacking General [Developers Only]] nik007rock:
tried on cm10 beta and also on cm9 but same result maybe pmr is interfering with mount2sd
[Android Software/Hacking General [Developers Only]] GoNzO-BiRdY:
Small theory proved BIG!

Have reverse mount working flawless on my HTC Desire running CM10.

"Reverse mount" script is run and tricks the system into thinking the internal memory is on the SD card.

Then, if the secondary scripts are also run that tells the system to move data or cache or install new apps to the SD card, the system thinks the SD card is in it's "real" internal memory... producing uknown errors and apps not installing, because the physical space is just not there.

Solution -

Start with a fresh flash of your rom. move anything that's installed on SD card into internal memory if not enough space uninstall the programs.

run mounts2sd.... the only 2 things checkmarked should be "Status" and "Reversed Mount". Set Cache from "auto" to "off" as well.

(I currently do not have a swap partition, shouldn't matter if this is checkmarked or not) Please post if I'm wrong.

Exit app and restart. you should have 800+MB of storage now to enjoy!

IMPORTANT!!!.... Do not move any apps to SD card. Remember they are already on the SD card, doing so will only move them to the phone's "real" internal storage.

Hope this helps!
[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

What version of mount2SD? Is it play version? /the one posted in our forum?

I tried the play version both on cm9 and cm10..no problem.. (though a older one)

"How many apps are optimizing? "

Did you install acid /xloud?

cm10 htc a310e k2.6 w /smooth of butter & broke Cam/corder
[Android Software/Hacking General [Developers Only]] nik007rock:
first i tried the one from our forum it worked no prob but iam the one who is always up to date(with apps and all) so i tried this one(apk)

almost all apps 70-80 apps
[Android Software/Hacking General [Developers Only]] Astorcamon:
Nice script, but i have some issues on jb 4.2.1 (Rom: OldDroid CM 10.1 for Ace s5830) (SD: Samsung 32 GB C10)

I need disable "safe mode" to use "move data" or "move dalvik".

1 - Moving dalvik did my phone really unstable. (Freezes, crashes, double boot with double optimizing apps, errors on file system, and all you can imagine)

2 - Moving data i get "not enough space" from play store. (Only movable apps can be installed).

3- Using "reverse mount" option, doesn't end booting. (Fails too on DroidAce Rom CM 7.2)

I´m having the same 2 and 3 problems with other xxx2SD scripts.

I followed this steps to install: Wipes and format system > install rom > reboot > install script > format sd to Ext3 or Ext4 > reboot
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.2.0/5.5.0 - Jan 26, 201

Like it says. Disabling safe-mode works for some, but not all. The reason safe-mode is even on, is because your ROM executes init.d as a service. The issue is with the ROM. Only fix is to implement proper init.d to your ROM, something many ROM devs has been getting very bad at. Even some official CM roms has started emerging which uses the pure lacy init.d implementation, which does not look good for init.d's future.
[Android Software/Hacking General [Developers Only]] Astorcamon:
Thx dk_zero, i think that implement a proper init.d is not in my hands. But i can try if anyone knows a way to fix it (?).

I´m new on android :cool: looking for extend the memory of my phone :good: