yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] paesan:
I just formatted my SD card and set it up for ext 3 partition but when I run the check command it says my partition is mounted as ext2. Shouldn't it report it as mounted as ext3.
[Nexus One Android Development] sl8125:
Ditto. Me too. I guess it reads it like that.

One question, how does dalvik jit work on the app? I tried to apply it but it messed my phone up. Is it enabled as default or do I have to enable it to work.
[Nexus One Android Development] shmigao:
I upgraded ext to ext4 and it also says mounted as ext2...

Same question...
[Nexus One Android Development] tkirton:
Okay...what's not working? The more details you can supply to me, the quicker I can find a solution (or an explanation).

If it isn't loading at boot, my question would be: is the rom build with some form of Apps2SD support (doesn't have to be Darktremor)?
[Nexus One Android Development] tkirton:
If you're runing Froyo, it has JIT already built as part of the Android OS. For all others, JIT is a peculiar piece of code. It sometimes work. If you are running SenseUI, my understanding is that JIT won't work without some tweaking.

Which rom are you using?
[Nexus One Android Development] tkirton:
It will if the ROM supports EXT3. If the rom doesn't support EXT3, the partition will work as an EXT2 partition (EXT3 is EXT2 with journaling).

EXT4 is a different beast. If the extents option is not used, then an EXT4 partition is an slightly optimized EXT3 partition and would register as EXT2 if the rom didn't support it. However, if extents is used, EXT4 will simply not load (extents not supported in EXT2 nor EXT3).

The update I'm working on will apply a new algorithm to determine which partition type is running (in the event that the code was flawed, which is possible).

I'm working on the code as fast as I can, but I have some personal events that are occurring this week that limits the time I can work on it. I will do everything I can to try to get it out by the end of Sunday.
[Nexus One Android Development] sl8125:
it works fine. i think. I now have about 140 mb free internal storage. That is about right?

However I did try instilling dalvik jit and phone would not boot. It will get stuck on nexus 1 logo.

Like other said when checking disk storage it shows ext 2 instead of ext 4. Btw running in cm6 final
[Nexus One Android Development] sl8125:
Does cm6 support ext3 or ext4?
[Nexus One Android Development] paesan:
I am using Evil's Rom 1.18 and currently have 148MB storage remaining, so it must be working properly. I wasn't sure if I might have partitioned my SD card incorrectly but your explaination cleared this up. Thanks for the great program.
[Nexus One Android Development] :
Thanks guys on the ext3 question.

Sounds like we don't know 100%. But, it is working and Ihave 132mb free. Will leave it alone.

Ken
[Nexus One Android Development] kpjimmy:
After days of trying to get this to work I finally got it! LOL Thanks for all the valuable info here on the boards as well as this thread!

After having problems with my SD card not mounting after trying to partition my 4gb sd card. Yeah I know I know, I should be using a class 4 or better but this is what I got! :p My issue for a day was that the SD card would not mount for the life of me. I hit reformat sd card I don't know how many times, but when I got home, after the baby was asleep, I installed sdk tools to get adb shell up and running to really hunker down and troubleshoot what I did. After reading up that I needed to just simply hit reformat SD card a few times and then try to hit mount and low and behold it worked. After that mini crisis was over, I headed over to figure out how to partition my SD card.

Keep in mind, I had previously had CM6 stable installed using ROM manager (great app btw) and now have Evil's ROM installed. Being that I have a lot of apps that will not automagically direct to the SD card, of course my phone was giving me the "low storage" warning. I uninstalled many apps to compensate.

On reading DT's instructions on how to partition the card before using this script, I did NOT have the command in my clockwork recovery to "partition SD card". I think it's because ROM manager and CM6 had the A2SD built in. So today, I rethought the process and thought to myself, why not use the ROM manager command to partition? What do I have to lose? I already have my backup here so I figured, let me go for it.

*DISLCAIMER* Doing any of this I HIGHLY recommend backing up your SD Card and doing a nandroid backup/rom manager backup.

Now opening up ROM manager, I chose the 256mb EXT and then the default values of the following screens. It then rebooted into recovery and partitioned the SD card. (Finally!) After the phone rebooted, I retrieved my backup and put everything back onto my SD card. After that, opened up ADB Shell and BAM the A2SD worked! I have space on my phone again! LOL

I just wanted to get this off my chest and wanted to thank everyone who have posted great informational posts here.

