yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] houzuoguo:
d2sd newbie here :)

so I have 380 apps installed, now using temasek's modified version of DT, EXT4 partition, enabled write-back, is it normal for system to take more than 5 minutes to boot up? it took only about 3 minutes before.
[Nexus One Android Development] temasek:
Yes. It will take much longer now, especially for datasd enabled.

It is a compromise between speed vs storage. With datasd u chosen storage.

U may wanna also check out tweaked sqlite. Its in my mediafire sharefolder. Check my signature.
[Nexus One Android Development] houzuoguo:
thank you :)

ah... the performance is really amazing, just timed a boot, takes 10 minutes. I wonder how long it will take if it has to rebuild dalvik cache :rolleyes:

my next phone must have 2GB internal storage, i'm waiting for the next nexus...
[Nexus One Android Development] temasek:
Don't wipe dalvik-cache even if u flash a new nightly. Just wipe /cache after every flash of dt script.
[Nexus One Android Development] d1mitrov:
ok im not entirely sure what you mean by volume integrity but if you're talking about how much space i have it says i have 6gb free of 6.69 and i have a 8gb card with 752mb partition. its weird that when i put songs on it i can listen to them, but when i go to my gallery app none of the pictures would show up and it just says mount sd card...
[Nexus One Android Development] Mioze7Ae:
Check volume integrity means verify the filesystem doesn't have errors (i.e. fsck, chkdsk etc).
[Nexus One Android Development] d1mitrov:
ohh wow im such a newb...that worked...thank u and temasek!!
[Nexus One Android Development] eug89:
@temasek

I had a problem and I'm quite new to darktremor's script.... today I tryed to flash DT 2.7.5.3b4-EXT4 Only (Modified) I found on this post http://xdaforums.com/showpost.php?p=12533976&postcount=1314 on top of latest CM7 nighlty with a 1.2 GB ext4 partition on the sdcard. The phone booted fine the first time but after a few seconds it hard reboot and went in hardreboot-loop where it didn't even pass the nexus logo (unfortunately I forgot to take a logcat). I tryed to restore, reflash the rom and then the script again, I also tryed the DT 2.7.5.3b4-EXT4-B0 but the results were the same. Now, after a nandroid restore, I flashed the unmodified script linked on the first post of the thread and everything's working great, what could have happened that caused those boot-loops? And what are the improvements with the changes you made to the scripts?
[Nexus One Android Development] pinke123:
Ok, so upon restoring a backup of my phone, A2SD isn't working properly. Here are the notable items I see when I run in the terminal a2sd check:

Here are the results when I run a2sd repair in the terminal:

How do I get data2sd working? Also, what is the swap partition for, and what is zipalign (just out of curiosity)?

In case it matters, I am running MIUI 1.5.27, with Amon_RA 2.2.1 and a 1.5GB SD-EXT W/ 32MB swap.
[Nexus One Android Development] Derek0228:
Is it possible to configure the script to automatically move my Dalvik-Cache to the Sd-EXT without me having to type a2sd cache2sd? I need the script to move the D-Cache to the SD-Ext on the first boot, or the rom won't boot.
[Nexus One Android Development] mtw4991:
First of all, set swap=0 as it is not needed. If you are going to run datasd, then set sd-ext partition to ext4. zipalign is a one-time command to set zipalign to run at bootup.

In terminal, run the following commands:

a2sd check (make sure a2sd is running)

a2sd zipalign

a2sd cachesd (moves dalvik-cache to sd-ext partition and reboots)

a2sd datasd (moves app data from /data/data to sd-ext and reboots)

run fix_permissions and you should be good to go.

Just make sure you have at least 10-12mb in /system before running DT as sometimes the script won't install correctly if system memory is low. You can just delete unused apps from /system/app to make room.
[Nexus One Android Development] pinke123:
If I set it to ext4, will my apps get wiped and I'll need to restore, or will they still be there? Thanks for all the help!
[Nexus One Android Development] temasek:
Changing to ext4 filesystem will not wipe your files in your ext partition.
[Nexus One Android Development] pinke123:
Thank you temasek and mtw4991!!! That just saved me 80mb of internal storage!! Great way to start my summer vacation!
[Nexus One Android Development] tkirton:
http://xdaforums.com/showpost.php?p=7021609&postcount=5

Either type the commands in a terminal or ADB shell.
[Nexus One Android Development] ratson:
thank you, i've installed this, but now my load hangs at

