yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] vivebatu:
Hi ..would it be possible to also write an uninstall script such that if m2sd does not work we can uninstall the changes through cwm?

I have tried 2 previous versions of the script and in both I got stuck at the boot screen, so had to restore through nandroid which takes time and also eliminates data after the backup.

Willing to try ver 3 but an uninstaller will really help
[Android Software/Hacking General [Developers Only]] sarshadd:
Sounds like you should just make a more recent nandroid (i.e. one right before you try the script).
[Android Software/Hacking General [Developers Only]] gapone:
Tried updating to 3.0 and apps gone missing

Hi DK! I tried to update bcm2.2u4's m2sd script to v3.0 (data++ hboot, moved apps,cache,ext4,512kb readahead). All my downloaded apps are missing after reboot and second reboot also. Is it updateable script or?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Think it is the ROM. Update 4 has a lot of issues. I tried it on Update 0 yesterday without problems.

I have an update of the ROM later today where this will be included. Also notice that the last release of the script might have f*** things up on your sd-ext which the new m2sd is not able to fix.
[Android Software/Hacking General [Developers Only]] gapone:
Ok thanks for answering. I'm gonna do full wipe when new rom is released so all problems are hopefully gone :)
[Android Software/Hacking General [Developers Only]] sarshadd:
AROMA INSTALLER version 1.50
(c) 2012 by amarullz xda-developers

ROM Name : Mounts2SD
ROM Version : 3.0.0
ROM Author : DK_Zero-Cool
Device : All
Start at : Sun Mar 25 19:59:17 2012

Preparing installation
unmount of /system failed; no such volume
unmount of /data failed; no such volume
Mounting partitions
Removing old files
Removing existing app2sd scripts
about to run program [/tmp/app2sd_search] with 1 args

Starting installation
Unpacking Mounts2SD
Setting Permissions
Creating symlinks
Configuring Mounts2SD
about to run program [/tmp/m2sd_configure] with 1 args
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.apps: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.data: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.dalvik: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.cache: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.cmdalvik: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.swap: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.dlcache: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.rmount: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.debug: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.extfs: nonexistent directory
/tmp/m2sd_configure: line 112: can't create /system/etc/m2sd/.readahead: nonexistent directory
run_program: child exited with status 1

Finalizing installation
Unmounting partitions...

Done!
script result was [Done!]
Extract: /system/bin/e2fsck
Extract: /system/bin/fix_permissions
Extract: /system/etc/init.d/10mounts2sd
Extract: /system/etc/init.d/10mounts2sd~
Extract: /system/etc/init.d/90threshold
Extract: /system/lib/libext2_blkid.so
Extract: /system/lib/libext2_com_err.so
Extract: /system/lib/libext2_e2p.so
Extract: /system/lib/libext2_profile.so
Extract: /system/lib/libext2_uuid.so
Extract: /system/lib/libext2fs.so
Extract: /system/lib/libsqlite.so
Extract: /system/lib/libsqlite_jni.so
Extract: /system/xbin/busybox.m2sd
Extract: /system/xbin/sqlite3

Installer Sucessfull (Status 0)

End at : Sun Mar 25 19:59:36 2012

Does it not work because my phone is failing to mount /system as r/w? (i.e. when it says it can't create the those volumes because /system/data doesn't exist...)
[Android Software/Hacking General [Developers Only]] devicer:
Not working for me, too. Installed on Desire ICS 0.4.4.4.1, enabled apps and dalvik, but sd-ext not used, all in internal memory.
[Android Software/Hacking General [Developers Only]] adoy:
I have the same problem on my Galaxy Ace. The installer doesn't copy or install the required files! I tried different ROMs and 2 different ClockWork recoveries. Everything seems to be fine (no errors or strange things), but if you reboot and look in the filesystem there isn't anything from m2sd.
[Android Software/Hacking General [Developers Only]] EViollet:
Same here. ICS 0.4.4.4.4.4.4.4.4.4.4.1 (or something like that... ;) ). The phone doesn't finish booting.

Apps->ext

Data->ext

Dalvik->internal

Switched back to v2 let my phone boot again. Had to restore my data and apps to get it working as it did before.

I'd be happy to help if you need to try anything.

Regards,
[Android Software/Hacking General [Developers Only]] t3xa5:
This script works with ANY Android phone?

I'd like to test it on a Huawei U8650 and on a Huawei U8160
[Android Software/Hacking General [Developers Only]] adoy:
If it works, it works with any phone. The only requirement is a kernel with init.d support.

Sent from my mighty Galaxy Ace!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It seams that the read command has some issues on Android. Some times it works, other times it breaks the boot. Will remove it for now and upload one without it.

