yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Logic_:
I'm getting this weird error when activating A2SD; it says my SD card is not mounted, although I'm sure it's read just fine.

sh-3.2$ su -
sh-3.2# a2sd reinstall
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)

[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Creating /cache/dc
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
[ ] Starting Darktremor Apps2SD Version 2.7.5.2
[ ] Launching Apps2SD Start Program with reinstall
[ ] Starting Darktremor Apps2SD in reinstall mode
[X] SD Card not mounted.
Cannot reinstall applications to SD card.
sh-3.2#

I have a nexus one 2.3.4 rooted, su, zipalign, busybox,.. the works.

1GB ext3 partition, confirmed in recovery, no swap.

The A2SDGUI app is no help either, I try to move and it seems to be working for a second or 3 but then everything reverts to normal... any clues?

EDIT: Oh and as you can see, A2SD version 2.7.5.2-1
[Nexus One Android Development] Hanny:
Seriously urgent question!!

Temasek this is really urgent!!! im sorry and i have also sent you private messages too!!!

im sorry justnow ive done a detailed search on google and ive found the modifications of different versions of your dt scripts

also ive learnt that I SHOULD NOT PUT ANY APP IN THE FAT PARTITION (FROTO A2SD)

however is it ok for me to put one or two VERY BIG apps? because after i installed them i tried to move them to "phone" (ext4) it says insufficient storage available!!!! :(

i dont prefer data2sd

i will be flashing the ext4b0 version and will enable data writeback

but is it possible to put JUST ONE OR TWO? (asphalt 5, Third Blade)

or if there is any solution to this??? thanks!
[Nexus One Android Development] temasek:
The last 2 is for ext4 only. Last one is with barrier=0 option enabled. Default was barrier=1

I thought u moved to s2e?

Edit: PM replied.
[Nexus One Android Development] Hanny:
ive edited the last thread post and ive sent you a newest pm! :) thanks god your finally on and s2e stopped working suddenly and i had no clues because the market itself is also moved to ext4 but ext4 is not mounted lol....

i clean wiped again in these two days theres nothing much change so my titanium still works!

the one thing im still concerning is about the FAT partition apps! :)

EDIT:

ahh well... my irl issue is arrived and i gotta leave my computer... hmm i guess i may check the data2sd out if the performance is not so bad i will stay data2sd so my FAT-partition concern will be solved cuz theres 100% enough storage for the system to "install the app on phone"...

best luck to myself and of course i will check "install apps on internal storage" after my first boot of the rom :) see you later with xda app
[Nexus One Android Development] bassmadrigal:
You shouldn't have any problem if you store apps on the fat partition even if you are using app2sdext. I have quite a few stored that way. Some apps are just ridiculous in size. I have 32 of my apps stored using the Froyo method of a2sd. However, if you have enough space on your ext partition, there is no need to use the Froyo method. I am an app-hog and have a really hard time deleting apps. So my 1GB partition quickly filled, so I would either have to repartition my card again to make it bigger (which is a lot of work) or I can just move them using the Froyo method. The apps still work great and I haven't noticed any slowdowns.
[Nexus One Android Development] Hanny:
Hey bass good to see u again and I was no time to reply ur pm cuz the s2e damn shut down by itself -.- and ohwell actually after I installed s2e the bootloop problem suddenly occured just after i put 4 more apps to the froyo a2sd!! I restored nandroid and repeated the process, and it DOES trigger the problem!

After I deleted 56 apps altogether and moved ALL apps back to "phone"(ext) EXCEPT asphalt 5 aand third blade two giant apps

.. the s2e worked for about 16 hours and suddenly I wanted to check something I opened s2e app and it loads for 30 seconds and no response, finally only show EITHER EXT size or DATA size... I thought there may be some little bug and I rebooted my phone, after that, ALL APPS ON EXT LOST! Wow wtf and i hahad seriously no clue as s2e and market both gone so I decided to come back to darktremor because the root problem of my bootloop which is OBESE FAT PARTITION APPS have been solved...

But I went to the pages before of this thread, there was someone saying we should NOT put anything on the fat partition while using DT cause it's all or nothing... :/

I don't know why you have no problem with installing that much apps with froyo a2sd lol..

I'm so confused with only TB, root explorer and XDA app installed

Should restore those giants apps? Where?

Or should I enable data2sd? I don't prefer it though!

I must choose before I restore my apps cause I don't wanna waste time!
[Nexus One Android Development] temasek:
Do you have apps backup with any utility like example TB? If yes, may I suggest u start from scratch, ie wipe everything including /system, /data, /cache, /sd-ext, /.android_secure

