yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] bobtentpeg:
Hmm, heres a new one I've not seen yet; my EXT partition won't mount despite my best efforts. Not sure why
[Nexus One Android Development] mtw4991:
did you try to mount thru recovery? cwm or amon_ra?
[Nexus One Android Development] bobtentpeg:
Yeah, tried both cwm and amon, neither will mount. Mounting the partition through the sdcard slot on my computer works fine though. Checked the partition map and there are no errors or corruptions. Reinstalled a2sd scripts, still no dice.
[Nexus One Android Development] milomak:
is the datasd option available only in the beta versions?

or is the command something different to a2sd datasd?
[Nexus One Android Development] temasek:
Yes, datasd only available in DT 2.7.5.3 Betas. Also note that there is a low volume issue when u use.the betas. Temp solution is reboot till u get your normal volume back.
[Nexus One Android Development] temasek:
What dt script u use?
[Nexus One Android Development] milomak:
oh alright. thanks.
[Nexus One Android Development] bobtentpeg:
DTb4 for EXT4 (The on linked in your signature)
[Nexus One Android Development] temasek:
Try this

Flash a cm rom now, this time do not flash dt script. See if CM'S own 05mountsd script will mount your ext4 partition.

Or

Just try the original dt beta.
[Nexus One Android Development] mtw4991:
I was also going to suggest removing your sdcard, but it seems you've already done that. Temasek's idea to switch to a different DT script is good....post your results as I'm interested to see if it works. maybe a corrupt DT script file? re-download n flash again, idk?
[Nexus One Android Development] qiuness:
I need to use DT since i do not have any space left on internal although 90% of apps are moved to SD :(

I tried:

dtapps2sd-CM6N-2.7.5.2-signed

dtapps2sd-2.7.5.2-signed

dtapps2sd-2.7.5.3-beta04-signed

I installed CM7 final, flashed gapps, then DT

All have the same effect: once i try to install any app the GUI reboots.

Are there any prerequirements... i think i have ext3 partition on my SD.. although i`m not sure how to check
[Nexus One Android Development] mtw4991:
The A2SD GUI doesn't install apps, it moves them from internal to sdcard and vice-versa, then reboots. Check your space in root explorer to verify and check in settings>applications>manage apps>sd card to see if any apps are checked. If so, click on the app and move to internal(sd-ext).

The apps may be moved to sdcard via froyo method, but the apps' data is still on /data/data, thus still on internal, although space decreases slower. Do you have an sd-ext partition on your sdcard? If so, you should run in terminal:

su

a2sd check (see if DT script is working)

a2sd reinstall (move apps to sd-ext)

a2sd zipalign (order the apps?)

a2sd cachesd (if you want dalvik-cache on sd-ext)

Also, have you tried fix_permissions in terminal?
[Nexus One Android Development] qiuness:
thanks for the reply, i meant the CM GUI reboots, get the logo again and then asked for the pin every time i try to install any app.

I`ll try fix permissions, but i doubt it will do any good, since CM was newly installed so there was no time for corruption
[Nexus One Android Development] Bi0haZarD:
Bro, try re-partitioning ur sd-ext and format. Also if ur using clockwork 3.x.x.x it is long time known that it corrupts ext partitions...use either clockwork 2.5.1.4 or latest amon-ra and problem solved ;)

Sent from my Nexus One

Running Gingerbread 2.3.3

Cyanogenmod 7
[Nexus One Android Development] bobtentpeg:
I only use Amon for partitioning ;)

In anycase, I found the issue. Twas a corrupt busybox binary
[Nexus One Android Development] Bi0haZarD:
I'm glad u worked it out fast ;)

Sent from my Nexus One

Running Gingerbread 2.3.3

