yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Lint6:
Flashed the touch recovery enabled version...couldn't use the touch screen, had to use the trackpad to make selections when installing. Using CWM Touch Recovery 5.8.1.0 on the MY4G/Glacier
[Android Software/Hacking General [Developers Only]] sarshadd:
does the initial boot take a long time? it seems like i'm just stuck on a boot image so i've restored a nandroid.

i've tried a whole bunch of different custom installs with aroma and none have worked. do i already have a hidden apps2sd script i need to manually remove?

n1 running cm7.2 with a 2.6.37-cyanogenmod-g0799e00 android@portatile #1 kernel and the following partition:

Number Start End Size Type File system Flags

1 512B 13.6GB 13.6GB primary fat32 lba

2 13.6GB 15.7GB 2048MB primary ext3

3 15.7GB 15.7GB 31.7MB primary linux-swap(v1)

log:

AROMA INSTALLER version 1.50
(c) 2012 by amarullz xda-developers

ROM Name : Mounts2SD
ROM Version : 2.2.6
ROM Author : DK_Zero-Cool
Device : All
Start at : Fri Mar 23 05:46:27 2012

Preparing installation
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

Finalizing installation
Unmounting partitions...

Done!
script result was [Done!]
Extract: /system/bin/e2fsck
Extract: /system/bin/fix_permissions
Extract: /system/bin/props
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 : Fri Mar 23 05:46:29 2012

I've also noted that for some reason when I try to manually mount /system I get an "error invalid argument". Could it be that my root is broken and when m2sd tries to access /system it can't and the whole thing just blanks? But If the script failed because it can't access /system then why would it get stuck on boot??

Plz help.
[Android Software/Hacking General [Developers Only]] williamcharles:
which file did you flash and what steps did you follow?

I flashed two different times but always stuck at boot.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
When you boot your phones, you will get two screens. The first static screen, and then the animated one. Boot loop occur in the second one. The first is a boot stall/lock or whatever you might call it.

If the problem is in the second boot screen, then logcat has been enabled and in that case I really need a logcat output. If the problem is in the first screen, then reboot into recovery and see if /data/.m2sd/m2sd.log has been created and give me output from that instead.

I cannot do anything just based on the fact that it does not work for you.

Also I need links for the dev thread of your ROMs and info on the device you use. I know some have given the device info, but links are also needed for me to checkout the exact system you have flashed on the phones.
[Android Software/Hacking General [Developers Only]] Flycs:
What should be the sufficient time to wait for at the first boot screen on the first boot after install? I had DarkTremor's A2SD installed before and am waiting for 20 minutes now at the static boot screen. I have about 80 apps installed, and a class 10 SD.

