• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Sd card swap help please

If you create one, yes.

Just repartition your card in cwm and don't choose 0 for swap

Then in terminal do
Code:
su
swapon /dev/block/mmcblk0p3
And then to confirm do
Code:
free
If it shows numbers in the swap section, you're good.

This will not persist on boot, so you will have do it every time you reboot.
 
If you repartition your card it gets formatted (wiped clean). Just make a backup, them back up your card to your pc, then partition, then copy contents back, then restore backup (so it restores your sdext)
 
If you repartition your card it gets formatted (wiped clean). Just make a backup, them back up your card to your pc, then partition, then copy contents back, then restore backup (so it restores your sdext)

So I'll have to do all that every time I restart my phone? Or just never restart my phone
 
The terminal command? yes. With every reboot.

You only have to do the swapon part when you reboot. The partition will stay. Your data partition well remain intact. The swap ('extra ram') will need to be re-enabled when you reboot
 
I'm sorry if you misunderstood. When you REpartition you card, the existing ones are wiped... It wipes the card clean. you create the partitions new again. It's like starting over. But if you backed up the things like my post instructed, you then 'reinstall' the data to the newly created partition, you won't lose any data.

Part of the partitioning process is to FORMAT the card. formatting the whole card removes existing partitions.

I guess i should have been more clear


When you partitioned in cwm, you should have selected the desired size for your ext4 partition, then the desired swap partition size.
 
I did back it up, I still have my data..I guess I'm a little confused, sorry...an I making multiple partitions or do the ram and data share a partition? ...I'm sorry if you don't understand what I'm saying...I'm asking with the best of my knowledge
 
Thank you for your help...I've accepted I don't have the knowledge yet to do this, so I have no business trying. I can live without it I guess..Thank you though, I really appreciate it
 
Nah, you got this. It's easy. In cwm, when you select partition, the first number you select is for your data, the second is for swap.

For example, you can choose 1024 (1gb) for the first number (where your data will go) and 256 (.25gb) for the second (your swap)

Your card will then be partitioned and you can use swap as well as have a data partition.(1gb for data, .25gb for swap)

Any time you partition in cwm, it deletes existing partitions.
 
Nah, you got this. It's easy. In cwm, when you select partition, the first number you select is for your data, the second is for swap.

For example, you can choose 1024 (1gb) for the first number (where your data will go) and 256 (.25gb) for the second (your swap)

Your card will then be partitioned and you can use swap as well as have a data partition.(1gb for data, .25gb for swap)

Any time you partition in cwm, it deletes existing partitions.


What is swap exactly...maybe that will help me understand better
 
Swap is like virtual memory in windows. Instead of Android killing apps when low on ram it moves them to the swap partition and stores them there until they are needed.

It 'swaps' them out as needed. It's virtual ram.
 
Its just said

$ export PATH=/data/local/bin:$PATH
$ su swapon /dev/block/mmcblk0p3
SuperSU - Copyright (C) 2012 - Chainfire

$ free
total used free shared buffers
Mem: 290164 286172 3992 0 20128
-/+ buffers: 266044 24120
Swap: 0 0 0
 
Do
su (then press enter)
swapon dev/block/mmcblk0p3

The su command is separate. It gives terminal super user access;)
And don't put the / before dev.
.
 
esu5yby2.jpg
 
$ export PATH=/data/local/bin:$PATH
$ su
# Swapon dev/block/mmcblk0p3
Swapon: not found
# free
total used free shared buffers
Mem: 290164 275216 14948 0 13244
-/+ buffers: 261972 28192
Swap: 0 0 0
#
 
Wooooooo

$ export PATH=/data/local/bin:$PATH
$ su
# swapon dev/block/mmcblk0p3
# free
total used free shared buffers
Mem: 290164 276816 13348 0 13520
-/+ buffers: 263296 26868
Swap: 249000 0 249000
#
 
Back
Top Bottom