Jump to content

[MOD] Swap to /system & /data & /cache


Recommended Posts

Guest anotherjib
Posted

try to remove the script from initd. and the swap.img's from the correspective folders then reboot and wipe cacke/dalvik.

after that copy it again to initd folder and give the correct permissions. i hope it will work like this

Alas - tried all this, the same result
Guest anotherjib
Posted

So

sleep 5

HOORAY

This one did it

Thanks a lot my friend!

:up:

Guest luca020400
Posted (edited)

Please update the script

#!/system/bin/sh

#Use 1.20.2 Stericson BusyBox
#to make "swapon -p" working!

sleep 5

mount -o remount,rw /system
mount -o remount,rw /data
mount -o remount,rw /cache

#system
rm /system/swap1.img
dd if=/dev/zero of=/system/swap1.img bs=1024 count=85000
mkswap /system/swap1.img
swapon -p 1 /system/swap1.img

#data
rm /data/swap2.img
dd if=/dev/zero of=/data/swap2.img bs=1024 count=85000
mkswap /data/swap2.img
swapon -p 1 /data/swap2.img

#cache
rm /cache/swap3.img
dd if=/dev/zero of=/cache/swap3.img bs=1024 count=85000
mkswap /cache/swap3.img
swapon -p 1 /cache/swap3.img

echo 90 > /proc/sys/vm/swappiness
Edited by luca020400
  • 1 month later...
Guest kannasbor0
Posted

Latest flashbale zip Swap2SysDataCache.zip

Thanks Luca, and sorry for everyone.. :(

I changed job, so I don't have much time nowdays.. I'll edit the first post, with your zip.. :)

Guest luca020400
Posted

No Worry :D

I started school too and i haven't enough time

  • 11 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.