"Its recommend to partition your sdcard before flash"
whats the use?..........
you can use cwm with the phone or minitool partition wizard with the pc
venkatarajeev131 said:
"Its recommend to partition your sdcard before flash"
whats the use?..........
Click to expand...
Click to collapse
the rom maybe containing a2sd script that's why it need a second partition do it there is no harm
What size this partition should be? 100MB is enough?
felipevsw said:
What size this partition should be? 100MB is enough?
Click to expand...
Click to collapse
atleast 512 mb for ext parttion you should create a swap partition of 256 mb,
swap will replace the ram according to the swappiness set by you
dhlalit11 said:
atleast 512 mb for ext parttion you should create a swap partition of 256 mb,
swap will replace the ram according to the swappiness set by you
Click to expand...
Click to collapse
So it should be 2 partitions: one with 512 MB and another with 256 MB... The one with 512 should be formatted ext4? and the other swap (of course)?
felipevsw said:
So it should be 2 partitions: one with 512 MB and another with 256 MB... The one with 512 should be formatted ext4? and the other swap (of course)?
Click to expand...
Click to collapse
Set it as ext2, it's faster.
---------- Post added at 08:15 PM ---------- Previous post was at 08:06 PM ----------
dhlalit11 said:
atleast 512 mb for ext parttion you should create a swap partition of 256 mb,
swap will replace the ram according to the swappiness set by you
Click to expand...
Click to collapse
Here's some info on how Linux (and thus Android) uses swap. http://www.linux-tutorial.info/modules.php?name=MContent&pageid=89
I wouldn't bother with it on a phone since Linux will just swap unchanged files right back to where they are on the phone storage without the need for a swap file and since it's unlikely that you'll ever multitask large user files on it there really is no need for it.
felipevsw said:
So it should be 2 partitions: one with 512 MB and another with 256 MB... The one with 512 should be formatted ext4? and the other swap (of course)?
Click to expand...
Click to collapse
swap is optional but it's good to have
dhlalit11 said:
swap is optional but it's good to have
Click to expand...
Click to collapse
For what? Who is changing large data files on their phone? In all likelihood it will cost you more memory to have a swap file than it will save you memory since it won't be used.
Linux won't use it at all if the file in memory hasn't changed since it was last read from storage, it will just swap it back to where it was last read, that is, if you have an app open and more memory is needed linux will first check to see if the file has been changed since last read and since it's an app it will just link it back to where it was read from in the first place rather than to put yet another copy in swap.
Jinxxed said:
For what? Who is changing large data files on their phone? In all likelihood it will cost you more memory to have a swap file than it will save you memory since it won't be used.
Linux won't use it at all if the file in memory hasn't changed since it was last read from storage, it will just swap it back to where it was last read, that is, if you have an app open and more memory is needed linux will first check to see if the file has been changed since last read and since it's an app it will just link it back to where it was read from in the first place rather than to put yet another copy in swap.
Click to expand...
Click to collapse
am not talking about swap file am talking about swap partition and if you think there is no need then why are there paid apps like swapper for root and why are people paying for them.
suppose you are playing shadow gun with help of cf3d after the play you find that all the app like launcher background working apps are stopped due to low ram but if you have swap then the app's memory will move to swap partition and it will not close
when I had mini I had a swap partition of 512 MB and it was really working and if you think the life of SD will decrease then you should know that it has a veeeeeery lil effect on life so don't worry there is no harm
Thank u for this useful thread..
dhlalit11 said:
am not talking about swap file am talking about swap partition and if you think there is no need then why are there paid apps like swapper for root and why are people paying for them.
suppose you are playing shadow gun with help of cf3d after the play you find that all the app like launcher background working apps are stopped due to low ram but if you have swap then the app's memory will move to swap partition and it will not close
when I had mini I had a swap partition of 512 MB and it was really working and if you think the life of SD will decrease then you should know that it has a veeeeeery lil effect on life so don't worry there is no harm
Click to expand...
Click to collapse
Whether you use a swap file or partition is irrelevant, Linux can use either and they work exactly the same.
In your example, all the apps would be swapped RIGHT BACK TO WHERE THEY ARE STORED since they did not change since last read, the swap would be unused and the apps would still be swapped.
I don't know if it's that you fail to comprehend the simple subject or refuse to read both what i post and what i link to but you are not understanding this.
Of course it won't affect the SD cards lifetime, it won't be used.
Related
Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!
Krishath said:
Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!
Click to expand...
Click to collapse
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...
AdrianK said:
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...
Click to expand...
Click to collapse
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?
Krishath said:
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?
Click to expand...
Click to collapse
Isn't much difference between ext3 and ext4. Cyanogen himself uses ext4, so...
You need to make a custom userinit.sh, follow that guide I posted.
Swap size probably doesn't matter too much, as long as it's not too big. 64 will be fine, any speed increase from a different size will be minimal.
This is how I'm running 4.0.4...
- 32MB Linux Partition - enabled using Swapper.
- 528MHz set ALL the time - enabled using SetCPU(Makes the UI sooo much smoother. Didnt really notice a difference in battery life either).
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Will try it now
AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
Can you post your usernit.sh?
AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...
prince.siraj said:
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...
Click to expand...
Click to collapse
Can I have some "made" files to put in my SD card? I have a "normal" 2GB microsd card with 64 mb of swap... I'd be glad for this
I really dont see anything wrong with ext4, Ive had a look in a few rom release threads and most of them have support for it. I use cyanogen mod 99% of the time anyway...
Krishath said:
Can I have some "made" files to put in my SD card? I have a
"normal" 2GB microsd card with 64 mb of swap... I'd be glad for this
Click to expand...
Click to collapse
Are you talking about userinit.sh and user.conf? Just follow the link I posted earlier, took me about 10 minutes to set up.
for swap dont go over 45mb. i honestly can notice the dif. i us my g1 as a test dummy. ext2,3,4 honestly does not make a dif in my eyes. i have tried all. i use linux mint to partition my sd. which by the way is the easiest and sickest way to partition. just had to put that out there for lin users. root root lol!! but ya. over 45mb makes me feel its really trying to find the swap space. try it and give me your opinion. i have partitioned my sd from recovery mkpartfs, windows partition to linux partition editor. ya. trust me. i currently use 40mb swap. that is what really matters. use at ur comfort and day to day usage. fosho!!
ok so i made a linux-swap partion on my sd card that is 64mb. Now do i need to activate it somehow? or does cynogen do it for me? i tried to search but couldnt find. also do i need update my radio? it is 2.22.19.26I
You need user.conf and userinit.sh files on your ext partition. There's a guide on how to set that up here.
ok and can i have compcache and linux-swap at the same time? or do they do the same thing? also do i need to make a partion for compcache? and i cant find the htc keyboard in 4.2.3.1, does it come with it?
i thought if you have 4.2.3.1 you didnt have to add the files as it does everything for you? am I missing something.
is compcache and linux swap the same thing? and do we need both?
nahanee20 said:
is compcache and linux swap the same thing? and do we need both?
Click to expand...
Click to collapse
lol, no.
Swap is virtual memory. It uses a seperate partition to act as extra RAM, but it's nowhere near comparable to real RAM.
Compcache compresses what's in the RAM, so there's more space to cram files in. The problem is constantly compressing and decompressing files in RAM puts a heavy strain on the CPU.
so do i need to put the usernit files on or did this rom already do it?
does anyone know how to use the user.config app to do this?
nahanee20 said:
does anyone know how to use the user.config app to do this?
Click to expand...
Click to collapse
You DO NOT have to add any user int files to your sd for swap to work.
Its already rolling if you installed correctly.
go to terminal and use the print command to view your allocated spaces for each ext
Better yet, use the "free" command to see if it is really being used. I am pretty sure Cynanogen does not use a swap partition by default. It needs to be enabled. A easy way to check and setup your swap it to download swapper.
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
beav_35 said:
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
Click to expand...
Click to collapse
search user.conf app on market
I am running the latest WES Build Y .. He stated that SWAP slows down phone and in his next release, he is going to remove SWAP.. Just curious how do i follow up on making sure swap is not enabled..
I have User.conf, and the other user.init on the SDCARD and i also have a HUGE file @ 62MB that is called something like SWAP???? ... If i delete all three will that remove SWAP completely?
tearsphere said:
I am running the latest WES Build Y .. He stated that SWAP slows down phone and in his next release, he is going to remove SWAP.. Just curious how do i follow up on making sure swap is not enabled..
I have User.conf, and the other user.init on the SDCARD and i also have a HUGE file @ 62MB that is called something like SWAP???? ... If i delete all three will that remove SWAP completely?
Click to expand...
Click to collapse
I would remove the swap file and the swap partition. The user.conf and userinit.sh do more than control swap
remove the partition too... ??
Therefore, I would have only 2 partitions.. ( Fat32 and Ext3 )
That right ?
tearsphere said:
remove the partition too... ??
Therefore, I would have only 2 partitions.. ( Fat32 and Ext3 )
That right ?
Click to expand...
Click to collapse
Yeah, but if you don't want to repartition you'll have some empty space on your sdcard (how ever big the swap partition is) until you do partition again
I have Android running from an SD card on my Bell HTC touch. I would like to upgrade to a faster and bigger SD card.
Can I just copy the contents from one card to the other (from windows) without re-installing?
unless your using any kind of ext2 partition, yes you can just copy everything over and it'll go fine with the new one.
lordcalin said:
unless your using any kind of ext2 partition, yes you can just copy everything over and it'll go fine with the new one.
Click to expand...
Click to collapse
If you are using EXT2 partitions on your old card...
1) Using your old SD card, reboot and press the "D" pad button
to bring up the Repli-Menu
2) Back up your data using the "RepliMenu" option
3) Copy all files from old SD card to the new SD card
4) Press the "D" pad button to bring up the replimenu
- Install System and any androidupdates
- Restore data
5) Quit Repli-Menu and you are all done!
Whats`s the advantage of setting up ext2 partitions?
I'm just curious.
scouzi said:
Whats`s the advantage of setting up ext2 partitions?
I'm just curious.
Click to expand...
Click to collapse
you can create as big of data as you want with a partition instead of a 256mb img file. I for instance have a 512mb ext partition setup so i can have system on nand and data on partition and i can install as many apps as i want pretty much instead of having a limit.
incubus26jc said:
you can create as big of data as you want with a partition instead of a 256mb img file. I for instance have a 512mb ext partition setup so i can have system on nand and data on partition and i can install as many apps as i want pretty much instead of having a limit.
Click to expand...
Click to collapse
with having the partitions do you notice a speed increase?
inertone said:
with having the partitions do you notice a speed increase?
Click to expand...
Click to collapse
no if anything its a decrease. Nand is always the fastest way to go. But not to much difference.
Although mssmisons latest sense is much faster on nand
incubus26jc said:
you can create as big of data as you want with a partition instead of a 256mb img file. I for instance have a 512mb ext partition setup so i can have system on nand and data on partition and i can install as many apps as i want pretty much instead of having a limit.
Click to expand...
Click to collapse
So without any ext2 partitions, I'm limited to a total of 256 MB of space for apps, data etc regardless of the size of my SD card?
Is this correct?
scouzi said:
So without any ext2 partitions, I'm limited to a total of 256 MB of space for apps, data etc regardless of the size of my SD card?
Is this correct?
Click to expand...
Click to collapse
that is correct
how should i partition my 2gb stock Kingston sd card because i am currently using Sparksmod 2.1 Rom and they require a ext3 or ext4 partition so i parititoned my sd card with a 32 mb linux swap partition and 512 mb ext 3 partition. At first everything was fine, but after a few weeksd my phone is REALLY SLOW and unstable.
EDIT: FAT 32 has 1423 MB
What should i do? Did i partition it the wrong way.
Upgrade you EXT to 4. See if that help.
BeenAndroidized said:
Upgrade you EXT to 4. See if that help.
Click to expand...
Click to collapse
Ext2/3/4 has nothing to do with slowing down, most likely it's swap, especially when swappiness is set too high ...
Sent from my Gingerbread on Dream using XDA App
AndDiSa said:
Ext2/3/4 has nothing to do with slowing down, most likely it's swap, especially when swappiness is set too high ...
Sent from my Gingerbread on Dream using XDA App
Click to expand...
Click to collapse
I was thinking about that too, but since the SD card was only 2GB, space is limited. May be making the swap to 128MB instead of 62MB. might help then. And set the swappiness to the middle setting.
BeenAndroidized said:
I was thinking about that too, but since the SD card was only 2GB, space is limited. May be making the swap to 128MB instead of 62MB. might help then. And set the swappiness to the middle setting.
Click to expand...
Click to collapse
It would be better to renounce on swap completely. If there is no chance, set swappiness at most to 20-30, but this depends also on your "profile", i.e. what apps you are using, what services are running, etc.
Sent from my Gingerbread on Dream using XDA App
Im not even sure if my phone is using swap at all and the rom doesnt need you to have swap so should i remove the 32 mb linux swap partition then?
Oh and i checked and i am not using swap
so if its not the swap then could it be the apps2sd ext?
Cuz i read somewhere that apps2sd makes the phone take longer to run apps
and this is what is happening to my phone the apps are lagging it, when i launch them they take at least 5 seconds to load, and when i use the browser my phone becomes really unstable.
Startup time for apps stored on sd-ext may be a bit longer, but do not change over the time. Are you using also data on sd? This might be a problem, if not, there must be something different ...
Sent from my Gingerbread on Dream using XDA App
how can i check if i am using data on the sd?