REMEMBER
FIRST OF ALL, do a Nandroid backup, as well as a backup of your sd-card content !
You're doing this at your very own risk, I'm not to be held responsible if something goes wrong
There's another little warning I need to add to this, using part of your sd-card as swap space will cause that part of your card to undergo lots of read/writes, thus shortening the life of that part of the card...
I've been using hard swap for quite a long time now, no issues to report, but don't tell me I didn't warn you
Now that said, let's get going
Initially this was a script and a guide that explained how to format and use a swap partition, but I've gone further in the meantime, since this now is a flashable MOD that will, if you have a swap partition on your SD-card, format that partition and install a swap activation script in system startup for you.
Here is how to use this mod :
1) Have I mentiond to backup your system (Nandroid) and SD-card ?! Cause now would be a real good time to do so
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
2) Partition your SD-card (Minitool Partition Wizard, 4ext, CWM...) - for a step by step documentation have a look here.
You can create as many partitions as you like/can, as long as all are primary partitions. This MOD will look for the swap partiton and find it even if it's not the last, though it's common practice for swap to be the last partition.
Just please don't create more than one swap partition, I don't know how the script would react if there were more than one ! You've been warned !
3) Download "Hard-Swap-Yank555.lu_Flasher-v1.0.zip" and put it onto your SD-card
4) Boot into recovery
5) Flash "Hard-Swap-Yank555.lu_Flasher-v1.0.zip" from your SD-card (like a ROM or kernel)
6) Reboot and enjoy !!
To check if all went fine, start a terminal and type "free", you'll need to see something different than 0 in your swap line, look at the attached print-screen
![Wink ;)](./images/smilies/icon_e_wink.gif)
Enjoy and please let me know how it worked for you !
BTW, I've successfully tested this on HyperDroid 6.6.0 CM7 extreme and NexusHD2-ICS-CM9-HWA V2.0.
JP.