Do I have to flash the zip again after each ROM update (I'm addicted to nightlies ;-)?

Edit:

OK, it's definitely stuck on first boot screen. Here's the m2sd.log:

cat m2sd.log

v/Initiating Mounts2SD (v:2.2.6) [Fri Mar 23 10:45:45 CET 2012]
v/Initiating the props system...
v/Checking configurations...
v/Optimizing /system readahead...
v/Remounting /system with noatime...
v/Optimizing /data readahead...
v/Waiting for sdcard to initiate...
v/Setting sd-ext readahead to 768kb...
w/The sd-ext partition is already mounted. Unmounting it...
v/Running e2fsck on sd-ext...
v/The sd-ext partition was mounted successfully at /sd-ext using auto detection
of the file system type!
v/Clearing dalvik cache to prepare sd-ext linking...
v/Linking /data/dalvik-cache to /sd-ext/dalvik-cache...
v/Linking /data/app to /sd-ext/app...
v/Linking /data/app-private to /sd-ext/app-private...
v/Performing a one time permissions check...
v/Umounting /cache to make the directory ready for linking...
v/Linking /cache to /sd-ext/cache...
v/Linking /cache/dalvik-cache to /data/dalvik-cache...
v/Mounts2SD has been loaded!

Registered properties:
----------------------

Mount Points:
-------------
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /sd-ext
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /data/dalvik-cache
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /data/app
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /data/app-private
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /cache
/dev/block/mmcblk0p2 915.2M 197.1M 669.3M 23% /cache/dalvik-cache
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No it should not take 20 minutes, yes you need to flash for each rom flash. Fallow my instructions above.
[Android Software/Hacking General [Developers Only]] padvou:
Does this work for Supernova for Desire Bravo?

I mean cause it has data2sd already installed.

Will I get any benefit using this script?

Thank you in advance
[Android Software/Hacking General [Developers Only]] Flycs:
I edited my post while you were posting...

Btw, like sarshadd, I'm also using a N1 with a CM7.2.0-RC1 (kanged).
[Android Software/Hacking General [Developers Only]] Magnumutz:
I installed this on my Xperia PLAY, stock based ROM, with default settings.

Then i restored my apps via Titanium backup. Everything was fine until i rebooted my phone, after that, only the apps that were installed on the sdcard were still working.

I attached a screenshot.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I will make a test version of this with some more debug stuff so that I can see what is going on with this. But it will not be to day. Don't have the time at the moment.

The weird thing is that it does finish. But there is something wrong because the props are not displayed.

EDIT:

@Flycs

I can see that you have another a2sd script?

In the log you can see that the sd-ext partition is already mounted before m2sd is executed. If that script is moving things around, and my script is moving things around after that, it could f*** things up. You need to locate the other script, delete it, and try again to see if it works.
[Android Software/Hacking General [Developers Only]] andy905:
The download links aren't working at the moment. Is it possible to get them back up.

Also has anyone used this with Supernova
[Android Software/Hacking General [Developers Only]] Flycs:
I've been using DarkTremor 2.7.5.2 before, but reading your description I thought m2sd would delete the most common a2sd scripts, and as DT's is the-mother-of-all-a2sd scripts....

Well, how do I remove it when the apps are bigger than the partition on the device? Titanium backup & full wipe would be the best option I guess, but I'd like to get around that.
[Android Software/Hacking General [Developers Only]] MrFrem82:
Hi!

I'm trying to use your script. I've a Samsung Galaxy 5 (I5500), i'm running a custom ROM by mad team based on CM7 (http://www.madteam.co/forum/development/(development)-cyanogenmod-7-2-0-rc0-'galaxy5'-port/).

from the installer it seems everything worked, but apps are installed on internadl memory (/data is on the phone instead into sd-ext), could be because of the ROM?

Before install this script, i've made three partitions: FAT/ext2/swap

Thanks for your work, i hope you could help me..

this is my log:
[Android Software/Hacking General [Developers Only]] sarshadd:
To clarify I am stuck on the first static non-animated boot screen in a boot "stall/lock"- therefore I have no logcat to provide, other than the m2sd.log provided.

Here is the link to the dev thread of my current rom:

http://xdaforums.com/showthread.php?t=1143046

Sounds like me and Flycs are in the same boat. Any help/guidance (from anyone) is appreciated.
[Android Software/Hacking General [Developers Only]] GEKTHEBOSS:
i prefer a2sd script darktremor but this is also very good
[Android Software/Hacking General [Developers Only]] Androidity3000:
If anyone could help me out here I will love you LONG time:

I am wondering id I should set up a swap partition and use it with this script. I am starting fresh on my Nexus One installing a Gingerbread MIUI ROM using this script for the first time. I was wondering if I should use a SWAP with my class 4 16gig sd card. I will have a 1gb EXT partition. If anyone could state simple pros/cons I would MUCH appreciate it. I have heard good but mostly bad about swap on gingerbread saying that it is not needed and can cause bad.

Thanks again. Deuces.
[Android Software/Hacking General [Developers Only]] sarshadd:
It's my understanding that you don't really need it. There's enough memory to handle daily processes and if there isn't GB will smartly kill the things that it thinks you don't need (haven't used in a while, secondary processes).

