yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] TVT73:
I also noticed, that the internal ram is full, although i activated everything (like you will see on ma last full log).

here is a screenshot of what i mean, with settings from last log.

I remember, that i had seen there 1gb earlier. I can´t explain why i see now only 154mb, alough the script is working, expect dalvic-cache.

is that what you mean pantsman28?
[Android Software/Hacking General [Developers Only]] TVT73:
You are right. i forgott that the system uses more 4k access than video streams. So for this script the sequentiell reading/writing is equal.

Lets close this discussion, its to oftopic. It was my error in reasoning.
[Android Software/Hacking General [Developers Only]] kla960:
Latest version causes an error on HTC DESIRE BRAVO JB 4.2.1 ROMs. After installation of the new script and reboot, most of the apps are getting lost. Do you know about that or do you need a log?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
As there are current more than 400 registeret bravo devices with 4.2 using the latest version and no error reportings except you, this seams like an isolated incident. So a log would be nice to identify the issue, remember to enable debug :)
[Android Software/Hacking General [Developers Only]] PoTT3R:
I have an issue with 1.1.2 Play version.

The log says that it couldn't mount the dalvik-cache, but i configured the app to let dalvik cahce in /data.

It's a ZTE Blade with CM9, partition info in a screenshot and log @ attachments.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It is not /data/dalvik-cache, its the CM /cache/dalvik-cache. When you enable cache, the cache is moved to either data or sd-ext. But the script will keep the system dalvik on the original cache partition. That is what failed so that system dalvik now is placed on your sd-ext.

Thanks for the log, it helps. I will get this fixed. However not to worry. Despite system dalvik being on the wrong partition, everything is working fine on your device. As soon as I fix this, system dalvik will be moved to the correct location.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Okay I located your problem, based on a log from PoTT3R. The problem is your busybox version which does not understand a for loop which searches for hidden files. These files needs to be handled in android 4.2+

I will add a safe-guard which your busybox should understand. But I would suggest switching your busybox binary as this is a very basic shell structure which even the most simple busybox version should understand.

Both data and system dalvik is located in /data/dalvik-cache on your device. I just forgot to look for 'dalvik.vm.dexopt-data-only=1' in build.prop. So you actually have no problems at all. I will add the missing check to the script, which will remove your warning.
[Android Software/Hacking General [Developers Only]] mixednuts:
busybox install...

Seems as though a lot of issues point to incomplete busybox configuration / installations. D'you still suggest users to use the busybox you linked to back on Dec 20th (quoted below)?
[Android Software/Hacking General [Developers Only]] PoTT3R:
I'm trying to upgrade from 1.1.2 to 1.1.3, but can't install the init.d script. "The init.d startup script could not be copied to the system partition."

Can you upload v1.1.1? If i restart the phone, all my apps will be lost due to the incorrect init.d scripts :/
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I link to versions that I know will work. The date of the binary makes no difference. It contains all the commands that a device should have and each command contains all of the options that they should.

So yes. In case of bad/limited busybox versions, I would suggest the version you are refereeing to.

If you reboot your phone, you will be fine. The script has been updated and your config is safe. I just forgot to update the MD5 sum that the app uses to identify the script version.

I have updated the app, if you don't want to wait for play store to update (Takes a few hours), just install from recovery. But do not worry about your data, it's safe. The app just don't regencies the script MD5 which is why it gives you an error.
[Android Software/Hacking General [Developers Only]] gregferns:
@dk - For the nexus one which zip file should i download ?

The MTD one or the EXT one ??

regards

greg
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Nexus One is an MTD device
[Android Software/Hacking General [Developers Only]] mixednuts:
I searched and it looks as though this has been asked before - is the LG Optimus One (p50X) an MTD device... not sure how to check?
[Android Software/Hacking General [Developers Only]] PoTT3R:
Working fine now, thanks!
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I think its an mtd. If not, recovery will fail and you should use the ext4
[Android Software/Hacking General [Developers Only]] mixednuts:
Actually, in my attempts to get your script going, I have tried flashing both and, according to the recovery, they succeed. I'm currently using another 2sd type script and it does recognize, and mount, the EXT4 partition that I created (as I'm able to browse the contents with a file manager)... does that indicate anything?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The MTD and Ext4 indicates the type of filesystem used by your /system partition, not your sd-ext

