Jump to content

Swap file on internal storage


Recommended Posts

Guest CarpetDiem
Posted

The code is below: mount -o remount,rw /data;

swapoff /dev/block/loop7;

dd if=/dev/zero of=/data/swap.img bs=1024 count=38000;

mount -o remount,rw /data;

losetup /dev/block/loop7 /data/swap.img;

mkswap /dev/block/loop7;

swapon /dev/block/loop7;

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.