Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DATA2whatever] Flashable All-in-one-data2sd-Solution v0.2e + v0.4 test (dec 27th)

OP melethron

9th December 2010, 06:50 PM   |  #1  
OP Senior Member
Thanks Meter: 192
854 posts
Join Date:Joined: Sep 2010
data2whatever v0.2

UPDATE: For the new test version of v0.3 and v0.4 look at the end of the post.


- Supports: Ext2, Ext3, Ext4 (and if kernel supports it: ) btrfs, ReiserFS
- Supports loop device as optional addon (as siberes data2sd)
- Flashable zip for many app2sd ROMs (no long setup required)
- It does a e2fsck (disk check) on every boot and creates a logfile on the sdcard (/sdcard/e2fscklog.txt)
- looks nice if you do a logcat on boot
- no "settings lost on reboot" bug like in my old or siberes script
- changes the scheduler for the sd-card and internal to noop for better performance on sd.
- Nandroid Backup of EXT2/3/4 external with AmonRa or any clockwork recovery.
- Removes the common app2sd scripts on its own


- A second partition (same as app2sd - Min 512 mb - 1024mb is highly recommended - max 2048 MB or there will be issues with market) in any format (as long as the kernel supports - ext2/3/4 support is default in most kernels - Ext4 or ReiserFS is recommended).
- An app2sd or non app2sd ROM (data2sd versions wont work) (this SHOULD work with most or at least many ROMs . Roms that are confirmed to work can be found in the post below. Please report to me it it works or not so i can update this thread. If it doesn't work i try to make it compatible asap. )


1.) Full wipe (at least needed on first installation)
2.) Flash the app2sd Version of the ROM of your choice
4.) If you rebooted then start over at 1.)
5.) flash the attached "data2whatever.zip"
6.) now reboot

ADDITIONAL INFO: Even without "life on the edge" you should watch the first 4 "don't"s of "life on the edge". The normal script use the same disk safety methods as NTFS on Windows or EXT4 on linux. But as you know you shouldnt just switch off the computer because there can still be issues in very rare cases. Reboots with tools like "snqs power menu" is the same as a batterypull (or pulling the ac plug on PC) and this isn't good in general (and this also applies for using it with app2sd). If you want to go to recovery just make a normal shutdown and switch the phone on with "volume down" button pressed.

Optional life-on-the-edge add on

Life on the edge causes reboots. Don't use it for now.

This patch has the same effect as sibere's and ownhere's script (loop device - the way ownhere does in v4 doesnt work though). Other than those scripts it this addon doesnt need any repartitioning or other setup (like FAT or a third partition) and can simply be installed or removed with a flashable zip. All you need for this is a normal ext 2/3/4 partition (as above ^^). Ext4 is recommended for this (as above) since it is the fastest of those 3. This patch is more risky than normal ext3/4 considering the possibility of data loss. If you want to use this add-on you should watch the following (this also applys to ownheres and sibere script and is NOT more risky than their scripts):

- DON'T use the reboot of snq's powermenu (or any other reboot app)
- DON'T use anything in the "ROM Manager" that makes it reboot.
- DON'T do adb reboot / abd reboot recovery / adb reboot bootloader
- DON'T pull the battery while the phone is on (this should be obvious)
- DON'T remove the "sync" mount options for the Quadrant "boost" (this is a fake boost anyway)

All of this is like a powerloss for the sd-card and has a high change of data corruption.

From my test with this i give you an estimate what can happen if a powerloss occurs or any of the 5 points above happen:

- 50% general chance of corruption that will be autofixed on boot (not a problem)
- 10% chance of forcecloses after reboot of some apps (this can be fixed by deleting the app data or restoring it with titanium (or other) backup)
- REALLY tiny chance (didnt happen for me in over 40 "simulated" powerlosses) that partition gets corrupted (needs complete repartitioning of the microSD so all data on it will be gone then)

As long as you watch the 5 points above and as long as you don't drop the phone and the battery jumps out this will be safe.

Installation of the addon:

- Flash the "life-on-the-edge.zip" any time after you installed "data2whatever".

Installation of the addon:

- Flash the "life-on-the-edge-UNPATCH.zip" any time after you installed "data2whatever" and the addon. (this will revert back to the normal script)

Personal remark: While this is a improvement over normal ext4 it is not the "holy-grale" of a data2sd lag fix. I'm not using this myself and use a ReiserFS as second partition instead which is more safe and completly feels the same as a "loop" device considering performance.

Further Plans
- Changes for the mount options of the internal YAFFS2 Partition to optimize the speed of the "dalvik-cache" (have to look into YAFFS2 what can be done)
- Make Roms that doesn't work yet compatible to this


- cyanogen who made app2sd+ in the first place.
- sibere and ownhere who started all the data2sd.
- supercurio and Unhelpful of SGS' Voodoolagfix (#Project-Voodoo on freenode) for their helpfull script tipps.
- Coutts99 and Neophyte for their Kernels.
- woti23 for all those test's in this thread.
- All devs of XDA in generall for all this nice stuff that is done here

UPDATE: Test version of v0.3 and v0.4:

Please make a logcat of the first boot. This can help me to find possible issues.

This version now checks if your second partition is aligned and if not it will ERASE it and recreate it aligned. You will find more info about alignment later here (in the meantime you can google "ssd alignment" to get some info).

THIS WILL ERASE THE SD-EXT PARTITION IF IT IS NOT ALIGNED. On top of that there is a little risk that it messes up the partition table. Although i made a lot of test with this and added busybox to assure compatibility there could still issues with it. If something should go wrong in recreating the partition you may have to REPARTITION the COMPLETE Sd-card. So make a BACKUP OF ALL YOUR DATA ON THE SD before you test this .

