yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ad2003:
Hi! Just installed NexusHD2-ICS-4.0.3-CM9 V1 - how can I make a sd-ext partition after I've already installed the complete rom, without needing to make a complete reset?

I know how to install the script, but not, how to make a sd-ext...:-)

Thanks!

\ok got it....

http://www.jayceooi.com/2011/08/15/...-on-sd-card-with-clockworkmod-recovery-video/

AD
[Android Software/Hacking General [Developers Only]] jackson0829:
Hi,dk_zero-cool:

Can you upload "mounts2sd-2.1.6_aroma.zip" file & mounts2sd-2.1.6_Legacy.zip"

again on the thread as well?

My IDEOS U8150 only can work with "mounts2sd-2.1.6_aroma.zip" installation ,but

could not work with "mounts2sd-2.1.7_aroma.zip" installation ?

--->I have to verify anything wrong during the installation,but I lost the

"mounts2sd-2.1.6_aroma.zip" before.

Thanks for your help!!
[Android Software/Hacking General [Developers Only]] vikasb32:
Can it work in cm7?
[Android Software/Hacking General [Developers Only]] jackson0829:
My IDEOS V8150 Phone with CM7 ROM was failed to install "mounts2sd-2.1.7_aroma.zip" ??

but I have tested it worked with "mounts2sd-2.1.6_aroma.zip" before,

Currently I need "mounts2sd-2.1.6_aroma.zip" file for verification again!!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You can get it here http://code.google.com/p/bcm-bravo-cyanogenmod/downloads/list

But it seams strange. The only thing changed, is the init.d script and version number.

Yes it does
[Android Software/Hacking General [Developers Only]] roalex:
Btw since you bind by default cache to sd-ext it might be wise to also make /cache/download writeable by market (0771 chmod/chown system.cache) this is needed for CM/MIUI Gb roms
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Thx, will do that :)
[Android Software/Hacking General [Developers Only]] vikasb32:
I got status o error during flashing the zip file
[Android Software/Hacking General [Developers Only]] TBagwell:
Hi !

I've just tried this amazing tool on my Desire with Revolution 3.0 ROM installed.

Unfortunately, after default install or custom one, I'm stuck at the first boot screen (before launching the ROM). The only way to get rid of it is to restore my nand backup. Any clue ? ;)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Without logcat no. Which makes it dificult since the script runs before logcat gets started.

Try flashing m2sd. When the phone stoppes booting, reboot to recovery and extract m2sd.log from /data/.m2sd/

It will at least tell me when the phone gets stock.
[Android Software/Hacking General [Developers Only]] imedia0:
I don't know what do I wrong..

I'm installed m2sd to my Desire in recovery.

And I try to install 'Dropbox app' in google market, but occurred error message as 'not enough space'.

SD-ext size 1024mb(ext3), SD total size is 8Gb.

Here is my log.. Can you advice to me, How can I do? :confused:

app_49@android:/ $ su
app_49@android:/ # m2sd status

Status:
-------
Mounts2SD [loaded]
- Apps [loaded]
- SysApps []
- Data [loaded]
- Dalvik []
- CmDalvik []
- Cache [loaded]
- SWAP []

Device info:
------------
SD-EXT device [/dev/block/mmcblk0p2]
Cache device [tmpfs]
- Location [/cache/download]
Swap device []

app_49@android:/ # m2sd log

v/Initiating Mounts2SD (v:2.2.0) [Sun Mar 11 17:34:27 KST 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 512kb...
v/Running e2fsck on sd-ext...
v/Preparing to mount sd-ext without journal...
v/The sd-ext partition was mounted successfully using auto detection of the file system type!
v/Moving content from /data/data to /sd-ext/data...
v/Linking /data/data to /sd-ext/data...
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/Linking /cache/download to /tmp/cache/download...
v/Mounts2SD has been loaded!

Registered properties:
----------------------
[mounts2sd.cache.device]: [tmpfs]
[mounts2sd.cache.location]: [/cache/download]
[mounts2sd.cache.status]: [loaded]
[mounts2sd.sdext.device]: [/dev/block/mmcblk0p2]
[mounts2sd.sdext.status.apps]: [loaded]
[mounts2sd.sdext.status.data]: [loaded]

Mount Points:
-------------
/dev/block/mmcblk0p2 915.3M 22.9M 843.5M 3% /sd-ext
/dev/block/mmcblk0p2 915.3M 22.9M 843.5M 3% /data/data
/dev/block/mmcblk0p2 915.3M 22.9M 843.5M 3% /data/app
/dev/block/mmcblk0p2 915.3M 22.9M 843.5M 3% /data/app-private
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Usely the 'not enough space' problem is do to the fat32 partition and not sd-ext. A work-around is to go into settings, unmount /sdcard, install the app and remount /sdcard.

However, I have had problems with market my self in ICS when download cache is enabled. Try disable it "m2sd dlcache disable" which will mount entire /cache to tmpfs instead of just /cache/download. ICS likes this much better, if of cause you use ICS.
[Android Software/Hacking General [Developers Only]] imedia0:
Unmount sdcard, install the app but occurring same error 'not enough space'.

It's also dlcache change back to disable. (I'm using ICS)

I'll trying again, starting to sdcard formatting. T.T
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.0.1/5.3.1 - Jan 21, 201

There s a bug in /data/local/cache.

I can't install anything via adb until I rename the folder (can't delete because of the problem in the link)

Anything else is working greattt

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.0.1/5.3.1 - Jan 21, 201

What android version and please explain the issue with more detail. There should not be any cache folder there. Adb uses /data/local/tmp, at least on 2.3+
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
Will moving dalvik cache to sd will make phone lagging? As im using Sandisk Extreme class 10.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
That really depends on so many things. The best way to find out it to just try it. If it feels lagging, just move it back. It's quite simple.
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.0.1/5.3.1 - Jan 21, 201

Yes it is the tmp folder :confused:

Android 4.2

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well I am running 4.2, and don't have any problem with ADB installs. What is your exact problem and what do you do to fix it?
[Android Software/Hacking General [Developers Only]] 4D3:
is there something in your script that is designed to make an evo 3d boot loop? lol

I have downloaded all of the current roms and systematically flashed them and you app and all of them give bootloop, or stalling at the HTC white screen...

Also i noticed that your app is deleting other scripts from the init.d folder....I took a screenshot before and after and scripts that are nothing to do with this app have been deleted for some reason!!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No, the script works on other Evo 3D devices according to statistics. A logcat from boot would help?

And yes, M2SD deletes other scripts that handles sd-ext. You cannot have two A2SD scripts at the same time. Many people had problems because they don't know how to locate and delete existing scripts, so M2SD has been made to do this for them. I would however like to see your screen-shot from before flashing M2SD. Maybe the ROM's you are trying have been added some of these custom ways of placing /system/lib and /system/framework on /data. M2SD have no support for these methods as there are no specific standards. Every ROM dev uses their own way.
[Android Software/Hacking General [Developers Only]] Dunc001:
OK, so unlocked last night using wotanserver method so I now have fastboot :D Flashed a custom kernel with init.d support, deleted everything from the old init.d method (install_recovery.sh and 99test), rebooted, wiped cache, updated m2sd script in app to latest, rebooted again but still script is running in Safe Mode so I can't move anything :( What else can I check?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Did you add init.d as a service in init.rc? Because that is the problem. M2SD switches to safe-mode when it detects that the core and main class services are running. No one should start moving dalvik around while dexopt is running or start moving application data when the package service are doing it's work.

Init.d should run before any service. And it should finish before any service are started.

Replace your "start sysinit" with "exec /system/bin/sysinit" and then move your runparts from init.rc into /system/bin/sysinit.

Check the hidden text in the first post for more detailed explanation
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
I know maybe this is too far from your project. But, is it posibble to add feature for dalvik cache to be move to preload partition instead to sdcard ext partition for samsung phone? :o
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Sorry, but this is "data <--> sd-ext" only. Also I don't make device specific options. If I did then there would be no end to the device requests one would start getting.

The source is open and available to anyone. So you are free to add whatever you want for your own use, but I cannot start maintaining options for thousands of devices that I can't even test myself.
[Android Software/Hacking General [Developers Only]] Dunc001:
OK, so THIS is the kernel I am using. I have extracted the boot.img to check and found this implementation in init.rc:

#DooMLoRD: init.d scripts support
start sysinitsupport

class_start core
class_start main

then slightly further on:

#DooMLoRD: new init.d scripts support
service sysinitsupport /sbin/sysinitsupport.sh
class main
disabled
oneshot

The sysinitsupport.sh is this:

#!/sbin/sh

# DooMLoRD: init.d support script (v1)

# [START] setting up
echo "[START] remounting system" > /data/local/tmp/sysinitsupportlog.txt
/sbin/busybox mount -o remount,rw /system >> /data/local/tmp/sysinitsupportlog.txt

# make init.d directory
echo "[*] make init.d directory" >> /data/local/tmp/sysinitsupportlog.txt
/sbin/busybox mkdir -p /system/etc/init.d >> /data/local/tmp/sysinitsupportlog.txt

# correcting permissions of files in init.d directory
echo "[*] correcting permissions of files in init.d directory" >> /data/local/tmp/sysinitsupportlog.txt
/sbin/busybox chmod 777 /system/etc/init.d/*

# make init.d directory
echo "[*] make init.d directory" >> /data/local/tmp/sysinitsupportlog.txt
/system/bin/logwrapper /sbin/busybox run-parts /system/etc/init.d

# [DONE] all done exiting
echo "[DONE] all done exiting" >> /data/local/tmp/sysinitsupportlog.txt

Here is the extracted ramdisk structure:

run-parts is in the /sbin folder. I have attached a zip containing the init.rc and sysinitsupport.sh. Any ideas why it therefore shouldn't be working? I am running this kernel with an original rooted stock ROM if that makes any difference.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.0.1/5.3.1 - Jan 21, 201

Remove the service part in init.rc and change start sysinitsupport with exec sysinitsupport
[Android Software/Hacking General [Developers Only]] Dunc001:
OK, so just to make sure I am understanding I leave sysinitsupport.sh where it, delete or comment out that whole second code snippet above, and then edit the first one from this:

start sysinitsupport

to this:

exec sysinitsupport

Am I understanding correctly?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes. When using exec, init.d will be handled by the same process as being used to go through init.rc whereas 'start <something>' will start executing sysinitsupport.sh in a new process while init.rc continues down towards the end, starting all the other services.

However, I would replace the content of your sysinitsupport.sh with

#!/system/bin/sh

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d

The exec command does not parse along the environment variables, and the rest of your original file is just a waste of execution time.
[Android Software/Hacking General [Developers Only]] Dunc001:
And I am guessing that I also need to check that I actually have run-parts in /system/xbin on the phone as well as in the /sbin directory in the ramdisk? Sorry to be a pain, and thanks as always for your patience :highfive:
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
That's up to you. You can always execute directly from busybox rather than make symlink

/system/xbin/logwrapper busybox run-parts /system/etc/init.d

And sbin does not mater. It will all be executed from within /system
[Android Software/Hacking General [Developers Only]] 4D3:
Hi,

I am attempting on this rom: http://xdaforums.com/showthread.php?t=2073403

using the MSM kernal from this (The default kernel): http://goo.im/devs/helicopter88/Evervolv/kernels.zip

And then i reboot it hangs at the white HTC Screen.

So i switchedto the americandroid v12 kernel and i got it booting, but with an error.

I have attached the log file from the app...is there anything i need to change?

thanks
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Read the log

d/script - [SIZE=4][B]/system/bin/servicemanager is running[/B][/SIZE], disabling property /data/property/m2sd.move_dalvik to prepare safe-mode

Now read the part about safe-mode in the first post

The same goes to you. All the information needed is in the log file. The only error that you have, is that SWAP was unable to load. Below the error line is the shell error from trying which states "Function not implemented", which would properly mean that you do not have SWAP support in your kernel.

Disable SWAP, and no more errors, or switch to a kernel with support
[Android Software/Hacking General [Developers Only]] 4D3:
THanks for that...not sure why but it didnt cross my mind to look!! but i did remove the swap function and there are no more errors.

although i have had about 10 random reboots since i got this working, I am trying to catch a logcat of the behavior although my device has been plugged in for 2 hours and i have not had a random reboot, as soon as i disconnect it and use it it reboots...

is there anything i can do?

thanks
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You just switched ROM to try to get it working? Random reboot's is often kernel related. Maybe a bad kernel in your new ROM. Switch kernel and you might fix your reboot issue.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Bug to report. Since today when Mount2SD has updated its now reporting the busybox is missing it was working before now its not. Please help
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

Sounds strange. Nothing in that code has been changed. Try flashing back to 2.0.1 and see if that works. All versions are available on both mirrors
[Android Software/Hacking General [Developers Only]] mixednuts:
Actually, I did notice that after updating via Play Store that the app asked to configure busy-box again... not too sure whether that was intentional? I could swear that my CM File Manager stopped working after the update, but that could just be a coincidence.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

The app does nothing that interfere with other apps. The script might, but it only runs during boot
[Android Software/Hacking General [Developers Only]] hacktrix2006:
I the app works great but i can confirm that if it updates via Googleplay the busy box error comes to bit you. But when i type Busybox in Terminal it then says about permissions. What i do know is after a reboot the apps that are in the SD-EXT partition doesn't get loaded at all after as i have just found out. Which means i could be looking at having to redo the whole Firmware again on DHD.

But this time i will be using the newest flash for now.

Update: I have done a Fix_permissions and a chmod 777 on busybox still the same Permissions error infact even using the command ls same error. SO it wipe the phone start from scratch yet again.

Something is upsetting the permissions and making a mess somewhere but where is the question.
[Android Software/Hacking General [Developers Only]] vikasb32:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

I am using m2sd script since last 6 month now I installed app.I want my sdext partition as my internal memory but I still want dalvik cache in my phone memory.how to enable that option in app.
[Android Software/Hacking General [Developers Only]] mixednuts:
I'm quite sure the app doesn't interfere with other apps... it's just that CM File Manager may rely on some busy-box commands. Just not sure if you intended, after the update, for the Mounts2sd app to configure busy-box again (as it does require the user to do it again)?
[Android Software/Hacking General [Developers Only]] hacktrix2006:
I am not blaming the app, its a great app and idea just a bug where it conflicts somewhere with certain Roms.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

I have tried this on all my phones without errors. Also nothing of this kind has been changed. And nothing in the app touches any binary permissions.

Read the changelog, the biggest change is adding French translation. Busybox configs is controlled via a shell script that has not been changed since the very first alpha release and the script install code is the same as last release. Check the git your self.

Just check rmount. The app will auto reverse all your options so that content stays where it is now
[Android Software/Hacking General [Developers Only]] hacktrix2006:
As i stated i am not blaming your app. I was just reporting a bug. If i use the flashable .zip it works perfect without issues. Its happened to me 3 times so far to myself hence i though i'd report the issue so it can be looked at.

Flashable Zip = OK works without issues.

Updated By GooglePlay = Busybox error and Permission seeming to be messed up.

Something somewhere weather its rom or app has a conflict any command after the Playstore update for the app resulted in Permission Denied. The only other thing i can think of is a conflict with SuperUser.

So just to reiterate i am not blaming the app. I am merely pointing out there is a conflict. I have used your app since the first version so i know how good your app is.
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

The app something needs too long to load configuration.

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Update throw market works well for me =/
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

If the app is the issue, then blame it all you want. All that I am saying is that it makes no sense that the last version did not have this issue for you. Both versions use the same code and script. All that has changed in the app, is one added null value check to fix a nullPointerException issue. That does not change permissions. It is not even shell related.

I will look over all the code tomorrow and see if I can find any reason for this, but the app has no option anywhere where it touches permissions on any binary. Only permission it sets, is on /system/etc/init.d/10mounts2sd which has nothing to do with /system/xbin/busybox

Cannot to anything about that. The app works as fast as the phone allows it to, and the desire is getting quite old.

Also it is only needed once after each reboot which the app even handles automatic in the background. Its only after an update that you should notice.
[Android Software/Hacking General [Developers Only]] 4D3:
Hi,

Yes i changed rom to the Evervol rom, and I was using the AnericanDroid kernel, I did as you said and swapped to the MSM kernel which is also compatible with my rom and i (Touch wood/head) i have not had a reboot yet.

thanks
[Android Software/Hacking General [Developers Only]] mark.england:
App was working but now says script invalid

I installed a couple of days ago from Play store. Using AOKP milestone 6 on a Desire (GSM), with a 16G SD card partioned into 12/2/0.7 using GParted. I am using it on two near identical phones. Recovery is ClockworkMod 5.0.2.0, root is Revolutionary.

Worked really well for first day on both phones (safe mode off (because of AOKP's init.d contents, and I am not sufficiently expert to know which script to remove), reverse mounted with just apps on sd-ext and auto-cache. I haven't got boot check on as AOKP didn't come with e2fsck, and it took me a while to find a binary.

After a recent reboot, I got an error saying that the script wasn't correctly installed or configured, so I opened up the Mounts2SD app, and it now says "The init.d startup script could not be copied to the system partition". Mounts2SD now reports as 2.1.0 in Apps, but I'm not sure what version I downloaded originally.

I used a terminal emulator, and the script is still in system/etc.init.d along with all the other scripts, so I presume it is working. A post from a few days ago suggests this might be an MD5 issue.

I've error checked the sd card in GParted, tried restoring what was a working nandroid backup, so I'm not sure what else to do. The phone seems to work. Should I delete the existing script, install using a zip.recovery, wait for an update of the Play store app Mounts2SD, or not worry.

By the way, AOKP's init.d (mostly disabled by default) contents are:

00check

01zipalign

02sysctrl

03firstboot

05freemem

06removecache

07fixperms

09cron

10sdboost

98tweaks

PS I'm an experienced programmer, but entirely new to Android ...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

The app uses md5 to check script version. The script you have might be from last version and you now have issues updating to the new. Flash the recovery zip, that will update the script for you and I will take a look at the app.
[Android Software/Hacking General [Developers Only]] petrifyre:
All user apps gone after reboot

I've install your mod, and all running fine, all the user apps are moved to sd-ext but after reboor all the apps are not showing, I check the sd-ext folder, the apps are there and they're all link to /data/app too. I check the log file, no error except for sqlite3 warning. By the way my device is Samsung Galaxy S3 with Custom stock rom - Omega v38.
[Android Software/Hacking General [Developers Only]] mixednuts:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.1.0/5.4.0 - Jan 23, 201

Just wanted to report that today's update didn't ask for busybox to be configured... not sure what changed though.
[Android Software/Hacking General [Developers Only]] gu5t3r:
Is it better to leave /dalvik-cache or /data/data on internal memory?