noob question about partitioning with linux swap - G1 Q&A, Help & Troubleshooting

Ive only been rooted for a month and did the standard fat32/ext2 part. Now i want to include a linux swap. I did about 2 hrs of research and didnt find anything that made sense so the questions i have are....
Can i resize my current parts to include space for linux or do i have to delete them?
If i need to format and repartition i can do that...so if i need to can i just do a nan restore to get everything back?
In order to get the linux swap to work i read i need to have some files installed? Im sure this has been answered before just couldnt find the answer i was looking for. Thanks in advance for any input!

im not great at this either but i removed the old partitions then created the apps2 sd and linux swap following the instuctions on the cyanogen wiki site. i created a 96 mb partition for linux swap and its working great. If you dont know that much it might be better to just use compcache if you are just trying to avoid homescreen lag.

Not getting screen lag just want to accomplish the task

Decided to go with cc and custom settings

Related

JACHero guide questions

Quote:
Originally Posted by justanothercrowd View Post
CREDIT:sxfx
Ok Guys.
I created this thread cause in the JACHero thread on at least every page everyone asks how to install it, what am I doing wrong, and why is it broken.
So let me give you step by steps of what exactly I have done for me and others to run Hero with out a problem. I will also create a thread with step by step on how to use Ubuntu Linux Live distro to partition your card.
Things you will need to make this work.
Your Brain
G1 Phone
SD Card reader
And the files I included in this thread.
My phone right now is running.
JACHero 2.3
NEW SPL
cyanogens recovery 1.2
8gb class 6sd with Swapper(Swap file on ext2 sd)
setCPU slightly overclock.
Results.
Ever since I did my new Buttons, and the SPL I included in this write up, I have not had one problem flashing any hero rom at all on my phone, nor did I ever have problem actually running hero roms.
So here goes.
First before you partition your card or do anything make sure your card is at least portioned to fat32, don't worry about any other partitions yet.
OK once you do that go ahead and take the radio zip file I am including in this thread and flash it on your phone.
But first make sure you don't already have new radio installed which is 2.22.19.26I THIS IS VERY IMPORTANT. To check what radio you have, power off your phone, and power it on while holding the camera button.
If you do have new radio you can continue on to flashing the new SPL.
Flashing your SPL. (PLEASE MAKE SURE YOU HAVE THE NEW BUTTONS INSTALLED)
Ok this is where it might get a little tricky, and you might require a SD card reader I know I did and frankly I think this is the best way to do it and I recommend every time you do put a new update on your sd card to update your phone do it through a card reader.
Now after you flash your SPL you might or I should say more then likely will get stuck at the T-Mobile G1 screen, this also might happen after new radio flash in the previous step. If this is the case do not freak out it's normal and your phone is not bricked, but this is why having a sd card reader is important.
Ok so Here is what you do after you have flashed new Radio and SPL(Note:The steps on running Linux live distro and using it to partition your card is coming up). Boot up Live distro of Ubuntu, when its done booting, go ahead and go into the partitioning program while your sd card is hooked up in the computer.
Go ahead and set up two partitions at this time. One EXT3, and of course the other one Fat32. Your ext3 partition doesn't have to be all that big. I actually have mine set up to 512.
Once you are done creating partitions, go ahead and put the latest JACHero on the FAT32 portion and flash away (don't forget to rename to update.zip).
At this point if you follow all of these steps there is no way possible that your phone should not boot right into the system to run the initial setup.
These steps pretty much walk you through steps as if you were starting with a phone that has completly nothing on it.
Also the first boot up after flashing the new ROM, might take a few mins at the HTC screen.
Once your phone loads up and you go through the setup process go ahead and run swapper, it should be an APP that's already pre-installed.
Once you run swapper go into the setting and change the location of your swap file from /sdcard/swapfile.swp to /system/sd/swap.swp
Here is the reason why. The default location is your FAT32 partition. If you all of a sudden mount your phone to the computer with the swap file running on FAT32 you will corrupt your sd card, and then you will have to wipe and reinstall everything.
If you set the location of your swap file on /system/sd/ that's actually your ext2/3 partition and never gets mounted and you never have to turn swapper off.
Well I hope this helps some of you out. I will be writing the walk through on loading up live distro of Linux and partitioning your card sometime today.
I have used this method on a couple different phones and it has worked each time. Also I really recommend installing cyanogens recovery 1.2, as its an excellent way of making a back up of your phone and doing future flashing.
If there is anything anyone thinks that could be done better feel free to post in here.
Remember different people have different ways. I have posted this way cause it has worked for me on my phone and two other phones I setup, and each time there was no hicups.
FILES:
Radio 2_22_19_26I
NEW SPL
CM-Recovery-1.2
Ubuntu Linux Download
DISCLAIMER:
I am not responsible for anything that you might have done to your phone by following these directions. Like I mentioned before so far every time I have used this method, I have had nothing but success.
================================================== =============================
XDA Users, KEEP THIS THREAD ON TOPIC OR IT TOO WILL GOTO THE TRASH!!!
================================================== =============================[/CENTER]
Click to expand...
Click to collapse
Hey everyone,
I was trying to follow the guide posted after the OP (quoted above), and had a few questions that didn't seem all that clear to me. I've searched all of last night looking for answers.
-What does he mean by "PLEASE MAKE SURE YOU HAVE THE NEW BUTTONS INSTALLED", and how do I install them if I must?
-The cyanogen recovery image, is that installed just as any other rom, via update.zip, ALT+S, etc.?
-Lastly, is it really that much better if I get a Class 6 card? I currently have a regular microSD, but am willing to stick with it if the build runs fine, any other reports on this?
I'm currently at a very basic build, JFv1.51 with no other mods. Thanks in advance!
Buttons in the post refers to the Radio. Yes the CM recovery image is installed just like a ROM, alt+s. Yes it is worth it to get a class 6 sd card. I myself don't have one but I know it's worth it. Got to newegg I think you can get one there for under 20$ Hope i helped you!

Need help, hero rom very laggy!!!!

I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
hero rom is much bigger then the normal G1 rom that is why you are seeing the lag. What is the size of your linux swap and what is your swappiness set to?
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
sorry to say this, but if your asking if you need linux-swap you obviously didn't read the instructions
ccyrowski said:
sorry to say this, but if your asking if you need linux-swap you obviously didn't read the instructions
Click to expand...
Click to collapse
devs and testers need a new forum imo...
springah said:
devs and testers need a new forum imo...
Click to expand...
Click to collapse
no we dont we just need to remove all noobs!
Demoyo23 said:
I followed the exact steps from this forum and everything went smooth, but why is it that i only have 20 mb of free phone memory left after doing a new hero rom flash using jachero 2.7.4, is the apps automatically save to sd, cause if they are i dont think they are saving to the sd card, also do i have to do a linux swap or something like that to make this phone run faster, please help me people.
Click to expand...
Click to collapse
well the little room after flash is probably due to the sdcard NOT setup right... I had that build before and the before and so on and the space I had every time was 84mb free after boot and YES the appstosd on this build is automatic. The sdcard should have the fat32 partition first and then the ext2 partition 2nd. To setup the partitions I would NOT use ubuntu .. I ran into mounting issues with gparted .. I have had NO issues with the sdsplit found here
http://forum.xda-developers.com/showpost.php?p=3582509&postcount=52
set the 2 partitions first and then setup the linux-swap partition using ubuntu .. I had mine inbetween the fat32 and the ext2 .. and YES you NEED the swap partition in the 2.7.4 build as it no longer uses swapper.
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
How about we take the "New Thread" privileges away from everyone except for developers or new developers who request the mods give them privilege to open a new thread?
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
Goodbye to 80% of the members then lol. just keeding. I think people just need to learn how to read the first post of each thread they read. I recommend setting min/max cpu freq to 528, and having linux-swap of 32MB at 20 swappiness. @ demoyo, make sure you have your partitions at the least in this order:
FAT32/EXT3
or if you want a linux-swap:
FAT32/EXT3 (1.5GB or less) /Linux-Swap (32 to 64MB)
The 20MB free internal memory is signaling that your apps to sd isn't working properly, which probably mean you didn't partition your sdcard correctly.
Drizzy Drake Rogers said:
no we dont we just need to remove all noobs!
Click to expand...
Click to collapse
I should be a mod, I'd close and move this dumb stuff like crazy
thankx guys i am a noob
i really appreciate all the help guys, and yes i believe i didnt do the partion right all i want to do is help the rom not be so laggy, im usung win xp to do all this, but one more thing, my rom doesnt have the swappiness app built in like ive seen in others peoples vids how do i get it
Demoyo23 said:
i really appreciate all the help guys, and yes i believe i didnt do the partion right all i want to do is help the rom not be so laggy, im usung win xp to do all this, but one more thing, my rom doesnt have the swappiness app built in like ive seen in others peoples vids how do i get it
Click to expand...
Click to collapse
You don't use the Swapper app anymore. As long as you have a linux-swap partition done correctly it is automatic. You can however change the swappiness settings in /system/bin/a2sd (it is the number in echo 30 > ...)
ok so im a noob, even with the dummie walkthroughs and all, i still quite dont understand swapping, so i have a 1gb memory card already in the phone formated to fat32, i have hero rom jachero 2.7.4, and u said linux is already in it and i dont need swap, can u pleasae tell me how to do swapper with a tutorial for dummies for bigger dummies lmao, i need help dont understand lol i would love you people forever and stop buggin u
Hang in there I am the same way learning all the new ropes and I myself dont understand the swap settings eaither
Demoyo23 said:
ok so im a noob, even with the dummie walkthroughs and all, i still quite dont understand swapping, so i have a 1gb memory card already in the phone formated to fat32, i have hero rom jachero 2.7.4, and u said linux is already in it and i dont need swap, can u pleasae tell me how to do swapper with a tutorial for dummies for bigger dummies lmao, i need help dont understand lol i would love you people forever and stop buggin u
Click to expand...
Click to collapse
Ideally you need an ext and linux-swap partitions, but if you don't want to for whatever reason you can just install the "Swapper" app from the market. A linux-swap partition is much better but this is the next best thing.
AdrianK said:
Ideally you need an ext and linux-swap partitions, but if you don't want to for whatever reason you can just install the "Swapper" app from the market. A linux-swap partition is much better but this is the next best thing.
Click to expand...
Click to collapse
Well said. ANother note is that if you are using the stock 1gb card then you will not notice much speed improvement no matter what you do because of having such a slow SD card. I would not recommend and thing less than a class 4 (Class 6 is the fastest).
If you plan on staying with the stock card you should probably look into another ROM.

Creating only an ext/2 and linux swap with cyan?(solved)

I have been reading in the dev forum on the jachero thread about creating part. using cyanogen 1.3.1 the instructions are for creating all 3 partitions.
what do I type to create only an ext/2 and linux swap using the console?. I am sick of taking my card out of my phone. this is my first go round with the console and creating parts. I have been using acronis and want to learn how using the phone only. My phone actually has cyans 1.4 recovery.thanks in advance
gtrplr71 said:
I have been reading in the dev forum on the jachero thread about creating part. using cyanogen 1.3.1 the instructions are for creating all 3 partitions.
what do I type to create only an ext/2 and linux swap using the console?. I am sick of taking my card out of my phone. this is my first go round with the console and creating parts. I have been using acronis and want to learn how using the phone only. My phone actually has cyans 1.4 recovery.thanks in advance
Click to expand...
Click to collapse
... What? You want to get rid of the Fat32 partition of your sdcard and only have the ext2 and linux-swap? You realize you'll no longer be able to mount your sdcard if you do that right? Also, none of the ROMs will work for you because they are all searching for ext2 to be the 2nd partition, if you only have those two, then when the ROMs go searching for the correct partitions, they'll find different ones and really mess up your phone. And for that matter, how are you gonna flash without a fat3d partition to flash from?
No I only have a fat 32 now. I want to create an ext/2 and linux swap without reformatting the fat portion. the instuctions given are for all three I want to create an ext2 and swap part.
gtrplr71 said:
No I only have a fat 32 now. I want to create an ext/2 and linux swap without reformatting the fat portion. the instuctions given are for all three I want to create an ext2 and swap part.
Click to expand...
Click to collapse
not possible with the current recovery as it only contains commands to delete partitions and remake them, not resize them.
How do you turn the phone off after making all three partitions in recovery? It does create only the part you want
gtrplr71 said:
How do you turn the phone off after making all three partitions in recovery? It does create only the part you want
Click to expand...
Click to collapse
type "reboot" while still in recovery.

Umm backing swap?

can someone tell me what exactly is a backing swap and what do i need to do to activate it and what it uses and blahblahblah
basically from what ive searched and read this is what backing swap is. when you are using compcache your phone stores data in a certain place and when that place is full it uses backing swap as extra space. to enable i believe u edit the user.something im havin a brain fart i cant remember the name. you have to pull the user. file using adb edit it to use compcache with backing swap then push it back to ur phone. if u read the opening page on whatever rom u are using it will tell you what is on by default swap or compcache with backing swap. and it will also tell you what to change in the user. to make it swap only or compcahe with backing ect. if ur using jacski newest hero then it should have comcache with backing by default i believe thats what it says on the opening page. sorry i couldnt be more helpful but im not a dev or nething im all self taught off the forums. if u really wanna know what ur doin on here i would recomend taking a good day to search through the q&a forum and take notes
this will enable backing swap. compache is on the phone but backing swap utilizes the linux-swap partition. i usually use compache and linux-swap instead of compache and backing swap, but by experimenting will you find out works best for your phone and your usuage.
I would suggest reading through the last 10 pages on the thread where you got your Hero rom. It gives you a user.conf file that already has the settings you need right in it. You she use adb to push it to your phone and then reboot. If your don't know how to use adb read this thread
But before you do that you need to partition your memory card with a fat32, ext2/3 and a linux-swap partition which you can learn how to do here
There is a bunch of info on swapping in the development section so I suggest going over there to search and do some reading.
O sorry i figured it out on my own but yeah thx for the help anyway always had an ext4 but im just gonna repartition the sd and yes i know adb im only a noob as far as aking themes unseccessfully but this thread will definitely help others

help with apps to sd

hi i needed help with apps to sd card i recently rooted my g1 to cm 4.2.14.1. i was reading that it does it automatically thru this mod if you have a partitioned sd card which i do but i notice everytime i download a new app my internal phone storage goes down. i was wondering if that was normal or if its only suppose to go down on the partition? im really noob to this who rooting process so please help!
Applications not only store information in the apk, but also other places, /data/data/ for instance.
Delete the partition then see how much space applications use if you want to compare the difference. It could also be browser cache and other things that store information on the phone memory.
Cyanmod rom will automatically do apps2sd if it see a new partition EXT2
You have to do that on your own.
The easiest way I found to do that is use amon_ra's recovery 1.2.3 instead of Cyans
It has an option in the recover screen to partition and add EXT2 .
Now im new to this I dont know how to increase the default of value of XXXmb in ext 2 .
So if some one can chime in and tell me in the simplest way how to change how big the ext2 partition is that would be great.
OP I hope I helped you if you need more help PM me.
Edit I figured it out.
Just use linux to partition ext2/3 and define how much space your sd2apps will use on ext2 partition.

Categories

Resources