[old subject: link2sd not mounting second partition, "quick restart" fails too]
[IMPORTANT: boot time took 20 minutes, see at the end...]
My phone suddenly reboot (while I was sleeping), and from that on, link2sd fails to mount the 2nd partition that was working flawlessly for a long time.
Now, everytime I boot, it freezes on black screen, until I unplug the sdcard, then it shakes and continues booting. After plug the sdcard back it seems to create this device: /dev/block/mmcblk1p2 (instead of mmcblk0p2).
After I re-insert the sdcard, link2sd fails to mount again, I recreate the scripts, do a "quick reboot" but it fails again. (I guess it was expecting mmcblk1p2 but sdcard was now back at mmcblk0p2).
I plug the sdcard on pc and the 2nd partition data is there, it is ext3, all seems ok there.
This Partitioned sdcard not working with link2sd, does not work for me :(
I changed the script at /data/data/com.buak.Link2SD/files/init-link2sd.sh that was created with mmcblk1p2 to mmcblk0p2. After that, a "quick reboot" wont work despite I got /data/sdext2 mounted (manually with terminal).
A normal reboot sends me back to the black screen, my guess is I have "created a linked app" that may have widget but I dont know which one. I tried a few I remembered but didnt work, still same problem...
I am still fighting with this... I will try more tricks and report later...
Any tips (tricks) ?
EDIT: I used adb logcat (found good tutorial here: http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/) and the last log message was:
D/dalvikvm( 1506): GC_FOR_MALLOC freed 830K, 37% free 6859K/10759K, external 1429K/1581K, paused 77ms
After that it froze, I started it again and it brought more log than before...
After 20 minutes, the phone finally completely boot up! thats too much time... now it seems to be working ok... At this point my question changes to "how to lower boot up time?" is it ok to change the subject?
subject: how to lower boot up time?
So scanPackage took too much time and I am uninstalling not needed packages... I guess it is good to keep the other research info I did so people can come here and understand they just need to wait a long time if they have too many apps installed on a not so fast device.