[Q] HELP with Swap Partition - GT540 Optimus General

hi guys i have been searching the forums for tutorial on how to properly partition your sd card and your phone to use a swap partition for swapper. i heard it allows speed up performance for the phone while using some apps. can anyone pls help me with this. i just want a better performing GT540. thanks in advance

I'd be interested in a tutorial for this as well.
Thanks

Most opperating systems have a built in manager for it, including windows. Look on YouTube, that's how I did mine.
Or use clockworkmod.

lukemovement1 said:
Most opperating systems have a built in manager for it, including windows. Look on YouTube, that's how I did mine.
Or use clockworkmod.
Click to expand...
Click to collapse
On windows you can create partitions but swap belongs to linux so unless you use a ubuntu live CD or a machine with ubuntu...
Veronica

lavero.burgos said:
On windows you can create partitions but swap belongs to linux so unless you use a ubuntu live CD or a machine with ubuntu...
Veronica
Click to expand...
Click to collapse
A ext2 partitions is the same on all operating system
Clockworkmod will also partition you sdcard

So i just create an ext2 partition on my sd? Then what's next?
Sent from my GT540 using XDA Premium App

Back ur memory card up first. Depending what size memory card you have depends on the size of the partition
The most you will need is 2gb, I would only us 500mb.(2gb sdcard)
You need to have a fat32 partition for your normal data and the ext2 for the swap file. Then just put it back in you phone.
BTW I lost my last memory card trying to unpartition it. So if you only want 1 extra paelrtition use clockworkmod.

NEXT STEP
lukemovement1 said:
back ur memory card up first. Depending what size memory card you have depends on the size of the partition
the most you will need is 2gb, i would only us 500mb.(2gb sdcard)
you need to have a fat32 partition for your normal data and the ext2 for the swap file. Then just put it back in you phone.
Btw i lost my last memory card trying to unpartition it. So if you only want 1 extra paelrtition use clockworkmod.
Click to expand...
Click to collapse
after this, how can i configure swapper 2??
Thanks in advance

I think you tick a box. Download swapper2 from the market place, one of them has more options than the other

Related

[How-to]Darktremors apps2sd on Froyo