I//system/xbin/run-parts( 67): Powered by _____ _______

I//system/xbin/run-parts( 67): | \ |

I//system/xbin/run-parts( 67): | | |

I//system/xbin/run-parts( 67): | | |

I//system/xbin/run-parts( 67): | | |

I//system/xbin/run-parts( 67): |____/ |

I//system/xbin/run-parts( 67): Darktremor Apps2SD

I//system/xbin/run-parts( 67): [ ] Starting ADB Daemon

and doesn't proceed
[Nexus One Android Development] tkirton:
See, this is the problem with maintaining this program across 42 roms and 10 phones...they all act differently. Not to mention that the nightly builds are all acting differently.

I removed the command. Clear your browser cache and download the RC3a command again.
[Nexus One Android Development] dyndragon:
Well, what I mean by not exist is that they will stay on the ext partition, and not be moved back to /data/app/ in phone memory. So basically, if I decide not to continue using a2sd, be sure to run the remove commands and junk before flashing to a new ROM or whatnot.

Thanks for clarifying, and for this hack. I love it!
[Nexus One Android Development] ratson:
unfortunately with the latest i didn't even get to start booting. i reverted to rc3 and use dalvik symlink to prevent double dalvik cache...
[Nexus One Android Development] tkirton:
See, this is the problem with these nightly builds...I'm getting different results with the same code.

I think I finally fixed the adb thing (same build, but I need to start adbd or mine gets caught in a boot stall). I made the start program launch a bash script that looks for a file (/data/adbfix.txt). If present, it will spawn the adbd. If not, it will simply exit the script.

This should fix the stall issue.
[Nexus One Android Development] tkirton:
I fixed the adbd issue finally. The patches are still in there.

I'm going to try to figure out what is really going on. It's bothering me that I can't even get off the HTC screen unless I have that adbd in my program. It's the only rom I have to do that with.
[Nexus One Android Development] imabengalimuslim:
I can't boot my ROM either. I was using the CM6 RC3 Version with the apps2ext installed. I was stuck a the static X forever. Then I tried the patch and the same thing happened.
[Nexus One Android Development] Stea1thmode:
Bysab, when that happens, you can boot into recovery and wipe dalvik cache then reboot.
[Nexus One Android Development] brashmadcap:
Not good

Applying the latest update bricked my phone to the point that I can't nandroid, boot, or do anything. I'll get back to you after I smoke 10 cigarettes and figure out how to fix this disaster.
[Nexus One Android Development] tkirton:
CyanogenMod issues

I'm working on adjustments to the code as we speak. I don't know if this has any relation to the issue, but the mount points were moved in RC3 from /system/sd to /data/sd. This may be causing some of the issues.

I'm in the process of testing RC3b, which does an auto-detection of the mount point. Since the CyanogenMod series of roms use /sd-ext as a typical mount point, I'm adding code to use that instead of /data/sd or /system/sd.

I'm also going back to the /system/sd mount point (if /sd-ext doesn't exists)...seems I had less troubles with that mount point.

I'll let everyone know when it is ready.
[Nexus One Android Development] djmcnz:
No, it did not "brick my phone to the point that I can't nandroid, boot, or do anything".

Reboot to recovery, wipe, reinstall your rom.
[Nexus One Android Development] imabengalimuslim:
I tried that actually a bunch of times. What I did was that I installed then wiped everything out. When I did that though, I ended up in a boot loop.

And that thing that was just posted above me, thats was pretty funny LOL.
[Nexus One Android Development] ratson:
rc3c works well with latest cm6 nightly
[Nexus One Android Development] shay79:
if i want to update the nightly rom, do i need to install the Darktremor Apps2SD again after every update ?
[Nexus One Android Development] Lamar720:
Does this work on cm rc3 8-15............ I didnt see it on the first page as a supported rom. I tiredof running out of space
[Nexus One Android Development] Stea1thmode:
It worked for me, I used the previous RC3b though.
[Nexus One Android Development] djmcnz:
It does but make sure you use RC3c... b has cache problems.
[Nexus One Android Development] tkirton:
Technically, it will (I even tested it on the 08-18 and 08-20 nightly build)...however, the nightly builds are considered beta, so you may or may not have issues with the program. Fortunately, it appears there are overwhelmingly more people able to get the program working with the nightly builds than those that can't.