Quite tough to troubleshoot what was wrong with your steps.

What device u using?

What rom release u using?

What recovery u using?

What dt script u using?

What steps u flash?
[Nexus One Android Development] Hanny:
They are all exactly on my signiture with the following amendments/confirmations:

- The ext4 writeback has not been performed

- zipalign now disabled to prevent LG logo stuck

- data2sd NOT yet performed

- √ a2sd and dalvik2sd

- my kernel's developer is Francisco Franco but kernel would not be the problem at all, I guess.

My detailed flashing procedure:

Power off

Buttons combinations to custom recovery

Wipe all data/factory reset

Wipe dalvik cache

Flash temasek's "format.zip" which is formatting DATA,CACHE,SYSTEM and BOOT for 2 times each (shown in recovery)

Flash ROM

Flash gapps0429 (I don't want market 3.0 above)

Flash kernel

Flash temasek's DT A2SD CM7 2.7.5.3 BETA4 EXT4 b0 version

Reboot system now

LG logo -> hard reboot for 2 times -> stuck in LG logo (timing issues with CM7 right?)

Pull battery and in battery

Power on button

Stuck at LG

Pull again

Power on button

Phone booted

Setup Google accounts

Market auto updated from 2.3.3 to 2.3.6

Download A2SDGUI (it just updated lol)

Choose dalvik in /EXT

Move and rebuild

Stuck at LG logo

Pull battery

Power on

Successful and install TB and type you this post

Actually I don't know WHY the phone would stuck at LG logo... In root explorer my /system partition has 31.59mb left and that's not insufficient

Also I found that this stuck is QUITE RANDOM... as long as I discovered that turning on zipalign would result in a 90% stuck, it still stuck when I move dalvik / first flash DT etc...

P.s. stuck = stuck at the screen just before it goes into the boot animation.

Also temasek do you have any advice on the FAT partition thing? Well i guess today I'm gonna just restore essential apps and do nothing until the instructions from you guys were made :) thanks for your time!!
[Nexus One Android Development] temasek:
Try reflash your stuffs but this time skip custom kernel.

1. Flash cm rom

2. Flash dt

3. Reboot
[Nexus One Android Development] Hanny:
ah well... so while you advice me not to use the custom kernel anymore, will there any chances that i can flash it in the future?

also what should i focus on this time, LG logo stuck or etc

cause when im not installing any more things but essential apps, there are nearly no bugs and the LG logo stuck seems to be gone when i reboot for 3-4 times...

like 3 months ago yeah dt was working very great with ext2 and the pure cm rom

so,, should i still try it out... ?

EDIT: and tema what do you think about installing apps on on FATpartition? do u do that as bass does?

ahh i hope it is officially not recommended instead of my own problem... lol..
[Nexus One Android Development] temasek:
For easiest fault finding w/o any logs, best is go cleaniest way. Go with stock first and see if dt works stably with your device.

If I were u, I will start fresh and go 1 step at a time. Example,

1. Full wipe

2. Flash cm

3. Flash gapps

4. Reboot

5. Sign in google

6. All ok? Proceed next step

7. Boot to recovery

8. Flash dt

9. Reboot

10. All ok? Proceed next step

11. In terminal do su and then a2sd cachesd

12. Reboot

13. All ok? Proceed to restore your apps backup from TB
[Nexus One Android Development] bassmadrigal:
I totally agree with temasek. I would leave out all custom kernels and scripts. This way, you can see if DT's a2sd is conflicting with the system or one of your addons. And from my understanding, you are not currently running CM, right? If you still can't get it to work with just your ROM and gapps, then it may be an issue with your ROM. And if you aren't running CM7, that could be why S2E freaked out on you. It was designed to be run on only CM7 systems. A lot of the ROMs that are based on CM7 work, assuming they didn't change too much, but S2E hasn't been tested on any other systems other than CM7.
[Nexus One Android Development] Hanny:
ahh as u can see from my signature im running an umofficial cm7 port... i dont know whether would mean non cm7 or what?

just mention and ask, cause i remember before the s2e screwed.up itself, i did [move private apps to sd] and [move download cache to /cache] in ONE single reboot, does that cause any problem? caude at THAT TIME, my download cache was like 200mb and made my ext almost full, i dunno why caches can stay that long and i dunno how to clear them... after that my market screwed up with no app list and i reboot for 2 times it is alright. after 6 hours s2e starts to irrespond and reboot > No apps.

i wonder if that action would be the problem of s2e error? and im so confused wt should i do when ext4 is unmounted even s2e and market become empty... normally in darktremor we can flash dt again, do u have solutions about that?

just want to ask, how do i clear it if i put download cache at /ext? or when will it clear itself? just incase i switch back to s2e

and tema, yeah! between all the steps u listed above it is totally ALL-RIGHT!! even with the custom kernel its all right!

but the main point is AFTER i restore all apps from TB it starts having errors! this even happens on s2e so thats why i said if i move most of the apps back to /ext but not /fat, the loop problem was gone

but this time im so unsure about darktremor again... now see im with rom, kernel, your dt b0 version and only installed 20 apps on /ext, NONE in /fat

the phone just works without problem since last night till now. i just dont want to waste my time cuz after i restore Tb, the problem may occur again and i extremely suspect thats the problem of apps in fat partition!!?
[Nexus One Android Development] sl8125:
I have sound problem. Sometimes its really low. Is there a fix?
[Nexus One Android Development] richua:
Reboot until it's gone.
[Nexus One Android Development] temasek:
Wipe /cache
[Nexus One Android Development] temasek:
If currently nothing is installed to your external (ie fat partition) then do a wipe of your /.android_secure folder either thru recovery or mount your sdcard to pc.

Frankly even if u use dt, you still can install apps to your external (ie /fat partition). There shouldn't be a conflict whatsoever.

DT and froyo style a2sd can mingle well.
[Nexus One Android Development] Hanny:
ahhh... ok well if they can mingle well... sure then im not too scared about installing them back and try...

maybe s2e is just uncompatible cause my cm7 is unofficially ported huh...

actually i hve made a log of what i did:

with:

cm7 rom

custom kernel

s2e

a2sd

dalvik2sd

dowbloadcache2sd,

https://www.evernote.com/shard/s79/...1e3218e49b8a/3340543f64d166f76a1b44a599dce337

the performance is even increased when i clean the FAT (except giants), huh

ok so this will be my first time of trying out temasek your dt script, with part of my apps installing back (im not going to obese the FAT as i have said in the note) but i will still give a go for asphalt so to see if its really no problem for that

so far ive analysed a few possibilities of the "BOOTANIMATION LOOP" problem as you have certainly said moving apps to the FAT is ok

P.S. the problem is a watchdog problem, in logcat it gives LOADS of lines which has the word watchdog. mostly because of the google framework crashed 3 MINUTES AFTER LOCKSCREEN IS SHOWN and it boots the framework again to repair/protect itself

can you answer or have any comments on them based on your experience?

1) if 05mountsd is there (the original script), what it may cause? simply ext4 not mounted, or MY PROBLEM

2) if barrier = 1, would my problem.occur?

3) is there any bootup app/widget that may cause my problem?

4) apps moved to /ext is faster than those which are in froyo a2sd, right?

5) when the phone boots (with dt or other a2sd), does it cause time for it to "ANALYSE/PRELOAD/CHECK" the apps in FAT partition?

or the boot speed increase in my notes above is just because of i deleted some autostart apps?

really thanks for your time!
[Nexus One Android Development] temasek:
By right, it shouldn't cause anything to DT BUT in my modified DT script, I have it deleted immediately after flashing the DT script.

I don't think your issue is with this option. So No....

No, at least not that I know of.

If optimized /ext, yes faster though not by a big margin.

Hmm...this part I can't be certain so I cannot answer this..
[Nexus One Android Development] Hanny:
Hi I'm just back from the STEP-BY-STEP ANALYSIS and I got a new thing discovered :)

My kernel + DT beta version = stuck at LG

So I'm flashing your DT 2.7.5.2-1 EXT4 version

And I may like to give up the barrier=0 performance boost!

And thanks for answering my questions but here I come up with some more: (really thanks for your time!)

1)

Another developer of my phone released a fix that makes barrier=0 too, but with that zip it also contains "remount-noatime"

Remount I know it means adding "98remount" to system/etc/init.d

And i have no idea about "noatime".

Do you think this is safe? If your also not sure then I wont take the risk as well, lol

2)

Is your 2.7.5.2-1 compatible with the "ext4 writeback" boost? Or they are not related and I can do that as long as I have EXT4 :) also this boost has absolutely no risk, right :)

3)

I suddenly come up with this: ZIPALIGN!!! does it have potential problems of anywhere?

I've turned it on and never cared about it since my problem occured, would turning off keep my phone stablier when booting up?

