yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] siavash2death:
Hello dk. I have some questions: Have safe mode turned off in this new version? Ore should be turn off by that echo command you said before? And another: which one consumes larger space? Data or dalvik? Which one do you recommend to move to sd-ext for better performance and less problems? And what options is the best for cache option?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Safe Mode is off by default, and it can be changed from the app like everything else. And about data and dalvik, just have a look in the app. It writes the current sizes of all the content types.
[Android Software/Hacking General [Developers Only]] siavash2death:
I don't want to turn on the safe mode, but for me it can't be enabled! It is Gray. can't change that. A question: I found an app like your init.d injector. It's like a part of pimp my rom to enable init.d ability. In this app it says that I have init.d ability without problem, but is there any way to brew sure of that?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Well you are running sd-ext scripts, that means init.d is working. And the safe-mode option is grayed out, which means that you don't have that type of init.d that might need safe-mode.
[Android Software/Hacking General [Developers Only]] siavash2death:
I installed the init.d script from application settings. Is it wrong?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
No not wrong, you will need if you it to work
[Android Software/Hacking General [Developers Only]] luminata:
Hey!

I installed again and this time I selected library and dalvick cache. Application was already selected. The script worked fine.

Thanks for the updates :)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Thanks for feedback, glad it is working
[Android Software/Hacking General [Developers Only]] SysTrM:
HEy i have a htc explorer and i tried installing the app from playstore. the configs go well and the init.d support and busybox are both configured. but after rebooting, nothing has changed. everything is still on internal and the app is not recognizing my ext 4 partition. ive tried rebooting countless times but to no avail.(ive actually tried the no config zip but the wifi toggle didnt work+after rebooting 2-3 times apps started force closing)-so i wanted to try the app if it would work better.(the status thing is just gray and all the other things are all gray too.the only thing which shows up too is the storage data. my ext is not shown there.) any help would be appreciated .

THANKS!!!
[Android Software/Hacking General [Developers Only]] gozil:
2.2.0 working fine, but beta version (3.0.2-beta) keep force close
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Before I can help, I will need a log, you can copy it to the sdcard from the app.

Okay, could you grep a logcat when it does this? Otherwise it would be impossible to say why, how and where.
[Android Software/Hacking General [Developers Only]] memine:
Same issue here with beta release. No logcat as it isn't installed yet but this is on a GT-S5660M (Gio).

As is reported right now:

Model: GT-S5660M

ROM: cm-10.1-20130720-NIGHTLY-gio

Gapps: gapps-jb-20130301-light

CWM: cwm-6.0.3.2-ext4only

Everything is left as default except as noted.

Script is running in safe mode,

Status is green.

Internal Data: 86.45Mb of 178.38Mb

External Data: 44.99Mb of 1.5Gb

Cache: 44.99Mb of 1.5Gb

No swap partition, yet, but having problems getting the data and dalvik turn on. Keeps unchecking after I close app and reboot. Cache set to auto worked fine and "stayed" after reboot but data and dalvik again unchecked and not applied. Doesn't matter if I do both at the same time and reboot or try one at a time and reboot. Once the check mark turns green it stays that way until I reboot for it to be applied, then it's back to a grey check mark and not applied.

TIA
[Android Software/Hacking General [Developers Only]] Daniel D.:
Logcat doesn't need an installed app. You've to provide a logcat otherwise your bug report is useless.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You can still get a log from the FC, also the only way that I can fix it.

About data and dalvik. If you are talking about app version 2, then you will see the message about safe-mode in the top of the overview screen. As long as the script is running in safe-mode, data and dalvik is not allowed and will be auto disabled by the script to avoid issues. You can disable safe-mode, and thereby enable the work-around for these issues, in the configure screen.
[Android Software/Hacking General [Developers Only]] memine:
I went to the beginning of the tread again to see where to pull the log from but "cat /var/mounts2sd.log | grep mounts2sd", without the quotes, gave me a "file not found error".

I did note that the "Safe Mode" was my original issue after reading the beginning of the thread again. Thanks for noting it in your reply anyway.