The list that is in the front are roms that use Darktremor Apps2SD as part of their rom (in various versions). There are far more roms that are compatible with Darktremor. Technically, any rom that uses Apps2SD is compatible with Darktremor.
[Nexus One Android Development] Lamar720:
Im not using the nightly build I'm using the reg.one this is ok to use right?
[Nexus One Android Development] S_Dot:
Someone please point me to the temasek wipe zip in recovery please
[Nexus One Android Development] temasek:
Check my signature - mediafire sharefolder under passion subfolder.
[Nexus One Android Development] pinke123:
Ok, so after setting apps and data2sd, my phone had become really laggy, it wasn't like this when data was internal and apps were on sd. My question is, how do I move just data to internal again. Thanks in advance :)
[Nexus One Android Development] temasek:
a2sd nodata
[Nexus One Android Development] eug89:
Hi, I wanted to ask you what's the differences between the original darktremor's script and the DT 2.7.5.3b4-EXT4 or DT 2.7.5.3b4-EXT4-B0 in your mediafire folder (apart from being ext4 only obviously)? I'm asking this because I have an ext4 partition and everything works fine with the original script, but when I try one of yours modified scripts, the phone, after the first boot, enters in a hardreboot loop where it can't even pass through the nexus logo.

Last thing... when I'm using this script I'm still able to use the official app2sd method or you would recommend to keep all the apps on the ext partition? Wanted to know this since with the official a2sd method you manage to save more space with apps that have a lib file > dalvik cache file (if you're not using the data2sd option in DT script).
[Nexus One Android Development] mtw4991:
The BO file is from Temasek:

Changes Made to Script1. Change auto switch to ext4

2. Delete 05mountsd from /etc/init.d/

3. Change barrier=1 to barrier=0 only for DT-CM7-2.7.5.3b4-EXT4-B0-signed.zip <=== I'm using this

When using DT script, uncheck Allow App Moving and set install location to internal, not automatic. The "official" a2sd can't be used together with DT, it is all or nothing.

If you are having problems, make sure you have sufficient space in /system or the script may not install correctly. 10+mb should be ok.
[Nexus One Android Development] eug89:
Thanks, using darktremor's unmodified script I still have nearly have 5MB of free space on system partition, I don't think it's a space issue with temasek's scripts.

Even setting install location to internal in CMParts, some apps are still installing automatically on the sdcard, or at least they are shown as installed in the external storage in the application settings.

edit: yes, some apps are present in the androidsecure folder on the sdcard, and thay're working fine
[Nexus One Android Development] mtw4991:
if some apps are still showing on SD card with a checked box in Manage Applications, click on those with checks and move them manually to phone(internal sd-ext).
[Nexus One Android Development] istoner:
Hi, flashed apps2sd on devoid/francov17/ext4. Thanks, really needed the space! :)

My quad scores have taken a major fall though, was at 700+ before, now around 450~500. Just me?

Also, if you could please add links to posts about the scripts to the original post, it would be great. I'm hunting though 179 pages right now :o
[Nexus One Android Development] mtw4991:
To improve performance, enable writeback. In terminal emulator type:

su

tune2fs -o journal_data_writeback /dev/block/mmcblk0p2

Also, you may want to run the libsqlite script. Use search button to find in this thread.
[Nexus One Android Development] baldahin:
Hi! I'm sure this question is old, but i can't find the answer.

I'm using CM7 and Apps2SD 2.7.5.2-1 on my N1. I moved dalvik and apps to sd-ext and everything seems fine except one thing. I have error "couldn't install on usb storage or sd card" after attempt to install some apps from market. What does it mean?
[Nexus One Android Development] temasek:
Your sysinfo.txt does not help in knowing what's wrong. Perhaps a logcat when u encounter such issue is helpful.

Btw try wiping market data and try again on same app which u had issue.
[Nexus One Android Development] istoner:
Thanks, I'm having major issues with tune2fs. I have busybox 1.19 but it continues to find -o invalid. Tried it via adb after pasting tune2fs for froyo in /data/ .

Also I ran a few more quad tests and results seem much better, not that they matter tbh.
[Nexus One Android Development] striker13:
I need a bit of noob help.

If i have already partitioned my SD card, but never used this kind of app, do i still need to partition as in instructions? The reason i ask, i tried to install from zip but it just got stuck and never booted up.
[Nexus One Android Development] musashiken:
I think I found a fix for my segmentation fault errors when using a2sd. It appears the CM7 nightly roms I'm using are huge and after flashing them, I'm only left with 40kb of space in system. So I had to use Titanium backup to delete some system apps, freeing up to around 10mb of space. Then as a precaution, I full wiped like 8 times before flashing DT. Only then will a2sd commands work.