Cyanogenmod 7
[Nexus One Android Development] Beast84:
So will this work with CM 7.0.2.1?
[Nexus One Android Development] richua:
Are you talking about DTA2SD? If so, then yes it will work.
[Nexus One Android Development] Beast84:
I'm talking about the whole script in general. Thanks. I also noticed in CWM 2.5.1.0 there is no option to convert ext 2 to 3 or 4. Is this gonna be an issue?
[Nexus One Android Development] richua:
It works - I'm using the modified beta posted in this thread with no problems on stable or nightlies.

The method I chose to convert to ext4 is to switch from CWM to Amon Ra, make a nandroid (different than a CWM backup; the two formats are not interchangeable) and back up SD to computer, reformat and repartition, then convert to ext4 and restore SD. If you have disk partitioning software on your computer, you might be able to format as ext4 directly using that.

CWM defaults the ext partition to ext3. If you don't need the data2sd features of the DT beta, you don't have to go to ext4.
[Nexus One Android Development] Beast84:
So if all I want are the apps & dalvik cache moved, I'm good then?
[Nexus One Android Development] richua:
Yep. I haven't used CWM in a while but I think there's a 2.5.1.4, you might want to upgrade to that just to be sure you're using the latest "stable" version. Definitely make a backup with 2.5.1.0 first and before doing anything major.

Besides that, use the modified stable DT (not beta) found in this thread and you should be good to go.
[Nexus One Android Development] undercover:
Guys, i've looked through the thread, but couldn't find an answer. Is it likely that when using this script with CWM recoveries, something goes wrong more often than with AmonRa? Just doing little investigation, as there are a few people who tried flashing latest RCMix S, which just been changed to darktremor skript, that can't flash the rom, it keeps bootlooping. Thanks in advance.

Sorry, should've mentioned, its Desire I'm talking about. But any info on other phones might be relevant too.
[Nexus One Android Development] temasek:
For n1 using clockwork recovery 3.xx has a tendancy of something goes wrong, especially corruption of sd-ext partition. Clockwork 2.xx is ok though.
[Nexus One Android Development] S_Dot:
Does it matter to do zipalign before cachesd? or after
[Nexus One Android Development] temasek:
I set zipalign on boot.
[Nexus One Android Development] chetanthaker:
I fubar'ed my N1 with CM7 Final on it.

Lost about 30 apps and Settings > Applications > Manage Applications said it is 0KB

Installing or reinstalling any app would just soft-reboot my phone (3 seconds of CM7 boot animation and then back into the phone)

Luckily I had a Nandroid, but that was a Amon_RA nandroid and I had Clockworkmod installed - So could not go back either

Could not install ROM Manager (DT caused some system issues?) so could not flash Amon_RA

I had to wipe my phone (without a usable Nandroid), flash CM7 fresh, install Amon_RA via ROM Manager, restore the backup

Panic attacks never lasted 3 hours ever.

I guess I'm better off without it coz I probably don't know how to use DT properly.
[Nexus One Android Development] temasek:
Were u using cwm3.xx? If yes suggest u downgrade to cwm2.xx or amon recovery. Cwm3 may have corrupted your ext partition.
[Nexus One Android Development] S_Dot:
Can't seem to get it to work, can someone please help. I get stumped the following commands.

I did a2sd check

there is a [!] REBOOT: Using Darktremor Busybox

And when I put in a2sd zipalign

[X] No a2sd. swap environment variable not found