Edit: I made some scripts that you can run from gscript lite found in market for free. This script will mount the last partition so your windows pc will see it. There is one for mount and one for unmount. Plug your phone in pc and run the mountsd script and your window should pop up on the pc with the folder showing the partition that your froyo rom is using. If you have your card partitioned differently then these instructions then you can just edit the mountsd script where it says /dev/block/mmcblk0p4. Change the 4 to the number of the fat32 partition that you want it to mount. http://www.multiupload.com/HNIKCP720C
If you want to copy from froyo partition to recovery partition try this
Conap said:
No need to stop being lazy but you gotta give me a minute lol...download script and run it in gscripts. In File Manager if you press the home button you will see sdcard and sdcard2. sdcard is the froyo partition and sdcard2 is the recovery partition of the card. I am sure you can get to it in astro too but don't have it downloaded to test. Just navigate to the root folder of the phone and it should have the sdcard2 directory. This will stick untill you reboot then you will have to run the script again.
Click to expand...
Click to collapse
We all have seen that froyo doesn't like partitioned sd cards. After many attempts at partitioning my sd card for another project i'm working on I figured out a way to install the "old" apps2sd on Froyo. I know alot of people preferred the way it was done in 2.1. Froyo seems to use the last partition on the sd card at least untill the 7th partition which it stops looking after that. Amon's recovery works with the first partition on the sd card. So the solution is to put a Fat32 partition as the first partition then put your ext3 and swap partitions and then a 4th partition as fat32 for the phone to use when booted. The important thing to remember is to put any rom's you want to flash on the first partition. Your nand backups will also be stored on the first partition. Pictures, music, video's, stuff you download to the phone and any other normal stuff that uses sd card will end up on 4th partition. I will give instructions using a program called gparted. I think it is available for windows also. This should work with any type of partitioning software.
I will leave the original instructions at bottom of post but after a lot of partitioning my sd card for this project and the ubuntu/debian project and the DualRom project I've found that this method is a little better. I believe someone else linked to this method somewhere in this thread
Conap said:
THIS WILL DELETE EVERYTHING OFF OF YOUR SD CARD
ok try this...boot phone into recovery...hopefully you have amon's recovery cause I don't think clockwork uses parted(not sure). Then type or copy/paste these commands:
adb shell
parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
rm 4
mkpartfs primary fat32 0 2000
mkpartfs primary ext2 2001 2500
mkpartfs primary linux-swap 2501 2550
mkpartfs primary fat32 2551 7948
quit
Depending on the number of partitions on your sdcard currently it may say error after the rm 1,rm 2, rm 3, rm 4 commands. You can ignore them.
Then reboot your phone or copy the file you want to flash back on to card and flash it.
Click to expand...
Click to collapse
PLEASE BE CAREFUL WHEN USING A FORMATTING PROGRAM THAT YOU ONLY REFORMAT YOUR SD CARD AND NOT YOUR HARD DRIVE
1. BACK UP YOUR SD CARD!!!!!!!!(this will erase all data on sd card)
2. Plug your phone into your pc and mount the sd card(like you would if transferring files from pc to your card)
3. Open GParted and on the bar at the top click Gparted then devices and choose the phone( should be the second in the list if you only have one hard drive and no other external storage devices connected)
4. On the gparted screen you will see the partitions of your sd card. There should only be one at the moment if you are already using froyo. Right click on all of the partitions and click unmount and then delete. This will delete everything on your sd. Please be sure you have backed up your card.
5. You should now have one line that says unallocated.
6. Right click on unallocated and click click new. It will bring up a screen that has size and type of partition sizes. The only things you need to change are the size and type. For the first partitions I used 2000mib in the new size box but I keep around 5 Nand backups and 10 to 15 rom's stored on my card at a time. If you do not do alot of nands and store alot of roms you could probably make this partition smaller. Then under file system choose fat32 from the dropdown menu and choose add.
7. Right click on unallocated again and click new. This will bring up the screen to chose size and file system again. Normally people use 500mb for the ext3 partition for apps2sd. You can adjust the number to fit your needs. Choose your size and then make the file system ext3 and click add.
8. Right click unallocated again and click new. This partition should be around 50mb and choose file system as linux-swap.
9. Right click unallocated and new again. This will be the partition you use for your media on your phone such as pic's or music. You will want to use the rest of the space left on your card for this partition. Choose fat32 for the file system and click add.
10. You should now see 4 sections listed. First and last should be fat32, second ext3 and 3rd linux-swap. If it looks correct you hit the checkmark button at the top of the gparted screen. It will make all changes to your sd card. You can then unmount your card and make sure your phone reads it. I reccomend taking 1 picture before copying the stuff you backed up back onto your card.
Remember to put your Nand folder and any roms onto partition 1 and all other stuff you backed up on partition 4. When your card is setup you can go to http://forum.xda-developers.com/showthread.php?t=715933 to get the zip to flash to install the apps2sd. Install apps2sd as per instructions on that thread.
I have apps2sd currently running on my phone with CELB3.2 and it is working fine. I set my card up on a linux machine with gparted.
you are the man Conap ...currently running your 3.2froyo, which BTW is smooth as heck....what I hate the most about froyo is there A2sd setup ....and you have just solved that problem
rvpartsguy said:
you are the man Conap ...currently running your 3.2froyo, which BTW is smooth as heck....what I hate the most about froyo is there A2sd setup ....and you have just solved that problem
Click to expand...
Click to collapse
Well if you or anyone else that has windows test's this can someone report if you can access both fat32 partitions when you mount the phone in windows....
I'll be trying this ish later. Superb work conap. I'm on windows, I'll let you know how it goes as well
Sent from my Droid Eris using XDA App
I'm undecided if I'll try this, but if I do it'll probably more to see how it works under Windows than to use it myself.
I wish the best of both worlds, being able to have Widget apps installed to SD card, but not have separate partitions, and still be able to specify applications I want to remain in the phone memory, for speed.
No matter what, though, beautiful! Thanks for writing up the instructions!
roirraW "edor" ehT said:
I'm undecided if I'll try this, but if I do it'll probably more to see how it works under Windows than to use it myself.
I wish the best of both worlds, being able to have Widget apps installed to SD card, but not have separate partitions, and still be able to specify applications I want to remain in the phone memory, for speed.
No matter what, though, beautiful! Thanks for writing up the instructions!
Click to expand...
Click to collapse
I agree it would be nice to have the option to move specific apps back to the phone. But I have seen alot of people that prefer this way so I thought i'd write this up. I actually needed partitions for other things which is why I was looking into it anyway. I now have 8 partitions on my sd card and everything still functions correctly. I did find that Froyo would read the last partition on the sd card up untill 7 partitions. When I added an 8th partition it still looked at partition 7. In case any one was interested in more partitions just make sure the fat32 is last partition untill you have more then 7 leave 7 as fat32.
Conap said:
I agree it would be nice to have the option to move specific apps back to the phone. But I have seen alot of people that prefer this way so I thought i'd write this up. I actually needed partitions for other things which is why I was looking into it anyway. I now have 8 partitions on my sd card and everything still functions correctly. I did find that Froyo would read the last partition on the sd card up untill 7 partitions. When I added an 8th partition it still looked at partition 7. In case any one was interested in more partitions just make sure the fat32 is last partition untill you have more then 7 leave 7 as fat32.
Click to expand...
Click to collapse
Do you have a 16GB or larger card? Wow!
Very interesting information, thank you!
roirraW "edor" ehT said:
Do you have a 16GB or larger card? Wow!
Very interesting information, thank you!
Click to expand...
Click to collapse
nope just stock 8gb...mostly small partitions for testing some ideas lol...i did find that the phone does not mount any more then 7 partitions(kernel limitation maybe) You can have more then 7 if you are useing your card for things other then the phone but for phone purposes 7 is the limit.
How do I plug my phone into my computer?
need help!!
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Conap said:
nope just stock 8gb...mostly small partitions for testing some ideas lol...i did find that the phone does not mount any more then 7 partitions(kernel limitation maybe) You can have more then 7 if you are useing your card for things other then the phone but for phone purposes 7 is the limit.
Click to expand...
Click to collapse
Oh, okay! Nosey people (me) want to know. Hehehe.
workshed said:
How do I plug my phone into my computer?
Click to expand...
Click to collapse
You're messing with me, right? The USB cable that came with your phone, that you can also charge your phone with???
ykhehra1 said:
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Click to expand...
Click to collapse
You'll probably have to boot your Vista 32-bit installation DVD and run a Startup Repair. Or if the computer came with a recovery DVD that you hopefully burned after booting up the computer the first time, use that.
If you don't have any easier option, you can download Startup Repair-only burnable disc images from the EasyBCD website. Just google for it. Make sure and download the correct one (Vista 32-bit), and then you'll have to burn it to a CD and boot from it. Hopefully you're computer doesn't have any SATA or RAID setup that Vista doesn't include the drivers for, otherwise you'll have to download those and put them on a flash drive, and then you can load them from the Vista repair CD.
Good luck.
ykhehra1 said:
Hi I accidently run the 'makeboot' from gparted iso on my windows Vista 32bit HDD, before I read it will damage windows boot and can only run it on SD card.
Now I have not restarted my laptop, to loose every thing, I need help to correct it!
Please guide my, what are my options.
Click to expand...
Click to collapse
There is no makeboot option on gparted in linux that i can see...if you think you have messed up the boot partition of your pc don't restart it till you fix it. Google should be your best friend on that one. I don't use windows so can't be of any help to you there....
roirraW "edor" ehT said:
Oh, okay! Nosey people (me) want to know. Hehehe.
You're messing with me, right? The USB cable that came with your phone, that you can also charge your phone with???
Click to expand...
Click to collapse
LMAO
What's a usb cable... is it that black thing with a square end??
Its g8 solution, good job! little tricky on windows, but worked at the end.
workshed said:
LMAO
What's a usb cable... is it that black thing with a square end??
Click to expand...
Click to collapse
Ooooh, you got me. LOL!
ykhehra1 said:
Its g8 solution, good job! little tricky on windows, but worked at the end.
Click to expand...
Click to collapse
Are you able to get both FAT32 partitions (partition 1 for ROMs and other flashes, partition 4 for everything else) mounted with drive letters under Windows?
is there an advantage to doing this? i'm just curious
asilentcivilian said:
is there an advantage to doing this? i'm just curious
Click to expand...
Click to collapse
nevermind, i found the 2.1 dark tremor thread. i assume the same results apply to froyo with this.
asilentcivilian said:
is there an advantage to doing this? i'm just curious
Click to expand...
Click to collapse
some people just prefer this way. this way actually stores the whole apk on the phone and save's more room then froyo. plus you can mount your sd card while still using your apps. I did this mainly cause I wan't partitions for other things on my phone personally. It just happens that it helps the apps2sd issue too...

