How to format linux-swap - G1 Q&A, Help & Troubleshooting

before you flame me on resize comands in parted... thats not what I need
Im wondering how do you erase the data on linux-swap to refresh the data as to speed up the program... I've got a 96MB swap on a class6 card and finding its choking up every couple days...
Im using rooted Cyanogen 4.1.9.2
Thanks guys

try reading through this. but swap is cleared every time you reboot the phone afaik

Related

*Solved* JAC's A2SD or JAC's SLOW SD?

I have a rooted G1
& i have jf's 1.5 build with CM's recovery
But the other day out of being scared that i bricked my g1
i flashed to jf but after i thought i "bricked"
i realized that was normal when installing Hero SPL/Radio
So im think of finally flahing to Hero
but theres two options for me
1. flash he spl/radio again then install JAC's Slow SD hero ROm
2. wait till i get paid next week and buy a new 8gb or 16gb
(does the g1 support 16???) then install Jac's Hero Rom but with Apps2SD
oh and if any body out there with JAC's Slow SD rom does it really differ from the A2sd rom(except 4 the obvious)
An does it give you a decent start off of memory like 70mb internal or something
And since i already installed the hero spl/radio do i need to reflash them in order to install the rom
or can i just go ahead and flash the Slow SD rom
And last does Swapper make a difference on the Slow SD Rom
Thanks in advanced
Because i wont beable to read the replies tonight(maybe)
watchyaself said:
I have a rooted G1
& i have jf's 1.5 build with CM's recovery
But the other day out of being scared that i bricked my g1
i flashed to jf but after i thought i "bricked"
i realized that was normal when installing Hero SPL/Radio
So im think of finally flahing to Hero
but theres two options for me
1. flash he spl/radio again then install JAC's Slow SD hero ROm
2. wait till i get paid next week and buy a new 8gb or 16gb
(does the g1 support 16???) then install Jac's Hero Rom but with Apps2SD
oh and if any body out there with JAC's Slow SD rom does it really differ from the A2sd rom(except 4 the obvious)
An does it give you a decent start off of memory like 70mb internal or something
And since i already installed the hero spl/radio do i need to reflash them in order to install the rom
or can i just go ahead and flash the Slow SD rom
And last does Swapper make a difference on the Slow SD Rom
Thanks in advanced
Because i wont beable to read the replies tonight(maybe)
Click to expand...
Click to collapse
unless you have flashed another spl to your phone you still have the new spl. yes the g1 supports 16gb sdcards. i haven't tried the slow version of hero because i have a class 6 8gb sdcard but you should be able to flash the slow rom just fine. i think it leaves around 30mb of free space but i am not sure and swapper should make it run faster on the slow version set it to 32/30 (swap/swappiness) should give best results. you should invest in a class 6 sdcard though. also if using the swapper app make sure you put the swapfile in /system/sd so it will not corrupt your sdcard when you mount it. if there is anything else i have not covered just ask and i will answer to the best of my ability.
So pretty much since I already flashed the spl/radio from I think it was
Saphire ports or something like I'm able to flash to pretty much any ROM including JAC's Slow SD
With no problems??
And if I flash to JAC's Slow SD ROM today, can I reflash to the A2SD ROM next week when I get a new card
Oh yeah and is there a way to check my spl just to make sure I got the right one?
ohhh and I already know how to check my radio
Go into bootloader (camera+power) SPL:1.33.2005
david1171 said:
unless you have flashed another spl to your phone you still have the new spl. yes the g1 supports 16gb sdcards. i haven't tried the slow version of hero because i have a class 6 8gb sdcard but you should be able to flash the slow rom just fine. i think it leaves around 30mb of free space but i am not sure and swapper should make it run faster on the slow version set it to 32/30 (swap/swappiness) should give best results. you should invest in a class 6 sdcard though. also if using the swapper app make sure you put the swapfile in /system/sd so it will not corrupt your sdcard when you mount it. if there is anything else i have not covered just ask and i will answer to the best of my ability.
Click to expand...
Click to collapse
Well if he goes to JACHero 2.36 he shouldn't use swapper. Just create the linux-swap partition on your sd card and everything is auto from there. You wouldn't want to have the partition and use swapper because that will mess things up. Plus having linux-swap partition compared to swapper makes a huge difference.
supremeteam256 said:
Well if he goes to JACHero 2.36 he shouldn't use swapper. Just create the linux-swap partition on your sd card and everything is auto from there. You wouldn't want to have the partition and use swapper because that will mess things up. Plus having linux-swap partition compared to swapper makes a huge difference.
Click to expand...
Click to collapse
Erm...you mean JACHero 2.63
alritewhadeva said:
Erm...you mean JACHero 2.63
Click to expand...
Click to collapse
Yep my bad. Its to early here at work. lol
So if I create a linux swap patition using paragon partiton ill select "linux swap'
And then flash the rom ??and then after I boot up I won't need to do anything??
Oh and since I will most likely flash to JAC's a2sd rom because I'm going to buy a sdhc card next week
watchyaself said:
So if I create a linux swap patition using paragon partiton ill select "linux swap'
And then flash the rom ??and then after I boot up I won't need to do anything??
Oh and since I will most likely flash to JAC's a2sd rom because I'm going to buy a sdhc card next week
Click to expand...
Click to collapse
JACHero 2.63 will automatically see the linux-swap
Ok well I think I'm going to flash to slow sd for now then next week to a2sd
Oh and just to make sure my radio is 2.22.1.16 or something like that
And my spl is 1.33.2005 so am I all good to flash to jachero
and I have linux swap so I can flash right???
Oh and how would it most likely take to boot for the first time??
Thank you in advance
watchyaself said:
Ok well I think I'm going to flash to slow sd for now then next week to a2sd
Oh and just to make sure my radio is 2.22.1.16 or something like that
And my spl is 1.33.2005 so am I all good to flash to jachero
and I have linux swap so I can flash right???
Oh and how would it most likely take to boot for the first time??
Thank you in advance
Click to expand...
Click to collapse
Yep as long as you got the spl and radio you good. You really don't have to have the linux-swap partition but if you do it will pick it up automatically. And it shouldn't take a long time to boot up the first time.
Thanks man I really appreaciate the help
And from everyone els to
Oh and one last ?
Since I'm going to flash to the slow sd rom
When I reflash next week to a2sd jac with my new 4 gig or 8 I'm not sure do I have to prep the card
With the recovery img
Fat32
Ext3 and the linix swap
And it would turn on fine??
Oh and is ext3 a replacement for ext2
So that meaning all my apps on ext3
Music photos etc.. on fat32
And linux swap is what??
I think I'm confused here
I just want to make sure that next week I don't muck up my g1
watchyaself said:
Thanks man I really appreaciate the help
And from everyone els to
Oh and one last ?
Since I'm going to flash to the slow sd rom
When I reflash next week to a2sd jac with my new 4 gig or 8 I'm not sure do I have to prep the card
With the recovery img
Fat32
Ext3 and the linix swap
And it would turn on fine??
Oh and is ext3 a replacement for ext2
So that meaning all my apps on ext3
Music photos etc.. on fat32
And linux swap is what??
I think I'm confused here
I just want to make sure that next week I don't muck up my g1
Click to expand...
Click to collapse
You won't have to do anything with the recovery img because that is already on your phone. The ext3 is just like the ext2 but suppose to be safer for the card so yes all your apps will be on there and photos, music, videos and everything else on your fat32. The linux-swap is basically like giving your phone more ram. If you need help formating your card I have a tutorial in my sig on how to set everything up.
supremeteam256 said:
You won't have to do anything with the recovery img because that is already on your phone. The ext3 is just like the ext2 but suppose to be safer for the card so yes all your apps will be on there and photos, music, videos and everything else on your fat32. The linux-swap is basically like giving your phone more ram. If you need help formating your card I have a tutorial in my sig on how to set everything up.
Click to expand...
Click to collapse
His tutorial is very good and I noticed a HUGE difference moving from swapper app to linux-swap as its own partition.
Oh how big do i make Linix Swap
Anybody??
32MB is fine for swap.
help with my sdcard
Hey guys I was wondering if any of you can help me out get more space on my phone i formarted my sdcard to ex2 and linux_swap and i still get 70mb plz help I nee dthe space I'm running the latest jachero
it saves to the sd automatically
i think
it doesnt show as merged internal/sd
it just saves to sd
help
is not showing anything it keep making my internal memory smaller
well idk what to say maybe
reflash hero then see if that works
oh and are you sure you didnt download his Slow SD ROM
if you dont know what that is its basically JAChero but with apps to internal memory maybe you did that
because thats what is sounds like