Cheers and have a great weekend!:D
[Nexus One Android Development] sl8125:
Question for you guys, in manage application, does your apps show to be on the sd card or phone memory? I thought the a2sd suppose to move all apps to the sd card? Little strange.
[Nexus One Android Development] :
Mine are greyed out, but on the card. I moved them there thru script lines, they didn't go there automatically.
[Nexus One Android Development] sl8125:
I still have thee option to move to sd card. I thought it auto move all apps. So I have to move it. Does this free up more internal space.

Edit: how did you move the apps via script?
[Nexus One Android Development] :
This is what I did right after flashing new rom.

from terminal:

su

a2sd check

a2sd reinstall

your phone should auto reboot.

enter terminal again:

su

a2sd check

a2sd zipalign

a2sd cachesd
[Nexus One Android Development] Curt911:
Need Help

Been having a hard time with Froyo. Can't get apps2SD, A2SD or Apps2ext to work on my nexus. I have been trying since a little after froyo was released. I keep getting Computing... under manage applications. When I try to install something I end up with the market under downloads. I even get problems when I try to use the froyo version of apps2sd. I always end up going back to CM 5.81. I tried all I could find on here and on google search. I am stumped. Been using CM mods for a while and they worked until CM6. Any help will be greatly appreciated. Thanks

Curt
[Nexus One Android Development] guys234:
ZipAlign???

Hi there,

tried to find some explanation about what is ZipAlign,

but could not find any...

Can someone please explain what exactly is ZipAlign?

does it improve performance?

and if someone had any problems with that?

Thanks a lot!

Guy.
[Nexus One Android Development] wraku:
First, thanks for the very helpfull app, gives me back lots of space on my N1

Not sure understanding this: :confused::confused::confused:

a2sd cachesd (move dalvik to sd card)

a2sd cachesdreset (move dalvik to sd card and clears contents of dalvik-cache)

a2sd cachepart (move dalvik to cache partition)

a2sd cachepartreset (move dalvik to cache partition and clears contents of dalvik-cache)

What is exactly the difference between sd card and cache partition. Is the cache partition the ext2 ????

Thanks a lot :rolleyes:
[Nexus One Android Development] Talderon:
(This is what was explained to me, so please correct me if I am wrong)

/cache is the partition on the file system on the phone where OTA (Over The Air) updates are staged for installation.

With custom ROM's and recoveries, this space is not used, so some move Dalvik-Cache there to reclaim the space. It's about 90MB in size.

I tried this, but I found that after extended use of my phone, it became unstable because this filled up.

I would suggest Dalvik-Cache to SD, personally.

Hope this helps. :)

Oh yeah, I installed this on the Stock ROM from Geo411m... Works like a champ! :D

Thanks!
[Nexus One Android Development] mjsztainbok:
Is it possible to move /data/data to the ext partition on the SD card? What would be the implications of doing this?
[Nexus One Android Development] :
"a2sd cachesd - repositions the dalvik-cache to run from the SD card. It will physically move the dalvik-cache files to the SD card.

a2sd cachesdreset - repositions the davlik-cache to run from the SD card. The difference between this command and a2sd cachesd is that this command will not physically move the dalvik-cache files to the SD card, so the dalvik-cache will be forced to rebuild upon reboot.

a2sd cachepart - repositions the dalvik-cache to run from the cache partition (/dev/block/mtdblock4). This is great if you want to move the dalvik-cache from the internal storage, but don't want to setup an EXT partition on your SD card or run apps from the SD card. This command will physically move the dalvik-cache files to the cache partition.

a2sd cachepartreset - does the same as a2sd cachepart except that it does not move the physical dalvik-cache files to the cache partition, forcing dalvik-cache to rebuild upon reboot."

Quoted from stea1thmode xda eVil forum.
[Nexus One Android Development] pc2828:
I have swap enabled in my SD card and I've read that swap is not recommended/needed. I noticed there's a command "a2sd noswap" --- could I run this command in Terminal to disable swap without needing to redo/reformat my sd card? If so, how would I check to see if this is working? Thank you.
[Nexus One Android Development] tcortinag:
Working great on my Dext so far.
[Nexus One Android Development] :
Yes you can:

su

a2sd noswap

su

/system/bin/a2sd check

It will show you noswap enabled somewhwere in all the small print. I did it.