The correct zip file will add both the script and the m2sd app. The other will add nothing as it will not be able to mount your partitions.
[Android Software/Hacking General [Developers Only]] kla960:
That is not so easy, because the mounts2sd app is no more available after reboot. logcat | grep mounts2sd shows the following massage:

java.io.IOException: Cannot create /data/app-lib/com.spazedog.mounts2sd-2
[Android Software/Hacking General [Developers Only]] acestars:
Thanks for the application and the script, it works. Before i used s2e and worked. I try your app because the feature app in /data/app-system directory that can be system app. Can you please make app-system directory inside data partition instead hardlink of /sd-ext? because there's still space in data partition. I moved /data/app and /data/data to /sd-ext.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Just update and you should be fine

Not so easy. The script has been made to auto detect all the app folders on different android versions. Sorting one specific app folder from the rest would demand to much rewrite at this time. Maybe at some point
[Android Software/Hacking General [Developers Only]] sheraro:
I use link2sd , and I'm wondering if mounts2sd is capable of doing what link2sd does ie : linking apk lib and dex and can it link data as well ?
[Android Software/Hacking General [Developers Only]] mixednuts:
This is exactly why I wanna get it going! ;)
[Android Software/Hacking General [Developers Only]] MetinKale38:
Yes but you can't select which apps should be moved. All or none. You can select just app (apk+lib), dalvik and/or data.

Gesendet von meinem HTC Desire mit Tapatalk 2
[Android Software/Hacking General [Developers Only]] sheraro:
very disappointing ... I let "physically" some apps in my internal memory so they can't be affected with the delay of mounting sdcard on boot !

do you experience any problem with mounts2sd on boot , like if the sdcard is mounted slowly all the apps get their dalvik extracted to the internal memory witch block everything or so ?
[Android Software/Hacking General [Developers Only]] MetinKale38:
No, that's just in androids app2sd. In all other apps2sd (and m2sd:D) the apps are mount during init.d, they will be mount as fast as internal apps.

I don't like l2sd because it can't move system dalvik and seems bugier for me than others.

I have l2sd ever installed because you can manage apps very well with it.

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] kla960:
what was the result after I updated to Version 1.1.3-2!!!
[Android Software/Hacking General [Developers Only]] Trialz Nexus One:
Many thanks dk_zero for advice that nexus one is mtd. I am now using CyanMobile and was relying on the legacy zip as with the apk and ext zips, I got only boot loops. With mtd 1.1.3 and the tweaks you have been working on all is well. It recognised the old aroma zip settings and there was a file check issue it addressed. I have rebooted a few times and all appears to be in order now.
[Android Software/Hacking General [Developers Only]] sheraro:
link2sd makes a script in init.d as well but sometimes (not so often) the system rebuild dalviks of all linked apps before init.d and that's

annoying because all internal space get over-filled (400mo internal vs 1,5go ext2) :p

you'r right in link2sd system's dalviks aren't linkable but you can change a specific system apps to a user app

and in another hand link2sd can't link data so ... we need a fusion of those 2 apps :laugh:
[Android Software/Hacking General [Developers Only]] TVT73:
Hi,

i still have the dalvic-cache issue on cm10b2 for HTC Pico. I payed a little around and there is something i don´t understand.

- i will get no error when i only disable Cache, the overview says Dalvic-cache green and cache grey (off)

- i will get dalvic-cache error when i only disable Dalvic-cache, the overview says Dalvic-Cache grey and cache green.

shouldn´t this be contrariwise? the switch dalvic-cache isn´t assigned to dalvic-cache status screen, it´s assigned to cache!?