Before I could get to deep into trouble shooting the issues I started getting "Connection problem or invalid MMI code". Never seen this one before so had to look it up. I've been testing the ROM for a month on two family members Gio's without this issue and the only new thing is the "Mounts2sd". (Used to use S2E but the current 4.2+ ROMs don't support it.) I just built this for my son and started clean.

I'm not sure if the 2.2.0 version or the upgrade to 3.0.2-beta and then uninstall and return to 2.2.0 added to the issue or not.

The CWM backup was used to restore but as it had everything in it as-is, trying to make a master backup, the issue returned, even after wiping the cache and dalvik.

Turned everything off in Monuts2sd, rebooted, then rebooted into CWM and wiped dalvik and cache again. Seemed to fix it and connect properly. Opened Mounts2sd again and just status on. Issue returned.

Uninstalled Mounts2sd 2.2.0 again, booted into CWM, wiped dalvik and cache again, rebooted to system. Now the text messages work again as does the connection to the network provider and USSD code for balance. (Didn't bother trying to call as everything else was working.)

As we need a memory/storage manager like Mounts2sd on the Gio I don't mind helping to trouble shoot the issue...just let me know what you need and where I can find it. (I'm a linux user so don't mind hunting in the root OS.)

I'm assuming that one of the apps is being moved and causing the issue but don't know how to block it yet, and need to know what log will point out possible issues. I can re-install Mounts2sd at that time and track it down.

Hope this helps!
[Android Software/Hacking General [Developers Only]] Daniel D.:
As he said two times now: He needs a logcat. Google it and you'll find a way to provide the file. :thumbup:
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Linux is the easiest OS to debug Android as you don't need to fiddle with the USB drivers like in Windows (Pure hell to get working). First thing is to get ADB installed. Just google it, it's quite easy on Linux as you just need to pull the binary.

Next you just plug your phone into the PC, run "adb logcat" in the terminal. Then you open/install Mounts2SD (The beta). Once it crashes and you get the crash popup message from Android, you press Ctrl+C to stop the logcat. Now you just need to find the messages regarding the issue. You can read more about Android App crash messages in the second post in this thread
[Android Software/Hacking General [Developers Only]] memine:
As I've said... Where IS the log? Had you pointed this out in your first reply to me I'd have posted it already. (The Logcat I'm familiar with is an app that reads the logs and lets me capture and save to the SD card.) It's great your willing to help but don't assume I know what your talking about. Add a path or point to a guide so I can actually act on your request.

I just noted dk_zero-cool did this in his reply so I can follow that.

TY!

---------- Post added at 04:41 PM ---------- Previous post was at 04:24 PM ----------

Thanks for explaining what you need better. I'm in Windows at the moment but will reboot to Linux. Haven't used Kies, ADB, or Odin in a year or two... I have a SGS2 which is never a problem but the Gio's are the Canadian version, GT-S5660M, and can be a royal pain with ROMs and WiFi modems not being right and failing to connect.

I had to do a full wipe and reflash as the MMI issue returned even after uninstall and clean-up of Mounts2SD. Now, next morning, on a fresh, clean setup MMI has returned again.

I'll follow your advice and direction above just in case Mounts2SD is involved, as I need it for the other Gio as well, but I'm pretty sure this isn't your apps issue now that I know what MMI is. I don't see how it could still be an issue with Mounts2SD if I reflash the ROM. The other Gio hasn't had any issues on this ROM and I'll back it up tonight before adding Mounts2SD just in case.

On the Gio that's got the MMI issue I'll re-install Mounts2SD now, grab the log in the hope it can shed some light on this, and follow your instructions.

Regardless of the outcome I'd like to thank you for taking the time to reply and assist. These weaker phones need support and apps like yours to keep them useful and functional. (Don't need it for the SGS2, yet.)

Regards.
[Android Software/Hacking General [Developers Only]] memine:
It seems I was on crack... :eek:

I have used Odin to reflash the original base and then used CWM to update to the newer ROM again. This seems to have resolved the issue as I backed everything up again and applied Mounts2SD and I'm no longer getting the MMI error/issue.

Apps and Cache are moved by default and things seem fine. Just did another reboot before locking things down and making a final Master backup.

The only thing different to note was that after flashing the base and then using CWM to install the ROM zip I wanted on reboot I had to enter the unlock code. Could very well be the real issue was this but flashing hid it or mucked it up.

Anyway, thanks for your help and a great tool. I hope it works well for the Gio and resolves some of their space/memory issues. I'll leave safe mode on for now and see how that goes.

Regards! ;)
[Android Software/Hacking General [Developers Only]] siavash2death:
Hello, dk. I have a question. In some app almost all settings are enable (except moving system apps), but in some roms there are 2 or 3 options enabled (apk,data or dalvik) and move libraries is disabled. Is it normal?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The separate library folder /data/app-lib was introduced in Android 4.1 while any pre 4.1 versions placed this in /data/data. So on any pre 4.1 ROM, you will not have the option to move libraries individually but will be moved along with the rest of the app data.

So if you are switching between different Android versions, then yes this is normal.
[Android Software/Hacking General [Developers Only]] weirdsciencex:
Just been reading some of your replies to play store reviews and I've never laughed so much :D

“Programming is like sex. One mistake and you have to support it for the rest of your life.”

- Michael Sinz

-----------------------

Copy: get 20GB free permanent cloud storage. For every person you get to sign-up earn another 5GB https://copy.com?r=m3asrR
[Android Software/Hacking General [Developers Only]] siavash2death:
It's android 4.1.2! Vj cm10 rom V3.1
[Android Software/Hacking General [Developers Only]] demoncamber:
I'm getting the "Could not handle the ext4 journal. Missing tune2fs!" error. I have no idea what this is or how to fix and my phones is basically unusable unless I nandroid back.

What do I need to get this working?.

Meh... Init.d Injector 0.1.18 seems to have fixed it!
[Android Software/Hacking General [Developers Only]] sushil888:
thanks

worked. thanks
[Android Software/Hacking General [Developers Only]] demoncamber:
Could someone give me a quick comparison how this mod compares to AD2SDX - AMARULLZ DATA TO SD-EXT??
[Android Software/Hacking General [Developers Only]] mixednuts:
System apps to EXT without converting them.
[Android Software/Hacking General [Developers Only]] MetinKale38:
I tought it was 4.2? That was the only thing made me stay on 4.2, because i need that extra space, but now i will try 4.1 miui :)