Adding swap as memory, even if you have a class 4 SD card it wont be as fast as internal memory, so although you can run more processes (for what?? you can only do one thing at a time anyway...), you're going to get bogged down as you switch apps by the slow r/w of the SD card.
[Android Software/Hacking General [Developers Only]] Androidity3000:
Thanks. I tried to install this ROM with Miui.us's latest ROM and no dice. It get's stuck on boot screen. I tried to standard install and custom. Any one else?
[Android Software/Hacking General [Developers Only]] D200P13:
are these steps still required on the latest version?
[Android Software/Hacking General [Developers Only]] gu5t3r:
It works in DOS CMD...
[Android Software/Hacking General [Developers Only]] MetinKale38:
Its the same in windows.

To get logcat from starting type (win&linux): adb wait-for-device && adb logcat >> logcat.txt

And boot the device plugged in.

I am not sure but maybe its 1 ">" on linux

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
1 ">" will erase any existing content in the file while 2 ">>" will append the new data below the existing :)
[Android Software/Hacking General [Developers Only]] MetinKale38:
Usefull to know. I am using ubuntu, but i am not so familiar with sh scripts :D i know just some basics in the terminal

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] BajoPrimate:
Sorry wrong thread
[Android Software/Hacking General [Developers Only]] AlbusDumbelodr:
Thanks :) is there a way I can keep some apps like games on the internal card as there is a lag...
[Android Software/Hacking General [Developers Only]] Lijop:
[MENTION=225651]op[/MENTION] gives problems on galaxy ace on 4.2.2. can you add support for ace ??
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Are you talking about Mounts2SD? It does not care what device you have
[Android Software/Hacking General [Developers Only]] Lijop:
unfortunately on aokp jb 4.2.2 it gives errors. no probs with busybox or init, but warnings and gives errors like cant find sd-ext/data
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
First of all, no issues will at any time be related to a device. It will be related to specific ROM's or specific versions of different binaries.

Second, I can't help you. All information that you provide, is "it gives errors". What can this information be used for, other than determine that you have some sort of issue with this?

Write back when you are ready to provide some useful information like better description of the issue, some logs etc. Then I will be happy to help you out.
[Android Software/Hacking General [Developers Only]] Lijop:
i will upload the log. hopefully then you can sort the issue
[Android Software/Hacking General [Developers Only]] gregferns:
Hi dk.

I tried running your app on Micromax canvas hd and it gives error sd ext not mounted

How can I get a log from my phone as I don't ha've access to a pc for adb

Thanks

Greg
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
In the 'View Log' in the app, you can press menu and select 'Save log to the sdcard'
[Android Software/Hacking General [Developers Only]] hurin8:
I have installed the script to my Desire with no problem, but today I tried to install it to my gf's Samsung Ace and faced a problem

The sd-ext device /dev/block/mmcblk0p2 is already in use by another script!

I haven't installed any other script, I didn't activate a2sd from terminal.

The ROM is this

Wipes didn't help.
[Android Software/Hacking General [Developers Only]] gu5t3r:
Read...
[Android Software/Hacking General [Developers Only]] hurin8:
Oh...

Now what? How can I stop it? Or how can I uninstall m2sd?
[Android Software/Hacking General [Developers Only]] gu5t3r:
Dunno. try uninstalling M2SD as rom probably mounted automatically SD-EXT after you created it...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
To uninstall M2SD, remove the app and then delete the file /system/etc/init.d/10mounts2sd

To disable the built-in A2SD app in the ROM, open the file /system/etc/init.d/dtapp and delete everything in the file. Then add the fallowing content

#!/system/bin/bash

/sbin/busybox umount /system/sd

If you know how to use an ADB shell, then the easiest way to change the file content

adb shell
mount -o remount,rw /system
cat > /system/etc/init.d/dtapp

Now paste the content above into your terminal and then press Ctrl+C to save and quit.
[Android Software/Hacking General [Developers Only]] hurin8:
I opened the .zip of the ROM, went to /system/etc/init.d/dtapp opened it with notepad and deleted everything, then added