:-(
[Nexus One Android Development] temasek:
Possible that your ext partition is already corrupted?
[Nexus One Android Development] S_Dot:
I think I just read, it said "zipalign running at boot"

And I did cachesd command and it briefly said, No a2sd swap environment found

Then reboot

Did they work?

How can I check the status, a2sd check? what do I look for to see if they're both enabled.

Thanks brother, you been of great help
[Nexus One Android Development] temasek:
I am getting a bit dizzy with your descriptions.

Pls explain what actually is your issue with DT so that we can put some magic potion to dissolve the issue. :p
[Nexus One Android Development] S_Dot:
Sorry brother, I'm not sure I'm having one. First time I ran zipalign and cachesd I'm getting this

[X] No a2sd. swap environment variable not found

I'm not sure whether the commands worked or not. Just checking
[Nexus One Android Development] temasek:
Set noswap in terminal and reboot

su
a2sd noswap
[Nexus One Android Development] S_Dot:
says

[X] No swap partitions found on/dev/block/mmcblk0
[Nexus One Android Development] temasek:
Good, thats a good thing cuz prompt error means it is working (swap isn't present). Sounds funny but it is true. DT will prompt errors if it found nothing.

Check your internal storage. U should have a BIG storage now, probably >100 MB size depending on your number of applications.
[Nexus One Android Development] S_Dot:
So I was good to go this whole time, ha! yeah when i format I always set swap = 0 read somewhere it doesn't do jack on froyo and higher.

My internal storage is 113MB bro, I probably have 200+ apps

Thanks!
[Nexus One Android Development] temasek:
Np. I'm quite a seasoned DT user myself now. Tweak here tweak there and never had any issues. In fact I'm on DT datasd enabled and.......I just used slightly over 1 GB of my 2 GB EXT4 partition. OMG :D
[Nexus One Android Development] Nutterpc:
Well initial reports in from another user *just installed* of Darktremors A2SD Scripts

Followed the desctructions on his facebook page, ran the file as was mentioned, and touch wood, it went thru flawlessly and said installation complete, enjoy a2sd scripts!

So now i have to restore my sdcard contents *yawn*

This might be a while :P

BTW, my device is as follows

Phone: HTC Desire (GSM)

ROM: CM7 Desire 7.0.3

Radio: Latest

RIL: Latest
[Nexus One Android Development] S_Dot:
low audio bug is driving me crazy
[Nexus One Android Development] temasek:
If u don't use datasd, go for .2 instead of .3 beta
[Nexus One Android Development] sl8125:
Quick question guys.

I flash cm nightly every night. I was wondering if I need to reinstall the script every time I flash the new rom. When I check the SD card space it looks it running off SD card but when I check via terminal emulator a2sd is not found. I would appreciate someone could let me know what's up.
[Nexus One Android Development] :
Yes, you have flash DT agter each nightly :)
[Nexus One Android Development] sl8125:
Not cool but thanks for quick reply.
[Nexus One Android Development] :
It's always been that way, just leave DT on sdcard wher you you dl nightlies to and it is no problem.
[Nexus One Android Development] SithL0rd:
How can I tell if the partition is on my sd card or how many? I think I may have partitioned it twice.
[Nexus One Android Development] :
If you used CW or Amon the second time would overwrite the first

Root Explorer will show you sdextwhat's in it and Mini Partition Tool Wizard will show all partitoins with size and type
[Nexus One Android Development] Stoo85:
Me tooo ! Grrrrrrrr
[Nexus One Android Development] SithL0rd:
many thanks! like you said it was overwriting the partition.

my problem ended up being I needed to do a a2sd reinstall

Working now tho!
[Nexus One Android Development] mtw4991:
If you are having low audio on DT .3 beta, just reboot until audio comes back to normal. Known bug, fyi, no need to keep posting about it :)
[Nexus One Android Development] Lex82:
I checked root explorer and it showed all my apps in sd-ext, but titanium backup and "about phone" says that I only have 54mb free. I'm running the latest MIUI rom.

Thanks
[Nexus One Android Development] :
Lex,

run thru terminal emulator

su

a2sd reinstall

a2sd cachesd

phone will reboot after each a2sd entry

I usually have 128mb free
[Nexus One Android Development] kmiloco49:
I've been running cm7 nightly since they came out, I was having some soft-reboots and decided to wipe and also try DT a2sd.

I partitioned the SD card to 1gb ext4, 128m swap.

Flashed the ROM and gapps, rebooted.

Flashed DT-CM7-2.7.5.3b4-EXT4-signed.zip

When trying to install apps I always get a soft-reboot. I tried with CWM and RA. I also reformatted the ext4 partition and fix permissions with no luck. Any help would be appreciated.
[Nexus One Android Development] temasek:
Try this