4) yea I know you make the 05mountsd disappear after DT has been installed, but I mean, would DELETING THIS HELP SOLVING the bootanimation loop problem? I'm just curious about the benefits of deleting that :)

Infinite thanks!!!!!
[Nexus One Android Development] temasek:
noatime is already enabled by default in the DT script for your /sd-ext. It reduces extra writes to the disk, improving cacheing and positively contributing to power-saving results.....(I think)

data=writeback is for your /sd-ext so nothing to do with what DT version u intend to use. By default is data=ordered.

Not that I know of. Zipalign is suppose to speed up things. I have zipalign set on boot.

I've no issue with zipalign but since u think otherwise, you may try NOt to zipalign.

If u use my modified DT script, once u flash the script, it already deletes the 05mountsd before u even reboot.

But u may try using the official DT 2.7.5.3 b4 script which does not delete the 05mountsd.
[Nexus One Android Development] Hanny:
Well, I think I would still enable zipalogn as there seems no problem.reports of it :)

And i think I'm not gonna flash that remount zip then

1) However IS THERE A MANUAL WAY to switch barrier to 0 since I'm using 2.7.5.2-1?? :)

Also I think disabling 05mount is giving me benefits :) so I'm using ur modified 2.7.5.2-1

2) But I mean WHAT IS THE USE OF DELETING IT? I MEAN THE PURPOSE..

p.s. I said that I'm not gonna gee the beta version cause it is not friendly with my kernel! :)

Thanks!!

EDIT:

3) If for some reason I need to change/update my custom kernel, do I have to flash DT SCRIPT again??

4) Also, is there any POSSIBLE SIDE EFFECTS / RISKS of your extra writeback code? :)

I'm so sorry to bombard you with questions :(:( but if I don't make everything sure I'm really afraid the problem will appear again... I'm real tired of this :( sorry and thanks...
[Nexus One Android Development] temasek:
I modified that just for u. I suppose u wanna use the DT 2.7.5.2-1 with EXT4 ?

http://www.mediafire.com/download.php?v98rcb66u8kzu9b

When I first started using DT I couldn't get it to work, simply because it just bootloop for me. By removing 05mountsd, it just worked. Whether it is coincidentally or not I have continued to do it w/o 05mountsd till today. So thats my reason for deleting it.

If u just flash a new kernel, you DO NOT need to reflash DT script. Only reflash DT script when u flash a new ROM. Reason is DT files resides on /system and when u flash a new ROM, CM7 ROM will reformat your /system, thus DT files will be GONE.

No
[Nexus One Android Development] Hanny:
Wow thanks!!! :) im now using YOUR DT2.7.5.2-1-CM7-EXT4 now and ive judt restored most of my apps without many of them in FAT, its good!! maybe thats something with my card or my phone that i shouldnt put too many apps ;)

so if i flash that, i just simply go recovery and flash and its all good right? anything needed to be wiped?

thanks!! :)
[Nexus One Android Development] temasek:
Just flash the new DT script with barrier=0. No wipe needed.
[Nexus One Android Development] Hanny:
ahh... i honestly thanks for ur work of making the barrier=0 especially for me but i suddenly have a doubt before i flash it:

somewhere says, barrier=1 improves the integrity of the filesystem and filesystems can make sure that their on-disk structures remain consistent at all times...?

do you think keeping barrier=1 can keep my phone stabler, or thats completely garbage and barrier=0 is good for everyone? :confused:

what requirements do i need to safely put barrier=0 to improve performance? thanks!
[Nexus One Android Development] temasek:
I have both writeback and barrier=0 for more than 1 year with dt. No issues whatsoever.

Before u flash the new dt perhaps good to do a nandroid backup.
[Nexus One Android Development] Hanny:
sure why dont i do it then lol :p

here i go! :) thank you really much tema! will report how do i do later on!
[Nexus One Android Development] mawhaji:
thanks mtw4991
[Nexus One Android Development] bassmadrigal:
I know I am a little late to the game. Sorry, I was out of town most of the weekend and spent what little time I had yesterday trying to get caught up in the CM forum. Today is xda.

I am glad temasek could help you get everything up and running properly. Just figured I could throw in a bit of info.

noatime (No Acess TIME) basically tells the system that when a file is read to not update the access time. Writes to the system can require more resources than just reading a file, so noatime can improve performance. Especially on files that are frequently accessed. Plus, with flash based media, it limits how many times blocks will be written to (which is always a good thing).