I haven't tried flashing newer CM7 builds + DT over current without wiping anything though. Will see when the next nightly is out. Gotta remember to do a nandroid + titanium backup of important data though.
[Nexus One Android Development] temasek:
Yeah, this issue of low /system storage been discussed many times. Dt script does not know if you have low storage and will not inform u. In the end is u have flashed an incomplete script. Thus dt unable to do its stuffs.

Do take note dt betas uses more /system storage than the dt stables.
[Nexus One Android Development] bimasakti85:
I'm activated datasd mode yesterday,but when I check it with a2sd check,my datasd option is'nt checked.is this normal in dt beta?

Sent from my Nexus One
[Nexus One Android Development] Kman Gymrat:
So, after updating to cm7 nightly 108 and flashing DT my apps and games that I had first didn't show up so I restored them with titanium backup and they were installed to the phone. Some work fine others give me error for doing stuff and say no sdcard present when there is. I noticed I only have 6.4 M space on system. I searched a bit here and see that if there's not enough system memory that DT will not install fully and so won't be able to do it's thing. So my question is, is this my problem? And if so can someone tell me what to do to resolve it please? Thanks.
[Nexus One Android Development] temasek:
Did u try reinstall dt?

Here is a list of dt commands for your reference.

http://www.facebook.com/note.php?note_id=158826790833326
[Nexus One Android Development] temasek:
For whatever reasons my a2sd check shows garbage so easiest way for me is check if your /data/data has been moved to /sd-ext/data/data

If yes u are good.
[Nexus One Android Development] bimasakti85:
I cant find "/sd-ext/data/data", only "/sd-ext/data", is it the same ?
[Nexus One Android Development] temasek:
Lol typo error

I meant /sd-ext/data not /sd-ext/data/data
[Nexus One Android Development] Kman Gymrat:
I deleted some system apps to free up some system memory and reflashed DT, ran the script again and same thing. Anymore ideas?
[Nexus One Android Development] temasek:
To simplify troubleshooting, I would just remove the ext partition and create a new ext partition and start over.
[Nexus One Android Development] Kman Gymrat:
Is there a way I can do that without having to format/wipe the whole card?
[Nexus One Android Development] temasek:
No need whole card, just your ext partition. Are u familiar with partition applications either in windowa or linux? If yes just remove the ext partition volume and create a new one.

If u don't wish to repartition then u have to keep trying any other methods though I would think is u might spend even more time.
[Nexus One Android Development] Kman Gymrat:
Not familiar with partitiona applications but if you can point me to a free one I can download I'll give it a shot when I go home. I have XP on my computer if you needed to know that.
[Nexus One Android Development] temasek:
I'm not familiar with free apps of that in windows. But u don't really need to use it.

Suggestion for u

1. Download SD Formatter ( http://www.sdcard.org/consumers/formatter_3/ )

2. Make a backup of your sdcard to pc.

3. Use SD Formatter to format your sdcard.

4. Boot to recovery and partition your sdcard with ext

5. Reflash your rom
[Nexus One Android Development] Kman Gymrat:
Is there a way to backup my ext partition, or is that not necessary? I backed up my sdcard his morning before I left home just drag and dropping but I got a few errors of it not being able to copy some stuff - I just skipped those errors and continued. I figure I'll lose some but not a whole lot hopefully.

Waiting for your response on backing up the ext partition. Thanks again.
[Nexus One Android Development] temasek:
If I were u I'll start fresh.

Freshly baked sdcard (fat32 partition)

Freshly cooked ext partition

Freshly fried Bacon rom

Then restore from titanium backup.
[Nexus One Android Development] Kman Gymrat:
Temasek, one more question. My computer doesn't have an SD slot so can I just hook the phone up to the computer in recovery, mount sd card and then run the formatting program?
[Nexus One Android Development] :
NOOOOOOO!!!!!!!!!!!!!!!!

I'll let T help you since he started, but you need an micro sd card reader put sd card in it and plug it into usb slot. Don't do it the way you mentioned.

T's probably a sleep until his alarm clock (son) wakes him. :)
[Nexus One Android Development] bimasakti85:
You can try formatting via amon ra recovery by creating new partition...No need to connect to PC,but ensure you already make back up of your sdcard.

Sent from my Nexus One
[Nexus One Android Development] temasek:
Yes that'll work.
[Nexus One Android Development] teh_lorax:
I'm sure I've done something stupid wrong, but I've read through the first 10 or so pages and the last 10 or so pages. At this point, when I go to manage applications I see that I only have 196MB of internal storage. Additionally, when updating an app this morning, I got an error about low storage.

Can anyone tell me whats wrong with this process?

0. Flashed Amon_RA recovery

1. Wiped (I know its not necessary, but I did)

2. Backed up SD card

3. Partitioned SD card, 1GB (converted to EXT4) and no swap

4. Flashed CM

5. Flashed gapps

6. Flashed DT
[Nexus One Android Development] meechto:
The steps you mentioned are pretty correct ;) However, it seems that DT isn't working for you; quite possibly because it did not get flashed properly. Have you run the a2sd check command to see whether the settings mentioned are proper?
[Nexus One Android Development] teh_lorax:
I forgot to mention that I have run it. I get a lot of data, but it isn't obvious to me what I'm looking for.

