how to extend memory in linux-swap? - G1 Q&A, Help & Troubleshooting

how do i extend memory in linux swap through console?
like to 64mb or the next level?
thks

bansawbanchee said:
how do i extend memory in linux swap through console?
like to 64mb or the next level?
thks
Click to expand...
Click to collapse
you would have to re-partition your sdcard to include a larger linux-swap partition.

would it be possible for you to give me the code i would type on comsole if i wanted 1gb ext4 and 64 or or of swap?
i have been looking everywhere but i cant seem to find it.
i used 51dustys script for the partioning part nothing on swap in there. it created it for me.

You could use gparted or the partion editor in ubuntu to resize it but it will takes about a half hour to resize and you would have to do it twice since you would also have to resize your ext partion to give you space to extend your swap. It's easier and quicker to just backup and format

ok q. if i go into console and change sd fat32 size to say 2gb. and how would i get ext4 to 1gb everytime i try it reverts back to ext2 i can get ext2 to 1gb but i want ext4. and if i got it like that would the remainder be swap?

You do not need over 500 mb for your ext and anything over 96mb for your swap is quite excessive.

ok i understand that. but with 96mb i would like. its not neccessary for me to have 1gb of ext jst the swap

Either reformat or download either gparted or ubuntu and make a live cd and use either one to resize

thks everyone for info
shold have retraced steps
51dustys script has all i need to complete swap. il try it out monday. also his script will do the format for you from console.

i know you have already found your answer, but i used sdparted to partition my card and it is very simple and easy.

Related

A couple questions about Swap

I have a couple questions about swap.
I am currently running the swap file from my EXT3 partition on JACHERO. It was all running very very smoothly last night after a fresh format of the sd card and most of my apps reinstalled. This morning I put my music back on the card(6 gigs of music). Right after I did that I noticed the phone ran like a slug again.
So my first question is does the amount of data on a SD card slow the access to the swap space?
My second question is, does the Swap space (EXT3) need to be the first partion or the last? Does it make a difference either way?
Ok I lied, I guess I have a "few"questions.
What benifit if any is there to running the swap on a linux-swap partition as opposed to an EXT3? If there is a benifit, how do I tell Swapper to use the linux-swap partition? IE what is its location?
as far as i know the swap file needs to be last
it should be Fat32/EXT2/3
No, the amount of space doesnt matter as long as you have atleast 100mb free on your ext3 partition.
In the swapper settings make sure the location of the swap file is in /system/sd and not in /sdcard
nephron said:
it should be Fat32/EXT2/3
No, the amount of space doesnt matter as long as you have atleast 100mb free on your ext3 partition.
In the swapper settings make sure the location of the swap file is in /system/sd and not in /sdcard
Click to expand...
Click to collapse
Ok thanks... I have it set to the last partition already. Swapper is set to /system/sd. I have an 8gig class 6 card. I have tested this twice now though. The moment I put my music on my card the system slows down like crazy, the moment I remove said music it speeds back up....
Anyone have any ideas?
Maybe your ext2 (or ext3) or swap partitions are too big. For ext use 500MB - it's enough. For SWAP don't use more than 32MB.
BolecDST said:
Maybe your ext2 (or ext3) or swap partitions are too big. For ext use 500MB - it's enough. For SWAP don't use more than 32MB.
Click to expand...
Click to collapse
Thanks but my ext3 is 512 and the swap size was set to 32...

Paragon Partition| Setting up 1gb sd for hero rom?

Hello there,
So i'm trying to figure out how to partition my 1gb sd card for the hero rom and ive read about there being a ext3, ext2 and fat 32, but do i need all three or just two of those? If so which ones?
I know paragon partition manager has the option for ext2 and ext3 aswell as linux-swap 2...
Just wondering how much should be given for each?
Fat 32?
and whatever else i need.
Thanks in advance.
upgrade ur recovery to cyanogens 1.4 then use gparted. search. dont need dat program its all done from your fone. supper easy.
also wrong section and its fat32 ext3 and linux-swap 32mbs
Coderedpl said:
Hello there,
So i'm trying to figure out how to partition my 1gb sd card for the hero rom and ive read about there being a ext3, ext2 and fat 32, but do i need all three or just two of those? If so which ones?
I know paragon partition manager has the option for ext2 and ext3 aswell as linux-swap 2...
Just wondering how much should be given for each?
Fat 32?
and whatever else i need.
Thanks in advance.
Click to expand...
Click to collapse
You need:
Fat32
ext3 - not bigger than 1.5GB...512mb is a good size
linux-swap - anything from 32 to 96...I use 64mb
They must be in that order.
I'm assuming that 1GB card is the one that came with you're phone, if so, don't bother. Buy a branded class 6 card, they're very cheap nowadays. reason being, the phone needs to cache things to the linux-swap partition...that faster the card the better the performance (in theory).
As Hiroots said, partitioning can be done on your phone, look for a guide on using parted (*not* gparted)
Please post in Q&A next time.

Q's about my new class 6 card.

