Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
unCoRrUpTeD
Old
(Last edited by unCoRrUpTeD; 6th May 2011 at 06:01 AM.)
#1  
unCoRrUpTeD's Avatar
Senior Member - OP
Thanks Meter 207
Posts: 1,703
Join Date: Mar 2010
Location: Fort Worth, TX

 
DONATE TO ME
Default data2extV2.2 and a2sd-blaster (updated 5/6/2011)

unCoRrUpTeD DATA2EXT
&
A2SD BLASTER


DATA2EXT
What is data2ext?
data2ext was started as a way to move the entire contents of the data partition to an ext partition on the sdcard. It gives you a way to increase the size of your data partition and also increase benchmark scores. This should work on most phones as it detects the block location of the sdcard, regardless if it is /dev/block/mmcblk0 or /dev/block/mmcblk1.

SETUP

The following commands are optional and need to be put in before the 1st or 2nd boot
Make sure that the data partition is mounted before issueing the commands
Code:
adb shell
mount /data
*Converting to ext3 or ext4 on first boot
Code:
echo "extA" > /data/.d2ext
A is either 2, 3 or 4, depending on what ext format you want.
In the future you can convert to ext3 or ext4 even after data is on the sdcard.

*Formatting the ext partition on first boot to ensure a clean and fresh filesystem
(Note: This does not need to be done)
Code:
echo "extA format" > /data/.d2ext
A is either 2, 3 or 4, depending on what ext format you want.

*Create a custom read_ahead speed for the sdcard.
(Info on what it does can be found here courtesy of brainmaster)
Code:
echo XXXX > /data/.sdrw
XXXX is any value you want. By default it will be set at 2048.

You will need your sdcard partitioned with at least 1 ext partition. Either you can do that through your recovery or go here to download a script that will repartition without loosing your fat32 contents.

WARNING:
Due to some changes made, you will need to either backup your apps and do a fresh install or install over my data2extV1 script. Do not try and use the a2sd-copy-and-blast method at this time.