2 full logs, with both status i discribed.
[Android Software/Hacking General [Developers Only]] Trialz Nexus One:
Quick update... Works fine so long as you do not choose reverse mount. Still fails to boot if reverse mount is selected.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Your problem is not /data/dalvik-cache which is handled by the dalvik option, but with /cache/dalvik-cache which is handled by the cache option. Two different things. /cache/dalvik-cache is a CM thing found in some CM ROM's when not disabled in build.prop, which builds all /system related dalvik-cache files in /cache/dalvik-cache instead of /data/dalvik-cache (/data apps still uses the normal location).

When you enable cache in M2SD, then, depending on available space, it will move /cache into /sd-ext/cache, /data/cache or create a tmpfs to use as /cache. But the problem is that when moving /cache you automatically move /cache/dalvik-cache also, which will run much better from the original internal cache partition. So when M2SD detects the presents of CM's extra dalvik directory, it will move the internal /cache into /internal-cache/ and create a link from /internal-cache/dalvik-cache to /cache/dalvik-cache (sd-ext, data or tmpfs depending on available space). This way the cache is now used in the new location, but the system dalvik will remain on the same internal cache partition. In your case however, it seams to fail when creating the link, which means that the system dalvik is placed directly into the new cache location instead of being linked there from the internal cache. Or at least thats what the log seams to think.

I will look more into it, but it would be great if you could re-create the warning and then provide me with an output of the file /proc/mounts
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
M2SD can make apps act as system apps without placing them on /system. Just place them in /data/app-system. True, there is no way from within the app to move any apps around, but there might be at some point. It's currently a very young app, though the script is getting old.

Also, M2SD will never at any point be able to provide an option to move selectable apps to and from the sd-ext. Symbolic links that is used in this matter is very unstable (Just check logcat on boot when doing so), especially when used on dalvik-cache files and also on app data in some android versions. Also I see no point. You have 3 categories of which you can move independently between the two partitions. I see no reason why anyone should need to split this into even more and smaller bits.
[Android Software/Hacking General [Developers Only]] TVT73:
here it is. I hope it helps.
[Android Software/Hacking General [Developers Only]] ArmyofTracy:
For some reason m2sd filled my internal memory instead off the 1G partition. Also I get an error. I'm using Slim 4.2. I get an error saying sglite3 is missing.

if helped, click thanks -:)
[Android Software/Hacking General [Developers Only]] sheraro:
I don't get it ! M2SD creates symlinks for apps when moving all of them , what would be the problem if only some of them being moved or restored ? or is M2SD makes all operations only in boot time ?
[Android Software/Hacking General [Developers Only]] abhishek046:
I've found out a way to make data2sd work even on stock rooted roms without any sort of scripts, mounting or even init.d support! Here's how:- (U need Titanium Backup & root access which is obvious)

1) Make sure ur sd-ext partition is located at /data/sdext2.

2) Now open terminal emulator or use adb. Type

su

ln -s /data/sdext2 /data/sd

3) Now navigate to /data/sd and create a folder named "app" inside it.

Open TB.

Voila!! TB now detects ur sd-ext partition!!

4) All u hav to do nw is to open Backup/Restore, long press any app & select "Move data to sd". You can even use batch mode as well.

Hit thanks if this helped!!
[Android Software/Hacking General [Developers Only]] MaEdCo:
thanks

I get the message Mounts2SD-1.1.3-2.apk Install Failed through ES File Explorer on my Atrix HD, and I can't download or install any app through market store too, I get the 'Not enough space' message :(. I tried to delete every app I can but still no luck, guess I have to flash again the ROM...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Thanks, I properly will

For your internal problem, I will need a complete debug log. As for sqlite3, either ignorer it, or find and install the sqlite3 binary which is used to handle market install problems.

M2SD does NOT create symlinks. It moves the whole content of folders into parent folders on the other partition and then binds the two directories using mount. And yes, everything is done at boot

