yashsingh1/xdaforums huggingface dataset:
[Android Software Development] nukeblitz:
Hmmm, status 0 failure on trying to flash script thru recovery. int2ext4+ and int2ext+

No issues with the script itself. Works otherwise

I'm using TWRP recivery 2.2.2.1 but others have reported same issue with CWM recovery

Please check zip - could be an issue with the zip or with the updater script if line breaks aren't in Linux format

HTC explorer(Pico) - I noticed that someone reported it already lol

I'll try repackaging it and try again
[Android Software Development] croniccorey:
problem is mount commands in the updater scripts i will fix them as soon as i can, but i am working on a rom release at the moment
[Android Software Development] nukeblitz:
ui_print("CronMod-int2ext4+");
ui_print("Written by CronicCorey @xda");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.500000, 40);
delete("/system/etc/init.d/06mountdl");
package_extract_dir("system", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
show_progress(0.200000, 10);
ui_print("Install complete!");
run_program("/sbin/busybox", "umount", "/system");

Would this work?

---------- Post added at 06:21 AM ---------- Previous post was at 06:15 AM ----------

ui_print("CronMod-int2ext4+");
ui_print("Written by CronicCorey @xda");
mount("yaffs2", "MTD", "system", "/system");
show_progress(0.500000, 40);
delete("/system/etc/init.d/06mountdl");
package_extract_dir("system", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
show_progress(0.200000, 10);
ui_print("Install complete!");
unmount("/system");

Or this maybe.

I don't know which is more universal. This one might he specific to yaffs devices...

The busy box method is used by both super user and gapps though...
[Android Software Development] croniccorey:
i would try the first one i will update them as soon as i am done cronmod 1.0.7

cheers
[Android Software Development] monty_python:
Can apps2sd+ be flashed and then flash int2ext or any combo just wondering how to use apps2sd then move my ext4 to data? Or will just moving my ext4 to data with one of the other scripts mount my ext4 automatically once flashed?
[Android Software Development] croniccorey:
only on at a time will work
[Android Software Development] svprm:
Working well.

Thanks for the nice script.
[Android Software Development] lo2ay:
Anyone ?
[Android Software Development] monty_python:
The steps you mentioned worked for me..
[Android Software Development] macs18max:
Cron. first of all thank you for your script, I have been recommending to everyone for nexus-hd2 cm9 rom. Can you explain how to mount data on 3rd EXT4 partition instead of second partiton (First primary partition FAT32, second partition EXT4, third partition EXT4). I'm thinking of changing mmcblk0p2 to mmcblk0p3. Would that work? or do I have to edit something else.

Let me explain what I'm trying to accomplish. as you know developement in HD2 section never stops, and nativesd is introduced (installing multiple roms on ext4 partition). I want to keep my NAND nexus-hd2 ROM with CRON INT2EXT4+ as my daily ROM along with the other nativesd rom for testing. So primary partition is Fat32, second is EXT4 (which will be dedicated totally to nativeSD) and third is EXT4(which I would to mount NANDs data using INT2EXT4+ script). Please advice what to edit in order to mount data on third partition, instead of the second partition.
[Android Software Development] nukeblitz:
This is from the int2ext4+ script

busybox mount -t ext4 -o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=writeback,noauto_da_alloc /dev/block/mmcblk0p2 /data;

If I'm not mistaken, you have to use mmcblk0p3 instead of mmcblk0p2

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

It is on line 29. mmcblk0 is your SD card and p3 signifies 3rd partition
[Android Software Development] P@t@r:
GPS issue

Just wanted to say that running one of these scripts will destroy GPS function on a Galaxy Ace 5830i. Tested it and altough script is working, GPS is not working anymore. Unfortunately i'm forced to use link2sd again :(. Any suggestion is welcome.
[Android Software Development] mastermind1024:
There must be a folder in your /data which stores some files for GPS...i had similar issue with my IMEI nos...they got lost after flashing script, fortunately I know the stuff so added some lines in script n got them back on next reboot...now these scripts contains that patch after i informed cron about this...so I would suggest u provide us your /data directory structure, i mean directory tree...

Apply this command on ADB SHELL or Terminal Emulator n post result.

ls -l /data
[Android Software Development] croniccorey:
Please do as mastermind says
[Android Software Development] croniccorey:
Yup mmcblk0 is the SD and p2 is partition2, p3 is partition3 and so on.

All you need the change is the mount command to mount mmcblk0p3
[Android Software Development] rocketero:
e2fsck does not run from init.rc, should I include the exprep in /sbin and exec (it) from init.rc ?

I don't have an HTC device as I posted before, and as our tablet don't have a forum in XDA so let's see if one can help me

first: I've been trying to check block device partitions for errors editing the init.rc file like this

exec /system/bin/e2fsck -p /dev/block/mmcblk0p2 > /system/fsck.log

but after boot there is nothing in /system called fsck.log so I assume it din't run. Is there any change I should make to make it work?

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

Second: I have checked and my /system/etc/init.d folder does not run scripts at boot, ..........Any suggestions what to place in init.rc to make this init.d folder run scripts at boot ?

I saw a couple of lines placed by dsixda kitchen in my init.rc file, they look like:

start sysinit

then down the lines:

exec /system/bin/logwrapper '/system/xbin/busybox run-parts /system/etc/init.d'

or something in that order, but not working.
[Android Software Development] P@t@r:
This is the result in terminal emulator:

$ export PATH=/data/local/bin:$PATH

$ su

# ls -l /data

drwxrwxrwx system log 2012-09-18 12:44 log

drwxr-x--- root log 2012-09-17 17:22 dontpanic

drwxrwx--- system cache 2012-09-17 17:22 cache

drwxrwx--t system misc 2012-09-18 12:31 misc

drwxrwx--x shell shell 2012-09-17 17:22 local

drwxrwx--x system system 2012-09-19 08:46 data

drwxrwx--x system system 2012-09-17 19:22 app-private

drwxrwx--x system system 2012-09-18 13:49 app

drwx------ root root 2012-09-17 21:08 property

drwxrwxrwx radio radio 2012-09-17 17:22 fota

drwxrwxrwx system system 2012-09-18 11:46 anr

drwxrwx--x system system 2012-09-19 08:46 dalvik-cache

drwxrwx--- root root 2012-09-17 17:22 lost+found

drwxrwxrwx root root 2012-09-17 17:22 brcm

drwx------ gps system 2012-09-18 12:38 gps

srwxrwxrwx gps system 2012-09-18 12:38 lcs.socket

srwxrwxrwx gps system 2012-09-18 12:38 rilgps.socket

drwxrwxr-x root root 2012-09-17 17:22 vt

-rwxrwxrwx media system 586 2012-09-17 19:22 aeqcoe.txt

-rwxrwxrwx media system 16 2012-09-17 17:22 soundbooster.txt

drwxrwxr-x system system 2012-09-19 08:46 system

drwx------ system system 2012-09-17 17:22 secure

drwx------ system system 2012-09-18 12:31 backup

---------- root root 74752 2012-09-18 12:16 cp_data.txt

drwxrwxrwx root root 1970-01-01 01:00 sdext2

-rw-rw-rw- root root 917 2012-09-18 10:31 link2sd-debuggerd.log

-rw-r--r-- root root 923 2012-09-18 10:31 link2sd-11link2sd.log

drwxr-xr-x system system 2012-09-18 11:46 tombstones

#
[Android Software Development] Droidxda:
Hi,

I think the toolbox is mandatory to use the getprop function.

This function is required by the int4ext+ script.

Do you know where I can find this toolbox?
[Android Software Development] I.M.G:
what does Mounts /sd-ext to /data means? sorry im just a newbie..
[Android Software Development] Droidxda:
the apps are in /data directory on internal memory.

a2sd create a link between /data and your ext3/4 partition on your sd

With The cronnicorey script, the /app directory is directly mounted on the sd. faster than a2sd
[Android Software Development] I.M.G:
i thought the apps are placed in the sd-ext.

btw.. int2ext+ is updated?

coz i saw sum post telling it doest work..

and what is the difference b/t them with int2ext4++..

tnx..
[Android Software Development] croniccorey:
with int2ext /data is /sd-ext, it mounts the ext directly to /data mount point

int2ext4 has faster mount options

date of last update is in the thread title
[Android Software Development] erfandl:
wich version is better for my xperia x10 mini ?
[Android Software Development] Yokav:
First of all, thank you for you scripts croniccorey! You make a great job!

I've a some question about the INT2EXT if I can...

1) why are you keeping nvram, radio and property to the internal memory?

2) why do you purpose a script which keep /data/data on internal memory and not one with dalvik-cache on internal memory?