How to format SD card as Ext4?

How do I format the SD card as Ext4 and then make a partition of about 750mb on it?
If you have a card reader you could just boot your computer with linux (live cd or usb stick) and use linux tools (gparted etc) to partition the card.
Daz555 said:
If you have a card reader you could just boot your computer with linux (live cd or usb stick) and use linux tools (gparted etc) to partition the card.
Click to expand...
Click to collapse
Do I need a card reader, I put my phone in Disk Drive and then tried gparted but it couldnt find it, Il try a card reader tonight!
You can actually just connect via USB. Then right click on it in Linux and chose Format. Then go into the advanced options. (I use Ubuntu and have used LinuxMint in the past)
vious21 said:
You can actually just connect via USB. Then right click on it in Linux and chose Format. Then go into the advanced options. (I use Ubuntu and have used LinuxMint in the past)
Click to expand...
Click to collapse
Ok thanks ive partitioned it, now how do I get all my apps onto my partition lol!
How about using windows platform? How to partition in ext4?
c_shekhar said:
How about using windows platform? How to partition in ext4?
Click to expand...
Click to collapse
Just boot Gparted Live from a usb or something.
Repsys7 said:
Ok thanks ive partitioned it, now how do I get all my apps onto my partition lol!
Click to expand...
Click to collapse
If the rom you're using supports A2SD (every rom doesn't) there's probably instructions in the thread for that. Here's from LeeDroid's thread:
LeeDroid said:
Q: What is A2SD+
A:
A2SD+ Moves your apps & Dalvik cahche to a hidden EXT partition on your MicroSD
You will be required to format you SD card with 2 partitions as laid out below
How do i set up my MicroSD ready for A2SD+
A:
Backup all data on you SD card (this will be Formatted)
The card should be formatted with your standard FAT32 partition 1st followed by an EXT3 partition (I would recommend a minimum 512mb)
Linux users use GParted or a similar software.
For everyone else I would recommend using Rom Manager or CWM
Once you have downloaded ROM manager from the market, open the app and click partition SD Card, Select your EXT size and set 0mb for swap
Restore your data to your SD.
Flash the A2SD+ Patch
Boot << Please be aware, 1st boot may take a while depending on how many apps you have installed.
Click to expand...
Click to collapse
Hawks556 said:
If the rom you're using supports A2SD (every rom doesn't) there's probably instructions in the thread for that. Here's from LeeDroid's thread:
Click to expand...
Click to collapse
Thanks! Im using RCMix3D at the moment, im not sure if it has A2SD though, if it doesnt is there a way to get it like just flashing it or something?
Repsys7 said:
Thanks! Im using RCMix3D at the moment, im not sure if it has A2SD though, if it doesnt is there a way to get it like just flashing it or something?
Click to expand...
Click to collapse
As I said, every rom doesn't support A2SD and those who do have it probably mentioned in the OP of the rom thread (RCMix3D doesn't atm). You can't add A2SD support by flashing, you can only flash the A2SD patch to a rom that supports it.
Hawks556 said:
As I said, every rom doesn't support A2SD and those who do have it probably mentioned in the OP of the rom thread (RCMix3D doesn't atm). You can't add A2SD support by flashing, you can only flash the A2SD patch to a rom that supports it.
Click to expand...
Click to collapse
Oh alright then, Il have to find another way to get apps to sd I guess!
Thanks for your help!
Excuse me for going off-topic a bit
But why are there so many people focused on moving every application to the SD card?
It can't be for the space... I just counted and I have 70 apps installed on my internal memory, using 274 MB with 883 MB free.
I just don't get it?
co2-guy said:
Excuse me for going off-topic a bit
But why are there so many people focused on moving every application to the SD card?
It can't be for the space... I just counted and I have 70 apps installed on my internal memory, using 274 MB with 883 MB free.
I just don't get it?
Click to expand...
Click to collapse
I dont know about other people but for me, there is a new rom out every day and full wiping makes sure nothings wrong and if the apps are on the SD then its just easier you dont have to worry about losing your apps
But always you can use Titanum Backup to backup your apps.
Hmm.. So, ext4... For what? I know, ext4 is newest than ext3, but performance ext4>ext3 or for what?
suroegin said:
Hmm.. So, ext4... For what? I know, ext4 is newest than ext3, but performance ext4>ext3 or for what?
Click to expand...
Click to collapse
ext4 is the same as ext3, but has journalling initialised that makes it more fault tolerant. Don't take my word for it read me here
Dod6 said:
But always you can use Titanum Backup to backup your apps.
Click to expand...
Click to collapse
But if I do that when I restore it do I still get my progress in apps, like where im up to and stuff?
Repsys7 said:
But if I do that when I restore it do I still get my progress in apps, like where im up to and stuff?
Click to expand...
Click to collapse
Yes, as long as you backup and restore apk + Data for the required apps
ghostofcain said:
Yes, as long as you backup and restore apk + Data for the required apps
Click to expand...
Click to collapse
Oh I didnt know that, how do I do that?

