yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Larz_Plummer:
Same thing happens to me, too. Exact same setup. (RodMIUI + AmonRA)

Installed AmonRA

Partitioned sd

Converted ext2 to ext3

Flashes DT

Installed RodMIUI

Ran commands, and my ext3 mounted in DT as ext2.
[Nexus One Android Development] :
DT shows 2 even if 3. It still works on the right roms.

To confirm 3 you can install and run mini partition tool from the internet. It will show your sd ext as 3 if it is a 3.
[Nexus One Android Development] Larz_Plummer:
Thanks! Good to know.
[Nexus One Android Development] Chahk:
Quick lesson in Ext2/3. Ext3 is an upgraded version of Ext2, with journaling added. They are compatible with one another in a sense that you can upgrade and downgrade back and forth without losing all data. You can also mount an Ext3 partition as Ext2, and it will work without the journaling functionality. See the entry from wikipedia, especially this part: "... any ext3 file system is also a valid ext2 file system."

If you upgraded from Ext2 to Ext3, but the "mount" command still shows your /sd-ext partition as Ext2, this means it was either improperly mounted at boot time, or the ROM you are using only has support for Ext2.
[Nexus One Android Development] tkirton:
Something is interfering. Can you post the contents of your /system/etc/init.d folder. I have a feeling the installer script isn't picking up something (installer scripts, unlike the normal scripts Apps2SD uses) are harder to debug because of limited feedback while in recovery mode).
[Nexus One Android Development] tkirton:
Very nice explanation. This is a lot better than the ones I usually give, especially the reference to the Wikipedia entry.
[Nexus One Android Development] belair56:
Here you go.

Here you go.

Thank you for your time and effort.

It is appreciated.
[Nexus One Android Development] muffassa:
just wow

thank u very much for sharing it with the community
[Nexus One Android Development] tkirton:
Got your init.d. I do know that CM resets the dalvik-cache back to /cache, but there is code in Darktremor to force it back to /data/dalvik-cache (and if dalvik-cache is on the SD card, the /cache/dalvik-cache symlink will point to /data/dalvik-cache symlink, which points to /sd-ext/davlik-cache).

I do see a 05mountsd that really shouldn't be there.

Try reflashing Darktremor again...I just don't know why the CM patch isn't working.
[Nexus One Android Development] chobie:
Was having a problem on my gallery app.

Sometimes it gives me an error of SD Card not mounted but when I try to run apps on my SD card they're perfectly fine. And when I browse the photos on my Astro they are there. Anyone else having this problem?

UPDATE: EXT4 was causing the problem, not the rom
[Nexus One Android Development] tkirton:
I don't see why not. You have to be careful of the roms, though...I know that stock roms usually will wipe that partition out (though I haven't seen it for other roms since Cupcake).

I guess 2.7.5 could put the apps on /cache as an option...honestly, I don't think anyone ever thought of that.
[Nexus One Android Development] tkirton:
Does Apps2SD tell you the SD card isn't mounted or is Android telling you this?

There's a difference...if Apps2SD is stating it can't mount your SD card, it could be one of two things:

1. No ext partition on the SD card

2. Ext partition is corrupted

(actually, there's a third reason, but it may only apply to HTC Incredible...ext partition is on a different block device...that's still being investigated.)

If it is Android telling you this, it is because the FAT32 section of the SD card may be corrupted (or your SD card is about to bite the dust...or the rom is freaking out over something.)

The ext partition and the fat32 partition reside on the same SD card, but are handled completely different.
[Nexus One Android Development] chobie:
It gives me something like "SD Card unmounted or not present". Sometimes my gallery will display some blank thumbnails and some showing up. It happens randomly. My SD card is fairly new though. like 3 months =[
[Nexus One Android Development] tkirton:
That's definitely not Apps2SD...but it ultimately could affect it.

Let's see...if the card is fairly recent...what's the speed on the SD card and what brand? Hopefully you didn't get a defective card...that would suck right now.

Couple of options here...

If your recovery will allow you to run a check on the SD card, you can do that.

Also, you could pull all the files on the SD card to your computer and repartition/reformat the SD card. Sometimes a poor format will do this.

This could also be lag on the phone...which would point to your rom and/or speed of the SD card rather than a corruption of the data.
[Nexus One Android Development] chobie:
I have a Kingston 8GB Class4 microSDHC

I just tried the repair ext on Amon_Ra (UPD: Still gives SD card unmounted or not present error and sometimes empty thumbnails)

I would probably reformat it via the Panasonic SD tool via PC, but will it reformat it when i partition it using Amon_Ra for use of ext?

Or try out a new ROM.

I will follow up in a few days.
[Nexus One Android Development] tkirton:
I would try another SD card if you have one available.
[Nexus One Android Development] lou0611:
DO you just go to Application, Manage Applications and move to SD? can figure out how to use it.
[Nexus One Android Development] r0adki111:
I think it is supposed to just move them to sd. I'm on cm6 latest nightly as of right now. Just installed a2sd and my internal phone storage is still the same. I installed a few apps and they are indeed being installed on the internal storage, not the ext3 partition. I read earlier in this thread that if we flash modaco boot it works. I'm going to try that now.

UPDATE:

Ok here is what I get when I attempt to flash the boot.img from Modaco's R21 with a2sd.

fastboot flash boot boot.img

sending 'boot' (2336 KB)... OKAY

writing 'boot'... INFOsignature checking...

FAILED (remote: signature verify fail)

I don't know enough to figure out what is going on with this so I'll let someone else figure out how to use this a2sd method with cm6 and post instructions I guess. I'm looking forward to it :)
[Nexus One Android Development] lou0611:
Im using CM6 rc1 and I can move all apps except paid apps.

thanks
[Nexus One Android Development] sir*mez:
Heres CM6 boot.img with a2sd activated.

**removed due to some problems**

I will keep working on it tho.
[Nexus One Android Development] Chahk:
Thanks! Is the a2sd script part of the image itself, or do I have to use Darktremor's version?
[Nexus One Android Development] djmcnz:
It will not work by itself. In fact I've looked at the ramdisk included in that boot.img and I'm afraid it has problems with CM6. I would wait a little while.
[Nexus One Android Development] mlevin:
Yeah, it would be cool to give that a try! Typically it is the same size as /system (unless you have DangerSPL) and since we aren't ever going to get OTAs, may as well use it!

Maybe a shutdown script to copy it to sdcard and a startup script to copy it back if empty?
[Nexus One Android Development] sir*mez:
The boot.img is one part. You still need to flash Darktremer a2sd. Without the boot.img the a2sd script wouldn't work.

What problems are you encountering? I have it working on cm6. A2sd and cache2sd are working perfectly. Instead of just saying it doesn't work, you should provide some information to why it wouldn't or whatever. But besides the point its working.
[Nexus One Android Development] djmcnz:
Did you logcat a boot with that image and have a look? Should be self explanatory.
[Nexus One Android Development] THATTON:
Face Palm...
[Nexus One Android Development] djmcnz:
Let's be careful, he's trying to help out.

I'm working through a few issues with it too at the moment. I just think that perhaps it's a little premature to release without a full package. I'm working on this too.
[Nexus One Android Development] THATTON:
I was just playing around anyways. No harm. Hopefully no offense taken either by sirmez.

Sent from my Nexus One
[Nexus One Android Development] sir*mez:
Ill check the logcat out. I'm not trying to be a smartass. I just hate when people come on here and say there's a problem or that its not going to work but do not leave any insight. I'm still learning so I would like to know where and what needs to be diagnosed.

@THATTON no offense taken. Without mistakes I wont learn. Ask Manup when I started theming. Then I was theming on my own with no problems. I'm just glad I'm still around trying to provide to ya!

Edit: removed boot.img from my post.
[Nexus One Android Development] jocaferlo:
I have the same problem every time I flash a nightly.
[Nexus One Android Development] djmcnz:
I've concluded it's in preparation for CM6.1 apps2ext:

if [ "$e2fsk_exitcode" -lt 2 ];
then

# mount and set perms
$BB mount -o noatime,nodiratime -t auto $PARTITION $SD_EXT_DIRECTORY;
if [ "$?" = 0 ];
then
$BB chown 1000:1000 $SD_EXT_DIRECTORY;
$BB chmod 771 $SD_EXT_DIRECTORY;
log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";
else
log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";
fi
else
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi

Delete that file if you're using DT and everything seems to work fine with the nightlies.

It remains to be seen what will happen when they complete their implementation...
[Nexus One Android Development] jocaferlo:
Even if we delete that file, everytime we flash a new nightly that file will be created again, isn't it?

My "little" problem is just after I flash a nightly (and DT): I have to use command "cachesdreset" to move dalvik-cache to sd.
[Nexus One Android Development] mtw4991:
I'm using DT 2.7.5.2 also and after flashing a new nightly, I flash DT, reboot, and a2sd cachesd in terminal and all is fine. What is the problem or issue you are seeing again?...not quite understanding the issue here. Thx.
[Nexus One Android Development] Chahk:
Strangely enough, if you move dalvik-cache to the /cache partition via the "a2sd cachepart" command, the setting will stick after flashing a new nightly.
[Nexus One Android Development] jocaferlo:
The "problem" is have to use comand cahesd everytime I flash a nightly.

Well, there isn't a problem really.

I don't know if this happens with cachepart, but it doesn't happen with cashesd (dalvik-cache to sd).
[Nexus One Android Development] belair56:
I gave it a shot, and BAMM it worked.

Thanks much.
[Nexus One Android Development] denimjunkie82:
Hi folks,

I just installed this since I was feeling adventurous, and just want to post what I did to see if you guys think I did it correctly.

PRE_Apps2ext SETUP:

- CM6

- Clockwork

- Using Froyo Apps2SD

- About 80MB of free internal space

- 16GB Sandisk class 2 SD card

Steps I did:

1) Clockwork backup

2) Backup SD card onto laptop

3) Clockwork to create EXT Partition (It only allowed 1024 MB max for the partition as a pre-set, any way I can increase this?) (There was no option to choose EXT2/3/4, I think it has defaulted to EXT2 according to the a2sd check.

4) Chose no Swap (not sure what Swap is)

5) Restored SD files, flashed Darktremor, rebooted

6) First thing I noticed, my free internal space was the same, or even less. It's 78MB post reboot.

7) To test if it was working, I started moving apps from SD to internal, and noticed that the internal storage did not decrease no matter how much I moved to internal. Success?

8) I start reading up on A2SD commands, I:

a - a2SD cachesd, moved my Dalvik Cache to Ext2, now I have 145MB free internal.

b - a2SD align, that didn't do anything cuz it says everything is already aligned.

Questions I have:

1) Does it look like I did everything correctly, based on the above steps?

2) Any way to increase my EXT partition? Clockwork preset is 1024MB max, but since I have a 16GB card I would love to dedicate 4GB to the EXT (is that overkill?)

3) How come Clockwork didn't ask me if I wanted to create Ext2 or 3 or 4? Should I change it to 3 somehow, since I read that 3 is more safe and stable?

4) It seems like the only internal storage that was freed was from moving my Dalvik cache to SD. Should there be more internal storage be freed somehow?

5) Any other tips you guys can provide? I would greatly appreciate any feedback.

Edit:

6) I noticed that app data still stays in internal storage. For example, Yahoo Fantasy Football app has like 15MB of data, which all decreases my internal. If I uninstall it, I get the storage back. But apps themselves seem to be in EXT. Is this how it's supposed to work? Is there a way to put app data into EXT as well?

7) Seems like some apps install to EXT, some don't. For example, Adobe Air (16MB), Field Goal (5MB), and Yahoo Fantasy (15MB) install into internal storage. But Hungry Shark (9MB) go into EXT partition. I don't know why this happens...
[Nexus One Android Development] apollostees:
I can help with a couple of these.

1. Yes. But, I would think of changing that ext2 partition to ext3. More roms make use of ext3.

2. I think aman ra lets you increase to whatever size you want. But man you will probably never fill that 1 gig partition. Remember many apps aren't even 1MB
[Nexus One Android Development] apollostees:
Has anyone noticed any bugs/problems when using Darktremor Apps2SD 2.7.5.2 On the Miui 0.10.15 rom?

Specifically, I installed the script then went to do the "a2sd cachepartreset" command.

But, once my phone rebooted it took me back to the touch the android to start, beginning screen. Which was then unresponsive:confused:

I have since reinstalled everything and ran the script without trying to move dalvik-cache and I don't have any issues.

Is it the rom or the a2sd script or just my mistake?
[Nexus One Android Development] harryharness:
Hey I am running MIUI (0.9.30 or whatever) and flashed the DT a2sd and then just ran the cache2sdreset option and all is fine except now my settings crashes when I go to sd and internal storage. Any help for this?

Thanks
[Nexus One Android Development] mad-murdock:
i simply added 2 lines to the updater-script:

ui_print("[ ] Removing CM 6.1 sdmount");
delete("/system/etc/init.d/05mountsd");

all you have to do then is flash the new nightly, and then flash modified dtapps2sd. dalvik cache stays on sd-ext if you have set it up once via a2sd command line.

to make it more easy for you, i attach that zip - nothing else changed - hope this help
[Nexus One Android Development] jocaferlo:
Thank you. I'll try it in the next nightly.
[Nexus One Android Development] mjsztainbok:
I'm running eVil D's NXSense 1.23 ROM and I'm having an issue with DT Apps2SD where the SDEXT partition is mounting with the wrong type.

My partition is ext4 and a2sd partlist says that the ROM supports ext4 but the partition is only mounting as ext2.

Any ideas why this may be happening and how to fix it?
[Nexus One Android Development] tkirton:
The one thing you have to remember is that, even with the apps and dalvik-cache, data from the programs are still stored in the internal storage. Something that may store a lot of data for its own use will consume space on the internal storage.

Next version will have something experimental that will allow you to move your data to the SD card...but it will be experimental.
[Nexus One Android Development] djmcnz:
I've had nasty results... be wary of pointing system apps to /sd-ext/data/... :(
[Nexus One Android Development] tkirton:
I wasn't aware, until recently, that there was an 05mountsd. That will be taken care of in the next release.

I think most of my troubles with CyanogenMod is that each platform has a different developer. The ones for the HTC Sprint Hero (which is what I test CyanogenMod builds on) don't have the 05mountsd in it. I don't think the developer (Darchstar) cares much for the old Apps2SD method since it is a Froyo build, so mounting the EXT partition isn't in there. It's also possible it's not on a high priority list (and that's understandable).
[Nexus One Android Development] tkirton:
Could have something to do with extents...

Honestly, I'm not sure...Darktremor uses the Busybox mount (the one installed on the phone, not the Darktremor version) to mount. Unless Busybox doesn't support EXT4 mounts...

I'll look into it.
[Nexus One Android Development] tkirton:
Well, there will be up to four folders on the SD card:

app

app-private

dalvik-cache

data

I'm not thrilled about adding this...I think it is asking for trouble. But, I've had a large amount of requests for the feature.

Sort of like JIT. I added it to Darktremor with the concern that it was just going to mess up roms...and it did. But, large requests came in for the functionality, so I put it in there. I really wanted to leave JIT to the Rom developers.

Moving /data/data to /sd-ext/data or /system/sd/data...I know people want it, but I just think this is going to cause more issues than what it will be worth, hence the "experimental" tag.
[Nexus One Android Development] Chahk:
Would it be possible to only move /data/data/ belonging to apps residing NOT in /system/app/? Or will it be an all-or-nothing type of a deal again?
[Nexus One Android Development] djmcnz:
All or nothing.
[Nexus One Android Development] mad-murdock:
I like that idea. Afaik from the shell, a2sd is -except mounting and setup- just some softlinks. So data/data should work.

Correct me if i am wrong
[Nexus One Android Development] bsbtauldl1:
need help going from 6.0 to latest nightly

hey guys. I am getting a bootloop when flashing the latest nightly having only wiped cache/dalvik.

Do I have to wipe data as well? If so, I think that this may be the worst thing about android. I hate that I am constantly reinstalling and inserting info in all my apps again. I have titanium but it seems that it crashes half way through the restore process bc it wont restore to the damn sd-ext. This is one thing I will always love about my ipod touch, the fact that data is never erased when I mess with it. It seems that once I get situated with one rom I have to lose everything to a) try another or b) update it.

so my question is this; what is the easiest way to switch from one rom to another? (im saying that bc it covers all bases)

Here is my process for when I am daring enough to try:

1. backup all user apps + data in titanium

2. backup launcher in launcherpro

3. backup phone in recovery.

4. try to flash new rom (usually just a nightly)

5. if it works, which it rarely if ever does, then I am set

6. usually I have to wipe everything and start from scratch with my new rom

so here is where I get into problems

I dont have enough room on my internal memory for all apps so I use this script. Do I flash the new rom, then (while still in recovery) flash this script? Or do i reboot after flashing the rom and then right away go back into recovery and do the script.

Or is this just a problem with titanium in that it wont restore apps to the sd-ext??? Because right now I am running the script and titanium gets half way through restoring my apps and then the phone will just restart due to low internal memory. I have done the "reinstall" terminal command before running titanium. I dont know what else to do.

thanks for any help
[Nexus One Android Development] mtw4991:
If I'm moving from another rom, I always wipe data/factory reset after double-wiping cache/dalvik-cache. You want to flash DT script right after flashing rom while still in recovery or it will bootloop. Then go to terminal and issue command a2sd cachesd to put dalvik-cache on Sd-Ext or a2sd cachepart to put it on /cache I believe.

I might be wrong, but after flashing DT script, TB will restore apps to the ext partition if you have it set to automatic (maybe external too?) in CM settings>application settings>automatic. That's what I do and don't have any problems whatsoever.
[Nexus One Android Development] mynameisjon:
Quick question, as with the above post, where does Titanium restore to in CM with the following settings when it comes to application install method.

1. Automatic

2. Internal

3. External

Also, if I were to go into Settings-Application and then go to an application to "Move to Phone", does it go into the internal storage? Does "Move to SD" move it to the FAT partition or EXT partition?
[Nexus One Android Development] mtw4991:
Don't quote me on this one as I'm not an expert (ask DT), but I think that TB restores to the original spot that the app was stored at initially. You may have to run install command from terminal if they get put anywhere other than the sd-ext partition which is where they should be and symlinked to /data/app.
[Nexus One Android Development] mynameisjon:
Thanks for the reply,

Any official word though?
[Nexus One Android Development] mtw4991:
lmao, what's the matter??? "unofficial ain't good enough"?:p j/k, ask the OP, he responds well and would be the expert here:)
[Nexus One Android Development] mynameisjon:
You did tell me to ask DT... :p

I'm noticing that a lot of my apps still go to FAT even though I have a2ext installed, with Cyanogen settings set to "External".
[Nexus One Android Development] NguyenHuu:
In CM settings, i disabled Allow application moving changed install location to be Internal. That way froyo wont do its version of apps to sd and move to the FAT.

What I still noticed is that my apps still get installed to the system/data/app. It installs to both that and the new sd-ext directory and draws down my internal memory.
[Nexus One Android Development] mad-murdock:
Its called symbolic link. So if you install to /data/app/blah, you can see and access it at that location, but it is stored at /sd-ext/app/blah.

That a small part of the magic of unix, which makes nerds smile since the 60's.

If you still notice /data getting smaller, its your dalvik cache or the system settings at /data/data - both not linked to sd-ext by default
[Nexus One Android Development] djmcnz:
See the link in my sig.

EXTERNAL = SD-FAT

INTERNAL = SD-EXT (or internal nvram)

Surely people can deduce this given that CM6 does not have apps2ext out of the box?

Apps2ext/apps2sd+ symlinks internal to sd-ext... as described in the first post.
[Nexus One Android Development] djmcnz:
... or application data in /data/data/ which is the most common reason (assuming dalvik-cache is full and doesn't fluctuate much).
[Nexus One Android Development] gupta.keshav94:
Any way to move it?
[Nexus One Android Development] djmcnz:
Yes, using the same method as /data/app is moved BUT it is NOT recommended.

It is far more preferable to accept the limits of internal storage than to mess around with /data/data/

You would certainly experience problems with rom upgrades if you move /data/data but tkirton is working on an option for this I understand. I have tried it, won't ever do it again.

Having said this, I've preempted a mass effort to try this with my latest Advanced Installer script in Kang-o-rama which looks for (pesky ;)) users that have moved /data/data to sd-ext... however, if I do find this *all* I can do is break the symlinks so at least the rom will install but user data is orphaned.
[Nexus One Android Development] gupta.keshav94:
Ohk..

I am not trying it.. :p
[Nexus One Android Development] alienmonkey:
I'm going from CM5.x using apps2sd to CM6.x trying to use darktremor apps2sd, but apps2sd seems to want to fill up internal phone memory with apps making the phone slow.

I go to recover, wipe both caches, wipe phone, install CM6, install Gapps, Install DT, reboot. Apps appear to be auto installing to phone and running out of space. I'm guessing they are being moved from the ext to internal.

I tried going to recovery, wiping again, flash CM6, reboot, set CM setting for apps to external and force install of apps to external, reboot, flash DT, and apps still appear to install internal during/after bootup.

What step(s) am I missing to get the phone to keep all mys current and future apps on the ext to stay there?