May anybody using 4.1 could check it?

Tapatalked... just Tapatalked...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The only thing this does, it turning sd-ext journal on and off. It have no impact on anything else, the script will still mount sd-ext and move content.
[Android Software/Hacking General [Developers Only]] MetinKale38:
I tried it, no app-lib in 4.1 :(

Tapatalked... just Tapatalked...
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Really? As far as I knew, the only different between 4.1 and 4.2 was multi user support.
[Android Software/Hacking General [Developers Only]] MetinKale38:
I guess they moved libs outside /data/data because of the multiuser support, else every user would have his own libs and that would take more useless space :)

Because of the multi user support, which i dont use, i cant go back to 4.1 roms like miui..., because i need the space freed by the moved libs

I need that feature, although i dont use it :)

Tapatalked... just Tapatalked...
[Android Software/Hacking General [Developers Only]] demoncamber:
Ok guys, here's a challenge!

Say I'm about to upgrade my sdcard and want to seamlessly transfer everything, sd-ext ext-4 partition included to my new card so my phone won't even see a difference and all my apps are there on the new card... Now how do I go about doing that?

Sent from my SGH-T989
[Android Software/Hacking General [Developers Only]] post-mortem:
If you have access to a Linux computer (or on a VirtualBox VM), you can easily create the appropriate partitions on the new card using Gparted, then just do a straight copy of all the files from the old card to the new one, one partition at a time.

