ext2?, ext3?, swap? - Nexus One Q&A, Help & Troubleshooting

ive got an N1 running CM-RC3 and the 5.08 radio
only things configured are facebook, gmail and hotmail
ive got an 8GB class 6 card...
as always, backup the card to my computer so i dont lose anything...
i want to learn more about the ext partitions and swap partitions
correct me at any time if im off base
from what ive read i can create the swap and ext from recovery and that when i creat the ext2 i should convert it to ext3 for even quicker acess?
and that when i enable the ability for moving apps from the phone to the sdcard, the phone will magically know to put them in the ext space?
can the ext be made bigger if needed?
i know before i wiped my phone and installed CM-RC3, i was using modaco r21, and i thought i had all apps moved to the SD-card but only had 24mb free on the phone...
and the swap could be used like more cache for the phone...
how much should i add? is it even needed?
and what ever i dont use for the ext and swap to make fat-32 for my access and files...

now im reading more and it looks like the ext partitions are actually pre-FROYO, and im thinking i dont need to worry about them?
what about the swap?

Well, CM6 does not support App2Ext out-of-box. You need to use a script like Darktremor App2SD to get this working, though you might have to modify the CM6 kernel to get this working fine. AFAIK, CM6.1 will support App2Ext alongside the Froyo App2FAT.
FYI, there is no magic in App2Ext... it simply links /data/app (where apps are installed) to a folder in the ext partition on your SD card.
Do you have a lot of widget/live wallpaper apps? If not, the FroYo App2FAT should do fine for you now. CM6 Setting has a feature to allow you to move any app to 2 FroYo Apps2FAT partition.
As far as swap is concerned, I doubt it would be useful for the N1, considering the relatively decent RAM (it's good enough for everything for now). Swap was very useful for the older phones like the G1 which has very little RAM. I doubt you'd notice any difference if you added a swap partition.

Related

Jesus freak 1.5 apps to sd help?

i just installed jesus freak 1.5. i also purchased a 16gb micro sdhc card. I would like to know how to get apps to sd running correctly. I have followed another method and messed up the sd card. so i purchased a brand new one and before i even take it out of the package, i would like to talk to someone that has had sucesssful experience.
Thanx in Advance
A2SD in a Nutshell
the essence of apps2sd is:
1) creating a vfat/fat32 partition for storing user data
2) creating a second partition, ext2 to hold your apps and caches
3) creating directories within the ext2 partition on the SD to house your caches and apps
4) copying your apps and caches to the SD within the appropriate directories on the ext2 partition
5) rebooting within recovery console and deleting the original app and cache directories, AND
6) symbolically linking the ext2 apps/cache folders on the SD to the appropriate system partition folder names
7) rebooting to android and testing apps to determine which need to be reinstalled or reconfigured
your ext2 partition need not be very large relative to the volume of the SD; half a gig is normally adequate
pre-requisites:
you will need regular access to an OS that supports the ext2 filesystem, like linux. this is important because if your ext2 partition ever becomes damaged, the linux system has the tools to fix the ext2 filesystem errors.
you will need to know the commands for creating partitions on your SD
you should know how to use ADB to connect to your G1's shell, though this is optional
you need to know how to (re)boot to the recovery console and use its shell
you need to be familiar with the commands required to copy directories, create and delete directories, and create symbolic links
There are other Threads that have other programs and tutorials, but I used this one the other day on a JF 1.5 and it worked well.
http://forum.xda-developers.com/showthread.php?t=512743
Only issue I had was I had to move JF Updater back to Phone from SD , but that could have been a glitch when the phone checked for an update. The two apps used AppstoSD2 and a2sd pretty much do everything for you , very minimal command line required on your part.
Only thing to make it better would be an interface to either move the apps back to phone or integrate it so it would ask you when you install an app where to put it. But I am very happy with it. 16GB might be over kill , I have a 8 GB but they say not to go over 1.5 GB with the Ext2 partition, so while you will have 6.5 ( relative ) GB of space for Movies,Images, MP3's, Uninstalled apps, you are really limited to the 1.5GB for apps , well plus internal phone memory I guess. But for phone apps that's probably way more than enough.
question: how do you partition a 16gb sdcard? all the numbers and all that. ive done an 8 gb sd card and that was easy cause i was working with mb's. now with gb im lost. i got to parted and i typed up print and got 16.1gb if you could help me with the numbers for fat32,ext2/3,linux-swap. i would greatly appreciate it...
Personally, I would reccoment switching to a Cyanogen ROM. It's based off the same source as JF, but one of the features it has is automatic Apps2SD. This means you but have to push files here and there, whuch believe me can be a pain. It does still require an ext partition which you would have to format your self, but after that it will work without and modifications.
Do no more then 512 MB for your ext2(3,4) partition
Follow this guide for the card partitioning. Flash CM's rom and it will do apps2sd for you automatically.
Your other card is most likely not all lost and could be salvaged still, I would look into it if I was you, 16gb cards are not cheap.
And for the last time: it is Jeusus FREKE not Jesus Freak, Have some respect for the one who layed the foundation for us, at least enough to spell his name correctly.
AdrianK said:
Personally, I would reccoment switching to a Cyanogen ROM. It's based off the same source as JF, but one of the features it has is automatic Apps2SD. This means you but have to push files here and there, whuch believe me can be a pain. It does still require an ext partition which you would have to format your self, but after that it will work without and modifications.
Click to expand...
Click to collapse
I second that, and also jf won't be doing ROM any more :[
http://jf.andblogs.net/

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