Additional info: Don't let yourself get confused by the many deleting messages on install. The update script tries to erase:
- busybox (newest version gets installed afterwards)
- 4 different versions of app2sd scripts
- dalvikcache2cache script
- the 3 binaries included (e2fsck, tune2fs, mkfs.ext4)
- 3 possible symlinks for the binaries
- mtab file

Everything that is erased gets either installed afterwards (busybox, etc ...) or isn't needed (app2sd scripts).

Please post the alignment log if you testet this. This log can be found on the sdcard ( /sdcard/sd-ext-alignment-log.txt).

================================================== ================================

0.4d test release

- If the partitions gets aligned it will be formated with ext3 now instead of ext4 so it works with ROMs without ext4 kernel support.

0.4c test release

-fixed a rare issue that could happen on alignment if a partition has set the bootflag.

v0.4b test release

- fixed and Oxygen 2.0 RC4 related issue:
- renamed the "99complete" to "991complete" to prevent similiar issues on other AOSP ROMs that use individual properties.

v0.4 test release

- dalvik cache is now left internal. This should spread i/o and thus speed things up a bit.
- change scheduler to "deadline" if the kernel supports it
- changed logging: One file (data2whateverlog.txt on sdcard) for alignement and fsck with more info (thx moebius83)
- In case there is a swap partition (mmcblck0p3) this will also get aligned.

v0.3 test release
- this version will now recreate your sd-ext partition if it is not aligned (format: ext4)
- fixed the mtab error that could cause issues in some cases
- added busybox v1.17.2 to assure compatibility.
- added support for swap partition (if kernel supports it and partition 3 exists)
- removing more stuff on install (to make sure there are no old symlinks)

-fixed an issue caused by the s-off fix.

-fixed the cm6 fix

-fixed a bug that made this only work with S-OFF. (i totally forgot that system can't be mounted rw as default )

- fixed a typo of the last fix . This could have caused issues on leedroid. (thanks woti)
- added the patch for CM6 (thanks iinga)

- fixed a syntax error making the script not working at all
- fixed a bug that would have occured on leedroid if it would have worked ^^

data2whatever v0.1 (dec 23.)

-completly rewrote of the data2ext script
Attached Files
File Type: zip life-on-the-edge.zip - [Click for QR Code] (2.4 KB, 1842 views)
File Type: zip life-on-the-edge-UNPATCH.zip - [Click for QR Code] (2.1 KB, 1215 views)
File Type: zip data2whatever-v0.2e.zip - [Click for QR Code] (359.5 KB, 5694 views)
File Type: zip data2whatever-v0.4d.zip - [Click for QR Code] (2.68 MB, 17294 views)
File Type: zip data2whatever-v0.4c.zip - [Click for QR Code] (2.68 MB, 9770 views)
Last edited by melethron; 9th January 2011 at 05:02 PM.
The Following 30 Users Say Thank You to melethron For This Useful Post: [ View ]
9th December 2010, 06:52 PM   |  #2  
OP Senior Member
Thanks Meter: 192
854 posts
Join Date:Joined: Sep 2010
Confirmed to work with:

- LeeDroid 2.3b A2SD (life-on-the-edge may not work)
- MIUI 0.12.18 R3
- Gingerbread Oxygen RC2
- Ginger Villain ROM
- CM6
- MidianUI r2e
- Desire stock (with init.d support enabled through ramdisk - more info)

Don't work yet:
(about HD roms in general. They will be the ones with most issues because they use external space for system stuff because of the size of the HD Rom - ill still try to make my script work with them)

- robocik's Z v06
- ReflexTSenseHD 1.5
Last edited by melethron; 31st December 2010 at 07:11 PM.
The Following 2 Users Say Thank You to melethron For This Useful Post: [ View ]
9th December 2010, 06:59 PM   |  #3  
Rastaman-FB's Avatar
Senior Member
Thanks Meter: 48
716 posts
Join Date:Joined: Sep 2010
nice work man
im using miui currently and it hass 04apps2sd instead
is this the same thing?
9th December 2010, 07:13 PM   |  #4  
Madeli's Avatar
Senior Member
Thanks Meter: 56
368 posts
Join Date:Joined: May 2010
Very nice work.... and it kinda confirmed what i've been thinking all the time about it. Ppl thinks it speeds up your phone! Still this is of very good use if u want alot of space for apps
9th December 2010, 07:19 PM   |  #5  
OP Senior Member
Thanks Meter: 192
854 posts
Join Date:Joined: Sep 2010
Originally Posted by Rastaman-FB

nice work man
im using miui currently and it hass 04apps2sd instead
is this the same thing?

Check my 2nd post. I just edited it.
9th December 2010, 07:20 PM   |  #6  
Account currently disabled
Thanks Meter: 10
579 posts
Join Date:Joined: Jun 2010
I love you.

But still the best way is to integrate it w/ ROM
9th December 2010, 07:30 PM   |  #7  
Senior Member
Thanks Meter: 20
400 posts
Join Date:Joined: Apr 2010
where is the download link
9th December 2010, 07:41 PM   |  #8  
Flag Sevilla
Thanks Meter: 11
73 posts
Join Date:Joined: Aug 2010
Originally Posted by ghmail2

where is the download link


9th December 2010, 07:50 PM   |  #9  
Senior Member
Thanks Meter: 20
400 posts
Join Date:Joined: Apr 2010
Originally Posted by Rafa91



a joke?
9th December 2010, 08:04 PM   |  #10  
Thanks Meter: 11
31 posts
Join Date:Joined: Sep 2010
Originally Posted by ghmail2

where is the download link



Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes