yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] BleedingIris:
Well.. just wanted to say that it works.. thanks for the configurations help in the app..

Don't read, if you don't have time..

I'm not using rmount though.. because I used titanium to link my data... link in/data and folders in, /ext/data2..don't want to end up in a linkloop...

This time my system cache is left on the /cache (not using cm dalvik fix(on auto) which would have caused not to install play store apps on previous builds[even though apk is downloaded on /data]),but now.. working fine.. just downloaded a 25MB apk from play and it installed fine, even when /cache was 10MB or even less..thanks..

Love the log file... all has a green check.. good..

On previous scripts, my backlight(for soft keys) would turn on and then off before the bootanimation on executing scripts... miss that feature/bug

cm9b11 htc a310e
[Android Software/Hacking General [Developers Only]] mixednuts:
My guess is that would be the case with swap partitions as well?
[Android Software/Hacking General [Developers Only]] mixednuts:
Just to confirm, you still recommend 512Kb as the read-ahead? Curious because I do believe many of the tweaks available change read-ahead values to 2048Kb... could this cause undesirable conflicts?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes, because many people, incl some of those making the "tweaks", thinks that big values are best.

It really depends on your usage. If you daily make big transfers to and from your pc and such, bigger value will speed up that transfer. But in the same time it will slow down the speed on the normal operations, which will have an even bigger affect on your phone when some of the sdcard is used as a second /data partition.

Personally I use 128kb as readahead as I almost never does any UMS/MTP transfers between pc and phone.

The internal partitions is set all the way down to 4kb
[Android Software/Hacking General [Developers Only]] 4D3:
I can use adb on windows, i was more meaning what commands to run.

thanks
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
In that case it's easy enough. Plug-in your phone, reboot your phone and when you see the boot loader image (not the animation), type adb logcat

After a while, you will get the logcat output
[Android Software/Hacking General [Developers Only]] Dovidhalevi:
You are of course correct. I can get carried away. What I refer to volatile data is that which is no longer needed afterwards, likely to change frequently, such as cache of a browser.