Install on a ROM you are currently running that has a2sd or data2ext enabled:
1. Reboot into recovery
2. Flash a2sd-copy-and-blast.zip
3. Flash data2ext.zip
4. Once your phone has booted, reboot again (This is to limit the time of the first boot and the setup won't be complete until you reboot.)


Install on a ROM you are currently running that has my previous data2ext installed:
1. Reboot into recovery
2. Flash data2ext.zip
3. Reboot your phone.

Install on a ROM you are currently running that does not have a2sd or data2ext enabled:
1. Reboot into recovery
2. Flash data2ext.zip
3. Once your phone has booted, reboot again (This is to limit the time of the first boot and the setup won't be complete until you reboot.)

Install on a fresh intall of a rom:
(It doesn't matter if it has a2sd or not as this will remove all a2sd scripts if they are present)
1. Reboot into recovery
2, Wipe everything
3. Flash ROM
4. Flash data2ext.zip
5. Reboot
6. Once your phone has booted, reboot again (This is to limit the time of the first boot and the setup won't be complete until you reboot.)
[/SIZE]


A2SD-BLASTER
unCoRrUpTeD-a2sd-blaster.zip: Use this one to remove a2sd from the ROM if you are doing a fresh install or want to keep all data on your ext partition for data2ext

unCoRrUpTeD-a2sd-copy-and-blast.zip: Use this one if the ROM your are currently running is using a2sd. It will remove a2sd from it and copy all apps from the ext partition back onto your phone's /data partition.



Changelog
data2ext-V2.2:Fixed issue with V2.1 freezing on boot, due to deleting /system/bin
data2ext-V2.1:Added a check for those already using data2ext
data2ext-V2:included checks if the ROM has the needed files, included the option to change the format to ext3 or ext4 on first boot, added sdcard read ahead tweak. Reboot needed after any install, added custom_backup_list.txt for new installs or updates
a2sd-copy-and-blast_V2:changed to move data back to phone along with apps
data2ext-V1: 1st release
a2sd-blaster: 1st release
a2sd-copy-and-blast: 1st release
The Following 8 Users Say Thank You to unCoRrUpTeD For This Useful Post: [ Click to Expand ]
AspenTree Old
#2  
Guest
Thanks Meter
Posts: n/a
i'm going to test on a fresh install of liquidsense and hopefully this works b/c i just switched back to gingerbread to get the speed of data2ext and i just installed all my apps again so hopefully you found the fix....i'll post back with results
AspenTree Old
#3  
Guest
Thanks Meter
Posts: n/a
sigh....bootloops.........i'm going back to gingerbread....

someday i wish someone could get app2sd removed so that i could have data2ext working on sense 2.1
 
unCoRrUpTeD
Old
#4  
unCoRrUpTeD's Avatar
Senior Member - OP
Thanks Meter 207
Posts: 1,703
Join Date: Mar 2010
Location: Fort Worth, TX

 
DONATE TO ME
Quote:
Originally Posted by kifno View Post
sigh....bootloops.........i'm going back to gingerbread....

someday i wish someone could get app2sd removed so that i could have data2ext working on sense 2.1
I just downloaded and flashed liquidsense and then a2sd_removal.zip. Booted right up.
It does remove busybox.a2sd, but in all testing across several different phones that has not caused any problems as the regular busybox is still in the ROM. The copy_remove.zip was missing some code to mount data before copying over, but I changed that one as well.
The Following User Says Thank You to unCoRrUpTeD For This Useful Post: [ Click to Expand ]
AspenTree Old
#5  
Guest
Thanks Meter
Posts: n/a
Quote:
Originally Posted by unCoRrUpTeD View Post
unCoRrUpTeD A2SD BLASTER
&
DATA2EXT


SETUP:
You will need your sdcard partitioned with at least 1 ext partition. Either you can do that through your recovery or go here to download a script that will repartition without loosing your fat32 contents.

If you are currently running a rom with a2sd of data2ext enabled you will need to reboot into recovery and flash a2sd-copy-and-blast.zip and then data2ext.zip

If you are doing a fresh install or running a rom with a2sd disabled or nonexistent then flash data2ext.zip

If setting this up after a fresh install you will need to reboot the phone after it has booted up. This is only done to speed up the first boot startup time. Once it is running you can do whatever you want, and on the next reboot it will set everything up.


A2SD-BLASTER
unCoRrUpTeD-a2sd-blaster.zip: Use this one to remove a2sd from the ROM if you are doing a fresh install or want to keep all data on your ext partition for data2ext

unCoRrUpTeD-a2sd-copy-and-blast.zip: Use this one if the ROM your are currently running is using a2sd. It will remove a2sd from it and copy all apps from the ext partition back onto your phone's /data partition.

OKay so is this the correct instructions:

- wipe everything
- partition sd card to have 512mb ext2 (that's what i always use for ext)
- flash fresh install of rom
- flash data2ext.zip
- then reboot into system?

or do i

- wipe everything
- partition sd card to have 512mb ext2 (that's what i always use for ext)
- flash fresh install of rom
- reboot into rom
- reboot recovery
- then flash data2ext.zip?

thanks for all they help you've given me
 
unCoRrUpTeD
Old
#6  
unCoRrUpTeD's Avatar
Senior Member - OP
Thanks Meter 207
Posts: 1,703
Join Date: Mar 2010
Location: Fort Worth, TX

 
DONATE TO ME
Quote:
Originally Posted by kifno View Post
OKay so is this the correct instructions:

- wipe everything
- partition sd card to have 512mb ext2 (that's what i always use for ext)
- flash fresh install of rom
- flash data2ext.zip
- then reboot into system?

or do i

- wipe everything
- partition sd card to have 512mb ext2 (that's what i always use for ext)
- flash fresh install of rom
- reboot into rom
- reboot recovery
- then flash data2ext.zip?

thanks for all they help you've given me
Updated OP.

Should be pretty clear now.
The Following User Says Thank You to unCoRrUpTeD For This Useful Post: [ Click to Expand ]
 
maxq1
Old
(Last edited by maxq1; 24th February 2011 at 11:00 AM.)
#7  
maxq1's Avatar
Senior Member
Thanks Meter 64
Posts: 275
Join Date: May 2010
Location: Manila
before i dive into this, bro, some questions if you will:
  1. this moves everything in /data to sd-ext right? by everything, does this include even dalvik cache?
  2. if, for any reason, i decide or need to return everything back to internal storage i could simply flash a2sd-copy-and-blast right?
thanks in advance!

EDIT 1:
bootloop! htc legend on cm6.1 w/ darktremor a2sd; ext3 partition. restored everything to internal storage, flashed a2sd-blaster then data2ext-V1. after restart, bootloop ..will try on ext2 partition later

EDIT 2:
bootloop also on ext2..was really hoping this mod will work on my phone
Sammy GS3 Intl (crDroid - perseus kernel) | Nexus 7 (multiboot: stock 4.2/PA/Ubuntu - trinity kernel)

best quote from an apple fanatic
Quote:
if you jailbreak, you defy apple, therefore you defy Steve Jobs' PR
 
unCoRrUpTeD
Old
#8  
unCoRrUpTeD's Avatar
Senior Member - OP
Thanks Meter 207
Posts: 1,703
Join Date: Mar 2010
Location: Fort Worth, TX

 
DONATE TO ME
Quote:
Originally Posted by maxq1 View Post
before i dive into this, bro, some questions if you will:
  1. this moves everything in /data to sd-ext right? by everything, does this include even dalvik cache?
  2. if, for any reason, i decide or need to return everything back to internal storage i could simply flash a2sd-copy-and-blast right?
thanks in advance!

EDIT 1:
bootloop! htc legend on cm6.1 w/ darktremor a2sd; ext3 partition. restored everything to internal storage, flashed a2sd-blaster then data2ext-V1. after restart, bootloop ..will try on ext2 partition later

EDIT 2:
bootloop also on ext2..was really hoping this mod will work on my phone
I'll look into it as this is also part of my dual-boot script that I am working on, which means that if this doesn't work on certain phones then the dual boot scripts won't work on all phones.
 
maxq1
Old
#9  
maxq1's Avatar
Senior Member
Thanks Meter 64
Posts: 275
Join Date: May 2010
Location: Manila
^ cool, man! i'm waiting on that as well. thanks!
Sammy GS3 Intl (crDroid - perseus kernel) | Nexus 7 (multiboot: stock 4.2/PA/Ubuntu - trinity kernel)

best quote from an apple fanatic
Quote:
if you jailbreak, you defy apple, therefore you defy Steve Jobs' PR
AspenTree Old
(Last edited by AspenTree; 26th February 2011 at 07:00 AM.)
#10  
Guest
Thanks Meter
Posts: n/a
this didn't give me bootloops so you've completed that step
but this didn't work at all

here's what i did:

- partition sd card
- wipe everything
- fresh install NFX stock 2.31.651.7 oxed (without apps2sd)
- install data2ext.zip
- reboot into rom
- once i approached the initial lock screen, i did adb shell reboot
- then i signed into google
- let it sync and load
- then i check application storage and it said 136mb
- so then installed titanium backup from makret
- after install i checked internal storage
- it went down to 131mb!


summary: not only did internal storage not say like 4xxmb like it does when gingerbread uses data2ext w/ 512mb, internal storage didn't even say anything different than the stock amount of internal storage

also even if the interal storage didn't correctly say how much storage we had after installing 1 app i knew this zip didn't take affect b/c of the great lost in internal storage

again i testing on nfx stock 2.31.651.7 (without apps2sd and oxed) and this did not work

edit: after fresh install method i tried the method where the rom doesn't have apps2sd.....this still doesn't work

 
Post Reply+
Tags
a2sd, apps2sd, cache2sd, data2ext, remove
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...