#!/system/bin/bash

/sbin/busybox umount /system/sd

wiped everything, installed the ROM from scratch but m2sd application still says another script is running.

Any help for the noob?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Strange. But, then change "/sbin/busybox umount /system/sd" to "/sbin/busybox umount /dev/block/mmcblk0p2". That way the mount point will not mater.
[Android Software/Hacking General [Developers Only]] hurin8:
Changed it but still no luck. I wiped my sd card and re-partitioned it but again the same error.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Strange. It's the exact same method he uses to switch to the the other a2sd included in the rom, which that file is originally ment for
[Android Software/Hacking General [Developers Only]] hurin8:
Does this help?

http://xdaforums.com/showpost.php?p=38431724&postcount=2639

I forgot to mention that Titanium doesn't list ext4, only system/internal/sd
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Not really. This is what he has added to your ramdisk, which is executed before init.d

busybox mount -t ext4 /dev/block/mmcblk0p2 /system/sd

This mounts sd-ext to /system/sd

And this is the first init.d script that is executed after the above

/system/etc/init.d/dtapp

#!/system/bin/bash

if [ $(propget persist.tweak.dta2sd) = "enabled" ]; then
/sbin/busybox umount /system/sd
/system/bin/a2sd
fi

which will unmount the built-in sd-ext in case you enable dta2sd. All I did was do the same, only without running dta2sd after unmounting the built-in. So if that does not work you, then he's addition of dta2sd will not work correctly either and he has a problem with the way he build this.
[Android Software/Hacking General [Developers Only]] hurin8:
I'm stuck with a ROM that dta2sd doesn't work and can't be uninstalled. I even did a nandroid restore to a previous ROM but the phone doesn't boot.

I can't understand why, when I do full wipe, the scripts remain?

