yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] andresi:
Have a Problem my Girlfriends phone is a Samsung Galaxy Ace S5830i

I have Stock Rom - but a Custom Kernel with init.d Support and Root

I Install this App normaly but every Time i got This Error "the script has not been fully executed during boot" anyone can help me?

this Kernel i installed http://xdaforums.com/showthread.php?p=42055185#post42055185
[Android Software/Hacking General [Developers Only]] post-mortem:
Post your log from Mounts2SD, so we can see all the errors and warnings.
[Android Software/Hacking General [Developers Only]] andresi:
Ok, I think tomorrow i have time to post the LOG
[Android Software/Hacking General [Developers Only]] hurin8:
I am back with problems. For 2 weeks everything was fine when suddenly all the apps disappeared including mount2sd. I re-installed it and I discovered that without installing any apps, sd-ext was full (1gb)! Only apps+cache were moved.

Surely, there is no way that so much space is used.

Samsung Galaxy Ace
[Android Software/Hacking General [Developers Only]] hurin8:
Well, I found out that the lost&found directory was full of junk (~850mb). I erased it and seems everything O.K., except that mount2sd is running in safe mode.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Okay, maybe I should add an empty lost&found function to the next version. About safe-mode, use my Injector to add a different init.d method, or try disabling safe-mode in the settings.
[Android Software/Hacking General [Developers Only]] hurin8:
I tried to flash Injector 0.2.12 from recovery but the log showed "illegal operation can't write boot.img".

Should I do it from fastboot?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
What device did you try with? Some HTC or Sony devices cannot write to the boot.img from recovery, so if it was extracted fine and injected fine, then yes. Just choose the option to inject and store current. Then flash the new one via fastboot.
[Android Software/Hacking General [Developers Only]] hurin8:
Sorry, I didn't mention it. It is a Samsung Ace running cm-10.1.0-RC2-GT-S5830-cooper
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Hmm, Samsung does not have fastboot, you need to use Odin to flash it. Also Ace should work, it has with others. Maybe a recovery issue, I will look into it
[Android Software/Hacking General [Developers Only]] ramatomo:
how to simply increase the space from 1GB to 2GB after just moving data/app/dalvik on sdext?
[Android Software/Hacking General [Developers Only]] hurin8:
Sorry for the delay, this is my gf's only phone and she needs it when she is [MENTION=408485]work[/MENTION] so I can't play with it for long.

The Galaxy Ace doesn't have fastboot, I downloaded ODIN but it confused me. I tried flashing again the injector and saw the log didn't indicate any errors as did previously. I disabled safe mode, did a couple of restarts and nothing funny happened therefore it is fixed (until she breaks it again xoxo).
[Android Software/Hacking General [Developers Only]] siavash2death:
hello,dk-zero-cool. I have a question: is there anyway to install apps in sd-ext and able to trick android that they are system apps? in htc desire I have problems that system or data partition is small and I can't install and use all of mods I want! and for my desire, I must use MTD version,right?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Just copy the APK's into /data/app-system/ and reboot. After that, they will be seen as system apps and if the apps option is enabled, they will be stored on sd-ext.
[Android Software/Hacking General [Developers Only]] siavash2death:
thank you.really good! although it seems that I can't use it with 4.2.2 android roms! it always gives me not enough space for almost all my apks! a question:I don't have swap partition and in mounts2sd it is inactive,but every time I reboot my phone m2sd gives me error that it can't find swap partition! how can I disable this error? I wished that you could continue your awesome rom (spazedog) for Desire! but anyway,thank you so much for this great app/script.
[Android Software/Hacking General [Developers Only]] bvianna1:
I have installed on my N1 Mounts2SD, he asked to install a srcipt. After the installation I reset the N1 and began to show some APP message error . I did a factoring reset and kept giving error. I decided to reinstall CM 7.2 and when I reboot the phone turn on, turn off, turn on again and go to the recovery screen. Can anyone help me?
[Android Software/Hacking General [Developers Only]] post-mortem:
How did you reinstall CM7.2? Fresh from scratch, or nandroid restore?