I just bought a nice MicroSDHC 4GB class 6 card. I think I got it cheaper than what I was supposed to, because the package stated it was a class 4, but the card itself said class 6. Got it at Best Buy incase someone wants to know where to get one. I was currently using a regular 2GB card. I am using JACxRom. It automaticly does APPS2SD. Now I want to use my 4GB SDHC. What do I do so I don't lose all of my apps? Now that I have a fast card, what settings do you guys recommend for swapper? Hero roms were too slow for me with my old card. How much faster would Hero roms be on my new card and would you consider it usable for everyday use? Thanks.
JACxRom Thread
Use Switchrom to backup everything on your phone. Create the new partitions on your new sdcard. Copy the FAT32 portion of your old sdcard to your new sdcard. Switchrom restore. Everything should be fine.
My settings with user.conf (128MB Swap)*
60 swappiness
Not using swapper
CPU overclocked via user.conf
*I would make your mmcblk0p3 (3rd partition) 128MB, but then if you find that you need it to be 64MB or whatever, resize it and leave the rest of it unpartitioned. It'll just be a drop in the bucket for your sdcard.
Well, to avoid some hassle, if I don't use a2sd, then all I have to do is backup the fat 32 partion of my card, right? And the apps will stay on the phone? Is the only purpose of a2sd to be able to install more apps? Also, how do I edit files such as the user.conf?
i have like 15 apps but use apps2sd so i don't have to worry about re-installing them when i wipe. if you don't use apps2sd but want to keep a linux-swap partition then you have to edit the a2sd script and comment out the calls to /dev/block/mmcblk0p2 and you have the change the location of where the userinit.sh and user.conf look for your partition from /dev/block/mmcblk0p3 to /dev/block/mmcblk0p2
i use pspad to edit those files in windows, since it will not change the formatting when saving them.
david1171 said:
i have like 15 apps but use apps2sd so i don't have to worry about re-installing them when i wipe. if you don't use apps2sd but want to keep a linux-swap partition then you have to edit the a2sd script and comment out the calls to /dev/block/mmcblk0p2 and you have the change the location of where the userinit.sh and user.conf look for your partition from /dev/block/mmcblk0p3 to /dev/block/mmcblk0p2
i use pspad to edit those files in windows, since it will not change the formatting when saving them.
Click to expand...
Click to collapse
But the a2sd partition doesn't mount when I plug in the G1 to my computer. How do I mount it? Ohh, and about my camera problem: I went to the t-mobile store, and luckily found out my phone still has warranty, so I will get a new phone.

recommended size of ext2 partition??

right now i have a 2gb ext2 partition on my sdcard. the reason its so big is because im using it for app2sd and im going to install debian on the partition(as well as linux apps). i want to have plenty of room. im going to use this method:
http://all-google-android.com/googl...verdale's-debian-boot-v-2-0-updated-03092009/
i was told that it is way to big of a partition. i would like some more input as to why it is too big. i have a 16gb sd card and not concerned about space. will it give me performance issues? also should i convert the partition to ext3?
lokeycmos said:
right now i have a 2gb ext2 partition on my sdcard. the reason its so big is because im using it for app2sd and im going to install debian on the partition(as well as linux apps). i want to have plenty of room. im going to use this method:
http://all-google-android.com/googl...verdale's-debian-boot-v-2-0-updated-03092009/
i was told that it is way to big of a partition. i would like some more input as to why it is too big. i have a 16gb sd card and not concerned about space. will it give me performance issues? also should i convert the partition to ext3?
Click to expand...
Click to collapse
I remember reading somewhere here on XDA that 1.5 gigs was the 'recommended' maximum size for your ext partition. Why that is the case, I do not know. It very well could be related to performance, but I can not be 100% sure.
Anyone know why the 1.5 gig restriction is in place?

[Q] Partition of sd card

Hello Everyone,
I have just installed link2sd on my phone.But I came to know that in order to link my apps to sd card, i need to create a second partition on my sd card.
I searched and downloaded minitool partition home wizard for partitioning the card.
I tried with my transcend 8gb card but i dont know how to partition card i.e. how much to allocate the space for first,second and other partition and which format should be used(whether FAT32, Ext1, Ext2 or Ext3).
I am currently using android 2.1(rooted).Since I am a completely noob in this sector, i have no idea about this.
Please help me!!
Hi,
The instruction is available here. http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
[email protected] said:
Hi,
The instruction is available here. http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Click to expand...
Click to collapse
Thanks for the reply.
For Partitoning the card, we should also make space for linux swap or not?
Also, could you tell me what allocation of space for 8gb would be the best for FAT32 and Ext2 partition??
thnx for the info man!
imailca said:
Thanks for the reply.
For Partitoning the card, we should also make space for linux swap or not?
Also, could you tell me what allocation of space for 8gb would be the best for FAT32 and Ext2 partition??
Click to expand...
Click to collapse
There is no need for linux swap.
Ext2: 500MB - 900MB.
Do not make it to 1GB or more, save that space for your FAT32 and you won't really need that huge space for link2sd anyway.
The rest of free space will be for FAT32.
and it's up to me I will turn almost all of it into ext2/3 and a little bit for fat
why? Because I dun deal with windows that much and so I reserve only a little bit of them for transfer between the systems. Ext2/3 is linux based and inherently superior to fat.

Categories

Resources