edit : changed ROM and m2sd seems to work, in safe mode. I will report if I have trouble.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I have attached a boot.img to this reply. It is from your ROM Package. I have removed anything related to he's implemented init.d and also added a better init.d method. Just replace the boot.img in your ROM ZIP with this. And make sure to also remove all of he's /system/etc/init.d/*sd files and the /system/etc/init.d/dtapp

EDIT:

Okay, you updated your post before me :)

About safe-mode, just disable it in settings to enable the work-around that I have added for service versions of init.d
[Android Software/Hacking General [Developers Only]] hurin8:
The work-around worked like charm, I now have 1gb ext. Thank you so much for your time!

P.S. Do you want me to try the boot.img?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No need if your not going back to the other ROM. You just sounded like a guy without any options, so I provided one. But it seams that you found another one by yourself :)
[Android Software/Hacking General [Developers Only]] arcmanov:
I have a question...

Can I use this app to move large app installs (like games) to my 64GB microSD card in my Galaxy Note 2?

I'm using Omega ROM v17 with the Perseus kernel btw.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
If the app install is placed in /data then yes. But some apps placed additional data on the storage. Also, you cannot select what to move. You either move everything, or nothing.
[Android Software/Hacking General [Developers Only]] gregferns:
Hi. I had last tried it on a custom Rom when I couldn't get it to load properly and had an error. But then I shifted to stock Rom. Does your script work on stock Rom?

I will also be trying another custom Rom and save the log, but a bit later.

Thanks.
[Android Software/Hacking General [Developers Only]] Nightshadow931:
If it has init.d support and sd-ext partition, then yes, it should work.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It does not depend on any specific ROM. It depends on init.d support in the kernel. So a stock ROM with init.d implemented into the boot.img should work just fine. If not, give me a log and it will :)

And if you need something to implement the init.d to a stock boot.img, take a look at init.d injector (Has been mentioned and linked a few times in the last couple of posts above).
[Android Software/Hacking General [Developers Only]] post-mortem:
And it's in your signature!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes well, that to :p
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Use something other than CWM to format sd-ext
[Android Software/Hacking General [Developers Only]] gregferns:
Well I had seen that but hasn't bothered much to check it out. Anyways will do so now.
[Android Software/Hacking General [Developers Only]] napstersnook:
Cherry Mobile Flame 2.0

Good Day! Please if someone can assist me in properly using this mount2sd in cherry mobile flame 2.0...Thanks in advance and hope that it's supported on my handset.

---------- Post added at 04:27 AM ---------- Previous post was at 04:18 AM ----------

by the way I already rooted my phone and have CWM...did an sd-ext partition... but after installing mount2sd and configured it still didn't work... maybe i'm missing something out... kindly help or i'll be stuck with link2sd... thanks again in advance.
[Android Software/Hacking General [Developers Only]] post-mortem:
Did you follow the procedure to remove all traces of Link2SD, before installing Mounts2SD? If you don't know what I'm talking about, reply here and someone will give you further instructions.
[Android Software/Hacking General [Developers Only]] napstersnook:
thanks for responding, and sorry i didn't mention... it's just a new phone and have not yet installed link2sd... i'll use link2sd incase mount2sd won't work... kindly help, dunno what the next step to make mount2sd work with my phone. it has no errors though it's just that it seems to be not doing as it supposed to be...

---------- Post added at 05:11 AM ---------- Previous post was at 05:05 AM ----------

what i'm probably missing out is if I need to have a boot.img that has a working init.d,,, I'm not just so sure... or even how to do it or where to get it.
[Android Software/Hacking General [Developers Only]] post-mortem:
In order for Mounts2SD to work as intended, your ROM needs a proper init.d support. Most (all?) stock ROMs do not have this. Your options are four:

Install a custom ROM

Use dk_zero-cool's injector to inject init.d support to your stock ROM (not a noob friendly task, though he's helpful)

Disable safe mode in Mounts2SD, which will enable a work-around for your situation

Do nothing

If you have no idea what's going on, just ask for help!
[Android Software/Hacking General [Developers Only]] gu5t3r:
It's not about ROM, it's about kernel you use...
[Android Software/Hacking General [Developers Only]] napstersnook:
CM Flame 2.0

yes definitely bro I need help... if somehow you and gu5t3r can help me out... I'm a noobie in android technicalities especially with this mount2sd.. please help me make this work on my phone. advance thanks to you guys. kindly just tell me what to do.

---------- Post added at 05:07 PM ---------- Previous post was at 04:57 PM ----------

thanks for responding too... though kindly help me find where to get the right kernel for this CM flame 2.0 and probably a good ROM for this... I'll try my best to find one too and hope that it will be a valid one.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Please provide us with some info on what device you have. Depending on the device, using injector to add init.d could be as easy as a few clicks. Also, is your device rooted and have a custom recovery installed?
[Android Software/Hacking General [Developers Only]] napstersnook:
yes boss sure... and thanks... pls see info below:

Phone: Cherry Mobile Flame 2.0

Rooted using Android AIO Flasher and CWM-Flame2.img

has UPDATE-SuperSU-v1.25.zip and busybox by stericson...

kernel version is 3.4.0

build number: cherry_flame2.0_tbw593124_8661_v000034_r1

android version 4.1.2

model number Flame2

hope I indicated atleast the important ones needed... thanks again
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Have never seen this device, nor can I find any github or xda pages about it.

Well, let's try this then

Download init.d_injector-0.1.5_aroma (Link below this message)

Place it on your sdcard and reboot your device into recovery

In the recovery, run the ZIP package

When aroma starts, select options 2 (It will not change anything on your phone)

When the installer has completed, check the log on the next screen to see if there is any issues at the end.

If the log seams fine, press the back button, this will take you to the first screen

Now select option 1 (But only if the log was fine). Now it will change something

Reboot

Install Mounts2SD

Open Mounts2SD, the settings screen should open automatically, select to install startup script

Reboot
[Android Software/Hacking General [Developers Only]] napstersnook:
Thanks boss, will do try this one and I'll post the results right away... by the way this is my phones specs... incase you may want to check it out... http://www.noypigeeks.com/android/cherry-mobile-flame-2-0/