because /data/app and /data/data are two folders that the users would never lost (by an accidental wipe for example) but loosing the dalvik cache is not a problem, it will be regenerated automatically
[Android Software Development] croniccorey:
1- those files need to remain internal or some stuff wont work properly eg.3g, imei, and user settings.

2- because keeping /data/data internal is a much greater speed boost then keeping /dalvik-cache internal.
[Android Software Development] croniccorey:
Int2ext+ is a good choice but if you experience issues like some xperias do then you will have to use a2sd until its fixed.

Mount the system partition from your recovery before you flash as some people using xperias had issues if they didn't do that first aging it will be fixed soon
[Android Software Development] nukeblitz:
That didn't work either. I don't know why. Went back to doing it manually. Could be a problem with binary?
[Android Software Development] croniccorey:
ok ill fix it soon just working on the scripts now
[Android Software Development] I.M.G:
ahh i see.. tnx for the clarification!

btw, int2ext++ is GOOD, it works well on my galaxy young..

but i found some changes -->> feedbacks!

1. my phone boots so long, about 2-3 mins

2. installation of apk became slow

3. my home key sumtimes it functions unresponsively (need to press twice or thrice)

4.and then im not sure, drains my batt a little high..

5. overall -- still good, its good to see my internal mem is almost 1gb.. :good:

another question..

does int2ext4++ may interfere with adrenaline script( it uses ext4 for remounting script) ?
[Android Software Development] croniccorey:
testers needed

in the OP there is a new int2ext script for xperias that were losing there data connections, i do not own a xperia so i cannot test it to be sure it is fixed.

anyone who experienced this issue please test the xperia script and let me know it is fixed so dev on the scripts can move on.
[Android Software Development] croniccorey:
1- try clearing your dalvik-cache with the wipe tool in the OP

2- this is affected by the class of the sd-card

3- there may be a file that needs to remain internal if you navigate to /data in adb shell and run "ls -a" then pm me the output ill see if i can find a fix.

4- there may be slightly more drain on some phones due to the constent writes/reads of the ext partition

thanks man
[Android Software Development] I.M.G:
about my question?

i got error also in wiping sd-ext in cwm after i flashed int2ext++, do you think its normal?

btw, this time im gonna use int2ext4+..

feedbacks later..
[Android Software Development] croniccorey:
strange could just be a glitch did it end up working?
[Android Software Development] nukeblitz:
@croniccorey

Samsung galaxy ace GT-5830i has a folder called /data/gps.

That could be why there is GPS loss with the script. I can't test that myself as I don't have the phone myself. I checked on a friend's phone.
[Android Software Development] croniccorey:
ill add a test version
[Android Software Development] P@t@r:
Would be great if this could be solved. When you need something (logs or whatever), I'll be glad to help ;) Just tell me what to do..

Edit: Just see the test version, can I put this (unpacked) file just in init.d and reboot or do I have to flash this through CWM. I'm asking because last time through CWM didn't work and manually put in init.d did.
[Android Software Development] solomon4400:
thanks bro but it has me stuck on boot screen
[Android Software Development] croniccorey:
ya back up first
[Android Software Development] croniccorey:
did you install manually? is there a logcat?
[Android Software Development] yoshimitsuHD2:
Low sound bug test

hi croniccorey,

i posted a pm too, but i want to let everyone know, that your fix is working perfectly ;)

i tested the low sound bug version:

- i deleted the 40int2ext in init.d, rebooted, installed the script and fixed permissions

- on first boot everything works well, even the app-data was there, no sound bug

- after first reboot no sound bug

- after the next 3 reboots no low sound bug anymore, no need of fixing permissions on every reboot and it seems to boot faster now :)

i think it is working very well, i had no bug since then. very good work
[Android Software Development] nukeblitz:
I just found out that the guy whose ace I looked at for the GPS problem is running official CM7 stable. Just letting you know - I don't know if it'll make a differnce

Unfortunately he is already using s2e. If he decides to change his ROM, I'll put in the extra code to move /data/gps back to /sd-ext(internal) and see how it goes - or I'll just use the test version if that comes out faster..

