rhino889a
Android Expert
OK before we go any further! previous phones had a partition layout where mmcblck0 was the SDcard (external) our phone uses mmcblck1 for the external sd. This is important because if you use an app it may be preset to use mmcblck0 as swap partition.using this setting will cause you to use your sbl2 or sbl3 as swap partition.this will brick your phone and unbrick guide will be useles.
you may not really need swap as we have alot of memory,but it can be vvery valuable under certain conditions.
so you will need to create a partition dedicated for swap only.now writing to the sdcard as memory is slower than ram the phone comes with.so the smaller the partition the quicker the p[hone can find what has been written to it.For most use you dont need huge partition.128 to 256 may be perfect for daily use. running linux or memory intensive apps me need more. 2 gig swap partition sounds cool,but if you only use 128 the p[hone may need to search through the 2 gig to get what it needs.which will increase the read time.
p[artition tools.
MiniTool Partition Wizard Home Edition - CNET Download.com
GParted -- About
these are 2 links to useable software that will get the job done.there are others.
also i have 2 android apps that may work on our phone but i will have to dig those up and post later.
also if you have other phones with cm you can use it to partition sdcard.
Like i have optimus m with cm,i can format in the optimus then put it in my motion
so our phone uses partition 1 as storage,also thats the partition windows reads when you hookup to usb.
this partition has 2 options for the format. fat or fat 32. i use fat 32. it will support storing a file up to 4 gig in size.
now if you want to run apps from your external sd the second partition needs to be made. again dont make this huge. really just as big or slightly more than you think you need. 6 gig aplication sounds great but will reduce read time. now the format can be ext2 ext3 ext4. now most use ext4 for running apps
next is the swap partition
Linux swap is the only format i have used, others may be possible but i dont know. remember the size of this patition is important, you can reduce the read write speed by making too big.
so an exmple of sd card may be this
32 gig sd card
partition 1 ....29 gig... fat 32... storage (music,movies,saved data etc)
partition 2..... 1 gig... ext4 ....run apps from
partition 3 ....500 m... linux swap.. the swap partition
remember there always seems to be unailable space as the os hides a little for its use
( i dont know if this is possible on android yet,my common sense tells me that if you can have several Swap partitions it would enhance swap speed. )
example
500 meg swap partition
or
4 swap partitions at 125 m
i mention this as an idea,i dont know how to configure this or is possible on android.
so now to setup android to begin.
i am sure there is a file you can simply write to that activates it but i havent found it yet,
so here is a link to an app that will do that for you
https://play.google.com/store/apps/details?id=lv.n3o.swapper2 (FREE)
this app will say it failed but wait it will then say it activated swap,weird i dont know why.
this works fine. go to advanced to tell it to use swap partition instead of swap file. BUT CHANGE TO MMCBLCK1 now if you made sd like my examample mmcblck1p3 is what you change this setting to
swappiness. the option are 0 through 100. this is the priorty android uses swap
setting of 0 will make android avoid using swap
setting of 100 will make android use swap alot.
so you dont want to use swap if you have alot of free memory so 100 probably would make things slower and not efficient.
if you use 0 android may never really use this.
60 is common but you can experiment with this.
so everything is set and you want to check it is working
you can use terminal emulator to check its working and monitor usage incase you want to change swappiness or resize swap patition
https://play.google.com/store/apps/details?id=jackpal.androidterm&feature=search_result#?t=W10.
once installed
type su this makes terminal emulator ask superuser for root access
type free this makes terminal emulator display the memory used. it will show ram available ram used and ram thats free
at the bottom will show swap available swap used and swap thats free
So that should get people swapping if they need it. Please feel free to post suggestions or ideas that will help others setup swap for thier needs.
i didnt invent swap nor did i invent any tools or apps and dont want credit or a pat on the back. i just want people to be able to make their phone work the way they want to
so if you feel something i posted is wrong or can be better please say so as evberybody that reads this needs the best information that can be available
AGAIN please use the proper mmcblck and partition
swap can be a valuable tool but having root access you have the ability to write into partitions and files that can brick you beyond simple unbrick guide
you may not really need swap as we have alot of memory,but it can be vvery valuable under certain conditions.
so you will need to create a partition dedicated for swap only.now writing to the sdcard as memory is slower than ram the phone comes with.so the smaller the partition the quicker the p[hone can find what has been written to it.For most use you dont need huge partition.128 to 256 may be perfect for daily use. running linux or memory intensive apps me need more. 2 gig swap partition sounds cool,but if you only use 128 the p[hone may need to search through the 2 gig to get what it needs.which will increase the read time.
p[artition tools.
MiniTool Partition Wizard Home Edition - CNET Download.com
GParted -- About
these are 2 links to useable software that will get the job done.there are others.
also i have 2 android apps that may work on our phone but i will have to dig those up and post later.
also if you have other phones with cm you can use it to partition sdcard.
Like i have optimus m with cm,i can format in the optimus then put it in my motion
so our phone uses partition 1 as storage,also thats the partition windows reads when you hookup to usb.
this partition has 2 options for the format. fat or fat 32. i use fat 32. it will support storing a file up to 4 gig in size.
now if you want to run apps from your external sd the second partition needs to be made. again dont make this huge. really just as big or slightly more than you think you need. 6 gig aplication sounds great but will reduce read time. now the format can be ext2 ext3 ext4. now most use ext4 for running apps
next is the swap partition
Linux swap is the only format i have used, others may be possible but i dont know. remember the size of this patition is important, you can reduce the read write speed by making too big.
so an exmple of sd card may be this
32 gig sd card
partition 1 ....29 gig... fat 32... storage (music,movies,saved data etc)
partition 2..... 1 gig... ext4 ....run apps from
partition 3 ....500 m... linux swap.. the swap partition
remember there always seems to be unailable space as the os hides a little for its use
( i dont know if this is possible on android yet,my common sense tells me that if you can have several Swap partitions it would enhance swap speed. )
example
500 meg swap partition
or
4 swap partitions at 125 m
i mention this as an idea,i dont know how to configure this or is possible on android.
so now to setup android to begin.
i am sure there is a file you can simply write to that activates it but i havent found it yet,
so here is a link to an app that will do that for you
https://play.google.com/store/apps/details?id=lv.n3o.swapper2 (FREE)
this app will say it failed but wait it will then say it activated swap,weird i dont know why.
this works fine. go to advanced to tell it to use swap partition instead of swap file. BUT CHANGE TO MMCBLCK1 now if you made sd like my examample mmcblck1p3 is what you change this setting to
swappiness. the option are 0 through 100. this is the priorty android uses swap
setting of 0 will make android avoid using swap
setting of 100 will make android use swap alot.
so you dont want to use swap if you have alot of free memory so 100 probably would make things slower and not efficient.
if you use 0 android may never really use this.
60 is common but you can experiment with this.
so everything is set and you want to check it is working
you can use terminal emulator to check its working and monitor usage incase you want to change swappiness or resize swap patition
https://play.google.com/store/apps/details?id=jackpal.androidterm&feature=search_result#?t=W10.
once installed
type su this makes terminal emulator ask superuser for root access
type free this makes terminal emulator display the memory used. it will show ram available ram used and ram thats free
at the bottom will show swap available swap used and swap thats free
So that should get people swapping if they need it. Please feel free to post suggestions or ideas that will help others setup swap for thier needs.
i didnt invent swap nor did i invent any tools or apps and dont want credit or a pat on the back. i just want people to be able to make their phone work the way they want to
so if you feel something i posted is wrong or can be better please say so as evberybody that reads this needs the best information that can be available
AGAIN please use the proper mmcblck and partition
swap can be a valuable tool but having root access you have the ability to write into partitions and files that can brick you beyond simple unbrick guide


I believe you, I just want to know any idea why?