Re partition

i am currently runnning HERO ROM , if i back Up my sd card and re partition my sd card for 96MB linux swap , do i have to re flash the rom over ?
also im doing this because i hear runninq a 96MB linux swap , makes the Hero rom run smoother nd faster , any truth to this before i re partition ?
also any inputs?
thnx
next time Q&A, 96 from what i hear is good but starts to lag after a while. also if you just re-partition the linux-swap then you shouldn't have to flash the rom, but if you do ext3 as well then you should re-flash the rom
Rather then repartition, just resize your partitions. In Gparted use the Resize command. Take 64mb off your first partition, then move the starting point of the second partition back 64mb. Then add the 64mb to your swap. I do it all the time to experiment with different swap sizes. So far 96mb is the best in my opinion.

The dudes cupcake 1.3RC2

does this ROM do Apps2sd automatically as long as you have an ext3 partition?
http://forum.xda-developers.com/showthread.php?t=507151
His changelog says this:
"Modified a2sd script to mount auto but not automatically convert to ext3"
Just out of curiosity, why are you going to that build?
didnt see that part.
it seems to run faster on my 8gb class 6 than cyanogen 4.0.4 did.
should it or should cyanogen be faster? i liked cyanogen but it just seemed to lag more...my friends G1 does the same thing.
also, everytime ive flashed cyanogen's 4.0.4 rom, and i install the wifi tether for root users app, it works, but it will not show up as a secured network, even though on my G1 in the app settings i have it set to be encrypted.
on cupcake 1.3RC2 it shows as a secured network as its supposed to.
He should be releasing a new update to 4.1.99 tonight which apparently will speed it up.
1.3rc2 is WAY outdated. dude's leaked release was about 3x as fast and stable. however, i'd probably consider going with one of cyanogen's roms right now, seeing as Dude has left the game for the time being, so any of his roms are going to be unsupported.
so i should flash cyanogens latest rom (is 4.0.4 still the latest stable) or should i go with 4.1.99 tonite after the update is released as the other guy said?
well, if you're running ok for now, i'd wait around for cyanogen's update tonight.
ill do that.
itll be updated in his thread tonite?
also...i have an 8gb class 6 sd card.
should i run swap? if so, 64mb, 96?
and ext3 vs ext4...i see a few are running 4 but most are running ext3. what are the pros/cons? (what would be the best SD card partition setup for 4.1.99?)
cyanogen has said that he *might* push the update out tonight, but ultimately, hes the only one who knows. as for the swap, running it is completely up to you. I have two g1s that are running 4.1.99 and the swap makes little differenct as far as i can tell. also, ext3 is fine, ext4 (because of its relative instability) is more likely to eat your card faster.
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
ufvj217 said:
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
Click to expand...
Click to collapse
compcache compress data that is going to be stored in ram and is cpu heavy
the result is more ram is available for use at the cost of cpu power and as a result battery life.
thats the simple way of stating it
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
ufvj217 said:
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
Click to expand...
Click to collapse
The compcache is stored on the RAM. The swap partition is on the SDcard and is used as a backing when the RAM fills up or the information cannot be compressed. The swap is generally for when I'm on a Hero ROM, where I use the swap only (since its a little bit faster for me on Hero)
I have a detailed explanation on the performance benefits on Compcache + Swap only, but I don't remember where it is.
Cyanogen uses Compcache by default, so if you don't have a userinit.sh, it will be on. Try it out, and then try it with the script. See what works better for you

Confused Please Help

Hello all,
i have had root for a while now using cyanogens 4.2.12.2 with the ram hack, ok the thing im confused with is i have 2 partittions fat32 and ext3 for the a2sd but whenever i install a app it installs to internal memory, do i need linux swap aswell ?
Thanks Alot Ryan​
What size is your ext3? And by installs to internal memory, do you mean it goes down a bit for each install, or does it go down the total app size? Even with A2SD you still use up a little internal memory. As well, if you run out of space on the ext3, it will install to the internal memory. It should work just fine out of the box with no need to do anything crazy on your part.
well im using 2gb sd with 600mb ext3, well i installed 8apps and it went from 71.91mb to 71.02 is this normal and thanks for the quick response
That is very normal, if it wasn't working you would have seen it go from 71.91 to 50 type thing. That small amount taken up is normal.
ok then thanks alot for your help

app2sd?

I'm using warm donut, flashed to the phone.. before hand I was using haret until I felt everything was stable enough.
My SD card is still partitioned the old way, 7.4GB fat32, 512M ext3, 32M swap
Is there a way to enable app2sd with warm donut so I can get more room? it might just be the fun of something new for now, but watching the free space for apps going down way to quickly
lordcalin said:
I'm using warm donut, flashed to the phone.. before hand I was using haret until I felt everything was stable enough.
My SD card is still partitioned the old way, 7.4GB fat32, 512M ext3, 32M swap
Is there a way to enable app2sd with warm donut so I can get more room? it might just be the fun of something new for now, but watching the free space for apps going down way to quickly
Click to expand...
Click to collapse
i second this, I would love to do apps to SD
I think it should be do-able now that we have the automount program that allows access sd card system and user simultaneously.
yeah you guys would love apps2sd...it's cool on my hero! im glad to see all of the android development going on here.
If you guys want to do Apps2SD, you'll need an ext2 partition on your SD for it. Native Android devices have had some trouble with Apps2SD, so it's just been rewritten by Chris Soyars and Cyanogen -- instead of the WesGarner method that had been used previously. I suggest using their code as it's battle-tested.
Here's the relevant code at github, as you can see it's been recently updated:
http://github.com/cyanogen/android_vendor_cyanogen/tree/eclair/prebuilt/common/etc/init.d/
HTH
I have app2sd enabled in my eclair build.
If you want to use it you must have an ext2 parition on your sdcard. than use my spareparts app to enable. Reboot.. wait... and there you go.
Can we get this going in your build Myn?
mssmison said:
I have app2sd enabled in my eclair build.
If you want to use it you must have an ext2 parition on your sdcard. than use my spareparts app to enable. Reboot.. wait... and there you go.
Click to expand...
Click to collapse
Did a search for spareparts and couldnt find a link to a download. Anybody have a link they could throw up that would be awesome.
Thanks in advance
aviking said:
Did a search for spareparts and couldnt find a link to a download. Anybody have a link they could throw up that would be awesome.
Thanks in advance
Click to expand...
Click to collapse
It's something that's built into the build, for msi's eclair he's got some extra things built into it. But it's not something you can just download
mrono said:
It's something that's built into the build, for msi's eclair he's got some extra things built into it. But it's not something you can just download
Click to expand...
Click to collapse
i have the apps2sd.apk but it doesnt work properly. like you said i think it needs to be built into a build somehow
mrono said:
It's something that's built into the build, for msi's eclair he's got some extra things built into it. But it's not something you can just download
Click to expand...
Click to collapse
Thanks for the quick reply.
This is starting to be not worth it and I am thinking I am glad that I was able to try android on an older phone because I dont think I will be getting an android phone when I upgrade in 6 months. Getting it so I can load apps to the sd card is WAAAAAAY to much of a pain I have tried a couple of tutorials and still cant get it to work.
aviking said:
Thanks for the quick reply.
This is starting to be not worth it and I am thinking I am glad that I was able to try android on an older phone because I dont think I will be getting an android phone when I upgrade in 6 months. Getting it so I can load apps to the sd card is WAAAAAAY to much of a pain I have tried a couple of tutorials and still cant get it to work.
Click to expand...
Click to collapse
All you need to do is create a ext2 partition on your card and install system to nand and data to ext 2 partition. You can create as big of a partition as you want.
incubus26jc said:
All you need to do is create a ext2 partition on your card and install system to nand and data to ext 2 partition. You can create as big of a partition as you want.
Click to expand...
Click to collapse
Thanks for the super fast repsonse
I used gparted to create the partition and formated it to ext2.
The second part you are talking about install the system to nand and data to the ext2 partition. I have installed Myn’s Warm Donut - [RLS 4 - 03/16/2010] nand version and thats where I am at right now. Do I need to move the data folder to the ext2 partition that I created? If yes when I connect to my PC running windows 7 I cannot see the ext2 partition that I created with gparted.
aviking said:
Thanks for the super fast repsonse
I used gparted to create the partition and formated it to ext2.
The second part you are talking about install the system to nand and data to the ext2 partition. I have installed Myn’s Warm Donut - [RLS 4 - 03/16/2010] nand version and thats where I am at right now. Do I need to move the data folder to the ext2 partition that I created? If yes when I connect to my PC running windows 7 I cannot see the ext2 partition that I created with gparted.
Click to expand...
Click to collapse
i think you will have to reinstall system and wipe data. Change the location of the data when your going to reinstall. sorry
aviking said:
Thanks for the super fast repsonse
I used gparted to create the partition and formated it to ext2.
The second part you are talking about install the system to nand and data to the ext2 partition. I have installed Myn’s Warm Donut - [RLS 4 - 03/16/2010] nand version and thats where I am at right now. Do I need to move the data folder to the ext2 partition that I created? If yes when I connect to my PC running windows 7 I cannot see the ext2 partition that I created with gparted.
Click to expand...
Click to collapse
use the norootfs installer and set your data to NAND, hit data backup, then set your data to ext2 and hit data restore.
Windows can't read ext2 on it's own
mrono said:
use the norootfs installer and set your data to NAND, hit data backup, then set your data to ext2 and hit data restore.
Windows can't read ext2 on it's own
Click to expand...
Click to collapse
there you go much better answer then mine. Thanks man
would using ext2 partions make the build run smoother?
what are the benifits over NAND?
are you sure you need to have your data on the sd card? I was running apps2sd with mssmison's v7 eclair, and both my data and system were on nand, only the apps2sd was using the ext2 partition. i don't think it cares where your data.img is, just as long as you have an available ext2 partition; correct me if I'm wrong.
tatnai said:
are you sure you need to have your data on the sd card? I was running apps2sd with mssmison's v7 eclair, and both my data and system were on nand, only the apps2sd was using the ext2 partition. i don't think it cares where your data.img is, just as long as you have an available ext2 partition; correct me if I'm wrong.
Click to expand...
Click to collapse
yes that is correct. This is if your not using apps2sd
mrono said:
use the norootfs installer and set your data to NAND, hit data backup, then set your data to ext2 and hit data restore.
Windows can't read ext2 on it's own
Click to expand...
Click to collapse
Ok making progress with your suggestion after 2 days of reading and failure -- lol.
I am now able to install apps to the sd card. However when I was trying all kinds of things to get this to work I made my 8GB sd card partitioned 6.5gb fat 32 and then made two ext2 partitions evenly split.
So do I need two ext partitions?
And as soon as I made the change and was able to install to the sd card I can no longer sync with my PC. Its not a huge deal because I took out the micro sd and placed it into an sd reader and my PC could still read it. So I am guessing that its something that I changed that is causing the phone not to sync with my PC.
Any thoughts

Categories

Resources