Thanks!
[Android Software Development] croniccorey:
ok gps test version is in OP
[Android Software Development] Raol Emostar:
As far as I can make out, flashing INT2EXT+ makes my Ext partiton my Phone's Internal Memory, right? Like, for ex, my phone has an internal of 290 Megs and my Ext partition is 512 Megs. So after flashing INT2EXT+, the 512 Megs of Ext part is shown in the phone as the internal memory, right? And the 290 Megs is not shown but that's where all app data is stored? Ugh, its very complicated. Could someone clear me out? Cuz, after flashing INT2EXT+ my internal shows 504 Megs. Which, I'm guessing is the Ext part? O.o
[Android Software Development] croniccorey:
yea int2ext mounts the ext partition to /data and shows the size under internal if yo use the + version then /data/data will remain on the internal but the size of the internal wont be showen
[Android Software Development] Raol Emostar:
Understood. So the 512 Megs of Ext shows up as 504 Megs of Internel Memory in the settings? And thats where apk's are stored, right? And the phone's REAL internel memory is used to store app data in /data/data/ but doesnt show up? Correct?
[Android Software Development] croniccorey:
you got it man
[Android Software Development] Raol Emostar:
Thanks!
[Android Software Development] Yokav:
On a computer with linux, the sd-ext partition is recognized and automatically mounted, and after that the phone crash or at least it's not usable anymore, do you have an idea to solve this issue?

The phone reboot automatically a few minutes after the boot. So I can enter my pin code, see the desktop during 2~3 minutes but can't really do something with it and then reboot.

BTW, before that problem, I've experiment a little your INT2EXT script with my 32Go sd-card, class 10. And it's too slow, near to be unusable.
[Android Software Development] croniccorey:
what do you mean it is mounting the ext and the sd?

once booted sd-ext should appear unmounted to the phone my ubuntu does not see it unless im in recovery.

what version of the script?
[Android Software Development] Yokav:
I quote my previous post because I edit it. ;)

I'm using the last version of your script, downloaded it this afternoon.

When I talked about the sd-ext partition, in fact it's the partition on the sd-card and not the sd-ext folder. So if you prefer, it's the /data folder which is mounted automatically under Linux.
[Android Software Development] croniccorey:
thats really strange i will look into this, never had it happen before
[Android Software Development] P@t@r:
Am going to test the script now, ust one more question, my ext2 partition is now fat32, do I have to reformat it or should this be no problem?
[Android Software Development] croniccorey:
you need your 2nd partition to be ext
[Android Software Development] P@t@r:
Oke, will try now, let you know outcome of GPS script when ready
[Android Software Development] P@t@r:
Confirming 1 GB internal AND working GPS!! Will now install all apps again and report if any issues found. GREAT JOB! Some thanks buttons to press i guess;)

Samsung Galaxy Ace 5830i

Edit: Lock screen gone now, pressing home button straight goes to phone. Will reset phone and try again

Edit: Phone reset in CWM and lockscreen back, GPS still working and still 1 GB, will test further