On Windows, I recommend Acronis True Image Home. You can backup the old card, then restore the image to the new card. If by upgrading you mean that your new card has a larger capacity than the old one, then you'll probably want to adjust the sizes of the partitions on the new card to make use of the extra space. For that, I recommend MiniTool Partition Wizard.

:good:
[Android Software/Hacking General [Developers Only]] demoncamber:
Its funny because I have all 3 programs. Yes its bigger, going from 16gb to 32gb. Gparted live CD is probably the best bet, not sure if I fully trust mini partition... And I wasn't sure if acronis supported ext-4 partitions, but I guess maybe if it does a full partition image it may?

Sent from my SGH-T989
[Android Software/Hacking General [Developers Only]] post-mortem:
I have used MiniTool several times without problems, and I also haven not heard people complaining that MiniTool screwed things up.

And Acronis 2013 does support ext4.

Anyway, you seem to know what you're doing, so I'm sure you'll be ok.

:good:
[Android Software/Hacking General [Developers Only]] gu5t3r:
As you mentioned Acronis, also Acronis Disk Director can be used instead MiniTool Partition Wizard...
[Android Software/Hacking General [Developers Only]] demoncamber:
having a bit of an issue... If I need to switch kernels and then flash your init.d injector in recovery again, upon booting up into jellybean, the M2SD script is cleared and all my apps are gone, until i reinstall M2SD. Then after reboot of that, I get an error message from M2SD upon boot up that not all data/apps could be moved to the partition due to not enough free space.

So what is the correct method if I should have to reinstall or update my kernel?

Please directly quote reply to this post so I am alerted to the answer :) Thanks guys:good:
[Android Software/Hacking General [Developers Only]] mixednuts:
Assuming you have a backup... restore it and keep all your init.d scripts somewhere accessible later.

Flash the new kernel and inject it.

Use Aroma file manager and put all the scripts (more notably, the M2SD script) back into the init.d folder. You may need to set proper permissions.

Wipe cache and reboot.
[Android Software/Hacking General [Developers Only]] MetinKale38:
Couldnt he just flash the kerbel and reinject?

The scripts can just stay, they wont run away...

Tapatalked... just Tapatalked...
[Android Software/Hacking General [Developers Only]] TopperBG:
I'm think (not so sure, must check) that if flash Kernel, init.d is overwritten !!!
[Android Software/Hacking General [Developers Only]] mixednuts:
I haven't reproduced the circumstance, but from what the user described it seemed as though the M2SD script was overwritten.
[Android Software/Hacking General [Developers Only]] lrp91:
whats mean warning with error code '139'?? i get this after install & configure mount2sd on deroid sense 5 build2 v2
[Android Software/Hacking General [Developers Only]] MetinKale38:
May it is device depended, on my htc desire nothing on /system is touched when i flash a kernel.

Tapatalked... just Tapatalked...
[Android Software/Hacking General [Developers Only]] lopsided:
I loved this app for the last few weeks. But then I plugged into my PC and switched the USB mode to "mass storage". My phone (a Samsung Galaxy Note N7000) rebooted immediately and would not get past the loading animation. I am using the LiquidSmooth ROM (JB 2.3).

I don't really know what to do. I accidentally deleted my backups while I was trying to repartition before I found this app (yeh, Im an idiot) and I would really like to see if I can fix it before going for a full wipe and flash from scratch again.