So all the reasons T listed are accurate, and now you know why (well, hopefully I explained it well enough) :D
[Nexus One Android Development] DeTool:
Tried the latest cwr 5.02 the other day and before I knew it I had a corrupt ext partition. I thought koush may have fixed it by now. Looks like it's amon ra forever more.
[Nexus One Android Development] nhanco:
Help me please!

I was Install miui from miui.us then flash this script. But can't be successfull.

Sometime i can install app but not in ext partition. I use terminal type a2sd cachesd then the phone reboot and it only display boot screen. Sometime i can't install terminal cause they said i'm out of space. What can i do now ?

Thanks for reading
[Nexus One Android Development] mtw4991:
You are welcome? (not sure what I did :p)
[Nexus One Android Development] Kons90:
Reflash this version with recovery: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.2-1-signed.zip

It's stable and working fine in my LG P500 ;)

But I have question. Cache is on sd ext partition ? How can I do more space for cache ? Look on my screenshoot in attachment.
[Nexus One Android Development] mtw4991:
EDIT: sorry, misread. Looks like cache is on sd-ext as you have 60mb free of possible 64mb. The screenshot shows that your /cache is almost empty as it has been moved to sd-ext via symlink. You have 1.3gb available on sd-ext for more cache if needed.
[Nexus One Android Development] Kons90:
Okay I understand. Maybe I it's noobish question, but why cache has only 64 MB ? It's not too little ? I didn't set this anything. Thanks in advance :)
[Nexus One Android Development] mtw4991:
idk, what phone/rom/kernel you have?
[Nexus One Android Development] Kons90:
Phone: LG Optimus One

ROM: CyanogenMod 7 (6.5.7)

Kernel: franco.Kernel.v19.4-gbs.v18 BFS
[Nexus One Android Development] mtw4991:
ah, different phone from N1 means different partitions for things like cache, etc.
[Nexus One Android Development] Kons90:
So it's good then I have only 64 MB to cache and it's on my microSD card ? ;)

Because I don't know it's ok or not.
[Nexus One Android Development] DeTool:
Are you using clockwork recovery? If so you probably have a corrupted ext partition.
[Nexus One Android Development] Bohemus:
Is there any way to make the native android app manager show free space on the EXT partition instead of the internal DATA partition?
[Nexus One Android Development] baseballfanz:
Just use Quick System Info, even titanium backup will show the info
[Nexus One Android Development] sl8125:
I am currently running cm7 nightly and wondering which of the DT version works best ext4 partition on a class 6 SD card. I was using one of the data2sd method but when launching my apps it laggs and very annoying. Thx in advance.
[Nexus One Android Development] baseballfanz:
I think class 6 to slow for data2sd
[Nexus One Android Development] sl8125:
Yeah, i am going go with a2sd only. keep data on the phone and maybe i move the cache on the sd.

there seems couple different zip files and i am not sure which version works best with my n1. i was little confused.
[Nexus One Android Development] ninjai117:
wtf is this crap? I get adware installed at every boot when I install this on MIUI. I get twitter, voice search, blinker or something, ES File manager, and a slew of other ****-apps I don't want.
[Nexus One Android Development] baseballfanz:
Don't know about Miui but never had those problems with CM7 and DT.

This is just a script not even an app
[Nexus One Android Development] ninjai117:
I flashed beta 4. Each time I tried to get this to work (the script works, I get my SD space) I get those junky apps. I just downloaded the earlier non-beta release and guess what? No junk. I don't understand. The latest apk must be packed with junk unless someone has a better explanation.
[Nexus One Android Development] DeTool:
Miui.us roms have the script built in and don't install bloat ware.
[Nexus One Android Development] bassmadrigal:
DT definitely does not come with those apps. You can actually extract the files from the zip yourself to check. I don't know where they come from, but they don't come from DT. Maybe you had them left on your ext partition?
[Nexus One Android Development] sl8125:
I must be doing something wrong. After setup I check the status of a2sd in terminal emulator I see alot of permission denied message. I confused.
[Nexus One Android Development] mtw4991:
try running fix_permissions in terminal. Sometimes things get messed up when first moving a2sd.

terminal:

su

fix_permissions

reboot

terminal:

su

a2sd install

a2sd zipalign

a2sd cachesd

will reboot
[Nexus One Android Development] sl8125:
Thx got it working.

I been flashing nightly and wondering if I have to reflash the script over again. Again Thx for your help.
[Nexus One Android Development] baseballfanz:
Yes you have to flash the DT a2sd every time you flash a nightly.