Related
Following from this thread, I finally partitioned my sd card and had link2sd installed in my ace.
http://forum.xda-developers.com/showthread.php?t=919326
I moved my apps using apps2sd. I found out there are some remaining data in the phone. Are those data : dalvik-cache (.dex) file and lib files (.so) ? Or those are the game saves data. So, if i use Link2SD, i can completely move those data to sd?
It shows an error when I try to start it.. I could not link any of the apps.
Mount Script Error
Mount script cannot be created.
mount: mounting /dev/block/vold/179:2 on data/sdext2 failed: Device or resource busy
Click to expand...
Click to collapse
my 2nd partition is on fat32
did u create both partition as primary?
btw i still think link2sd is buggy and annoying. at least in my experience. sometimes it fails to mount partition during booting and just prompt to reboot, or the moved app wouldnt even show in app drawer.
A2SD works perfectly for me.. There aren't many functions as Link2SD but it does the job..
an0nym0us_ said:
did u create both partition as primary?
btw i still think link2sd is buggy and annoying. at least in my experience. sometimes it fails to mount partition during booting and just prompt to reboot, or the moved app wouldnt even show in app drawer.
Click to expand...
Click to collapse
Yes, both are primary as guided from the thread. :S
So any other than link2sd that can fully move an apps including it's data etc. My internal memory getting full soon.
Pahan88, is App2SD free same thing as A2SD?
here if we said a2sd or app2sd it generally means dartremore a2sd. u need to be rooted, and if ur on gingerbread u need to use kernel which support init.d script which is ketut's cfroot kernel. darktremore a2sd can move apps, data and dalvik cache to sdcard
edited: sorry, just realize ur thread title said cm7 kang. ur already rooted and using cfroot. u just need to flash darktremore a2sd via recovery
Thanks.. Do you mind showing me the right thread? I did a search and there are so many threads about it.. I dont even know which one is the right one.
partition ur sdcard with two partition, both primary. 1st partition as fat32 and 2nd partition as ext2/ext3/ext4
get the flashable zip file from its thread here
put it in sdcard, boot into cwm and choose to mount system and mount data.
choose to install zip from sdcard and flash the earlier zip file.
get terminal emulator from market, open it and do
Code:
su
a2sd reinstall
and ur phone will reboot.
when it boot up, open terminal again and do
Code:
su
a2sd cachesdreset
to move dalvik cache to sdcard, or
Code:
su
a2sd datasd
to move data to sdcard
Hi, I got a new sd card 4gb. But I partitioned using CWM. I checked through MiniTool Partition Wizard, it didnt show any 2nd partition but it did shows reduced MB. Partition via CWM is ok?
And no-one points the poor guy to s2e
Hi there. I saw the information there. Sounds so simple.. Is there anything I should know before I try it? And im not a guy btw.. THanks ^^
WishFinder` said:
Hi there. I saw the information there. Sounds so simple.. Is there anything I should know before I try it? And im not a guy btw.. THanks ^^
Click to expand...
Click to collapse
Sorry, but Yea its that simple But if your a frequent backup/restorer kind of person, using advanced mode may get very confusing and you will get force closes as it brings anything you moved to SD-EXT. Don't worry about the Cache size and ext4 journaling in the settings.
to use link2sd with CM7 KANG rom .just mount the second partition as ext3 format.link2sd will work.
scoffyburito said:
Sorry, but Yea its that simple But if your a frequent backup/restorer kind of person, using advanced mode may get very confusing and you will get force closes as it brings anything you moved to SD-EXT. Don't worry about the Cache size and ext4 journaling in the settings.
Click to expand...
Click to collapse
mm when i run the s2e, I cant click on anything except the "Download cache" part. The others, I cant tap on it. Cant move my apps..
Hi guys! Since I'm always seeing a post about Amarullz and other A2SD scripts having problems like random force closes, bootloops, slow read/write and not working on Stock and CM9/10 Roms. I'm going to share with you an awesome alternative to those A2SD scripts like Link2SD, Amarullz, S2E, and DarkTremor's A2SD. I'm just sharing this so if you don't wanna use it leave it. I'm just giving you guys alternatives. Try to read the Notes first before posting violent reactions.
Original Thread by croniccorey
All Credits goes to him.
Notes
*Please try to read the whole thread to avoid problems especially the Prerequisites.
*Please do a nandroid backup first if you're not coming from a fresh install of ROM so that we can avoid problems.
*I am advicing you to flash this after a fresh install of ROM.
*Please check your ROM's zip if it has a2sd scripts and remove it before flashing the ROM.
*If you have any other installation methods kindly post it here.
*The INT2EXT+ is the most advicable out of those scripts as it is the one used by the creator.
*Moving /data/data to /sd-ext might slow down the performance of the phone.
*If you choose a d2ext/int2ext script then remove the "06mountdl" or "06BindCache" in init.d folder if they exist as the script will do this from now on.
(Taken from the thread)
About:
CronMod INT2EXT was wrote for use in my rom with the goal to achive a stable and fast way of moving the data partition of your phone to the sd-ext partition, they are available for all users and developers to use in any rooted rom with init.d support.
CronMod INT2EXT scripts are the first universal INT2EXT method released
Developer Stuff Next Post
Features:
(All scripts are tested on Android 2.3.7 - 4.2.2)
INT2EXT
-Mounts /sd-ext to /data
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT4
-Mounts /sd-ext to /data
-Works with EXT 4 filesystem
-ZipAligns /data/app on every boot
-No symlinks
INT2EXT4+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 4 filesystem
-ZipAligns /data/app on every boot
-No symlinks
INT2EXTV2+
-Mounts /sd-ext to /data
-Leaves /data/data on internal for speed
-Works with EXT 2/3/4 filesystems
-ZipAligns /data/app on every boot
-No symlinks
-Supports SWAP2INT
-Completely universal (Testing is needed)
Prerequisites:
-Rooted Rom with init.d support
-SD-EXT partition
-100mb internal is needed for every 500mb sd-ext
SD Card Partitioning:
Partition 1 - Fat32
Partition 2 - Ext 2/3/4
Install:
(Instructions based on ClockWorkMod recovery)
-Download Chosen Script Below
-Place on root of your sdcard
-Reboot Recovery
-Select "install zip from sdcard"
-Select "choose zip from sdcard"
-Select "CronMod-****_signed"
-Select "mounts and storage" category
-Select "format /sd-ext"
-Reboot
(if you already use a A2SD/D2EXT/INT2EXT/M2SD script then you will need to remove it completely)
Downloads
Kindly go to the Original Thread for the download links.
Thanks for sharing my scripts man, i like the way you did the download links
Hi, I'm using INT2EXT4+. Works great and speed is awesome, but there's only on problem: if I wipe dalvik cache the device doesn't boot.
Looking at the logcat I noticed that it doesn't find davik anymore, there's a bunch of NOT FOUND errors. Is this normal? If not, is it possible to fix it?
Thanks in advance!
Sent from my Ace on Apocalypse Rom
Jar3112 said:
Hi, I'm using INT2EXT4+. Works great and speed is awesome, but there's only on problem: if I wipe dalvik cache the device doesn't boot.
Looking at the logcat I noticed that it doesn't find davik anymore, there's a bunch of NOT FOUND errors. Is this normal? If not, is it possible to fix it?
Thanks in advance!
Sent from my Ace on Apocalypse Rom
Click to expand...
Click to collapse
Dunno about it bro. Ask it in the original thread. Maybe croniccorey will help you
Will try!
Sent from my Ace on Apocalypse Rom
For anyone who had the dalvik cache problem here it is the solution, directly from the OP.
http://d-h.st/LX4
Flash it to wipe the dalvik cache!
Sent from my Ace on Apocalypse Rom
Jar3112 said:
For anyone who had the dalvik cache problem here it is the solution, directly from the OP.
http://d-h.st/LX4
Flash it to wipe the dalvik cache!
Sent from my Ace on Apocalypse Rom
Click to expand...
Click to collapse
Thanks bro!
Nice ..... this is what I need, thanks bro :good:
Hi to all!
Sorry for my bad english...
Do these scripts work on a stock Rom, like GINGERBREAD 2.3.6 with version of kernel: 2.6.35.7 [email protected] #1?
Or should i flash the phone to another Rom?
I have been using INT2EXT+ for about a week and I am pretty happy with the results, only thing I have noticed is that whenever any app is installed or any read/write operation is performed the phone freezes momentarily and system force closes, I just hit wait, let it do its thing and it comes up good after a few minutes, I guess it's the lag of writing to the SD instead of internal memory, but is this normal? does it happen to you guys using the script?
morrisx said:
Hi to all!
Sorry for my bad english...
Do these scripts work on a stock Rom, like GINGERBREAD 2.3.6 with version of kernel: 2.6.35.7 [email protected] #1?
Or should i flash the phone to another Rom?
Click to expand...
Click to collapse
Yes it will work in stock ROMs but you need to have a kernel that supports init.d. You don't need to flash another ROM, you just need to flash a kernel for stock like Battery Extender or CF-root.
Kasnar said:
I have been using INT2EXT+ for about a week and I am pretty happy with the results, only thing I have noticed is that whenever any app is installed or any read/write operation is performed the phone freezes momentarily and system force closes, I just hit wait, let it do its thing and it comes up good after a few minutes, I guess it's the lag of writing to the SD instead of internal memory, but is this normal? does it happen to you guys using the script?
Click to expand...
Click to collapse
Maybe it's because of a lower class SD-card. Never faced that problem
What is the easiest way to check if the script is running OK on my device? I think the script isn't running cause after restore on TB I am going from 120 MB to 45 allready after clean install.
---------- Post added at 09:16 AM ---------- Previous post was at 09:08 AM ----------
I checked the init.d folder and it is empty, I am using the stocklite 7.1 rom from this thread.
forum.xda-developers.com/showthread.php?t=1703094
EDIT I am trying the Int2Ext+ script
---------- Post added at 10:10 AM ---------- Previous post was at 09:16 AM ----------
You should mount system and data before flashing the zip file. Thanks through this post.
http://forum.xda-developers.com/showpost.php?p=30277069&postcount=207
Oops, wrong thread, sorry
will this work on my S5830i?
need a reply. ASAP. thanks!
ijustzeke said:
will this work on my S5830i?
need a reply. ASAP. thanks!
Click to expand...
Click to collapse
As long as the rom has unit.d support it should work
Sent from my Ace on Apocalypse Rom
Does it works on ROM based JB?
Im on paranoid ROM n need some suggestion..
Thanks for sharing scripts using smooth
Thank you:thumbup:
what script will suit for my galaxy ace s5830 runing a custom rom called sgs2 v10? i've tried amarullz mod script to have lot internal memory on my phone, but no luck.... even though i have 1gig partitioning on my sd card..
I have problem with wi-fi after install INT2EXT4+. I have MIUI GB mod.
Someone knows how to fix it?
Can anyone help me about find the solution for enabling ext4 and swap partition in ICS roms.
on GB i flash script by darktermor and then my swap partition and ext4 partition works perfectly and after installing apps,they move automatically to ext partition.
But in ICS this script doesnt work and when I install link2sd it ask about my partition but it moves my apps to android.secure not ext partition and my swap partition doesnt work.
I tried mesa kernel,kernel panic,but in terminal my swap partition is 0 .
Can you help me please
Thing is, darktremore a2sd doesnt work well with ics/jb. Try mount2sd script, can mount swap partition too.
an0nym0us_ said:
Thing is, darktremore a2sd doesnt work well with ics/jb. Try mount2sd script, can mount swap partition too.
Click to expand...
Click to collapse
thank you,I installed from this topic but still it doesnt work
Code:
http://forum.xda-developers.com/showthread.php?t=1342387
it will work. i'm using it.
My phone is xperia mini pro
with kernel panic.
Can I use your kernel will it enable this ?
Or it is because of my rom that it cant support this ?
mount2sd need a type of sysinit that invoke init.d script after boot, and my kernel does support it.
just make sure u create partition correctly eg:
1st partition as fat32, primary. this is for usual sdcard files.
2nd partition as ext2/3/4, primary, this is for mount2sd use for moving dalvik, apps, apps data etc.
3rd partition swap.
I use swap and ext partition on GB as well and had no problem.
but now even use mesa but it cant mount my sd card i install both aroma installer and legacy install of mount2sd script but it doesnt work.
an0nym0us_ said:
3rd partition swap.
Click to expand...
Click to collapse
for best performance (multitasking or whatever), how much should i create for that?
Sent from my SK17i
andrasandhi said:
for best performance (multitasking or whatever), how much should i create for that?
Sent from my SK17i
Click to expand...
Click to collapse
256mb or 512mb should be enough.
an0nym0us_ said:
256mb or 512mb should be enough.
Click to expand...
Click to collapse
thankz buddy
Sent from my SK17i
Hello,
I would like to be able to use the sd-ext partition as a way to store my apps and if possible the config file of them (like config of an app, game saves, ...).
So, I will be able to install a new rom and use directly all my apps which are still on the sd-ext.
And yes, I known that a backup program can do that but it's far to be as good as what I'm looking for.
Apps can be installed on sd-ext using A2SD Script.
If you want to install a new rom without deleting the installed app,then don't wipe (or factory reset).
But most of rom required wipe during installation.
Link2sd is very good app and I find it better than app2sd because it allows widgets to still be used, (Which i beleive cannot be done with app2sd?)
Free download from play store.
You need to partition your sd card though.
Follow this guide to do it, its very easy and gives all the instructions to work.
I have been following this since my x10 days and now onto my neo phone. I cant live without it.
@svprm: Make a wipe is not a problem as I can save my apps by connecting directly my sd-card to my computer. So if a wipe is really necessary: backup data from sd-ext, make a wipe threw CWM, restore sd-ext, install rom
@gregbradley: I already install Link2SD but it creates symbolic links into the /data folder so if you make a wipe of this folder, you lost those symbolic links. So Link2SD could be perfect if it was possible to save/restore those symbolic links!
I think it will work as you said
1.Install the rom as per insutruction.
2.Install the A2SD script.
3.Restore the sd-ext from pc if you wiped.
4.Boot it.
Try it.
Yes sorry, my fault, I thought that you spoke about Link2SD.
So yes, with A2SD it seems to be possible (which require A2SDGui), in this case all the /data/app is moved to the SD as I understand. This will also save the "config files" (like config of an app, game saves, ...) ?
Yes,Apps and Config can be saved on sd-ext by A2SD++
See this thread for more info:http://forum.xda-developers.com/showthread.php?t=1716124
Wow, that's a very interesting thread, I was looking after this for a while. Thanks!
But I'v one more question if I can, where are store the "config files"? Into the /data/data folder?
Because there is so many possibilities with those scripts, it's not so easy to choose. Saving "config files" + apps seems to be the better way as dalvik cache could be regenerated quickly.
Config files are saved on /data/data folder.
Ok, so I've the choice between A2SD++ and INT2EXT.
A2SD++ seems to moves some sub-folders from /data while INT2EXT mount the sd-card on /data. So with A2SD++ there is still some sub-folders on the internal memory.
Have you test both of these solutions, which one is the best for you and why? Sorry to ask so many questions, it's the last one promise.
I think it depends on your sdcard speed(class).
INT2EXT working well for me.
Yokav said:
@gregbradley: I already install Link2SD but it creates symbolic links into the /data folder so if you make a wipe of this folder, you lost those symbolic links. So Link2SD could be perfect if it was possible to save/restore those symbolic links!
Click to expand...
Click to collapse
Isnt that why we use titanium backup?
So when we do a wipe we can restore all apps+data from the backup (Stored on the SD card) and have link2sd automatically relink them.
That always works for me.....I think you are finding problems where thay dont exist.
Yes, it will works like this. But for me using a backup tool is not interesting. The goal of storing data to the sd-card is to don't have to make any backup.
So my choice gone for the CronMod script presented by svprm but thanks for your comment, it's always good to have different point of view.
I found another great application to use with the CronMod script: Apps2ROM (https://play.google.com/store/apps/details?id=com.lrenault.tools.apps2rom).
Because external sd-card could never be as fast as internal memory, it's interesting to keep the possibility to move easily an application to the internal memory. And at the same time, to avoid duplicate application after an update.
Yokav said:
Yes, it will works like this. But for me using a backup tool is not interesting. The goal of storing data to the sd-card is to don't have to make any backup.
So my choice gone for the CronMod script presented by svprm but thanks for your comment, it's always good to have different point of view.
Click to expand...
Click to collapse
True,
But if you change roms you should not use the data froma previous rom, so changing from stock to CM to MIUI etc needs you to use a backup and restore tha apps without data
svprm said:
I think it depends on your sdcard speed(class).
INT2EXT working well for me.
Click to expand...
Click to collapse
I just tried with INT2EXT and it's slow...too slow.
Maybe that you've OC your Neo and have a very fast sd-card. I've a class 10 sd-card of 32Go, which should not be so bad.
i just wanted to ask if it is possible to re-partition /system and /data partition .. i am thinking of pulling some of /system memory and add it to /data because my system has around 60mb+ more free memory which i can't use while my /data is only less than 20mb free and its irritating to see the low memory notification ..
or is it possible to pull some of /cache memory and add it to /data ?
thanks
xlSKYFiRElx said:
i just wanted to ask if it is possible to re-partition /system and /data partition .. i am thinking of pulling some of /system memory and add it to /data because my system has around 60mb+ more free memory which i can't use while my /data is only less than 20mb free and its irritating to see the low memory notification ..
or is it possible to pull some of /cache memory and add it to /data ?
thanks
Click to expand...
Click to collapse
Try using scripts like CronMod to increase you internal memory. All you need is a rooted phone and an SD Card with ext partition. You can create an ext partition from CWM (Advanced> Partition SD card> Size (maximum 1GB)>Cache (0MB)). Make sure to backup your SD card before you create the ext partition. Here is the link to the script,
Cronmod Unofficial / Data2sdext
Hope I Helped
mahithm said:
Try using scripts like CronMod to increase you internal memory. All you need is a rooted phone and an SD Card with ext partition. You can create an ext partition from CWM (Advanced> Partition SD card> Size (maximum 1GB)>Cache (0MB)). Make sure to backup your SD card before you create the ext partition. Here is the link to the script,
Cronmod Unofficial / Data2sdext
Hope I Helped
Click to expand...
Click to collapse
i found CronMod a couple of days ago, well i tried Data2Ext .. when i installed it my phone was 80% more laggy, i don't know why .. but i kinda like it more since it shows the sd-ext partition on the app manager instead of the original device storage .. but still, i'll try cronmod
also, it says on the thread that the attached files are outdated, but the links on the post seems to be dead
also, i added facebook, facebook messenger, google play services, hangout, clean master and quickpic to the .zip of the rom so they would be pre-installed to the /system but still my device storage is only at 30~40% initial after flashing considering that the apps are installed in the /system partition
i also tried TouchWiz ROM, it's great but i haven't installed a single app yet but the /data partition seems to be 60% Loaded already ?? is there a remedy for it ? thanks
you helped me again, hit thanks :good:
by the way, will cronmod work with pre-installed apps ? i mean the system apps ?? will cronmod manage to move all of its Dalvik Cache and Data to SdExt ??
xlSKYFiRElx said:
i found CronMod a couple of days ago, well i tried Data2Ext .. when i installed it my phone was 80% more laggy, i don't know why .. but i kinda like it more since it shows the sd-ext partition on the app manager instead of the original device storage .. but still, i'll try cronmod
also, it says on the thread that the attached files are outdated, but the links on the post seems to be dead
also, i added facebook, facebook messenger, google play services, hangout, clean master and quickpic to the .zip of the rom so they would be pre-installed to the /system but still my device storage is only at 30~40% initial after flashing considering that the apps are installed in the /system partition
i also tried TouchWiz ROM, it's great but i haven't installed a single app yet but the /data partition seems to be 60% Loaded already ?? is there a remedy for it ? thanks
you helped me again, hit thanks :good:
Click to expand...
Click to collapse
This is how CronMod works. It basically loads the /data to /sd-ext so that now /sd-ext contains all the data files. Now we mount the ext partition as the new /data mount point. Then all files in /sd-ext are moved back to /data. Since certain files like gps will not work when it is in ext partition, it is then moved back to /sd-ext. Then all the contents in /data and /sd-ext in binded so that any change in any of them is reflected to original. This is initialized every time at the boot. The reason CronMod lags is because the ext partition is loaded as the mount point for /data. Since SD card read/write operations are slower than internal memory read/write operation, /data operation will be slow. This is can be solved to a greater extend if you have a Class 8 or 10 SD card. BTW which verson did you install? If you installed CronMod by croniccorey then gps will not work. Go with CronMod Unofficial by Styke. Also this doesn't affect /system partition. Using this script will not increase the /system space. It will only increase the /data memory, so that you can install more apps and games.
---------- Post added at 11:05 AM ---------- Previous post was at 11:00 AM ----------
xlSKYFiRElx said:
by the way, will cronmod work with pre-installed apps ? i mean the system apps ?? will cronmod manage to move all of its Dalvik Cache and Data to SdExt ??
Click to expand...
Click to collapse
Since this script moves the /data partition to your ext, none of the pre-installed apps are moved to ext partition. /system thereby system apps remains intact. I suggest you install apps like facebook, facebook messenger, google play services, hangout and clean master after you setup this script. Once you install an app as system app, it can never be moved to ext partition. Hope I Helped
Since this script links the /data partition to your ext, none of the pre-installed apps are moved to ext partition. /system thereby system apps remains intact. I suggest you install apps like facebook, facebook messenger, google play services, hangout and clean master after you setup this script. Once you install an app as system app, it can never be moved to ext partition. Hope I Helped
Click to expand...
Click to collapse
i see, i think you didn't understood my question, sorry for that .. i mean, will the system applications cache and dalvik cache be linked to the sd-ext ?? .. nonetheless, i'll try again
but, do you happen to have a link to the latest versions ?? the latest version links are dead on the thread so i can't find a download link
thumbs up again for you mate, you help a lot
EDIT: also, will be SDHC be sufficient to aid the lag (even for a little ?) its a Class 10 32GB RIDATA MICRO SDHC
xlSKYFiRElx said:
i see, i think you didn't understood my question, sorry for that .. i mean, will the system applications cache and dalvik cache be linked to the sd-ext ?? .. nonetheless, i'll try again
but, do you happen to have a link to the latest versions ?? the latest version links are dead on the thread so i can't find a download link
thumbs up again for you mate, you help a lot
EDIT: also, will be SDHC be sufficient to aid the lag (even for a little ?) its a Class 10 32GB RIDATA MICRO SDHC
Click to expand...
Click to collapse
LOL I explained everything in detail thinking that you will understand. Long story short, CronMod script basically moves /data to ext partition. Since all the system and user application's dalvik cache is present in /data, Yes, it will be moved to ext. Nothing in /system will be moved to ext partition. All system apps are present at /system/app, so it can't be moved. User apps that you install goes to /data/app, so those will be moved. Also download the latest version from the "Attached Files" section in the same link. It works. Before you buy a new SD Card, try this in your current SD Card. See if it lags a lot. I might have an another solution. If that too doesn't work, you can buy a new SD Card. Do post the result. Hope I Helped
mahithm said:
LOL I explained everything in detail thinking that you will understand. Long story short, CronMod script basically moves /data to ext partition. Since all the system and user application's dalvik cache is present in /data, Yes, it will be moved to ext. Nothing in /system will be moved to ext partition. All system apps are present at /system/app, so it can't be moved. User apps that you install goes to /data/app, so those will be moved. Also download the latest version from the "Attached Files" section in the same link. It works. Before you buy a new SD Card, try this in your current SD Card. See if it lags a lot. I might have an another solution. If that too doesn't work, you can buy a new SD Card. Do post the result. Hope I Helped
Click to expand...
Click to collapse
i get stuck at bootscreen with cronmod, i don't know why, with Data2Ext, with my previous experience with is is ultimate lag
xlSKYFiRElx said:
i get stuck at bootscreen with cronmod, i don't know why, with Data2Ext, with my previous experience with is is ultimate lag
Click to expand...
Click to collapse
Are you using any other data2ext scripts currently apart from CronMod? Usually installing CronMod on a device that already has a data2ext script will give this error. Make sure to delete all other data2ext scripts if present. Since you are stuck at boot screen, you will have to reflash the rom. Make sure to do Mounts and Storage>Format /system before flashing the new rom. There are two ways by which you can install CronMod. First one is by flashing the zip from CWM (in that case you have to mount /system before flashing). Second one is the easiest one. Just extract the CronMod zip file. You will get a file 40int2ext in /system/etc/init.d/. Now extract the rom that you are going to flash, put the file 40int2ext in /system/etc/init.d/ and then compress it back. Done! Now flash the rom and you are good to go. Try the second method. Make sure you have an ext partition and the rom has init.d support (all custom roms has init.d support). If that method doesn't work or devices lags like hell, then post here and I'll be glad to share the other method. Hope I Helped