If you want the partition mounted at /data/sd, why don't you just mount it there to begin with. There is no point in making any symlinks for this.

Well I can only help with M2SD issues when the app/script is already installed on your device. But you could try downloading the recovery zip and install that instead. In the recovery you will not get any Android app install issues.
[Android Software/Hacking General [Developers Only]] eep1:
Try clearing your market data and restarting.
[Android Software/Hacking General [Developers Only]] andreipaval:
Hello dk, thank you for your awesome script and app.

I have a HTC Desire, and am using vijendrahs ROMS. Until now I have used it's CM10/4.1.2 ROM and the M2SD script worked great.

But today I flashed the CM10.1/4.2.1 ROM, installed the M2SD app, configured busybox and init.d script, but after reboot all the user app were gone, and could not install any other apps (error code -110). What I found out is that somehow the /sd-ext is not mounted correctly, the system does not recognize it, even if it works with the default apps2sd script provided in the ROM. Can you please take a look, I would really like to use your script with this ROM. Thank you very much.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
And I would really like for my script to work for all. I am using android 4.2 myself on SGS3 with no issues, so its not an issue specific to the android version, but rather 4.2 on bravo it seams, as you are the second one to report this issue on that particular device.

Could you start by providing the log file with debug enabled? That should list the error when mounting sd-ext

Also maybe the /proc/mounts file
[Android Software/Hacking General [Developers Only]] kla960:
Sounds to be the problem I have with evervolv jb 4.2.1 ROM. mounts2sd was working until version 1.1.0. At the moment I'm trying to get some logfiles.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I will compare my git commits to see what changes to 1.1.0 could do this.

What settings did you use? Just the basics? What I am most interested in is rmount.
[Android Software/Hacking General [Developers Only]] mixednuts:
Awesome! Testing a different ROM... your script is working great with the latest unofficial CM10.1 build for the LG Optimus One (p500h). Thank you so much!!

Confirmed, the Ext4 zip is the correct version to flash for this device. Question: your SWAP option, does that just create a swap file in the fat / ext, or does it actually use the swap partition (if created by user) on the SD? The reason I ask is because DiskInfo shows 0 B used within the Swap partition.
[Android Software/Hacking General [Developers Only]] kla960:
Here is the output from /proc/mounts after reboot with the new script and a debug log I've save with the old script. But I don't know how to save a log of the new script, because I cannot install the mounts2sd.apk: Only a terminal is available. ( The output of catlog | grep mounts2sd I is already posted in a earlier post.

I'm using default options. Moving all to sdext, no rmount.
[Android Software/Hacking General [Developers Only]] mixednuts:
After trying to record video, debug log notes:

"Storage threshold not changed. The Sqlite3 binary returns result code '132'!"

Anywhere in particular where I could grab a descent Sqlite3 binary?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The debug log will display the error message returned by the binary. You are most likely missing a lib file that is used by the binary
[Android Software/Hacking General [Developers Only]] mixednuts:
?? That was the message in the debug log.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Based on the prev logcat you made, it seams that the problem comes when moving /data/app-lib to sd-ext, which is also one of the changes from version 1.0 to 1.1

To confirm this, try installing the newest version, but disable the apps option. This will make /data/app-lib remain on the data partition which should, if this is the problem, allow your phone to boot without any problems.

Actually, disable all options, 'cache', 'apps', 'dalvik' and 'data'. This will make sure that your phone boots without any problems in case the problem is with the mounting of sd-ext, and it will allow you to easily debug the problem as you will have access to things like log and such.
[Android Software/Hacking General [Developers Only]] TVT73:
New Rom AOPK JB RC2 for Pico, new problem... What could it be:

- installation from market is ok

- when starting it asks for superuser twice which is granted

- after starting app it tries to load config and then nothing happens, it still hangs by loading config.

the rom has changed the kernel to garuda. it thing i will go back to Rom AOPK beta2 ...
[Android Software/Hacking General [Developers Only]] MaEdCo:
thanks, finally I installed it, now I get this

:( I have an external SD Card 27GB Fat32, 2GB Ext2 and 500MB Swap ...
[Android Software/Hacking General [Developers Only]] 4D3:
i have exactly the same config on the sd card and same problem...what device are you using?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Did both of you reboot the phone?
[Android Software/Hacking General [Developers Only]] kla960:
I have done some tests with VJs CM10.1 JB 4.2.1 ROM. The problem is caused by enabling the cache option. See attached logs I was able to save.

1. all options disabled

2. only apps enabled

3. only cache disabled

4. Sorry but until now I don't know how to collect a log after a reboot with the cache option enabled:confused:
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Thanks. Don't need a log when cache is enabled I think, since you have almost debugged your way down to the specific issue. The error would properly be something like "Could not dexopt into ...".

Could you instead provide me with the file /init.rc and /system/build.prop ?

An then just keep cache disabled for the time being so that your phone will work for you :)
[Android Software/Hacking General [Developers Only]] kla960:
init.rc and build.prop attached.
[Android Software/Hacking General [Developers Only]] impactor:
I don't understand this. I have 400mb ext4 partition and I enabled Applications and Data to be moved there (which means everything from Data, right?), but Internal Data still has 120mb occupied.
[Android Software/Hacking General [Developers Only]] kla960:
Applications copies the folder /data/app and Data the folder /data/data. (And some other folders). But the Dalvik-cache will be still in the Data Partition. Activate Dalvik and only a few MB will be left in the Data Partition.
[Android Software/Hacking General [Developers Only]] MaEdCo:
Motorola Atrix HD with Joker ROM, JB 4.1.1

yes, still the same :(
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Do you have init.d support? Otherwise the script does not run at boot
[Android Software/Hacking General [Developers Only]] gianiaz:
Hi, I've just installed the 1.1.3-2.

I'm getting the init.d error ("The init.d startup script could not be copied to the system configuration").

Don't know if it matters, I have blackrose hboot custom.

If I have to provide some log please give me directions on how to create it.

Thank you
[Android Software/Hacking General [Developers Only]] MaEdCo:
I was thinking modified ROM have that support, guess I'm wrong... is a shame that I can't install http://xdaforums.com/showthread.php?t=1933849 for storage :( (I removed every app that I can), well I have to flash another ROM...

thanks for your support ;)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The app will give you a warning if your configuration does not match the current status. F.eks if you have enabled cache but cache has not been enabled during boot. So it would help if you would tell me which option got the warning?

The last two of these issues was due to a full /system partition. Make sure that you have enough space on /system for the script

Your problem is not the ROM. It's your boot.img. Just find a kernel/boot.img for your device and ROM with init.d added to it
[Android Software/Hacking General [Developers Only]] impactor:
I only enabled Applications and Data. They both appear to be working fine.

I also selected File System Check, EXT Journal is on auto (but apparently it is not supported) and my ext partition is ext4.
[Android Software/Hacking General [Developers Only]] andreipaval:
Hello dk, after some other tests of the Mounts2SD app and script (latest version from play store) on the HTC Desire with vijendrahs' VJ CM10.1 | Jelly Bean 4.2.1 - v4.3 ROM, I can say that even with the Cache option disabled, the behaviour is the same - > the user apps are unavailable and others cannot be installed.

But what I found out is that if I flash the 4.6.2 version of the script from recovery, everything goes well, the problem does not reproduce.

So, whatever is wrong, is from the changes in the latest versions of the script, like you said earlier maybe related to the new app-lib feature.

Thank you.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Not what I ment. Which option is showing a orange or red bullet? Besides the main status on the top of cause.
[Android Software/Hacking General [Developers Only]] impactor:
None.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Okay, anyone that have had issues in the last couple of posts, try updating to the newest version (Remember that Play Store takes a few hours to update).

This also goes for the Bravo people on Android 4.2, I got to use a friends Desire for a few hours, and your issue has been fixed (I hope :d)