[Q] How to Partition 8 GB microSD 4x for Rooted Stock Wildfire?

I have a rooted HTC Wildfire 2.2 with a new 8GB microSD Class 4. I'd like to correctly partition my SDCard so that I can install all applications on SDCard and not Phone Memory.
1- What I need is to help me setting up perfect sizes for SWAP & Ext3 (Perfect matches HTC Wildfire and 8 GB Card).
2- Can I install the stock 2.2.1 ROM over the SDCard?
3- Will all Apps got installed on SDCard after partitioning instead of Phone Memory leaving it empty?
Thank you
nice post i would like to know too!
Try rommanager, chose partition your sd,(instal old clockwork mod like 2.xx, becoz new ones make ext4, which is not compatable with some roms,)choose the greatest avilable size for ext and swap(it may be enough, if u r not app greedy, i had done so, so far i have 50+app installed), reboot-partition-done, the best trouble free way!
Sent from my HTC Wildfire using XDA App
showlyshah said:
Try rommanager, chose partition your sd,(instal old clockwork mod like 2.xx, becoz new ones make ext4, which is not compatable with some roms,)choose the greatest avilable size for ext and swap(it may be enough, if u r not app greedy, i had done so, so far i have 50+app installed), reboot-partition-done, the best trouble free way!
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
Thanks for your reply but I don't want to end up my device because some people reported issues with partitioning part of internal phone memory due to some ROM Manager Partition Manager errors. I'll use a PC client to partition the card.
Rom manager works fine. I've done it a few times. The people having problems probably shouldn't have bought an android phone...... besides if something goes wrong odds are it won't just redo the partition again.
And make sure you backup your SD card before partitioning it.
Sent from my HTC Wildfire using xda premium
Use recovery (= rom manager) to partition first. If that gives any issues then use "gparted live cd" to partition sdcard. U need to download gparted_live_cd_ISOimage and burn it to a cd. Then using pc u need to boot from live cd to partition sdcard. Here be careful not to format ur pc hard drive.
The partitioning sizes I recommend are 512MB ext , 32MB swap and remaining fat. If that is not sufficient u can choose 1024 MB, 64MB.
If u r using gparted then first create extended partition as fat corresponding to its memory. Then create ext and swap. At last format all those partitions.
Sent from my Blade using XDA App
Dude, i have done it several times, so far got no issues, and it is the simplest way.
Sent from my HTC Wildfire using XDA App
omg wow
so i have conflicting information from this thread and this one http://forum.xda-developers.com/showthread.php?p=19927720#post19927720 on whether or not i am able to create an sdext partition on a factory rom, which i have come to the conclusion that you may be able to, but would you be able to put that partition to use and have apps installed and read from there. please be more specific, i have an LG Opt T running 2.3.3 btw
thanks for any input
I used gParted. It's free. You can find it by fecking googling download and burn to a CD. Then boot it on your PC. Linux will show up. Open gParted from desktop and size your ext and format.
I made 1 GB ext4 and 64 MB Swap. 1 GB is too much for ext since I can't use more than 100 MB. 512 is ok. I read somewhere that Swap isn't used anymore but 64 MB isn't a thing in 8000.
It doesn't matter if its ext3 or 4 since you can flash DT's A2SD to any ROM.
The apps you moved to SD before are not in ext partition. They will stay in FAT partition. To move them to ext, simply move them to phone (after DT's A2SD phone means ext part.
Sent from my HTC Wildfire while dividing infinity by zero
Hey man,
I had the same problem a while ago:
http://forum.xda-developers.com/showthread.php?t=1253270&page=2
In the second to last post I finally managed to get it to work. (Just to be clear, I used the darktremor script, but not the app, for the app is use S2E and to visualise my usage i use "freespace", but work like a charm ! )
Hope it helps

SwiftDroid ASIS and Swap?

Hi there,
I never dealt with creating swap partition. I'm using latest SwiftDroid now and like to know if it uses swap automatically. If not, would it be advisable to create one? How do I have to do this? Which size should it have and does SwoftDroid ASIS recognise it rigth?
I googled a lot and search in the forum, but didn't find helpful information.
Thanks
G00fY2 said:
Hi there,
I never dealt with creating swap partition. I'm using latest SwiftDroid now and like to know if it uses swap automatically. If not, would it be advisable to create one? How do I have to do this? Which size should it have and does SwoftDroid ASIS recognise it rigth?
I googled a lot and search in the forum, but didn't find helpful information.
Thanks
Click to expand...
Click to collapse
using swap isn't the best idea as it kills ur sd card faster.
also a lot of people use about 200mb swap partition to about 300mb swap
partition..
u could get the app from the market ( swapper2 for root users )
or read this thread!!
http://forum.xda-developers.com/showthread.php?t=1317362
Mur4ik recommends swap 256MB for previous versions of SwiftDroid, so I think that is also applies to ASIS. ASIS can use swap automatically (no need to use swapper app) if you create swap partition as third on sdcard (second should be ext - in newest recovery you can create 2MB ext3 partition).
kretos said:
ASIS can use swap automatically (no need to use swapper app) if you create swap partition as third on sdcard (second should be ext - in newest recovery you can create 2MB ext3 partition).
Click to expand...
Click to collapse
Okay, now slowly. I flashed my phone with Mur4ik's KDZ Method before installed SwiftDroid. So there should be 150MB for system,64MB for cache and 234MB free internal storage. Are the 64MB memory for swap? So that SwiftDroid always uses swap but with internal memory?
Now I don't understand what you say about second and third partition and what exactly Mur4ik suggest for his ROM. They are both an SD, aren't they? I use a 16GB class 4 SD card. So what should I do to get best performance with ASIS?
androidboss7 said:
using swap isn't the best idea as it kills ur sd card faster.
also a lot of people use about 200mb swap partition to about 300mb swap
partition..
u could get the app from the market ( swapper2 for root users )
or read this thread!!
http://forum.xda-developers.com/showthread.php?t=1317362
Click to expand...
Click to collapse
thanks for recommending my thread yes goofy use the link to enable swap
Edit: oops i found out i deleted the pictures at the thread just restored them hope it makes it easier
G00fY2 said:
Okay, now slowly. I flashed my phone with Mur4ik's KDZ Method before installed SwiftDroid. So there should be 150MB for system,64MB for cache and 234MB free internal storage. Are the 64MB memory for swap? So that SwiftDroid always uses swap but with internal memory?
Now I don't understand what you say about second and third partition and what exactly Mur4ik suggest for his ROM. They are both an SD, aren't they? I use a 16GB class 4 SD card. So what should I do to get best performance with ASIS?
Click to expand...
Click to collapse
150MB for system,64MB for cache and 234MB free internal storage <- it's internal storage of your phone, system is just system, cache is for files downloaded from internet, internal storage is for installing your applications.
On sdcard you should have primary partition (fat32), ext3 and swap (linux swap type) partition. The third will be automatically used. See thread mentioned above or copy everything from your sdcard to you computer, reboot phone into recovery and creat ext partition and swap partition (in that order) through recovery. Then reboot phone and copy data back from computer to phone's sdcard.
Ok, i managed to create 256MB swap partition.
So what do you say is the best swappiness value? I read that 60 seems to be to high?
PS: How can I see if swap works?
I leave mine at 60 to see If it works type free in a terminal on the phone
Ok it works. Terminal shows me that the phone uses swap. But I also recognised it by playing some games, which worked laggy before and now run very smooth.
About swappiness: I read that 30 seems to be the best for our phone?
ASIS set swappiness to higher value (I believe 60) - I've changed it to 30 in previous versions but now I just left it as it it. I don't see any difference.
Yay! no more third person software :3, native swap.
Thanks :3

[Q] /system.tar backup and sd card partion

Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
1. nand backup via CWM or Amon_RA recovery
2. don't use ROM Manager (EVER for ANYTHING), either make the partition via recovery or via the built in tools
---------- Post added at 12:21 PM ---------- Previous post was at 12:19 PM ----------
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Yeah, 1024 goes a long way but if you got a big SD card you might want to go for twice that and swap isn't just not needed, it's not even used unless you make a separate script to use it which ISN'T included in most roms.
Which kind of built in tools?
Sent from my Blade using xda premium
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
rohitzz said:
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
Click to expand...
Click to collapse
Jinxxed posted it above
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
rahulsa said:
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
Click to expand...
Click to collapse
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Click to expand...
Click to collapse
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
rahulsa said:
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
3. Just nitpicking but the way it works is to mount data to /sd-ext/data, /sd-ext is just the mount point for your ext partition (which may be ext2, ext3 or ext4 depending on how you configured it during partitioning and how you mount it). Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Jinxxed said:
... Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Click to expand...
Click to collapse
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
rahulsa said:
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Jinxxed said:
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Click to expand...
Click to collapse
To deactivate mounts2sd-4.6.2 script and use your script.
I did following after getting your answer as PM.
I deleted 10mounts2sd script from \system\etc\init.d\ .
While observing S2E-Swap-Jinxxed.zip, I realized that it contained s2e.apk in /system/app.
So I actually installed s2e from from market to get latest version.
Then to enable swap and other optimizations, I added following lines in begining of 20userinit script present in /etc/init.d .
mount -o remount,noatime,nodiratime,relatime,barrier=0,nobh /system
mount -o remount,noatime,nodiratime,relatime /data
swapon /dev/block/mmcblk0p3
So I got what I wanted and also learnt many things in the process.
Also experimented with /etc/sysctl.conf by adding vm.swappiness=50 (initially 70).
---------- Post added at 08:47 PM ---------- Previous post was at 08:26 PM ----------
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
....
Click to expand...
Click to collapse
I backed up my Blade using the latest ClockworkMod 5.0.2.0 .
CWM backup up saying done, but with a message.
It said it did not backup up /sd-ext or external ext2/3/4 partition.
So I was worried to use app-to-ext scripts or programs.
Now I successfully used tar to backup sd-ext and restore it on a faster (class 4 to 6) sd card.
But I would like know if there is any new version of CWM for Blade 6.0.1.2 with or without touch, which backs up ext2/3/4 without any issues.
If yes, I would upgrade my CWM.
It saves time to use CWM, compared to tar.
Thanks in advance.

Categories

Resources