Delete /.android_secure folder
[Nexus One Android Development] kmiloco49:
I deleted the folder .android_secure and tried to install some apps but does not work. I get the soft-reboot when it tries to install the app
[Nexus One Android Development] musashiken:
Ok, I have a problem with DT. Probably the first time since I've been using it for months..

I decided to full wipe my N1 and reinstall cm7 from scratch. So I

- Full wiped in RA

- Flashed fits' latest Gigglebread

- Flashed temasek's 0507 gapps

- Flashed DT 2.7.5.1

- Reboot

And here's the error message after I typed 'su' and 'a2sd check' in terminal.

So can anyone help? I've been crack flashing nightlies and gigglebreads almost every other day for the past 2-3 months. But this happened..
[Nexus One Android Development] temasek:
I assumed u rebooted after u deleted the /.android_secure

Try this in terminal

su

a2sd reinstall

If above doesn't work then I suggest u perform a full wipe including /system partition. Don't flash titanium backup zip. Instead download titanium backup from market if u actually use it.
[Nexus One Android Development] temasek:
After u flashed rom and stuff and booted up for the 1st time, dt will perform auto move of your internal apps to /sd-ext. I believe u did not wait till dt completed its moving of apps and u rebooted. U too anxious to reboot ......possible.

Try to reinstall dt as follows in terminal

su

a2sd reinstall
[Nexus One Android Development] kmiloco49:
What I did was

mounted SD card to PC

deleted the folder .android_secure

mounted the SD card to phone

but when I mounted the SD the folder came back again.

I tried a2sd reinstall and still apps wont install, get a soft-reboot.

I wiped the phone about 10 times formatting system, data, cache, boot and ext4 partition,

Edit: I used the android system info app to check mount points and for sd-ext it shows

/dev/block/mmcblk0p2 ext3 ro,noatime,nodiratime,barrier=1,nodelalloc,data=ordered
[Nexus One Android Development] musashiken:
Erm, no I'm not a newbie at this, well at least when it comes to just flashing stuff. I've even reformatted my sd card and repartitioned my sd-ext.

And I made sure DT script was properly flashed in recovery before I rebooted.

su, a2sd reinstall does not work at all.

Edit: seems like my phone can't detect the presence of the ext partition..
[Nexus One Android Development] tkirton:
I borrowed the settings from AutoKiller (didn't know what would be optimal values to set, and I've never had any troubles with AutoKiller...so I figured this is the best place to get the values I needed).

I still prefer AutoKiller.
[Nexus One Android Development] djmcnz:
So good. So, so good.

Awesome man, keep it up.
[Nexus One Android Development] tkirton:
Thanks...I appreciate that.

I think the focus from this point is to make it stable with CyanogenMod nightly builds. I'm getting mixed results.

And, of course, trying to learn Java.
[Nexus One Android Development] ratson:
Nice one, I like it.

i'v experienced a problem with rc3 on cm 6 nightly. I downloaded the update version, and i was using cachesd parameter previously. what i see is that dalvik-cache is created on my cache partition.

in /data

lrwxrwxrwx 1 root root 21 Aug 18 09:30 dalvik-cache -> /data/sd/dalvik-cache

the link is set up properly, but if i delete the dalvik-cache on /cache it gets recreated. what should i do? it was working fine with rc2, although i had to enter a2sd cachesd manually after every flash
[Nexus One Android Development] djmcnz:
Every time you wipe dalvik-cache (and this is done automatically when most roms install also) you will need to recreate the symlinks... so you need to rerun a2sd cachepart/sd

It shouldn't worry you if /cache/dalvik-cache exists... but you don't say if it's being used. If files are being written to /data/sd/dalvik-cache then there's no concern. Or have I misunderstood?
[Nexus One Android Development] djmcnz:
:)

If you need testing etc, of course let me know. I'm running RC3 on CM6(RC3) and so are some of my Kang-o-rama test users... no apps2ext problems reported.

What are your mixed results?
[Nexus One Android Development] Stea1thmode:
Am also on CM6 RC3, I flashed this script, rebooted, then got stucked on the 'X' screen:confused:
[Nexus One Android Development] djmcnz:
Yep. Just boot to recovery, wipe dalvik cache and reboot from recovery... fixed. :)
[Nexus One Android Development] Stea1thmode:
you're joking me:confused:

Am sure I did that also(scratches head)

Let me give it another shot, will report back, thanks:)

Edit: Got stuck on the 'x' screen again.

This is what I did:

Boot to recovery

flashed this script

wiped dalvik cache, then reboot.

Edit2: YaTa!!

Boot into recovery,

flashed the script,

reboot, stuck on the x again,

removed battery,

boot to recovery,

wipe dalvik cache,

reboot.

Thanks very much for your help:D:)
[Nexus One Android Development] djmcnz:
No, no joke. But you need to do it in a specific order... wiping dalvik before you have this problem does not work. It's not actually the contents of the cache that are the problem, it's something to do with the boot process. The act of having to rebuild the cache seems to address the issue. (It also works if you clear cache but that has more of an impact because it will wipe some of your config whereas dalvik is rebuilt as it was).

So:

Install everything as normal

Boot

If you get stuck at the static X then

Hold down vol down+trackball+power until the HBOOT screen appears

Enter recovery from HBOOT

Wipe dalvik-cache

Reboot from recovery

Shouldn't have the problem frequently but if it does reoccur, follow the same procedure.

edit: :) just saw you latest edit... good stuff!
[Nexus One Android Development] Stea1thmode:
Thanks again, you're a genies.

so i've just checked my internal memory and it has increased. Does that mean am good to go now?

Don't I have to enter terminal commands?

I'm only asking because for eVIL's Sense rom, I had to enable apps2sd via terminal.
[Nexus One Android Development] djmcnz:
Not sure about that rom but you can check by running a2sd check in a terminal window... if you have more space I suspect it's working though... :)
[Nexus One Android Development] Stea1thmode:
nice 1, thanks again;)
[Nexus One Android Development] tkirton:
Not sure why the /cache/dalvik-cache is getting recreated...I'll look into that.

But the dalvik-cache is still pointed to the SD card (at least from the list below). The mount point was changed from /system/sd to /data/sd.

However, I'm seeing what you are seeing. My dalvik-cache is still pointed to internal storage:

drwxrwx--x 1 system system 2048 Aug 18 03:43 dalvik-cache

But only a placeholder file is in there. Everything is being recreated on /cache/dalvik-cache (and, yes, it did recreate)

This has to be CyanogenMod...if my program pointed dalvik-cache to /cache, that would show up as a symlink for /data/dalvik-cache.

Actually, the /cache/dalvik-cache is created by CyanogenMod in the init.rc:

mkdir /cache/dalvik-cache 0771 system system
chown system system /cache/dalvik-cache
chmod 0771 /cache/dalvik-cache

The way I've gotten around is to type the following:

cp -fp /cache/dalvik-cache/* /data/sd/dalvik-cache

rm -rf /cache/dalvik-cache

ln -s /data/dalvik-cache /cache/dalvik-cache

I'll build something in the next update
[Nexus One Android Development] jayjing:
good job,thanks
[Nexus One Android Development] ratson:
yes that's exactly what happens, dalvik is rebuilt under /cache/ and under /data/sd/ as well if both are purged, ext partition is symlinked from /data, but /cache is also completely built, placing the link under /cache solved it, thanks.
[Nexus One Android Development] tkirton:
Okay...got some workaround that I have done minimum amount of testing with:

http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5-rc3a-update-signed.zip

New commands: a2sd cmpatch

This commands will apply the workaround stated earlier as well as add a flag file called .cmpatch. If the program detects this file, it will apply the workaround if it hasn't been apply already (i.e. you flash a new nightly build). A new folder called /cache/dc is created if you really want to use the /cache partition for dalvik-cache.

I don't really like the workaround, but it is the best I can come up with on short notice.

To undo the patch for now, you have to flash the new install version: http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5-rc3a-signed.zip
[Nexus One Android Development] dyndragon:
Uninstalling this

Am I correct in understand that, if I upgrade my ROM, and do not install DT Apps2SD, all my apps that were moved from /data/apps to /data/sd/ will not exist?

So, furthermore, if I choose to not use DT apps2SD anymore, I would need to run the a2sd remove command before updating to a ROM that does not have DT apps2SD?

Thanks!
[Nexus One Android Development] tkirton:
They will still exists...although the /data/app symlink may need to be repointed to whatever the new mount point is.

Before you try a new rom, it is always best to run a2sd remove (and, subsequently, a2sd nocache if you moved the dalvik-cache to the SD card). This puts everything back on the internal storage (and prevents a boot loop as well).
[Nexus One Android Development] kartikb:
how do i use the command a2sd?
[Nexus One Android Development] temasek:
Seems that quite a lot of cases with dt unable to mount your /sd-ext partition.

Off hand I am not sure what's wrong cuz there are a few possibilities.

1. Recovery type

2. Corrupted ext partition

3. Cm mounted your ext as read only

4. Type of dt version

Look into these possibilities. We are all on continuous learning mode, including me. :)
[Nexus One Android Development] temasek:
Seems that your ext is read only.

1. Did u upgrade to ext4? From where u upgrade?

2. What DT version u use?
[Nexus One Android Development] kmiloco49:
I upgraded with RA from ext3 to ext4

Im using DT-CM7-2.7.5.3b4-EXT4-signed.zip
[Nexus One Android Development] temasek:
If android system info display your ext as ext3 and read only, I think your ext partition is bad. The modified dt script will mount your ext4 as ext4 and display in any app info as ext4. It will never show otherwise.

Either your ext is bad or your sd-card is bad. I hope I'm wrong.

I would do this if I'm u

1. Copy sd-card contents to pc

2. Remove ext partition

3. Format sd-card in pc

4. Repartition your sd-card to ext3

5. From recovery upgrade to ext4

Then try flashing again.

Just a suggestion.

Edit: Maybe u get a 2nd opinion better. :)
[Nexus One Android Development] kmiloco49:
Which kernel should I use?

Does CM7 kernel support ext4?

When I open the a2sd app it says my filesystem is ext2 and when I try to upgrade it to ext3 it says kernel does not support filesystem
[Nexus One Android Development] temasek:
Post Removed
[Nexus One Android Development] div3rg3nt:
Can I safely downgrade from DT 2.7.5.3b4-EXT4-B0 Only (Modified) to DT 2.7.5.2-1-EXT4 Only (Modified)?
[Nexus One Android Development] temasek:
Yes, if u are not on datasd.
[Nexus One Android Development] Javi22:
Hey, do you know if this script works on LG Optimus One P500? :)
[Nexus One Android Development] phoenixrise:
hello, i am new to using app2sd , i installed vers. dtapps2sd-2.7.5.2-1-signed, i partitioned my sd card using Android Recovery , i can see that i have a new ext partition "i think it is ext3 parition" but how can i move the apps to this partition ? the apps are being installed to my internal memory !!! please help, thank you
[Nexus One Android Development] temasek:
1. First time u flash a DT script, upon boot your apps will auto move to /sd-ext partition.

2. Flash DT script after a flash of a ROM before you reboot.

3. Would recommend u move dalvik-cache to /sd-ext to make full use of DT script.

Basically DT script symlink your apps to /sd-ext and as such bluff the system into thinking that /sd-ext is your internal storage.

Your real internal storage will continue to be use by the apps' data. So it will continue to reduce in storage but at a slower rate.

If u unsure, you may check if your /sd-ext/apps has any files :)