If you did factory reset and installed CM7 fresh, there would be no mount script in /etc/init.d, so Mounts2SD has nothing to do with it.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Fresh ROM and DEFAULT settings in M2SD. When you confirm that those settings work, then you can start play with the different options.
[Android Software/Hacking General [Developers Only]] ejhay007:
what if i install an application and mount it on sd-ext, if it is updated by google, it will be move where? sd-ext again? phone memory / sdcard?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Let's say that you move all apps to sd-ext. The script will then mount /sd-ext/app on /data/app. Think of it as a black whole between /data/app and /sd-ext/app. The two folders will link to the same place on your device, so when Android updates or installs an application, it will place it in /data/app which will transfer the app trough the black whole into /sd-ext/app.
[Android Software/Hacking General [Developers Only]] bvianna1:
Thanks for the reply dk_zero-cool, but it seems that it not installing the ROM. I do the full wipe and reboot the device, it turn on and stays on the "X" screen, then it shuts off and turns on alone and goes to CWM recovery screen. Apparently it not installing the ROM.
[Android Software/Hacking General [Developers Only]] bvianna1:
UPDATE

I solved. But unfortunately I can not put MOUNT2SD to work.

Thanks dk_zero-cool.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Is there away to set Swap to my 4th partition on my SDcard?

Reason i ask is because my swap is on partition mount mmcblk1p4 and not mccblk1p3
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Cannot be done. I could maybe add this to the new App and Script, but in the current version, these partitions are hard coded into both the script and the app without any configs to change it.
[Android Software/Hacking General [Developers Only]] coredumb:
hello siavash2death.

i also face this problem when try to move all contents into sd-ext. my device is galaxy gio, using cm10.1 and mounts2sd.

i solve it by disabling Data option in Content menu. it seems we can not activate the Application option and Data option by the same time.

if we enabling it both by the same time, it will affect to the application that has "Move to SD card" menu disabled in "Manage Apps".

hope that helps, and sorry for my bad english
[Android Software/Hacking General [Developers Only]] impactor:
I just installed new rom on Desire (VJ's 10.1 v6.3)

First thing after installation, I installed Mounts2SD. It installed the script, removed a2sd one, rebooted.

And all I get is an error "the sd-ext device is already in use by another script".

I tried reinstalling, manually removing the 10mounts2sd script. Nothing worked.

And these are the only files I have in /system/etc/init.d (except the mounts2sd script):

00start 01sysctl 03sdcard 20extgapps
[Android Software/Hacking General [Developers Only]] :
HTC Explorer with Mounts2sd

I'm using Mounts2SD app on my HTC Explorer (Pico). The app works just fine but every time I reboot my phone, the booting takes some time and then there is a box that tells me "Android is upgrading... 'Optimizing applications 1 (and counting) of 78'". This makes the booting process even longer, usually taking 10 minutes.

I also tried the no-config-needed script here. The script links the sdext without any problems but the WiFi becomes very slow. It takes more than 5 minutes to download 1MB.

Is there a way to solve the 'Optimizing apps' problem and the slow-internet-speed script problem?
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
I was said to the ROM dev thread.

You must remove the 03sdcard script in order to have mounts2SD work with this ROM ;)
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Like mentioned above, you need to remove 03sdcard. It is a new small sd-ext script created by the author of the ROM, and has not yet been added to Mount2SD's auto sd-ext delete script.