I can get in using adb, was thinking if I can reset the settings or partition table....? Im out of my depth now though. Does anyone have any suggestions? (Would be massively appreciated!)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Often in boot loop situations, it is the cause of broken system dalvik files (One more reason to use Odexed ROM's). Try wiping dalvik-cache and cache in recovery. This have fixed many boot loop issues on my devices. If this does not work, and you can't get ADB to locate the issue, then a full wipe would properly be the only solution.
[Android Software/Hacking General [Developers Only]] lopsided:
I cleared both the caches a bunch of times, even tried reflashing the rom without wiping data. So then I did the full wipe and reflashed the rom again. I tried the advanced restore from a backup I took in recovery after the phone had the boot loop issue to try to restore /data or /sd-ext (tried each separately over a full wipe each time) but both gave me the same problem again. Anyway, all wiped and back to square 1 again.

Is this a known issue? (Changing usb-mode to mass storage?) I would like to use this app again but I am a little wary.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
It is not an issue at all. Your issue was ROM related or sdcard (bad blocks maybe) related and had nothing to do with Mounts2SD. This script handles the sd-ext partition during boot. It has nothing to do with your storage partition or UMS. It does not even do anything while the device is turned on. Everything is done during boot. After boot it does not do anything at all. There is no way for it to have any kind of impact on your UMS.
[Android Software/Hacking General [Developers Only]] famewolf:
When using an online backup application such as onadroid (script) or the two gui's that call it (obackup and online nandroid) what is the proper procedure to get a correct backup? If I just backup /data then when I restore it's going to try to restore all my apps to /data instead of the sd-ext. If I include /sd-ext in the backup I get a duplicate of all the apps and data resulting in a backup that is twice the size it should be.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Folders from sd-ext is linked to /data. So just backup data. When it restore to /data, the linked folders will make sure that it gets placed on sd-ext
[Android Software/Hacking General [Developers Only]] mixednuts:
I guess... just make sure you don't wipe SD EXT. :p
[Android Software/Hacking General [Developers Only]] famewolf:
You would think that but I have 3 backups taken where only /data was backed up that failed on restore of the data partition. Logs attached. (*note* those 3 were taken with obackup gui frontend calling onandroid)

The symbolic link's don't work when restoring from twrp.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Mounts2SD does not use symlinks, it mounts folders during boot. This also means that from within a recovery, no links are made between data and sd-ext as Mounts2SD does not impact the recovery. So if you are doing backup from within android and then try to restore from recovery, you will have a problem. When you are within Android, all content in sd-ext is linked to /data, so backing up data will include everything in both /data and /sd-ext. But when you are within the recovery, these links is not present, so restoring will add everything to /data only.

You need to backup and restore from within the same system. This means either the recovery or android. You cannot mix them. At least not unless the backup tool is made to handle this, which is not an issue for this thread.
[Android Software/Hacking General [Developers Only]] famewolf:
The problem with that is that onandroid doesn't do restores and nandroid manager which DOES do online restores complains the backup is in twrp format instead of CWM (twrp is what is in my recovery). So only solution I see is rebooting into recovery to do a backup which defeats purpose of using "online backup" to get weekly backups without having to do that. Around and around we go.......
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
I can see the issue, but again, not much that I can do. You are trying to backup your system while it is booted and then restore it in non-booted state. I could never recommend this. On top of that, you are using a software that apparently is not capable of doing so on devices using sd-ext.

This leaves you with 5 options.

Don't use sd-ext

Find another backup tool

Write to the developer of the backup tool to have him/her fix it

Use the recovery for backup/restore

Manually mount the sd-ext sub folders to the equal data folders in your recovery before restoring
[Android Software/Hacking General [Developers Only]] demoncamber:
I actually realized that it wasnt the init.d injector that was erasing the scripts, but the reinstall or new version install of the kernel that was.

But your instructions worked either way! Thanks.
[Android Software/Hacking General [Developers Only]] demoncamber:
Say all goes wrong, script wont load correctly and you're missing almost all of your apps.

How do you go about manually uninstalling all changes made and moving all your apps back to where they were from the beginning?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You can't. Reverting things back, also requires the script to function properly. This is why I write everywhere (OP, Play Store Description etc.) that people should remember to make a backup BEFORE attempting to install this.

What you can do, is install the beta version of the app (Download is on the first page). It has a lot of improvements which could fix whatever issue that you have. Install the app, launch it and install the script and then reboot. Your apps could come back if they are just placed on sd-ext, but the old version failed to link the folders.

If not, full wipe.
[Android Software/Hacking General [Developers Only]] MetinKale38:
Could nt you simply create a flashable zip which starts the init.d script (with the needed environment), to mount the ext folders before restoring the backup from recovery?

Tapatalked... just Tapatalked...