Edit: Sorry to say this, installed all apps, rebooted phone normal way, started up normal and GPS GONE AGAIN! :(
[Android Software Development] sechko:
[/COLOR]

OK. I tried on my XperiaPlay and when phone is boot no data connection and some apps not working. I Reboot to recovery and set fix permission then boot phone and data is fine.

Then I try clean install ROM with full wipe and factory reset, before boot phone I flash int2ext+ for Xperia set permission then boot, but again no data, but apps works fine. Again reboot in recovery and set fix permission and boot and data connection is fine.
[Android Software Development] Qbsti:
Ok, i would like to try those scripts, but i have one question, after instaling int2ext, can i leave some app on internal, or are they all automatically moved?

Also how can i do the sd card partition? And is this necessary?

sent from my galaxy ace running apocalypse ROM
[Android Software Development] n311.dunkle:
Will the a2sd scripts cause me to lose widget functions?
[Android Software Development] croniccorey:
no run seamless
[Android Software Development] croniccorey:
it moves them automatically, and it is necessary to have a ext partition.
[Android Software Development] croniccorey:
ok thanks i will look into this issue more, i might send you a pm with another test script when its ready.
[Android Software Development] palej:
Hello, scripts idea is very good, but working very strange for me.

Experimenting with Wildire S, on Sense ROM ([ROM] § KimsMod Ultimate §)

SD-Card has two partitions: FAT32 and 1.5Gb EXT4.

Tried scripts: INT2EXT+ and D2EXT+ the same behavior for both:

After flashing disappeared few applications (non-system), all non-system applications crashed while start.

Latest try step-by-step:

1. in recovery, restored from backup system with all apps installed

2. reboot, everything work well

3. from recovery installed script INT2EXT+

4. formatted /data (i suppose, here better chose "Wipe Data/Factory Reset"?)

5. reboot

6. boots slow (moving data)

7. after boot: non-system applications crashes, Market shows that applications installed.

8. reinstall applications from Market

9. restore applications data using Titanuim Backup (it shows that my internal memory 1.5Gb, so script work well)

10. reboot

11. everything as on #7. Applications crashed, system applications like (no-Frills CPU, SD Booster) has no settings, like after Factory Reset.

Any ideas?
[Android Software Development] P@t@r:
No GPS after installing script

Okay, I tested a little bit more yesterday and in short terms discovered following:

Began with clean install stock rom XXLH2

Flashed Rafael Baugis kernel to get rooted and init.d support (version without swap stuff)

Rebooted phone, all working well including GPS.

Put 40int2ext script in system/etc/init.d and change permissions to 755

Rebooted phone, phone starts up like 1st time boot (create google account bla bla)

Checked internal, 1GB. Checked GPS, working.

Rebooted phone, checked internal, 1GB. Checked GPS, not working anymore.

Conclusion:

It looks like after reboot, something is no longer available regarding GPS data. To make sure it has to do with the script I deleted script from init.d and rebooted phone again. Of course some apps were not available after reboot, but GPS was immediatelly working again.

Hope this information helps you guys to solve this issue. If i need to test something, I'll be happy to.
[Android Software Development] Ozadroid:
I flased the int2ext4+ script. Now my sd-ext is shown as int .. but were did my default int go ?? :-s
[Android Software Development] manga16:
Hi cornicoorey :cowboy:

i used your new update INT2EXT+ Low sound Bug from two days and work perfectly the sound is ok i used NexusHD2-ICS-4.0.4-CM9-HWA V2.7 :good:

but i'm wondering if this script work in sense rom :confused: (sense 3.5 with android v.2.3.5 )

once again great job :good::fingers-crossed:
[Android Software Development] redrum77:
Hi there

am using int2ext+ no problem so far but just wondering can I clear dalvik / cache from clockwork recovery or I need to use the dalvik-cache wipe tool script in 1st page ?
[Android Software Development] Yokav:
@croniccorey:

Don't search after a way to don't mount automatically the ext partition when the phone is plug to a linux computer, there is no way I think. By this way, I think that a warning for linux users could be welcome, because we've to disable the automount on linux to be sure to don't mount the ext partition of our phone, like I did.

And in my previous post, I explained that I was in boot loop, that's because my ext partition was corrupt after to have plug my phone to my computer.

Do you known if there is a good way to improve your INT2EXT script for having a more responsive phone, because actually with INT2EXT every action take two more time than with INT2EXT+... and I would like to keep the /data/data on the sd-card. :p

@Ozadroid:

Internal memory is hide :p But still use for some directories like /data/radio.

@redrum77:

You've to use the script of croniccorey for cleaning dalvik-cache beacause it's store on your sd-card and cwm will by default clean your internal memory. Not sure at 100% but pretty sure that's the reason to use it. :p
[Android Software Development] avyrez:
-Some phones can experience a low sound bug (fix: try the low sound bug version) .... is from the speaker or headphone....?
[Android Software Development] redrum77:
Thanks... so each time to clear just boot into cwm load the zip tool correct?

Sent from my NexusHD2
[Android Software Development] Ozadroid:
Then whats the use of it. :-s

Cant it be like the int gets added to sd-ext?

@croniccorey

Arent there any terminal commands to modify the behaviour of the scripts ?
[Android Software Development] croniccorey:
the internal is used for folders that must remain internal or it will cause bugs, its mounted at /data/data (int2ext+) and a few others depending on the phone/rom
[Android Software Development] croniccorey:
the wipe tool is needed to wipe /dalvik-cache because it is on the ext partition and CWM or any recovery wont see that
[Android Software Development] croniccorey:
i am a linux user lol ;) (ubuntu 12.04 with gnome)

i will do some testing and if i find the issue i will fix it but i am not sure why it is happening, make sure to eject it first if it mounts your ext in the meantime.

INT2EXT is or massive storage (upto 32GB tested) thats why its slower, INT2EXT+ is faster because /data/data is left internal but you can only have 500mb ext for every 100mb internal.
[Android Software Development] croniccorey:
some HTC's have had this issue, the test version is a attempt to fix it.
[Android Software Development] sandy_tea:
Are the links down right now?
[Android Software Development] mohazia:
Thanks for the amazing script,

I have HTC Desire HD, with MIUI 2.9.21_v4 ROM,

what is the best way to make sd-ext partition, via miniTool partion manager or 4EXT recovery touch? because if I make partition with miniTool, 3ext recovery said partition not aligned.

the second question, how I will know that the script working well?
[Android Software Development] croniccorey:
Make it via 4ext that's the best way, only time to do it otherwise is if you using CWM as it does not format correctly
[Android Software Development] FMAranda:
Links are down.