Example: My phone has 170meg available on /data/sdext2 (link2sd's mount point) and 50meg on /data.

So if I move the dalvik cache to /data/sdext2/my-dalvik-cache and symlink that (I ran CM9 this way for a long time), I have 50meg left on /data/sdext2 and 170meg on /data. I do have other stuff to move around to equalize the space a bit, however.

Yeah, some day I need to get a big, first-quality sdcard and make large partition.

I remember the fix put in to enable link2sd's dalvik cache -- set all permissions 777.

So of all the scripts here, I would want to use your app-caching script when /data space gets below 40meg. An important safety. Otherwise, I want to leave link2sd in place and use its scheme. It is a overall very useful app, just need to be aware of its Achilles Heel (see my post on Rashed's CM10 for LG Optimus thread--I proposed to the authors that they incorporate the needed functionality as I am not the only one who got thrashed by no /data space left after a new ROM flash--thank goodness for doing backups first!)

Can I do this (and how)?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The dalvik cache uses 0771 for permissions, but that does not mater if dalvik-cache's parent folder uses wrong permissions also (/data or /cache for CM System apps). The whole tree needs both correct permissions and ownership or the dalvik system will fail.

Not sure what you mean? The Achilles Heel for all sd-ext scripts is that they work as a hack instead of an integrated part of the Android system. Because of this, not only can something easily go wrong, but it can make a great deal of damage when doing so.

Then again, isn't this what makes them so fun and interesting? :)

I am not quite sure what you want? This script is not build to work along side other sd-ext methods, not sure that any sd-ext scripts are. You could install it and disable all options except for the cache option, but the script would still interfere in the sd-ext mounting procedure.
[Android Software/Hacking General [Developers Only]] krazzyvishal:
After installing the script, phone goes into boot loop BUT only after flashing gapps on my ROM

Without gapps works good.

Please help....

ROM is CM10 Android 4.1.2

Device is LG P500 Optimus One
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Are you running an official CM ROM with an official Gapps package?

Some of the custom ROM's moves all kind of things to both the data and sd-ext partition like system framework files, system libraries etc in different ways and uses custom scripts to manage it. M2SD is not made to handle these things as there are no standards. Every dev uses their own way.

So make sure that you use an official gapps package and that you do not have scripts that moves different system files around (Just ask your ROM dev).
[Android Software/Hacking General [Developers Only]] Israotz:
It moves apk's data or not??

You said:

But you mention as a feature that can move the data to sd-ext...

So...:confused::confused::confused::confused:
[Android Software/Hacking General [Developers Only]] MetinKale38:
Yes it CAN. Just press configure on the mounts2sd app and select anything you want.

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It can, with proper init.d support. You can also disable safe-mode from the app which will allow you to move it, but any problems related to this is at your own risk. Dont disable it and then complain when things go wrong. Best way is to implement a proper init.d method to your rom.
[Android Software/Hacking General [Developers Only]] BleedingIris:
Safe mode

What exactly does safe mode do?

I disabled it, because I don't want all my SD ext apps to come back to internal memory,just Incase anything happens... (which is probably fixable later)..

Does safe mode mean non execution of scripts?

cm9 htc a310e
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
When init.d is executed as an service rather than directly executed, which it is on some rom's, all other startup services are executed while init.d is still working. This also includes services which handles app data, dalvik-cache etc. Proper init which is directly executed will allow init.d to finish before any other services are started.

As you might figure, it is not smart to move content while it is being handled by other services. So safe-mode will in this case auto disable the data and dalvik option, only allowing apps being moved, which does not cause problems with any init.d method.

If you have proper init.d support, disabling safe-mode will have no affect as it will never be used anyway.
[Android Software/Hacking General [Developers Only]] seanlau56:
How do you undo all the changes made ? is there a way to reset to my original setting? my phone file system is in a mess
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Just uncheck all content options and reboot. Everything will then be moved back to /data if there is enough space to do so.
[Android Software/Hacking General [Developers Only]] seanlau56:
can I uninstall and reboot?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Uninstall? The app? I would not do so. The app controls nothing, it just provides you with the status of the script. Uninstalling the app will not remove the script, and removing the script before reverting your data would not be smart.

Uncheck everything (Not the first one for the entire script, then the script will not run and will not revert your data back), reboot your phone, check the app to make sure that everything has been moved back (Maybe you did not have enough space), then uninstall (Remember to remove the script).
[Android Software/Hacking General [Developers Only]] BleedingIris:
Thanks

I'm a frequent Rom/kernel flasher..(without wiping data, etc)...

Just need a clear view of this...

If safe mode is activated, will the .dex and.db,xml etc...files are moved back to internal or just the mount point remains the same at /data/dalvik, etc.. (in the latter case, my data and dalvik are safe in sdext).

However, in the later case, will not the .dex files be recreated in /data/dalvik, which will eventually run out of space and bootloop..

In the former case, I risk losing all my data due to back transfer..

Just want to know, which of the above method will be executed or is it a entire new thing?

cm9 htc a310e
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
If safe-mode is active (Not enabled but active), then data and dalvik is not moved, no mater if you have tried enabling it. Only the APK's are allowed to be moved when safe-mode is active.

And you will not loose anything by moving things back from sd-ext to data. The script is build with a lot of safe guards to make sure of that, one of which is checking available space and comparing it to the size of each folder. If it is not possible to move something back (Let's say the APK's as an example) then they will stay on sd-ext and the apps option is automatically enabled again. The app will also provide you with a warning stating that the operation failed.

That's why I said, don't delete the app before you reboot. You need the app to make sure that all operations was a success before attempting to delete anything sd-ext related.

That said, it never hurts to do a backup before doing anything else ;)
[Android Software/Hacking General [Developers Only]] BleedingIris:
Thanks

So, I take this is the latter case...and even if I have 350 apps and 50 MB /data,the apps also will not move.. right?

Anyway I ran into something like that yesterday.. some problems with SD ext mounting, I suppose.. fixed it by a nandroid..

During the period I obviously wasn't able to check whether the script was activated or not... because all apps in SD ext was not in my app drawer... including mount2SD.

Feature request ~keep the mount2SD app in /data(during safe mode) or in /system(I could manually put it in system though,but I'll have to do it in every Rom flash) incase during safe mode or basically even in normal mode, only this app.( I could copy the log to sdcard.. but a lot of work and I wouldn't be able to read the log(no text editor at that time (all apps in ext)))

cm9 htc a310e
[Android Software/Hacking General [Developers Only]] adeelio:
HTC Wildfire S

I have HTC Wildfire S. I tried every way possible to run Mounts2SD app. but it is running in safe mode

my HTC Wildfile S is rooted and init.d access is enabled (checked under /data folder )

Also it is mtd device and I flashed mtd version of application.

Also if i want to find log file of the app (boot log) showing issues where can I find it.

Regards
[Android Software/Hacking General [Developers Only]] Jefersonoyue:
help on S7562L

hey everyone...

new on the forum....

i cant seem to make it work on my samsung galaxy s duos (s7562L)

keeps loading Configs and nothing....
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You cannot do anything about safe-mode. Read about it in the posts just above yours or in the first post on the first page (OP)

The log can be seen by clicking on "View Log" in the app, quite simple ;)

Update your busybox, that seams to work on this issue. Most likely a shell command that hangs due to a bad support of the command
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
Why the space indicator not same as what the root explorer show? My ext partition is empty and root explorer showing 8mb used and free 4gig while on mounts2sd show 200mb use and 4gig left?

Does the swap need supported kernel to be activate? As my kernel is not swap supported.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Weird, after checking a little it does seam to add 200mb extra on my phone as well based on some shell output. I guess Root Explorer uses shell output to calculate the size, whereas my app uses Androids own tools. So the question is, which one is showing wrong result? I will look into it, thanks for noticing :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
So I did a little checking, and the reason is that you can calculate to things.

1: Total Free space, including reserved, but not yet used blocks.

2: Real Free space, which means that you do not include reserved blocks. They might be "free" at the moment, but are reserved for something else.

So let's see this in another way. You have $100 in your bank account. However, you have just paid $20 for something with your credit card and because it is weekend, the bank has still not withdrawn anything, but instead they have reserved the $20 so that it can be withdrawn on Monday.

Now, how much money is on your account?

Of cause. A little hard to use SWAP without SWAP support :)
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
now i understand it.. :) after restoring all the apps, i find out the same free space as before. Before this im using link2sd but i found out it too buggy on JB rom.

One more this about this, after i reflash rom, its clean and i start installing this app and also busybox. and finish with configuring busybox and the mounts2sd script. I reboot, i found out at the log that the sqlite3 binary was missing. Do i need to install it? I find out that its very tedious to download the sqlite3 from internet since i dont have a permenant internet connection here. Of course im using third party app to download the binary.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
That's up to you. M2SD uses it to change the package threshold (The amount of space in percentage that needs to be available on /data in order to be allowed to install more apps). By default you need at least 10% of the data partition size to be available. M2SD will set this to 1% if this binary is available, allowing you to install even more apps before android complains about low storage.
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
Now i understand what the function of sqlite3. So error on the log some of it can be ignore and the mounts2sd will work add normal too.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (1.2.0/5.2.0 - Jan 10, 201

Yes, also some are just warnings. Not all are errors
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
I forgot to suggest you one thing. Is it possible to add format the ext partition function? Just for easy to format the partition before or after flash new rom without taking out the card.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
When I at some point add these functionalities to the Root Framework that I am working on, then I might add it to the App. But right now I don't have time. Problem is that most ROM's (Custom or Stock), does not provide the binaries for this. A few ROM's does have the binary to format ext2, but not ext3 and ext4.

Adding the binaries to the App will require that I provide them for different Arm versions as well.

However, I think that you can already get App's in the market that provides format capabilities for both the sdcard fat32 and the sd-ext partition. Just search google for disk management on android or something like that.
[Android Software/Hacking General [Developers Only]] Dunc001:
I have a problem which I'm hoping you can help with. Yesterday I rooted and upgraded my wife's Xperia Ray to latest ICS firmware (.587). I then used DoomLords method for enabling init.d support on stock kernel (locked bootloader) and tested it and it works fine. I then installed busybox 1.20.2 and then mounts2sd from Play Store. I set up a 2gb ext3 partition on the sdcard. When I opened the m2sd app for the first time I had to configure busybox and install the script. All good up to this point. However no matter how many times I try I can't get anything other than just apps to move to sd-ext - data, dalvik and cache don't appear to be moving and on the main m2sd screen only apps has a green indicator, and at the top it says it's running in safe mode. Can you give me any pointers as to what I might be doing wrong please?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Re: [App/Script] Mounts2SD - An All-in-one sd-ext solution (2.0.0/5.3.0 - Jan 20, 201

Your running in safe-mode. Read the safe-mode section in the first post, that will explain everything to you :)
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
@DK, I see your last update changelog.

If you need French translation, PM me. It's the least I can do to thanks for your work and your ROM ;)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
PM is on it's way :)
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
Why sometime after I restart my phone, it will loading all my apps again on the home screen?
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Maybe M2SD clears the dalvik cache when your change settings about its location ?
[Android Software/Hacking General [Developers Only]] jasonkhoo87:
But, I didnt do anything on the settings. I try to update to latest version and see...
[Android Software/Hacking General [Developers Only]] Dunc001:
I guess it's running in safe mode because on stock kernel it is not enabled in ramdisk but rather through startup script. Anyway, tried disabling Safe Mode but when moving data/data I got never ending system apk fc's, and when I restored and then tried moving dalvik I got bootloops so I guess only User Apps can be moved in this instance :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes, it can cause problems when init.d is running as a service, which is why I added safe-mode. I had many complaints about this type of issue.

However, you could just add proper init.d to your stock ramdisk. Just extract it, unpack, edit, repack and flash it back
[Android Software/Hacking General [Developers Only]] mixednuts:
It's that simple, eh... :p
[Android Software/Hacking General [Developers Only]] Dunc001:
Yeah, unfortunately on locked bootloader with no fastboot support so don't think I can flash kernel other than through FTF and flashtool?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I would think that a Recognized Developer would have that part covered, yes ;)

If your phone is locked, then the TZ would properly protect the boot partition from being written to without proper signing from your manufacturer. But you could unlock it?
[Android Software/Hacking General [Developers Only]] mixednuts:
Gees... my aplogies. :o Seemed to have missed that detail. :D
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
New release.

Version 2.1.6 is made to handle your little problem, however it would still be best to locate the script in /etc/init.d that messes with this. You have another a2sd script in there somewhere.

#!/system/bin/sh

busybox mount -o remount,rw /system
for i in /system/etc/init.d/*; do
if busybox [ ! -z "`busybox cat $i | busybox grep "sdext"`" ]; then
busybox echo "Deleting $i ..."
busybox rm -rf $i
fi
done
busybox mount -o remount,ro /system

In the terminal do the fallowing

1: Copy the above code

2: Type "su"

3: Type "busybox cat > /data/delscript" and press enter

4: Copy the code into the terminal, Right click mouse and select paste.

5: Press ENTER key once

6: Press Ctrl+C

7: Type "busybox chmod a+x /data/delscript"

8: Type "/data/delscript"

This will search for your hidden a2sd script and delete it
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
First of all, 148mb goes a long way. no need to worry about space before you get below 40mb.

Second, if you are referring to low space error in market, this is releated to apps wanting to install on the fat32 partition. For some reason, some apps does this. Most people fix this by deleting market data/cache from settings and reboot the phone. Others fix it by enabling memcache in m2sd. You do this by executing the command "m2sd memcache enable" in a shell.

Third, You really should enable dalvik2sd instead of data2sd. The phone runs slower with data on the sd-ext than with dalvik-cache. The data2sd is for people with both apps and dalvik on sd and still in the need of more space. So "m2sd data disable", "m2sd dalvik enable"
[Android Software/Hacking General [Developers Only]] akrozia:
Thank you for your fast reply.

My problem with space appears while I'm restoring apps from titanium backup.

I execute these three commands (m2sd memcache enable, m2sd data disable, m2sd dalvik enable). Now I have 94 MB free reported by phone with the same apps installed.

Thank you very much!

---------- Post added at 10:12 PM ---------- Previous post was at 10:10 PM ----------

I'm stuck again.

After I restore more from my apps from titanium now I have 22 MB free space. Can not download Gmaps from Market. Cleared Market cache and rebooted.

here is my output:

root@android:/ # m2sd log

v/Initiating Mounts2SD (v:2.1.6) [Fri Mar 2 21:21:58 EET 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/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/Umounting /cache to make the directory ready for linking...
v/Linking /cache to /tmp/cache...
v/Mounts2SD has been loaded!

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

Mount Points:
-------------
/dev/block/mmcblk0p2 991.9M 216.3M 724.4M 23% /sd-ext
/dev/block/mmcblk0p2 991.9M 216.3M 724.4M 23% /data/dalvik-cache
/dev/block/mmcblk0p2 991.9M 216.3M 724.4M 23% /data/app
/dev/block/mmcblk0p2 991.9M 216.3M 724.4M 23% /data/app-private

root@android:/ # m2sd status

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

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

root@android:/ # df
Filesystem Size Used Free Blksize
/dev 202M 32K 202M 4096
/mnt/asec 202M 0K 202M 4096
/mnt/obb 202M 0K 202M 4096
/system 250M 184M 65M 4096
/data 147M 126M 20M 4096
/tmp 42M 28K 41M 4096
/sd-ext 991M 216M 775M 1024
/data/dalvik-cache 991M 216M 775M 1024
/data/app 991M 216M 775M 1024
/data/app-private 991M 216M 775M 1024
/cache 42M 28K 41M 4096
/mnt/sdcard 6G 6G 331M 4096
/mnt/secure/asec 6G 6G 331M 4096
/mnt/asec/com.alensw.PicFolder-1 2M 376K 1M 4096
/mnt/asec/com.outfit7.talkingtom2-1 14M 9M 4M 4096
/mnt/asec/com.estrongs.android.pop-1 4M 2M 1M 4096
/mnt/asec/com.fivemobile.footy-1 3M 1M 1M 4096
/mnt/asec/com.teamviewer.teamviewer.market.mobile-1 3M 1M 1M 4096
/mnt/asec/com.dasur.language.bul.pack-1 2M 1024K 1M 4096
root@android:/ #
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Then enable data2sd
[Android Software/Hacking General [Developers Only]] DirkStorck:
I am using the app simple2ex. How can I get rid of it and use your mount2sd wirhout the need to wipe and install all again ? :)