apps2sd newbie help?

just got my new class 6 card and want to set up apps2sd. im running fresh rom 2.1.2. as i understand apps2sd in built in to it. I will be doing a full wipe and reinstall of the rom. and wanted to set up apps2sd along with it since im currently starting to run low on memory. I was also wondering what the different options in RA are for and the difference between them "ext2 to ext3 and ext3 to ext4?" also which one do i use and do i need to use some space for a swap file?
thanks,

[Q] HELP TY

CM7 can make you install apps on the sd card, how does it differ from app2sd or app2ext? i have been trying to decide if i should partition my new sd card or its not necessary. There must be an advantage to have app2ext right?
Thank you.
CM7 basically allows you to move all applications using Froyo's app2sd mode. Even ones that have disabled it (like live wallpapers and widgets as those won't work when installed that way).
app2sdext works differently as it will install apps directly to an ext partition on your sdcard (that you manually have to set up). This functionality is NOT build into CyanogenMod, but is easily added with a number of different apps/scripts. This will give you a lot more free space on your phone, and all apps can be installed there regardless of whether they have widgets or have services running. Most app2sdext options will also give you the option of moving the dalvik cache to the sdcard which will save you a substantial amount of space on your internal memory.
Basically, if you want a lot of memory intensive apps, your only decent option with a Nexus One is an app2sdext solution. (I have it with a 1GB partition, and I will soon either need to resize it or delete apps... adding app2sdext was the second best thing I ever did to my phone behind installing CyanogenMod on it.)
bassmadrigal said:
CM7 basically allows you to move all applications using Froyo's app2sd mode. Even ones that have disabled it (like live wallpapers and widgets as those won't work when installed that way).
app2sdext works differently as it will install apps directly to an ext partition on your sdcard (that you manually have to set up). This functionality is NOT build into CyanogenMod, but is easily added with a number of different apps/scripts. This will give you a lot more free space on your phone, and all apps can be installed there regardless of whether they have widgets or have services running. Most app2sdext options will also give you the option of moving the dalvik cache to the sdcard which will save you a substantial amount of space on your internal memory.
Basically, if you want a lot of memory intensive apps, your only decent option with a Nexus One is an app2sdext solution. (I have it with a 1GB partition, and I will soon either need to resize it or delete apps... adding app2sdext was the second best thing I ever did to my phone behind installing CyanogenMod on it.)
Click to expand...
Click to collapse
why didnt i think of that? thank you for your reply... now i should decide whether to do it now or wait till i have reached maybe about a hundred apps. by the way does it have any effect on the speed of the phone if you do that?
I am on cm7 and decided to put cache apps on sd card using ta utility is there any other new apps like that? ta
Can you do this with rooted stock?
lolobabes said:
why didnt i think of that? thank you for your reply... now i should decide whether to do it now or wait till i have reached maybe about a hundred apps. by the way does it have any effect on the speed of the phone if you do that?
I am on cm7 and decided to put cache apps on sd card using ta utility is there any other new apps like that? ta
Click to expand...
Click to collapse
I have a class 4 32GB card, and I didn't notice any appreciable difference in speed. I have moved my apps and dalvik cache to the sdcard using DarkTremor's a2sd. I currently have 260 apps installed on my phone, and that is pushing the internal phone space and the 1GB partition I set up for ext. I am about to bug danger-rat for his instructions on how he resized his internal partitions to give the data residing on the phone more space (I will basically shrink the cache partition and I am looking at resizing my ext partition to 1.5GB or 2GB.
I couldn't live without this anymore. I don't know how I went so long without it. It is so nice to just browse the online market and click install on countless apps without worrying about your space.
If you want to try and move the app data (resides in /data/data) to the sdcard, I have heard that it is recommended to have a class 10 card to keep up with speed requirements. I am not sure how many apps support that.
brettbellaire said:
Can you do this with rooted stock?
Click to expand...
Click to collapse
I believe you can. You would have to have a custom recovery. The main thing I am not sure is if it will mount the ext partition. If you have a custom recovery, do a nandroid backup (just in case it doesn't work), flash the zip for DarkTremor, and reboot the phone (the first boot will take longer).
brettbellaire said:
Can you do this with rooted stock?
Click to expand...
Click to collapse
yes you can.
bassmadrigal said:
I have a class 4 32GB card, and I didn't notice any appreciable difference in speed. I have moved my apps and dalvik cache to the sdcard using DarkTremor's a2sd. I currently have 260 apps installed on my phone, and that is pushing the internal phone space and the 1GB partition I set up for ext. I am about to bug danger-rat for his instructions on how he resized his internal partitions to give the data residing on the phone more space (I will basically shrink the cache partition and I am looking at resizing my ext partition to 1.5GB or 2GB.
I couldn't live without this anymore. I don't know how I went so long without it. It is so nice to just browse the online market and click install on countless apps without worrying about your space.
If you want to try and move the app data (resides in /data/data) to the sdcard, I have heard that it is recommended to have a class 10 card to keep up with speed requirements. I am not sure how many apps support that.
I believe you can. You would have to have a custom recovery. The main thing I am not sure is if it will mount the ext partition. If you have a custom recovery, do a nandroid backup (just in case it doesn't work), flash the zip for DarkTremor, and reboot the phone (the first boot will take longer).
Click to expand...
Click to collapse
thanks for the reply i think i read on darktremors post class 4 will do for the data2sd. I have class 4 16GB sd card would 1GB good for the ext? ty
It really depends on how much you think you will be installing. I did a 1GB partition on mine, but now that I install most of the Amazon free daily apps, that space is dwindling quickly. I have programs that will resize the partition for me, but most will have to wipe the card and partition it manually. I do have the install location set to automatic, so it allows developers to specify whether they want it in the "internal" (really it is on the sdext partition, but to the phone it is internal) or external using the froyo method. The Angry Bird apps all default to install on the sdcard, so my installed app base is even larger than 1GB.
bassmadrigal said:
... adding app2sdext was the second best thing I ever did to my phone behind installing CyanogenMod on it.)
Click to expand...
Click to collapse
I second this
Sent from my Nexus One using XDA App
is it true that cwm sets the partition to ext3 by default? unlike in ra recovery where you still need to convert it? ta
I have heard that it creates it in ext3, but right now, DTa2sd is showing that it is a ext2 partition. I can't figure out how to find out for sure while the card is in the phone. Either way, it is getting mounted as an ext2 partition.
temasek said:
I thought CWM will create ext3 by default? Your steps are ok, np.
Anyway when u read the ext partition type in android, most likely u will see ext2 if u are using official DT script cuz of the auto syntax it uses.
Click to expand...
Click to collapse
then it maybe so, this was posted on the darktremor thread
http://forum.xda-developers.com/showthread.php?p=14134665#post14134665
Well, whether or not it is formatted as an ext3 partition, Android is still mounting mine as an ext2 partition.
Code:
mount | grep ext
NOTE: the "|" is called a pipe. On the keyboard it is the shift option on the backslash key "\". I don't know exactly where it is on the stock keyboard, but on swype it is located under the "D" key when the keyboard has the shift key pressed and you access it by longpressing.
To get your sdcard to ext3, you just need to turn on journaling. You can do this through adb while in the recovery (because you need the partition unmounted to do this).
Code:
adb reboot recovery
adb shell
mount system
e2fsk /dev/block/mmcblk0p2
tune2fs -j /dev/block/mmcblk0p2
reboot
Supposedly Android should auto-mount this as ext3 on boot (which you can check with the first command). At that point, I don't think it will matter what a2sd shows. As the writing of the journal (the big thing with ext3, since it helps minimize write errors on a bad shutdown) is done at the OS level, not the a2sd level.

should be easy to answer..

do i need an a2sd mod for cyanogenmod roms or does the built-in one by cyanogenmod do the same thing?
why would one use a mod like a2sd or whatever rather than using the CM one?
Cyanogen has a built in a2sd but it is not a2ext which moves apps to the ext partition on your sd card which is a much simpler (once it's set up) and IMHO better way to do it because it tricks the phone into thinking that the ext partition is the internal memory so it installs the apps on it.
okay. so cyanogens installs them on the main partition?
if its on the main partition then ill get a2ext.. id rather have it on the ext partition
thanks
The two big options out there are DarkTremor's a2sd and S2E. I have used both extensively and prefer S2E (found on the market).

Categories

Resources