Ken
[Nexus One Android Development] j_r0dd:
just curious if anybody has had any issues using the command a2sd cachesd? It fails on the cliq at least. It works fine if i do a2sd cachesdreset
[Nexus One Android Development] Dominikrod:
I've come across with the same issue. Also, every time I try setting up jumboheap, after moving dalvik-cache to sd, I get stock at Moto white screen just after rebooting. This didn't happen with RC3.

Any idea why this might be happening?
[Nexus One Android Development] tkirton:
CM6 supports EXT3. I don't think it supports EXT4 (could be wrong on that).
[Nexus One Android Development] tkirton:
In Froyo, any app that shows it is on the SD card is using Froyo A2SD (which stores the program in a secure area on the FAT32 portion of your SD card). If you are using any Apps2SD (i.e. Darktremor), the programs will go to the EXT partition on your SD card, but will still show up as installed in phone memory.

This is due to the use of a symbolic link on /data/app and /data/app-private. The Linux OS does a stealth redirect...Android doesn't know this is going on.
[Nexus One Android Development] tkirton:
Apps2SD (i.e. Darktremor) requires an EXT partition on your SD card, otherwise it won't work.

Froyo A2SD should work as it uses the FAT32 partition on your SD card. I would say save all your data on your SD card and reformat it...it could be a problem with the mount.
[Nexus One Android Development] tkirton:
ZipAlign is a program that optimizes your APK files by rearranging the program itself. One of the key advantages is that it makes sure that no program crosses memory boundaries (a bit hard to explain, but if a program fits in a fixed area of memory, then you don't have to use a bunch of pointers to keep track of it).

It does give you an increase in speed, but some programs do not like to be zipaligned (i.e. Market). Be careful when using this and make sure you have a backup before attempting.
[Nexus One Android Development] tkirton:
So, when you say it fails, it doesn't copy the dalvik-cache files to the SD card?

If that's the case, 2.7.5.1 will have a rebuilt code installed that should fix that issue. I just completed the final touches on the new code and have sent it to my phone for testing.
[Nexus One Android Development] tkirton:
Heap commands have an error in them (I changed the values to match those with CyanogenMod...unfortunately, CyanogenMod wasn't reporting the correct values).

This is reverted back in 2.7.5.1 ... I'm currently testing it now.
[Nexus One Android Development] tkirton:
With the Darktremor Apps2SD, you can do that and the program will not reset it back.

However, the implecations of doing that is:

1. If your SD card isn't a class 6 or higher, performance will degrade...more so than moving dalvik-cache to the SD card.

2. If your SD card does not mount, there is a real possibility that your phone will not boot until the /data/data is recreated on the internal storage. And, if that happens, you will lose all your program settings.
[Nexus One Android Development] j_r0dd:
yeah it fails at copying. says it can't stat blahblahdex
[Nexus One Android Development] warpaper:
working fine on KOR1.0 final

Thanks. :)
[Nexus One Android Development] sl8125:
Lp

Which is faster? Ruining on the class 6 sd card or running on interval memory for your dalvik cache.
[Nexus One Android Development] Chahk:
It depends.

Generally speaking, internal memory is always faster than a MicroSD card, even class 6. However, as your caches grow (when you install new apps), your phone's internal storage will eventually fill up and take that space away from available memory. As a result the phone will slow down, no matter how fast internal memory is.

So if you're running lots of apps (over 100) it pays to move dalvik-cache to SD Card, even if it's class 4. The slowdowns you will experience from a slower card are nothing compared to a phone with no internal space left for RAM. Even a class 2 card will help. I do recommend a larger Ext partition in this case: 1 - 1.5 GB should be more than enough for 300+ apps.

If you're not running more than 30-40 apps, then keeping dalvik-cache on internal memory won't have any noticeable impact on the phone's performance. But in this case you're not gaining much by using Apps-to-ext solution in the first place. I've been running CM6 with 49 apps with only Froyo's Apps2SD solution (moved about 20 apps) and it was both stable and responsive. Now that I'm getting towards 70 apps I flashed the latest DarkTremor version and moved dalvik-cache to SD (class 6). Keeps my N1 snappy.
[Nexus One Android Development] tkirton:
New code should fix that problem...just as soon as I run through the tests (ran into a problem this morning...program wiped out my settings. Definitely can't release that.)
[Nexus One Android Development] mjsztainbok:
Is there a command to do this with Darktremor or do I need to it manually (i.e. create a new directory on the SD ext partition, delete the old directory and create a symbolic link to the SD ext partition)?
[Nexus One Android Development] :
Restore Help,

After a restore do I reinstall DT only if I wiped sd-ext or do it no matter what.

Then I have to rerun the 4 lines of script posted in OP irregardless of whether I had to reinstall DT, right?

Then I can run batch of TB "missing apps and data"

Then load my theme and wallpaper.

Then I will do an Advanced Restore of data, cache, sd-ext.

These steps, I believe will get me all my homescreens back also.

Trying to get this down like I had restores down with CM6 and no sd-ext.

Any advice greatly appreciated.

PS. Should we move Market back to phone and if so, what is exact procedure ie "exact" syntax to do it thru Term Emul. Do we do Market and Market Updater?

Ken
[Nexus One Android Development] myakove:
I was trying the new MIUI rom (I think it use A2SD RC3) and i had 120MB free.

back to CM rom and now I have 40MB free.

I have about 150 apps installed and everything configure to run from SD.

way there is different between the roms?
[Nexus One Android Development] tkirton:
No, there's no command for this. One of the unreleased versions did have a command to do this, but the move acted as a factory reset for the phone.

That doesn't mean a future version won't have it.
[Nexus One Android Development] tkirton:
With CM6, there's a patch in there that forces the dalvik-cache to go back to /data/dalvik-cache rather than /cache/dalvik-cache. So, your dalvik-cache may have reset back to internal memory.

Type a2sd cachesd or a2sd cachepart to move the dalvik-cache to the SD card or the cache partition, respectively.
[Nexus One Android Development] tkirton:
You flash DT if your restore image didn't already have it installed or has an older version of DT. Wiping /sd-ext doesn't affect Darktremor.
[Nexus One Android Development] :
Thanks tkirton,

I guess I worded that wrong. I meant after wiping and installing a new rom like going from eVil's 1.18 to 1.20, Sorry.

But, based on your comment, I would just run the 4 script lines to move apps and dalvik to sd-ext in the order I posted and not worry bout reinstalling DT since it is on the sd-ext.

Ken
[Nexus One Android Development] tkirton:
If Evil 1.20 doesn't already have Darktremor, you'll have to flash a new copy over the rom.

As for the four scripts, you shouldn't have to do anything on those, as Darktremor should automatically realign everything.
[Nexus One Android Development] tkirton:
New version of Darktremor Apps2SD (2.7.5.1) now available.
[Nexus One Android Development] :
Thanks again,

Do I just flash the new DT over the old and everything else stays the same, or run the scripts again? I am talking about the move dalvik to cache scripts, if I reflash DT I assume I have to run those. Not the the four scripts that move apps and zipalign, are you saying DT does that automatically?
[Nexus One Android Development] myakove:
dalvik-cache already on SD:

lrwxrwxrwx 1 root root 11 Sep 24 00:49 app -> /sd-ext/app

lrwxrwxrwx 1 root root 19 Sep 24 00:49 app-private -> /sd-ext/app-private

lrwxrwxrwx 1 root root 20 Sep 24 00:49 dalvik-cache -> /sd-ext/dalvik-cache
[Nexus One Android Development] tkirton:
Yes..that's exactly what I'm saying.

When you run a2sd cachepart, it creates a file called /data/.dtpartition. If that file still exists after the flash (which it does unless you perform a wipe), Darktremor will realign dalvik-cache to run from cache partition.

If you wipe the phone, you'll have to run your scripts again. If you didn't, everything will realign on boot.
[Nexus One Android Development] :
Thanks,

Flashing now. Every thing went great. Just have to reflash 2.7.5.1 as 1.20 had the old version.
[Nexus One Android Development] Swissola:
Wifi issue (again) :(

Hi all

I'm running Pinky Desire 1.8 (HTC Desire) and keep getting the low space issue. On doing some research I found that Darktremor was just what I'm looking for. Installed the zip, rebooted and... no wifi.

Looked at the settings menu and wifi simply says 'Error' next to it.

On scanning through the thread I see I'm not the first person to have this issue (back in August?), is there a workaround for it or am I going to have to request pinkolin to make his ROM compatible?
[Nexus One Android Development] quertiy:
So, i've installed darktremor, with no other options than the default (apps and apps private move to sd). So i didn't touch dalvik or any other data. And, I ran out of space. considering that i have a 4gb slow sdcard, so i can't move dalvik, what are my options?

This is how my data directory looks. Some ****ty thing if you ask me. Nowadays, even darktremor is not enough.

hXXp://i55.tinypic.com/5lw788.png

So, please, what are my options? besides buying a new sdcard :)

Thanks

Edit: Can't i move dalvik to system, or something like that? my system partition has 135 MB free. To cache i can't move it cause it's only 50 MB. By the way, s-off permits the resizing of the partitions?
[Nexus One Android Development] tkirton:
It could be the wifi is a module and may be just a little bit incompatible with Darktremor. I'll download the rom and check it out.

If you could supply me the link, it will make the process go quicker.

Thanks.
[Nexus One Android Development] tkirton:
Even if you have a slow 4gb card, you should still be able to move dalvik-cache to the SD card.

Here's what I would do. Repartition your SD card with the following values:

1GB - EXT partition

3GB - FAT32 partition

Note: Make sure you backup the contents of FAT32 before starting.

Once you repartition, restore the contents of FAT32.

Reboot and allow the /data/app and /data/app-private to move to the EXT partition.

Then, execute under an ADB shell: a2sd cachesd. This will move dalvik-cache to SD.

Understand that technically you aren't suppose to do this when you have a Class 2 SD card...however, it is better for the phone to run slower than to run out of internal space.

You may also get a program from the market called CacheMate. This will help you clear out other caches (i.e. market). This will help free up some more space.
[Nexus One Android Development] quertiy:
pffffffffffffffffffffffff DONE.

now i can install apps untill i die. and the thing is that the device isn't any slower :)) not as i can tell. the browser runs as fast as before, dolphin browser hd the same, copilot and igo the same, my games the same, titanium backup the same, widgets load with the same speed.

i don't understand why everyone says that the device is so much slower when moving dc.

thanks for the awesome app.
[Nexus One Android Development] Curt911:
I do have an ext partition on my SD card and when I run check it says its ok. I got it to work a little, but after trying to install more apps I get the same problem. I get the same problem with Froyo A2SD. With froyo, when I reboot all my apps are gone and I go to manage applications and look at the SD card and all my apps are greyed out. Thanks

Curt
[Nexus One Android Development] ereuveni:
USB Mount

I'm running A2SD w/ dalvik-cache moved to SD, everything works great...

Only one question comes to mind, is it possible (while phone is working, not in recovery) to mount the SD card for file copy via USB?
[Nexus One Android Development] tcortinag:
Dalvik heap size

With the new changes in Dalvik command, what size would be recommended to have best performance?
[Nexus One Android Development] tkirton:
You can't mount the EXT partition to the USB. However, you can mount the FAT32 partition while the EXT partition is mounted. The system treats the partitions differently.

You could use the ADB push command to push files to the EXT partition.
[Nexus One Android Development] tkirton:
I've heard 24mb is an optimum size.
[Nexus One Android Development] tcortinag:
Thanks!! Will try that setting.
[Nexus One Android Development] mtw4991:
I am running the MIUI ROM and it's great. Jlevy helped me set up my a2sd as it uses the DT method and my app, app-private & dalvikcache is at /data/sd/ but there are also the 3 files at just /data? not sure about these, are they leftovers?

Also, here is an image of "a2sd check" from Terminal Emulator. It shows a ext2 partition. I could have sweared I did the ext2>>ext3 setup in recovery. Is this normal? Should I or can I go back into recovery and move ext2>>ext3 now? Would that be advisable??

Thanks for the help and guidance!:)
[Nexus One Android Development] tkirton:
/data/sd, huh? I can't remember which version that was...it lasted only one version.

Which files are just in /data? Things have changed considerably from 2.7.5 RC3 to 2.7.5.1.

As for ext2 to ext3, you should be able to convert using Recovery without any issues. At least for me, it preserved the data on the EXT partition.
[Nexus One Android Development] fabler:
how to partition SD card without loosing data?
[Nexus One Android Development] houmles:
Use gparted in linux, it's almost on all live cds.
[Nexus One Android Development] martincm:
I'm running CM mod 6 finally, and succesfully installed the newest DT a2sd, but I'm having the problem that DT won't start automatically after a reboot. I have to put in the a2sd command from the terminal every time I reboot the phone, before it will recognize my installed apps on the ext partition. Just as described to activate it.

Is there any step I missed on installing the a2sd method?? I really would like DT a2sd to start automatically whenever I boot up the Nexus, with CM6 installed.....