Just reboot into recovery and clear your dalvik-cache. When rebooting, your device should rebuild the cache for the last time. After that, it should stop.
[Android Software/Hacking General [Developers Only]] lichan:
How well does this integrate with Jelly Bean-based tablets that have the internal memory configured as the sdcard and the external sdcard as something else? Would you need something similar to "Root External 2 Internal"? Thanks for the excellent app.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
M2SD does not care about your storage partitions. It uses it's own separate partition on your sdcard which is only managed by the script and not Android. So, just create a second partition on your sdcard, and it will work just fine. And within next week, an alpha version will be available of the new version which comes with 5 different layouts depending on screen size and rotation. I tried the corrent version on a friends tablet and thought, this is NOT okay.
[Android Software/Hacking General [Developers Only]] gregferns:
E :partition in use by another script

Hi DK,

I tried using your apk from play store on a AOKP unofficial rom on the Nexus one.

It gave me an error.

I have attached the logcat.

Can you please help.

thanks

greg

Edit : Got the answer by searching your thread... :)
[Android Software/Hacking General [Developers Only]] gozil:
data system on internal, data user on sd-ext

is it posible to keep SYSTEM DATA on internal and move USER DATA to sd-ext? ... how to do this?

this is great script, thxs
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
You have another sd-ext script installed that you will need to remove

You can't. Mounts2SD mounts entire folders (hence the name). It does not move individual files
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
Hi dk,

I would like to know how to install and setup Mounts2SD right after flashing a ROM without rebooting on Android.

I tried to add apk in /system/app and settings in /data/property (chmod 666) without success (busybox and init.d script are not set up).

I never succeed in having Mounts2SD working for the ROM first boot. Any idea on how to do this ?

Thanks !
[Android Software/Hacking General [Developers Only]] Superpiffer:
You can install m2sd from recovery with the appropriate zip file (MTD version in your case)! :)
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
And what about the settings restoration? Pushing settings files to /data/property will be enough?

I think I already tried before without success.