I've seen mentioned that a low /system partition could cause issues. Before flashing DT, I had about 11mb. I'm now down to about 6mb.
[Nexus One Android Development] meechto:
May be, if you have adb setup on your PC, you can try pasting the output of the a2sd check command here for all of us to review.

Alternatively, try running the following commands:

For moving all the private apps and system apps to the EXT partition:

a2sd reinstall

For moving the Dalvik cache to the EXT partition (frees up considerable amount of internal memory):

a2sd cachesd

Hope that helps! ;)
[Nexus One Android Development] mtw4991:
Delete from /system/app what you don't use to free up space. 10+mb should be good. Re-flash DT script, boot, in terminal type:

su

a2sd check

a2sd zipalign

a2sd reinstall

a2sd cachesd

after bootup, run fix_permissions in terminal and then reboot again. Good luck :)
[Nexus One Android Development] mackstein:
so...

I know that's a question that pops-up once in a while, but...

If I want to flash the CM RC/nightly update - do I need to flash DT again?

Thanks.
[Nexus One Android Development] musashiken:
Yes, every time you flash a newer nightly over an older nightly, you need to flash DT again.

I actually forgot about this after a long hiatus from using a2sd.
[Nexus One Android Development] eug89:
I know there's a bug with beta4 causing a low output volume of the speaker, wiping cache after flashing the script fixes it. I want to know if this also causes the microphone to stop working (not only in calls but with every app that use the microphone)? Happened to me twice and rebooting fixed the issue, never happened before using darktremor's script.
[Nexus One Android Development] mtw4991:
Nope, not part of the low volume bug. Must be something else. Try fixing uid mismatches in recovery or fix_permissions in terminal?
[Nexus One Android Development] teh_lorax:
It *appears* to be working. Under manage apps, I still see only 196MB available, but I added all the apps up and its more than what the screen is reporting. I dunno, we'll see I guess.
[Nexus One Android Development] mtw4991:
You are misunderstanding the syntax I think. We are talking about internal storage in the /system partition, not the internal storage of the phone in general. Under settings>storage, you will see internal memory is a set 196mb which is all the N1 has.

DT's a2sd script moves the apps on your phone to your sd-ext partition on your sdcard and uses a symlink (symbolic link) to the app thus tricking your phone into thinking the apps are still on the internal memory. However, the apps' data in still stored in /data/data unless you move /data/data to the sd-ext partition also using the "a2sd datasd" command in terminal, just like you did with "cachesd". Also, internal memory will still continue to decline using only

a2sd, but much more slowly.
[Nexus One Android Development] teh_lorax:
Ah ha! Yep, my apologies for the lack of understanding!
[Nexus One Android Development] robcodemax:
I flashed it and my ROM is running but How can i figure out if it is using the EXT Partition...?
[Nexus One Android Development] bimasakti85:
Check it with titanium backup...

Sent from my Nexus One
[Nexus One Android Development] temasek:
Many ways to check

1. a2sd check

2. Titanium Backup

3. Use Root Explorer check your /sd-ext

4. DT A2SD GUI app

And so on.......
[Nexus One Android Development] runjhun:
i have recnetly flash beta 4 in my p500 but sometimes it gets stuck in lg logo so need to take out battery to solve it so was planninng to flash http://www.darktremor.info/files/a2s...2-1-signed.zip

how to proceed? should i just flash over or i would need to remove old and insatll new .if yes than please guide

thanks in advance