Jump to content

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


Guest kannasbor0

Recommended Posts

Guest anotherjib

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
Link to comment
Share on other sites

Guest luca020400

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
Link to comment
Share on other sites

  • 1 month later...
  • 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.