About the mount issues, I cannot do anything about that. That is a recovery issue. The updater script has a default way of writing mount commands, if your recovery does not understand that (Don't know why it should not), then flash another recovery.

Also, I added the debug option to this script. Enable it please and post output from /system/etc/m2sd/debug.logcat if your phone does not boot. It's why I added it, so be able to see why it does not boot :)
[Android Software/Hacking General [Developers Only]] tazzz811:
I guess i figured it out why in most cases phone stuck on bootlogo....

1. every devices has it own version of libsqlite.so and libsqlite_jni.so

But the thing is... I'm not quite sure why in the package there are two sets of 10mounts2sd files... one is 10mounts2sd and one is 10mounts2sd~... Is it really needed to have both files?

When i finished installing the v3 version and tried running commands in terminal emulator... i'm getting syntax error.... So all in all, installation is completed on my side but after the phone rebooted... Nothing happened... No changes at all on my phone...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
10mounts2sd~ is a backup. It should not be there.

As for syntax error, I am running it just fine on my phone. Only issue was the read command which once awhile stock the phone at boot. Without it there is no issue at all.

But like I said. I will add an update with the read command removed.

Ohh yes, and as for the sqlite libs, it does not matter if they already exists or not. I could make a script for the installer that checks whether they exist or not before copying, but it still is not an issue as these libs are not device depended. There is no special sqlite libs for specific devices.
[Android Software/Hacking General [Developers Only]] tazzz811:
@dk_zero-cool -> since you're going to make some update for this issue. what version would recommend us to use for the meantime?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well I would recommend the update :)

Just uploaded it.
[Android Software/Hacking General [Developers Only]] Phantom Pt. II:
I get a SYNTAX ERROR with the 3.0 Aroma installer :O

SYNTAX ERROR !!! aroma-config on line 98 col 3

E: Error in /sdcard/download/mounts2sd-3.0.0_aroma-updated.zip

(Status 1)

Installation aborted.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Okay, so it took longer than expected, but here we go. New test version added in OP. Not done yet, but much closer. Made a lot of rewrites of both base code and some libraries, finished the theme part, added settings incl. upstart script installer/uninstaller/updater, configure screen with all of the checkbox options (Not done with the Selectors yet, so only checkbox options are available), added missing tablet layout and small screen layout, fixes to the script and added support for /data/[sys folder]_s/ which some custom ROM's uses to store system files on data and much more that I can't remember.

Also, I have been using the new script on 3 different phones (incl. my daily) for a month and a half without any issues. So it should be safe to try out (but remember to backup), and with the added /data/[sys folder]_s/ support, it should provide a wider range of supported ROM's
[Android Software/Hacking General [Developers Only]] v0ids0ul:
The playstore app runs on my xperia ion, but for whatever reason the script will not run at boot. I've tried multiple different methods for enabling init.d (which worked just fine in ics) but for some reason I think it is the problem on JB. I decided to try the beta from this thread and it just opens and immediately crashes. I've tried completely uninstalling and reinstalling and I get the same results.

---------- Post added at 11:54 PM ---------- Previous post was at 11:51 PM ----------

Thought I should add that the playstore app even when I turn debugging on, gives me no useful information at all as to why the script won't run. It just says "the script didn't run properly at boot."
[Android Software/Hacking General [Developers Only]] post-mortem:
Post your log here, so we can see it.

Also, take a look at dk's Injector.
[Android Software/Hacking General [Developers Only]] luminata:
Hi,

I installed the apk before going to sleep and rebooted the phone. This morning it was still on the boot animation. The os didn't boot. I went to recovery and installed the previous version and it started booting and preparing/moving apps.

This was tested on desire bravo with PA 3.60 ROM. Script was updated from the app settings as requested by app.

Can you tell me what I would need to send to help out?

Thanks for your hard work.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
If the script does not run at boot, it cannot collect any useful information. Try Injector as mentioned above try implemenet init.d

About the new app, a logcat from the crash would help getting it fixed.

If it hangs on boot, then there would properly be some messages getting printed over and over again in the log, those would be good to have :)

But first, did you use R-Mount with the old script? And what options did you use?
[Android Software/Hacking General [Developers Only]] luminata:
No i do not use r mount. Left default options....in current app i have application and dalvik and swap(low). If i recall well with beta app i had library selected too by default. Cache is disabled because rom uses different path,i think, and m2sd reported error/warning on boot.

Is it possible to see the boot logs you mentioned or os needs to boot?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
During boot (When it goes into loop), you can check /tmp/log.txt and /data/m2sd.fallback.log (using adb) to see if they contain anything. But it would properly also help to get a logcat from boot.
[Android Software/Hacking General [Developers Only]] luminata:
Ok checked how to do log cat and pull from android.

Pulling m2sd.fallback.log failed (does not exists)

I am attaching log.txt and the logcat (mount2sd_trunc.txt) had to truncate log to upload

it seems libraries are moved and there is insufficient space.

then os fails to find libraries....not sure

I had 1gb sd-ext partition. I resized the partition to 2gb...with minitools partition wizard.

restored backup and re-installed app.

the problem persisted.

hope the attached have all the info you need.

to recovery i need to restore nand backup. installing mount2sd.zip does not solve completely.

View attachment log.txt

View attachment mounts2sd_trunc.txt

View attachment mounts2sd_2gb.txt
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You get a lot of errors

Maybe start by trying with the library option disabled. Also check (you can see from within the app) how much space your library folder takes up.

Also, could you enable debug mode before uploading more logs? I will check the script, because it should calculate a folder size and compare it to the remaining space on a partition before moving, but it does not seam to work for you.
[Android Software/Hacking General [Developers Only]] v0ids0ul:
Will do, when i get a little more time later on. Although, I do find it slightly disturbing that it's called "injector" by a guy named "dk."

Well, at least you don't go by the name of "hot beef."
[Android Software/Hacking General [Developers Only]] luminata:
hi dk i will try a bit later.

just to make sure when I increased sd-ext size and installed app i checked settings and library was ticked but grey. when i pressed on it it was ticked but green.

i changed it again to grey to leave default and not change test parameters i.e leave everything default.

i am confused if the library is enabled or disabled. only Applications had green mark on it.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Green = Enabled

Gray = Disabled

Complain to Google, they are the once who made these icons :D

If you are not sure, then check the file /data/property/m2sd.move_libs, it should contain 0 and not 1
[Android Software/Hacking General [Developers Only]] luminata:
lol not complaining :)

Since the option was set to disabled (according to Colour) should the script still have moved the libraries?

Am I understanding the logcat correctly?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It could, if had rmount enabled in the old script. I made this script to reverse all options if rmount had been enabled before, in order to keep data on the same partitions without rmount. Maybe this has somehow backfired.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Latest Test file is working great on DHD mate, nice work and nice app. Keep the good work up.
[Android Software/Hacking General [Developers Only]] siavash2death:
All of icons in app is gray. Does that really mean that app not working now on my phone? How can I be sure that app is working or not?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The app is working fine, the question is whether or not the script is. Have you installed the script and made a reboot?
[Android Software/Hacking General [Developers Only]] siavash2death:
Yes.I installed the script from application settings(if I remember correctly) and reboot after that. I just have that strange problem I had before even in this version! I still don't know what causing it. Recently this problems even occur with cut the rope time travel now! I should say that again. But I didn't have this problem with int2ext scripts. But I want to use your sd-ext script because it's so good. But unfortunately this problem is driving me crazy now!:banghead:
[Android Software/Hacking General [Developers Only]] acestars:
Today i tried reverse mount again and here the result of "df -h"

Filesystem Size Used Available Use% Mounted on
tmpfs 89.0M 32.0K 89.0M 0% /dev
tmpfs 89.0M 0 89.0M 0% /mnt/asec
tmpfs 89.0M 0 89.0M 0% /mnt/obb
/dev/block/mtdblock8 160.0M 158.9M 1.1M 99% /system
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /sd-ext
/dev/block/mtdblock1 2.0M 1.3M 748.0K 63% /misc
/dev/block/mtdblock9 2.0M 2.0M 0 100% /misc2
/dev/block/mmcblk0p2 984.8M 716.6M 218.2M 77% /data
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/dalvik-cache
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/property
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/misc
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/system
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/local
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/tombstones
/dev/block/mtdblock11 242.5M 225.8M 16.7M 93% /data/secure
df: /cache\040(deleted): No such file or directory <== this the problem

if i disable cache it will work but my /cache partition is so small so i want move it to /sd-ext. How to fix this?

Thanks
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
int2ext does not use init.d, but injects itself into /system/etc/recovery-install.sh (or something like that). So, if this script is the only one working, you are properly missing init.d support.

Take a look at this

Don't use RMount, it will be removed very soon as it is the cause of many problems.
[Android Software/Hacking General [Developers Only]] acestars:
Hmm.. ok then.

Since i use mounts2sd my device booting longer than before i use. Logcat shows

Application package com.daingo.news.indonesia already installed. Skipping duplicate.
/sd-ext/app/com.facebook.katana-1.apk changed; collecting certs
Application package com.facebook.katana already installed. Skipping duplicate.
/sd-ext/app/com.speedsoftware.sqleditor-2.apk changed; collecting certs
Application package com.speedsoftware.sqleditor already installed. Skipping duplicate.
/sd-ext/app/uk.co.nickfines.RealCalcPlus-1.apk changed; collecting certs
Application package uk.co.nickfines.RealCalcPlus already installed. Skipping duplicate.
/sd-ext/app/com.googlecode.rhinoforandroid-1.apk changed; collecting certs
Application package com.googlecode.rhinoforandroid already installed. Skipping duplicate.
/sd-ext/app/je.fit.pro-1.apk changed; collecting certs
...still many more.