Envoyé depuis mon Nexus 7 avec Tapatalk
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Your old settings are not deleted when updating the ROM
[Android Software/Hacking General [Developers Only]] PerfectSlayer:
May be but I always do a full wipe before updating or testing a new ROM :(

Envoyé depuis mon HTC Desire
[Android Software/Hacking General [Developers Only]] impactor:
[MENTION=3147360]dk_zero-cool[/MENTION],

Could I get a comment on my issue?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Ahh yes,

You had only 10MB to spare on your data partition and maybe not even that. The problem with calculating disk space from the shell, is that it does not take into account the reserved space. So it might say 155MB free, but actually only be 95MB.

So I would keep the dalvik on your sd-ext. And if you did not get your device fixed, reboot into recovery, type "adb shell mount data && adb shell echo 1 > /data/property/m2sd.move_dalvik" and then clear your dalvik-cache.

EDIT:

Also note that each time you install a new app, the dalvik-cache will get larger, the same might occure when updating apps. So leaving only 10MB on a partition containing such a cache, is not a very good idea.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Test Package Available

I have added a test package to the OP under the category "Testing Downloads" containing a preview of the upcoming version. This package is NOT a recovery package. It is just an archive containing the app and the script, you will have to manually copy the script to the init.d location (Not yet implemented in the app) and you will have to manually configure the script using the /data/property/m2sd.* files (also, not yet implemented in the app). There are two APK's in the package which uses two different themes (will be changeable in the app when it is done).

The script should be finished, I have used it myself for the past month, but some more test devices would not hurt. The app however still have some work to be done. The overview is working fine, but I have yet to add some persistent storage for the configurations, so there will be a lot of loading each time you open it. Also there is still no configurations, no log viewer and no app settings for script installation, theme changer and so fourth.

This is only meant for some early testing, mostly to test the script. It is not a finished product, so don't provide bug reports about missing app features, extensive app loading, missing Aroma installer and so on. All will be available soon. At this point I am only interested in script issues and possible issues with the app overview screen.

The Script

Move Applications, Application Data, Application Libraries, Dalvik-cache and Data Media (Internal Storage) to sd-ext

Supports any file system type supported by the kernel

Handles Unix Lost+Found folder content to avoid having it take up to much disk usage

Supports SWAP and ZRAM (If kernel supports it)

Move the main cache partition to data or sd-ext, depending on available space

Change storage threshold to minimize the Android low storage market issue

Set Readahead and Scheduler for both internal and external MMC

Sets optimized mount parameters on the internal partitions

Safe-mode and new alternative work-around for service implemented init.d ROM's

Compares content with available disk space before moving content around to avoid corrupted data

More than a half dozen mount operations to ensure successful sd-ext mount, despite possible issues

File system check and repair

Enable/Disable ext4 journal

Supports storing system applications on /data and /sd-ext

A large number of different safe guards to avoid all kinds of thinkable issues

Fully adapts to different shell environments

100% functional programming structure (Much better code overview)

Properly more...

The APP

Fully working live overview (No more comparing static status properties)

Uses my TaskManager project (Handles background work much better)

Uses my latest RootFW from the development branch

Contains 5 different tab layouts which will be used depending on screen size and rotation

Contains both a light and dark theme
[Android Software/Hacking General [Developers Only]] TheDynamiteGuy:
--deleted--
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Hi just installed the test version the App Force Closes on collecting Device configuration. I have tried everything with same issue on Desire HD CM10.1.

PS clean install of CM10.1

EDIT: Got it working i have also updated the zip if OP wants me to share it.

only app and data going to sd-ext.

Edit2: I have set the data to be moved to SD-EXT but it hasn't done so, Apps have gone to SD-EXT but /data data has not.

Could it be down to me having a 4GB SD-EXT partition ?
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Try disabling safe-mode by typing "echo 1 > /data/property/m2sd.disable_safemode" and then enable data again. Also, if you need to check the log (Until I get the log viewer added), the log file is placed in (/tmp/log.txt). It might tell you something.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
thanks dk_zero will try that and report back. Will dump the log before hand as well.

Also noticed that reverse mount is no longer there as i could test that for you as well.

Edit: Just looked at log.txt i have only got the following error

D/Shell Error [mount: mounting /cache on /cache-int failed: Invalid argument ...]

V/Detaching /cache

D/Could not detach /cache, trying with force

D/Shell Error [umount: can't umount /cache: Device or resource busy ...]

D/Could not detach /cache, trying lazy unmount instead

D/Shell Error [umount: can't forcibly umount /cache: Device or resource busy ...]

Thats the only thing there thats showing a error in the log.txt file

EDIT: I have PM'd you with links to the log DK_Zero ones with safemode on and ones with safemode off.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
The two logs that you have sent me, shows no issues. The issue above, could be a busybox problem. In the two logs that you sent me, the once without issues, are using my built-in busybox (Will be changeable in settings when done) as you will see in the top of the log

D/Using the busybox binary located at /data/local/busybox

Check your current log to see if that is still being used, or if it has switched to using your ROM's busybox.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
D/Using the busybox binary located at /data/local/busybox is still being used. I do have a busybox install zip if that would help.

Just checked as well data is still not being pushed to /sd-ext/data either other then that the script seems to be working correctly with no issues other then the odd lock up of the touchscreen which will more then likely be rom based.

Nice work though.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Yes well, there is still some work to be done. I will look at this data issue, although it seams to be moving fine for me. Thanks for testing this :)
[Android Software/Hacking General [Developers Only]] hacktrix2006:
As a test i flashed another busybox not the CM10.1 though and its now working. So Data is now on SD-EXT just now not showing Green in the app but as you stated the app is not finished but it looks great mate.
[Android Software/Hacking General [Developers Only]] siavash2death:
hello,dk.I have exactly the same issue like hacktrix 2006! and I really love to have an safemode off version,too. thank you for your effort.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
If you look up a few posts you will see a echo command that is the command to use to disable safemode
[Android Software/Hacking General [Developers Only]] siavash2death:
no luck.and when I type that command,nothing happened! and m2sd app still gives me fcs in configuration step!:(
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Have you made sure all m2sd file have been made in /data/property if not then the init.d script is not working best bet is to used 2.2.0 for now. As the one I am using is a beta
[Android Software/Hacking General [Developers Only]] siavash2death:
I don't know. in the property folder there is a file to disable safemode.the reason that I want to try is a really strange problem I have with m2sd 2.2.0 that in some games I have installed like doodle feed, touchscreen not respond (like phone freezes) and phone reboots in about 2 seconds after that. I have noticed that I don't have this problem with cronmod int2ext script(s).but in that script,it give me not enough space error after I install 2-3 apps or games that size of all of them are about 70-80 mb!

I should use that command (echo) in terminal emulator or I'm wrong?
[Android Software/Hacking General [Developers Only]] hacktrix2006:
You can use terminal emulator or Adb shell or even a root file editor to edit the file.
[Android Software/Hacking General [Developers Only]] siavash2death:
I tried that with terminal emulator,but nothing happened and after entering that command to use that,I didn't see any action after that in TE.
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Then ADb pull the files edit them and push them back
[Android Software/Hacking General [Developers Only]] siavash2death:
edit what files? and with what command?
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Right simple way of doing it is to use the following command using ADB.

Make a folder in c: called property

Adb pull /data/property c:\property

Then go into c:\property find the m2sd file you need to edit. Open in notepad ++ save it then do the next command.

Adb push c:\property /data/property once done reboot.

If your still unsure go back to 2.2.0 for now.
[Android Software/Hacking General [Developers Only]] siavash2death:
I know what you're saying.but I want to know what shoud I type in that m2sd file in property folder?:confused:
[Android Software/Hacking General [Developers Only]] post-mortem:
The contents of the file are simply

1

There is no carriage return or line feed at the end, it is a 1 byte file.

If that file contains the number 1, then safe mode will be disabled. Change it to 0 to re-enable safe mode.
[Android Software/Hacking General [Developers Only]] siavash2death:
ok,I try that.thank you for helping me out.
[Android Software/Hacking General [Developers Only]] dk_zero-cool:
Or just wait a bit. I will release a new test when the config part is done, it will also contain the corrections and such that I have made after releasing the first test. It should be some time this week
[Android Software/Hacking General [Developers Only]] siavash2death:
have you faced that strange problem that I have with m2sd? in some games touchscreen stop working and phone freeze and after 2 or 3 seconds phone reboots?
[Android Software/Hacking General [Developers Only]] hacktrix2006:
That to me sounds more like CPU hitting 100% or ram leak in the app. I don't have that issue other then touchscreen dies which is a rom issue not m2sd.

M2SD shouldn't be causing that issue at all. Try wiping you caches and fixing permissions.
[Android Software/Hacking General [Developers Only]] siavash2death:
like I said,I only have this problem only with m2sd.I don't have this problem with cronmod int2ext script. but int2ext doesn't allow me to install app and game as much as I can with m2sd. and m2sd does have a really good feature:app-system folder.:D
[Android Software/Hacking General [Developers Only]] hacktrix2006:
have you checked the sdcards ext partition. how many apps are you installing to sd-ext i only install max 170 apps like current i have no issue with 2.2.0 or this beta version
[Android Software/Hacking General [Developers Only]] siavash2death:
I install these games for testing and this problem happens for me.I don't think this problem causes are because of that games! they are famous (I think really famous) one of them is doodle fit 2.so I don't think this is for app leaking or sth like that!
[Android Software/Hacking General [Developers Only]] hacktrix2006:
Well normally all games will store there app to /data/apps but the SD content on the SD's fat32 but i can test doodle fit if needs be, i have loads of games on my DHD some of which are running smooth as some do pause but this is due to Ram usage and CPU time but i get no reboots or force closes. Which is why my betting its not to do with M2SD.

Have you tried backing up your games and then only have the one with the issue install and the other removed.