Happened to all my installed apps.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Hmm, I mistook int2ext for link2sd.

If your ROM uses int2ext, then you can forget about getting any other sd-ext script working. int2ext is integrated into the boot.img (kernel) and cannot be removed without flashing a different kernel that comes without it (Unless that is called Int2sd). Really can't keep up with all the other sd-ext scripts.

Your best option is to do a backup, do a clean install (Wipe all data and sd-ext) and start from scratch.
[Android Software/Hacking General [Developers Only]] acestars:
I am only use mounts2sd there is no other sd-ext scripts. if i use reverse mount the booting is normal. the logcat i posted before not occurred.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well I can't tell you what the problem is. According to the log, there are duplicate applications installed. The only way that can even be a possibility, is if they are placed with different names in the app folder. M2SD does not rename packages when moving them, so I cannot tell you why.
[Android Software/Hacking General [Developers Only]] siavash2death:
I'm sorry, but I didn't know what should I do with this injector tool!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Download the second one named init.d_injector. Reboot into recovery, run it and select to first option. It will add init.d support to your current kernel.
[Android Software/Hacking General [Developers Only]] Daniel D.:
Downloaded the new beta script, installed it, was "upset" about the unfinished "information page" :D, rebooted and screamed out loud because it worked and there was no performance loss in the first minutes I used the phone. Nice work! :victory:
[Android Software/Hacking General [Developers Only]] siavash2death:
Tried. It says that can't copy meta-inf/.../update-binary. Installation aborted!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Glad to here. And don't worry, the rest is on it's way. Have just finished the whole configure screen, and fixed the last remaining known issues. Just need the small log viewer, some extra log entries in the script to catch some ongoing issues, and then it should be ready for real beta testing with all features available.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Tried what? The test app? Because that is not a recovery script, it is an APK which should be installed from ADB or directly from the phone
[Android Software/Hacking General [Developers Only]] Daniel D.:
No problem, take your time. I was afraid to test it again because 2.2.0 didn't work, but 3.0 is a big success. My ArcS lacks of internal memory and even with an only 512 MB big sd-ext partition I'm happy to have more space than before. Thanks!
[Android Software/Hacking General [Developers Only]] siavash2death:
Init.d injector that you said. V0.2.14 if I said version correctly! No, it is a zip file!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You need

Init.d

Injector 0.1.18, not injector. The other is just a template without any actual functions.
[Android Software/Hacking General [Developers Only]] siavash2death:
Yes.I tried that version. But I forgot the version! But it's not apk, it's a zip file.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I know, and it has Aroma inside, which should run fine on Desire (Always did on mine). What recovery are you using?
[Android Software/Hacking General [Developers Only]] siavash2death:
4ext recovery
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It should have no problems with it. Don't know what the problems is, this is the first time I have heard about a device not wanting to run Aroma
[Android Software/Hacking General [Developers Only]] siavash2death:
I don't know what is the problem. But I don't have problem with other aroma zips!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
And we are in official beta stage. Full featured beta version has been added to OP.
[Android Software/Hacking General [Developers Only]] Daniel D.:
Just perfect. Thanks again! Updating the start script worked without problems.

What is the difference between the internal and external readahead? SuperCharger for example activates a sdcard cache, too. I assume it's the external one. If I enable it through SC, will the script recognize the size?

What will decrease the speed? Moving data/data to sd-ext? Cache?

It would be great if you could help me.
[Android Software/Hacking General [Developers Only]] Trialz Nexus One:
Hi dk,

I updated to beta. My original configuration on the market version was, data and applications to sd_ext . The new beta installed perfectly... Only one question, how do I enable reverse mount or is this no longer required or possible. I use reverse only because that is the only way memory is accurately reported in the phone system storage options. Otherwise storage reported as available space on internal only.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well the internal is for the internal nand whereas the external is for the sdcard. And yes, the app uses live overview, so if SC changes the values set by M2SD, it will be displayed in the app. Just note that the overview is cached during the first launch after reboot. If anything changes after that, you can reload the cache by pressing menu and select reload. Otherwise the app would have to do extensive loading on every launch.

Reversed mount has been removed in version 3, as it produced to many issues that never seamed able to get fixed. And the only positive about rmount, was being able to see sd-ext in android settings, which does not mater as you can see both from the application. Rmount was a useless flawed feature that should never have been added in the first place, and it also only worked on a certain type of init.d support which most ROM's does not implement.

Android does not care about how much your data size is registered as. It only cares that it is above the threshold percentage, which you can also alter in the application. If your storage get's to low, just enable more options to move more content to sd-ext. Also, trying to cheat android by mounting sd-ext as data has proven to not be working. You will in any case get issues if the internal data get's to low, no mater where it is mounted.