DISCONTINUED [MOD][AD2SDX][ALPHA02] SD-EXT Mod[OCT-20]

Search This thread

amarullz

Inactive Recognized Developer
Jan 16, 2007
1,066
7,272
Bandung
amarullz.blog.unikom.ac.id
BACKGROUND :D

After many time I stressful with Low Disk Space when Installing many Applications, or Slow Performance when Installing Data2sd or dalvik-cache to SD. I came up with some simple Idea to make my phone have big Internal Memory Storage, yet still robust in performance.


Introducing....
AD2SDX - AMARULLZ DATA TO SD-EXT

by amarullz [at] yahoo [dot] com
* Oct 20 2011 (ALPHA02) - Update Compatibility
* Oct 19 2011 (ALPHA01)



WHAT IS IT??
This mod will move all Internal Memory (data) into sd-ext, "but not like data2ext", this mod will maintain the performance, because it still place dalvik-cache and system application data in Internal Memory.


HOW IT WORK??
The script will do this in the first boot:
  • Move Mounting Internal Memory (/data) Into /sd-ext
  • Mount SDCard-Ext (mmcblk0p2) partition into /data
  • Create dalvik-cache directory in Internal Memory data (/sd-ext), and symlink it to mmcblk0p2 (/data)
  • Create data directory in mmcblk0p2 (/data) And symlink it into Internal Memory data (/sd-ext)
  • Create symlink of app, app-private, app_s and lib_s from mmcblk0p2 (/data) to Internal memory data (/sd-ext)
  • Create symlink for all non-symllink of Internal Memory data (/sd-ext) into mmcblk0p2 (/data)

After Initializing Setup (First Boot), reboot the system (Just reboot, don't go into recovery), the mod will automatically do this following:
  • Create data_s in Internal Memory data (/sd-ext)
  • Move All mmcblk0p2(/data)/data/com.htc* and com.android* into Internal Memory data(/sd-ext)/data_s
  • Create symlink all files/directory from Internal Memory data (/sd-ext)/data_s/* into mmcblk0p2(/data)/data/ So the System Application Data still read into Internal memory, but rest Application Data will read Into SDCard.

ILLUSTRATION
attachment.php


INSTALLATION
For now, use adb shell and Install it manually, I am android newbie :D, still unfamiliar with recovery zip installer.
  • Delete Any A2SD Script in /system/etc/init.d ( common name was 40a2sd )
  • Copy 40ad2sdx into /system/etc/init.d Don't forget to chmod 755/777 it
  • Reboot ( 2x optional )

INSTALLATION WITH ADB IN RECOVERY MODE
Code:
C:\>adb shell
# mount /system
# exit

C:\>adb push 40ad2sdx /system/etc/init.d/

C:\>adb shell
# cd /system/etc/init.d
# rm 40a2sd
# chmod 755 40ad2sdx
# cd /
# umount /system
# exit

C:\>
NOTE: the "rm 40a2sd" should be the name of app2sd init.d file.

NOTE
If you install it after clean flash you need to reboot your phone at the 1st boot to activate System App Data on Internal Memory.


CAUTION!!!
YOU SHOULD UNZIP AND MANUALY COPY THE FILE INTO /system/etc/init.d/ - THE ZIP FILE WASN'T AUTO INSTALLER THAT CAN BE RUN IN RECOVERY!!!!



WARNING!!!
THIS MOD ONLY IN TEST STAGE, ONLY ADVANCE USER I SUGGEST TO TRY THIS SCRIPT.
I DON'T TAKE ANY RESPONSIBILITY IF YOU BROKE/BOOTLOOPS YOUR SYSTEM/ROM/PHONE.


TESTED-DEVICE / ROM
  • HTC Desire (Bravo)
    - Cool3D RunnyMede Sense 3.5 v2, v3
    - Cool3D AceS Sense 3.0 v3, v4

If You Already Test it and works,.. Please send me a feedback in your comment...

LOGS
Code:
VERSION 1.0 ALPHA02
===================
* Add framework_s into strict mmcblk0p2
* Add Create symlink for rest non-symlink files from mmcblk0p2 to mtdblock5 ( Hope will fix bootloop )
* Change loop method from `ls -d *` to `ls -a` ( may fix error on .systemapp and all file with dot name at first char )

VERSION 1.0 ALPHA01
===================
* Initial Release
* Support for clean flash or already running system
* com.android* and com.htc* set as System App Category
* dalvik-cache on Internal Memory
* add umount /sd-ext in first command

SCRIPT: ALPHA01
Code:
#!/system/bin/sh
#
# AMARULLZ DATA TO SD-EXT MOD FOR ANDROID ( AD2SDX )
# ==================================================
#
#  by amarullz [at] yahoo [dot] com
#  xda-developers : amarullz
#  (c) 2011
#  * Oct 19 (ALPHA01)
#
#  Info: ~ For Changing Log
##

###
# Initializing
###

#-- SDCard Speed Fix
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
  /system/xbin/echo "8192" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

#-- Unmount /sd-ext if it already mounted
busybox umount /sd-ext;

#-- Mount /data and move it to /sd-ext
busybox mount /data;
busybox mount --move /data /sd-ext;

#-- Mount sd-ext to /data ( You Will Get 1GB/2GB Internal Memory :D )
busybox mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
busybox chown 1000:1000 /data;
busybox chmod 771 /data;

###[ SDEXT mmcblk0p2 STRICT ]###
# app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
#
# ~ ALPHA02 - Add framework_s into (mmcblk0p2) strict 
###
for i in framework_s app app_s lib_s app-private data;
do
  #-- If Symlink in /data, delete it
  if [ -h /data/$i ]
  then
    busybox rm /data/$i;
  fi;
    
  #-- If Directory Exists in /sd-ext, move it to /data
  if [ -d /sd-ext/$i ]
  then
    busybox mv /sd-ext/$i /data/;
  fi;
  
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /data/$i ]
  then
    busybox mkdir /data/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /data/$i;
  fi;
  
  #-- Now Create Symlink From /sd-ext to /data
  if [ ! -h /sd-ext/$i ]
  then
    busybox ln -s /data/$i /sd-ext/$i;
  fi;
done;

###[ INTERNAL mtdblock5 STRICT ]###
# For performance, dalvik-cache should be on /sd-ext
###
for i in dalvik-cache;
do
  #-- If Symlink in /data, delete it
  if [ -h /sd-ext/$i ]
  then
    busybox rm /sd-ext/$i;
  fi;
    
  #-- If Directory Exists in /sd-ext, move it to /data
  if [ -d /data/$i ]
  then
    busybox mv /data/$i /sd-ext/;
  fi;
  
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /sd-ext/$i ]
  then
    busybox mkdir /sd-ext/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /sd-ext/$i;
  fi;
  
  #-- Now Create Symlink From /sd-ext to /data
  if [ ! -h /data/$i ]
  then
    busybox ln -s /sd-ext/$i /data/$i;
  fi;
done;

###
# Now create symlink of the rest non Symlink Directories and Files on /sd-ext to /data
#
# ~ ALPHA02 - Fix ls to ls -a, it's ok, because we test -h for symlink
###
cd /sd-ext;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /sd-ext/$i ]
    then
      if [ ! -h /data/$i ]
      then
        busybox ln -s /sd-ext/$i /data/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# It should also need to create the rest non Symlink Directories and Files on /data to /sd-ext
# ~ ALPHA02 - Some Directory may be missing if we don't use it
###
cd /data;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /data/$i ]
    then
      if [ ! -h /sd-ext/$i ]
      then
        busybox ln -s /data/$i /sd-ext/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# Now Important Thing, is to move the com.htc* and com.android* data to /sd-ext (internal) 
# For Good performance. So the system applications will run smooth.
#
# System application will read/write in Internal memory, and 3rd apps will run on sdcard
#
# Notice: Will be affected in 2nd boot :D, so Reboot the system after 1st boot...
###

#-- Prepare data_s in /sd-ext ( For system data )
if [ ! -d /sd-ext/data_s ]
then
  busybox mkdir /sd-ext/data_s;
  #-- Just Open All Permissions ;)
  busybox chmod 0777 /sd-ext/data_s;
fi;

#-- Now Move All com.htc* and com.android* to Internal Memory
cd /data/data/;
for i in `ls -d com.htc* com.android*`;
do
  #-- Only Non Symlink
  if [ ! -h /data/data/$i ]
  then
	  busybox mv /data/data/$i /sd-ext/data_s/;
	fi;
done;

#-- Create Symlink of /data/data_s/* to /data/data/ (mmcblk0p2)
cd /sd-ext/data_s/
for i in `ls -d *`;
do
  #-- Only If Symlink Not Exists
  if [ ! -h /data/data/$i ]
  then
	  busybox ln -s /sd-ext/data_s/$i /data/data/$i
	fi;
done;

#-- Of Finished.... :D


INSTALL ZIP FROM RECOVERY?
Thanks to tezgomet ;) -- Download Attachment by tezgomet >>
SD-EXT Mod - AMARULLZ DATA TO SD-EXT
from recovery
tested on BlissMod007_v03_a-STOCK
install rom and without rebooting install script

!!!WARNING!!!
INSTALL IT ON YOUR OWN RISK.

KNOW BUG
  • Titanium Backup - Restore the Application Data ( com.android*/com.htc* data )
 

Attachments

  • 40ad2sdx-a2.zip
    1.5 KB · Views: 63,116
Last edited:

amarullz

Inactive Recognized Developer
Jan 16, 2007
1,066
7,272
Bandung
amarullz.blog.unikom.ac.id
NOT WORK ON YOUR ROM?, DON'T WORRY I WILL HELP YOU

This script (AD2SDX) alghoritm should be compatible in any android phone that support init.d, busybox and rooted, but it still depended on how the ROM place the files in your phone.

To make this script compatible with more ROM+PHONE, you can send me your file system information with this sh script (also available in attachment to download):

Code:
#!/bin/sh
echo "AD2SDX - Dump Logs...";
echo "   by amarullz [at] yahoo [dot] com"
echo ""
echo "WARNING!!!"
echo "This script WILL dump an Informations About your Storages,"
echo "If you allow me to know your filesystem structures,"
echo "maybe I can help to improve AD2SDX Compatibility..."
echo ""
echo "This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME"
echo "SERIAL NUMBER and ANY PERSONAL INFORMATIONS..."
echo ""
echo "But Please provide me your Device Name and ROM when you"
echo "submit it on AD2SDX Thread..."
echo ""
sleep 1
echo "Mounting data, sd-ext, and sdcard..."
mount /data
mount /sd-ext
mount /system
mount /sdcard
echo ""

echo "Dumping FileSystem..."
echo "DF" > /sdcard/ad2sdx-dump.txt
echo "==" >> /sdcard/ad2sdx-dump.txt
df >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on data files..."
cd /data
echo "LIST /data" >> /sdcard/ad2sdx-dump.txt
echo "==========" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on /sd-ext files..."
cd /sd-ext
echo "LIST /sd-ext" >> /sdcard/ad2sdx-dump.txt
echo "============" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on /system files..."
cd /system
echo "LIST /system" >> /sdcard/ad2sdx-dump.txt
echo "============" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt


echo "Dumping File List on /system/etc/init.d files..."
cd /system/etc/init.d
echo "LIST init.d" >> /sdcard/ad2sdx-dump.txt
echo "===========" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo ""
echo "Finished... Thanks..."

HOW TO DUMP?
You should use adb, or Script Manager as root
  • Copy ad2sdx-dumpinfo.sh into your /sdcard/
  • (for ADB): Run "sh ad2sdx-dumpinfo.sh" in adb shell
  • Copy "/sdcard/ad2sdx-dump.txt" from your phone to your pc ( If you not trust me, you can review it before you send it to me )
  • Post comments + content of "/sdcard/ad2sdx-dump.txt" in this thread "use CODE or attachment"

COPY FILES WITH ADB
From PC to Phone
Code:
adb push c:\ad2sdx-dumpinfo.sh /sdcard/
From Phone to PC
Code:
adb pull /sdcard/ad2sdx-dump.txt c:\ad2sdx-dump.txt
SHELL
Code:
adb shell
* You are more advance than me about it :eek:...

WARNING!!!
This script WILL dump an Informations About your Storages,
If you allow me to know your filesystem structures,
maybe I can help to improve AD2SDX Compatibility...

This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME
SERIAL NUMBER and ANY PERSONAL INFORMATIONS...

USE IT YOUR OWN RISK!!!


But Please provide me your Device Name and ROM when you
submit it on AD2SDX Thread...

EXAMPLE DUMP FILE
Code:
DF
==
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   206664        64    206600   0% /dev
tmpfs                   206664         0    206664   0% /mnt/asec
tmpfs                   206664         4    206660   0% /mnt/asec/download
tmpfs                   206664         0    206664   0% /mnt/obb
tmpfs                     8192         0      8192   0% /app-cache
/dev/block/mtdblock3    148480    124428     24052  84% /system
/dev/block/mtdblock5    294528    152336    142192  52% /sd-ext
/dev/block/mtdblock4      5120      1228      3892  24% /cache
/dev/block/mmcblk0p2   1968876    547236   1321624  29% /data
/dev/block/vold/179:1
                      13656560   4473152   9183408  33% /mnt/sdcard
/dev/block/vold/179:1
                      13656560   4473152   9183408  33% /mnt/secure/asec


LIST /data
==========
drwxrwx--x   13 1000     1000          4096 Oct 20 15:16 .
drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
-rwxrwxrwx    1 0        0             1069 Oct 20 08:17 99SuperCharger.sh
lrwxrwxrwx    1 0        0               13 Oct 20 07:49 DxDrm -> /sd-ext/DxDrm
-rw-rw-rw-    1 0        0               14 Oct 20 08:17 SuperChargerAdj
-rw-rw-rw-    1 0        0               34 Oct 20 08:17 SuperChargerMinfree
-rw-rw-rw-    1 0        0                4 Oct 20 08:17 SuperChargerOptions
drwxrwxr-x    2 1000     1000          4096 Oct 20 13:32 anr
drwxrwx--x    2 1000     1000          4096 Oct 20 08:05 app
drwxrwx--x    2 1000     1000          4096 Oct 20 07:50 app-private
drwxr-xr-x    2 0        0            12288 Oct 20 08:20 app_s
drwx------    5 1000     1000          4096 Oct 20 15:52 backup
lrwxrwxrwx    1 0        0                9 Oct 20 07:49 d -> /sd-ext/d
lrwxrwxrwx    1 0        0               20 Oct 20 07:49 dalvik-cache -> /sd-ext/dalvik-cache
drwxrwx--x   59 1000     1000         12288 Oct 20 08:22 data
lrwxrwxrwx    1 0        0               14 Oct 20 08:07 data_s -> /sd-ext/data_s
lrwxrwxrwx    1 0        0               17 Oct 20 07:49 dontpanic -> /sd-ext/dontpanic
drwxr-xr-x    2 0        0             4096 Oct 20 07:40 framework_s
lrwxrwxrwx    1 0        0               13 Oct 20 07:49 hosts -> /sd-ext/hosts
lrwxrwxrwx    1 0        0               13 Oct 20 07:49 htcfs -> /sd-ext/htcfs
drwxr-xr-x    2 0        0             4096 Oct 20 07:40 lib_s
lrwxrwxrwx    1 0        0               13 Oct 20 07:49 local -> /sd-ext/local
drwxr-xr-x    2 0        0            16384 Oct 20 07:49 lost+found
lrwxrwxrwx    1 0        0               12 Oct 20 07:49 misc -> /sd-ext/misc
lrwxrwxrwx    1 0        0               16 Oct 20 07:49 property -> /sd-ext/property
drwx------    3 1000     1000          4096 Oct 20 07:50 secure
drwxrwxr-x    9 1000     1000          4096 Oct 21 01:00 system
-rw-r--r--    1 0        0             3107 Oct 20 15:16 zipalign.log


LIST /sd-ext
============
drwxrwx--x    1 1000     1000          2048 Oct 20 07:38 .
drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
lrwxrwxrwx    1 0        0               23 Oct 20 08:22 99SuperCharger.sh -> /data/99SuperCharger.sh
dr-xr-xr-x    1 0        0             2048 Oct 20 07:49 DxDrm
lrwxrwxrwx    1 0        0               21 Oct 20 08:22 SuperChargerAdj -> /data/SuperChargerAdj
lrwxrwxrwx    1 0        0               25 Oct 20 08:22 SuperChargerMinfree -> /data/SuperChargerMinfree
lrwxrwxrwx    1 0        0               25 Oct 20 08:22 SuperChargerOptions -> /data/SuperChargerOptions
lrwxrwxrwx    1 0        0                9 Oct 20 08:07 anr -> /data/anr
lrwxrwxrwx    1 0        0                9 Oct 20 07:49 app -> /data/app
lrwxrwxrwx    1 0        0               17 Oct 20 07:49 app-private -> /data/app-private
lrwxrwxrwx    1 0        0               11 Oct 20 07:49 app_s -> /data/app_s
lrwxrwxrwx    1 0        0               12 Oct 20 08:07 backup -> /data/backup
drwxr-xr-x   16 0        0                0 Jan  1  1970 d
drwxrwx--x    1 1000     1000          2048 Oct 20 07:49 dalvik-cache
lrwxrwxrwx    1 0        0               10 Oct 20 07:49 data -> /data/data
drwxrwxrwx    1 0        0             2048 Oct 20 07:49 data_s
drwxr-x---    1 0        1007          2048 Oct 20 07:49 dontpanic
lrwxrwxrwx    1 0        0               11 Oct 20 07:49 drm -> /data/local
lrwxrwxrwx    1 0        0               17 Oct 20 07:49 framework_s -> /data/framework_s
-rw-r--r--    1 0        0           708302 Aug  1  2008 hosts
drwxr-xr-x   16 0        0                0 Oct 20 15:16 htcfs
lrwxrwxrwx    1 0        0               11 Oct 20 07:49 lib_s -> /data/lib_s
drwxrwx--x    1 2000     2000          2048 Oct 20 07:49 local
drwxrwx---    1 0        0             2048 Oct 20 07:49 lost+found
drwxrwx--t    1 1000     9998          2048 Oct 20 15:16 misc
drwx------    1 0        0             2048 Oct 20 21:54 property
lrwxrwxrwx    1 0        0               12 Oct 20 08:07 secure -> /data/secure
lrwxrwxrwx    1 0        0               12 Oct 20 08:07 system -> /data/system
lrwxrwxrwx    1 0        0               18 Oct 20 08:07 zipalign.log -> /data/zipalign.log


LIST /system
============
drwxr-xr-x    1 0        0             2048 Oct 20 07:41 .
drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
lrwxrwxrwx    1 0        0               13 Oct 20 07:41 app -> /sd-ext/app_s
drwxr-xr-x    1 0        2000          2048 Oct 20 07:41 bin
-rw-r--r--    1 0        0             7966 Oct 20 08:17 build.prop
-rw-r--r--    1 0        0             7437 Oct 20 08:17 build.prop.unsuper
drwxr-xr-x    1 0        0             2048 Oct 20 07:40 customize
drwxr-xr-x    1 0        0             2048 Oct 20 07:41 etc
drwxr-xr-x    1 0        0             2048 Oct 20 07:40 fonts
lrwxrwxrwx    1 0        0               19 Oct 20 07:41 framework -> /sd-ext/framework_s
drwxr-xr-x    1 0        0             2048 Oct 20 07:47 lib
drwxr-xr-x    1 0        0             2048 Oct 20 07:40 lost+found
drwxr-xr-x    1 0        0             2048 Oct 20 07:41 media
drwxr-xr-x    1 0        0             2048 Oct 20 07:41 usr
drwxr-xr-x    1 0        2000          2048 Oct 20 07:41 xbin


LIST init.d
===========
drwxr-xr-x    1 0        2000          2048 Oct 20 07:47 .
drwxr-xr-x    1 0        0             2048 Oct 20 07:41 ..
-rwxr-xr-x    1 0        0              446 Oct 20 13:36 00aroc
-rwxr-xr-x    1 0        2000          1167 Aug  1  2008 02ramtweaks
-rwxrwxrwx    1 0        0             4151 Oct 20 07:47 40a2sd
-rwxr-xr-x    1 0        2000          1938 Aug  1  2008 77tweaks
-rwxr-xr-x    1 0        2000          1499 Aug  1  2008 97zipalign
-rwxrwxrwx    1 0        0             1097 Oct 20 08:17 99SuperCharger
-rwxr-xr-x    1 0        2000           176 Aug  1  2008 99complete
 

Attachments

  • dump_script.zip
    676 bytes · Views: 2,519
Last edited:

icke

Senior Member
Feb 12, 2007
2,002
1,202
Ahaus
Google Pixel 6
Great!!!:D
Working with Leo on HyperDroid-CM7-v5.3.0.
But weired behavior: Titanium Backup crashes after every app installation immediately.:confused:

Edit: After third reboot Titanium doesn't crash any more!
This script runs like hell....wow!

---------- Post added at 07:27 PM ---------- Previous post was at 06:36 PM ----------

:confused:
Strange...Titanium only crashes if I try to install apps+data...but not if I only install apps.
 
Last edited:
  • Like
Reactions: willioswillios

diditdr

Senior Member
Sep 18, 2011
114
13
Ok, I evaluate first on my sga with xm7.1

Nice to see you again amarullz.
 

amarullz

Inactive Recognized Developer
Jan 16, 2007
1,066
7,272
Bandung
amarullz.blog.unikom.ac.id
EXT3,2 ??

You can edit this line:
Code:
busybox mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
busybox chown 1000:1000 /data;
busybox chmod 771 /data;

Great!!!:D
Working with Leo on HyperDroid-CM7-v5.3.0.
But weired behavior: Titanium Backup crashes after every app installation immediately.:confused:

Edit: After third reboot Titanium doesn't crash any more!
This script runs like hell....wow!

---------- Post added at 07:27 PM ---------- Previous post was at 06:36 PM ----------

:confused:
Strange...Titanium only crashes if I try to install apps+data...but not if I only install apps.

Ok, I will try, and look what Titanium Backup Do (may be the error occur when it remove/change com.android* or com.htc* data files)...

-- TIPS --
May Be try this: If you want to restore system applications data (com.android* & com.htc*), Do that in the first boot (clean flash), so the com.android* & com.htc* still in sdcard (not symlinked), after you reboot it, the mod will automatically move it to Internal Memory...
 
Last edited:

jukalo

Member
Aug 22, 2011
23
2
I am using a sense froyo rom 2.38 with kernel infinity on my device and I did a clean flash my device is wildfire even replace the ext4 to ext3 as you be explained in a above post and still the same problem
 

ckpv5

Inactive Recognized Contributor
Feb 11, 2008
14,354
18,301
Kuala Lumpur
Hi Amarullz

To my understanding this is simply exchange the sd-ext becomes data partition and data partition now becomes sd-ext.

The script will move all sd-ext contents to data partition and data partition contents will mve to sd-ext. This will limit the size of sd-ext contents (not the size of sd-ext) max at data partition size. When the size of sd-ext contents is more than data partition size, the phone will not boot pass the splash screen or maybe bootloop.

Is there anyway we can mod the script to move only specific folders on sd-ext to data partition ? For example I have app_s, lib_s, frameworks_s and font_s but I want to move only app_s & lib_s to data partition and leave the rest on the sd-ext. I am totally a noob when it comes to scripting.
 

amarullz

Inactive Recognized Developer
Jan 16, 2007
1,066
7,272
Bandung
amarullz.blog.unikom.ac.id
Hi Amarullz

To my understanding this is simply exchange the sd-ext becomes data partition and data partition now becomes sd-ext.

The script will move all sd-ext contents to data partition and data partition contents will mve to sd-ext. This will limit the size of sd-ext contents (not the size of sd-ext) max at data partition size. When the size of sd-ext contents is more than data partition size, the phone will not boot pass the splash screen or maybe bootloop.

Is there anyway we can mod the script to move only specific folders on sd-ext to data partition ? For example I have app_s, lib_s, frameworks_s and font_s but I want to move only app_s & lib_s to data partition and leave the rest on the sd-ext. I am totally a noob when it comes to scripting.

No, I don't move all sd-ext data into /data partition. Actually:

1. Move "mount point" of /data to /sd-ext
2. Mount mmcblk0p2 (commonly mounted on /sd-ext) to /data

All Data remain on mmcblk0p2 but symlinked to /sd-ext for app2sd compatibility except for com.android*, com.htc* and dalvik-cache.

But I know it may not work on all device/rom yet ( still need to fix compatibility ), because something like this maybe happened:

My Script blacklisted "app, app_s, lib_s, app-private, data" in Internal Storage (will move it into mmcblk0p2), If ROM used another directory name, example for app_s is .systemapp, system won't boot, because /system/app symlinked to /sd-ext/.systemapp and there is no /sd-ext/.systemapp because the /sd-ext was originally (/data) [ /system/app should be pointed to /data/.systemapp or /sd-ext/.systemapp pointed to /data/.systemapp ] - Understand what I mean? :eek:.


This area on script will strict the "app, app_s, lib_s, app-private, data" into mmcblk0p2 ( in original data only symlink )
Code:
###
# app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
###
for i in app app_s lib_s app-private data;
do
  #-- If Symlink in /data, delete it
  if [ -h /data/$i ]
  then
    busybox rm /data/$i;
  fi;
    
  #-- If Directory Exists in /sd-ext, move it to /data
  if [ -d /sd-ext/$i ]
  then
    busybox mv /sd-ext/$i /data/;
  fi;
  
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /data/$i ]
  then
    busybox mkdir /data/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /data/$i;
  fi;
  
  #-- Now Create Symlink From /sd-ext to /data
  if [ ! -h /sd-ext/$i ]
  then
    busybox ln -s /data/$i /sd-ext/$i;
  fi;
done;

And this area will strict "dalvik-cache" in Internal Memory
Code:
for i in dalvik-cache;
do
  #-- If Symlink in /data, delete it
  if [ -h /sd-ext/$i ]
  then
    busybox rm /sd-ext/$i;
  fi;
    
  #-- If Directory Exists in /sd-ext, move it to /data
  if [ -d /data/$i ]
  then
    busybox mv /data/$i /sd-ext/;
  fi;
  
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /sd-ext/$i ]
  then
    busybox mkdir /sd-ext/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /sd-ext/$i;
  fi;
  
  #-- Now Create Symlink From /sd-ext to /data
  if [ ! -h /data/$i ]
  then
    busybox ln -s /sd-ext/$i /data/$i;
  fi;
done;

You can modify this line for your needs:
for i in app app_s lib_s app-private data;
for i in dalvik-cache;

UPDATE ALPHA 02, WITH Compatibility Fix, Add strict framework_s into mmcblk0p2, + dot files fix (.systemapp)
 
Last edited:

Klewe

Senior Member
Jan 3, 2011
280
41
:eek: 492 free space on internal memory!

I tried this mod on RunnyMede V3 (with coolexes move dalvik to sd script) on a working system (didn't install from scratch) and it works.
Some "problems" I noticed:
- After restart had to resync everything, from contacts, Calendar to fb shortcuts in contacts
- All htc widgets on homescreens were gone (inclusive clock)
- the biggest one: there are no more shortcuts on lockscreen. Try to get them back from personalisation menu, no chance!

I think it should be tried with fresh install. Maybe if I'll find the time I'll try it.

Anyway. Thanks for the script and keep up the work!
 
Last edited:

amarullz

Inactive Recognized Developer
Jan 16, 2007
1,066
7,272
Bandung
amarullz.blog.unikom.ac.id
:eek: 492 free space on internal memory!

I tried this mod on RunnyMede V3 (with coolexes move dalvik to sd script) on a working system (didn't install from scratch) and it works.
Some "problems" I noticed:
- After restart had to resync everything, from contacts, Calendar to fb shortcuts in contacts
- All htc widgets on homescreens were gone (inclusive clock)
- the biggest one: there are no more shortcuts on lockscreen. Try to get them back from personalisation menu, no chance!

I think it should be tried with fresh install. Maybe if I'll find the time I'll try it.

Anyway. Thanks for the script and keep up the work!

Try clean flash, I not test it on already running system yet.

About zip install on recovery... I will learn it first... cause I am newbie in Android :D:D
 

seby_guritza

Senior Member
Dec 27, 2010
320
161
athinai
751 mb free space internal memory!!

On Blissy mod007 Rom fresh install with stock hboot i have 123 mb internal memory, then with root explorer i erase 40a2sd from system/etc/init.d and i copy you`re 40a2sdx and reboot.After reboot i have 751 mb free space on internal memory, but no icons on lockscreen and no widgets at all!!!
Appreciate a lot you`re work man!!!TNX a lot!!
 

Alex-V

Inactive Recognized Developer
Aug 26, 2008
9,514
5,254
Hey,

this is a very nice and good script..much faster as data2ext with sense 3.5 roms..

i have only one problem..i get a wifi error with this script..(tried on 2 different roms...also the same if i change the file in rom.zip and flash it)

Maybe you have a tip for me..?!? (because its strange..not get this error with data2ext or a2sd)

otherwise really good work :)

with kind regards...Alex
 

Top Liked Posts

  • There are no posts matching your filters.
  • 210
    BACKGROUND :D

    After many time I stressful with Low Disk Space when Installing many Applications, or Slow Performance when Installing Data2sd or dalvik-cache to SD. I came up with some simple Idea to make my phone have big Internal Memory Storage, yet still robust in performance.


    Introducing....
    AD2SDX - AMARULLZ DATA TO SD-EXT

    by amarullz [at] yahoo [dot] com
    * Oct 20 2011 (ALPHA02) - Update Compatibility
    * Oct 19 2011 (ALPHA01)



    WHAT IS IT??
    This mod will move all Internal Memory (data) into sd-ext, "but not like data2ext", this mod will maintain the performance, because it still place dalvik-cache and system application data in Internal Memory.


    HOW IT WORK??
    The script will do this in the first boot:
    • Move Mounting Internal Memory (/data) Into /sd-ext
    • Mount SDCard-Ext (mmcblk0p2) partition into /data
    • Create dalvik-cache directory in Internal Memory data (/sd-ext), and symlink it to mmcblk0p2 (/data)
    • Create data directory in mmcblk0p2 (/data) And symlink it into Internal Memory data (/sd-ext)
    • Create symlink of app, app-private, app_s and lib_s from mmcblk0p2 (/data) to Internal memory data (/sd-ext)
    • Create symlink for all non-symllink of Internal Memory data (/sd-ext) into mmcblk0p2 (/data)

    After Initializing Setup (First Boot), reboot the system (Just reboot, don't go into recovery), the mod will automatically do this following:
    • Create data_s in Internal Memory data (/sd-ext)
    • Move All mmcblk0p2(/data)/data/com.htc* and com.android* into Internal Memory data(/sd-ext)/data_s
    • Create symlink all files/directory from Internal Memory data (/sd-ext)/data_s/* into mmcblk0p2(/data)/data/ So the System Application Data still read into Internal memory, but rest Application Data will read Into SDCard.

    ILLUSTRATION
    attachment.php


    INSTALLATION
    For now, use adb shell and Install it manually, I am android newbie :D, still unfamiliar with recovery zip installer.
    • Delete Any A2SD Script in /system/etc/init.d ( common name was 40a2sd )
    • Copy 40ad2sdx into /system/etc/init.d Don't forget to chmod 755/777 it
    • Reboot ( 2x optional )

    INSTALLATION WITH ADB IN RECOVERY MODE
    Code:
    C:\>adb shell
    # mount /system
    # exit
    
    C:\>adb push 40ad2sdx /system/etc/init.d/
    
    C:\>adb shell
    # cd /system/etc/init.d
    # rm 40a2sd
    # chmod 755 40ad2sdx
    # cd /
    # umount /system
    # exit
    
    C:\>
    NOTE: the "rm 40a2sd" should be the name of app2sd init.d file.

    NOTE
    If you install it after clean flash you need to reboot your phone at the 1st boot to activate System App Data on Internal Memory.


    CAUTION!!!
    YOU SHOULD UNZIP AND MANUALY COPY THE FILE INTO /system/etc/init.d/ - THE ZIP FILE WASN'T AUTO INSTALLER THAT CAN BE RUN IN RECOVERY!!!!



    WARNING!!!
    THIS MOD ONLY IN TEST STAGE, ONLY ADVANCE USER I SUGGEST TO TRY THIS SCRIPT.
    I DON'T TAKE ANY RESPONSIBILITY IF YOU BROKE/BOOTLOOPS YOUR SYSTEM/ROM/PHONE.


    TESTED-DEVICE / ROM
    • HTC Desire (Bravo)
      - Cool3D RunnyMede Sense 3.5 v2, v3
      - Cool3D AceS Sense 3.0 v3, v4

    If You Already Test it and works,.. Please send me a feedback in your comment...

    LOGS
    Code:
    VERSION 1.0 ALPHA02
    ===================
    * Add framework_s into strict mmcblk0p2
    * Add Create symlink for rest non-symlink files from mmcblk0p2 to mtdblock5 ( Hope will fix bootloop )
    * Change loop method from `ls -d *` to `ls -a` ( may fix error on .systemapp and all file with dot name at first char )
    
    VERSION 1.0 ALPHA01
    ===================
    * Initial Release
    * Support for clean flash or already running system
    * com.android* and com.htc* set as System App Category
    * dalvik-cache on Internal Memory
    * add umount /sd-ext in first command

    SCRIPT: ALPHA01
    Code:
    #!/system/bin/sh
    #
    # AMARULLZ DATA TO SD-EXT MOD FOR ANDROID ( AD2SDX )
    # ==================================================
    #
    #  by amarullz [at] yahoo [dot] com
    #  xda-developers : amarullz
    #  (c) 2011
    #  * Oct 19 (ALPHA01)
    #
    #  Info: ~ For Changing Log
    ##
    
    ###
    # Initializing
    ###
    
    #-- SDCard Speed Fix
    if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
    then
      /system/xbin/echo "8192" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
    fi;
    
    #-- Unmount /sd-ext if it already mounted
    busybox umount /sd-ext;
    
    #-- Mount /data and move it to /sd-ext
    busybox mount /data;
    busybox mount --move /data /sd-ext;
    
    #-- Mount sd-ext to /data ( You Will Get 1GB/2GB Internal Memory :D )
    busybox mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
    busybox chown 1000:1000 /data;
    busybox chmod 771 /data;
    
    ###[ SDEXT mmcblk0p2 STRICT ]###
    # app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
    #
    # ~ ALPHA02 - Add framework_s into (mmcblk0p2) strict 
    ###
    for i in framework_s app app_s lib_s app-private data;
    do
      #-- If Symlink in /data, delete it
      if [ -h /data/$i ]
      then
        busybox rm /data/$i;
      fi;
        
      #-- If Directory Exists in /sd-ext, move it to /data
      if [ -d /sd-ext/$i ]
      then
        busybox mv /sd-ext/$i /data/;
      fi;
      
      #-- If Directory Not Extst in /data, create it
      if [ ! -d /data/$i ]
      then
        busybox mkdir /data/$i;
        #-- Just Open All Permissions ;)
        busybox chmod 0777 /data/$i;
      fi;
      
      #-- Now Create Symlink From /sd-ext to /data
      if [ ! -h /sd-ext/$i ]
      then
        busybox ln -s /data/$i /sd-ext/$i;
      fi;
    done;
    
    ###[ INTERNAL mtdblock5 STRICT ]###
    # For performance, dalvik-cache should be on /sd-ext
    ###
    for i in dalvik-cache;
    do
      #-- If Symlink in /data, delete it
      if [ -h /sd-ext/$i ]
      then
        busybox rm /sd-ext/$i;
      fi;
        
      #-- If Directory Exists in /sd-ext, move it to /data
      if [ -d /data/$i ]
      then
        busybox mv /data/$i /sd-ext/;
      fi;
      
      #-- If Directory Not Extst in /data, create it
      if [ ! -d /sd-ext/$i ]
      then
        busybox mkdir /sd-ext/$i;
        #-- Just Open All Permissions ;)
        busybox chmod 0777 /sd-ext/$i;
      fi;
      
      #-- Now Create Symlink From /sd-ext to /data
      if [ ! -h /data/$i ]
      then
        busybox ln -s /sd-ext/$i /data/$i;
      fi;
    done;
    
    ###
    # Now create symlink of the rest non Symlink Directories and Files on /sd-ext to /data
    #
    # ~ ALPHA02 - Fix ls to ls -a, it's ok, because we test -h for symlink
    ###
    cd /sd-ext;
    for i in `ls -a`;
    do
      if [ $i != ".." -a $i != "." ]
      then
        if [ ! -h /sd-ext/$i ]
        then
          if [ ! -h /data/$i ]
          then
            busybox ln -s /sd-ext/$i /data/$i;
          fi;
        fi;
      fi;
    done;
    cd /;
    
    ###
    # It should also need to create the rest non Symlink Directories and Files on /data to /sd-ext
    # ~ ALPHA02 - Some Directory may be missing if we don't use it
    ###
    cd /data;
    for i in `ls -a`;
    do
      if [ $i != ".." -a $i != "." ]
      then
        if [ ! -h /data/$i ]
        then
          if [ ! -h /sd-ext/$i ]
          then
            busybox ln -s /data/$i /sd-ext/$i;
          fi;
        fi;
      fi;
    done;
    cd /;
    
    ###
    # Now Important Thing, is to move the com.htc* and com.android* data to /sd-ext (internal) 
    # For Good performance. So the system applications will run smooth.
    #
    # System application will read/write in Internal memory, and 3rd apps will run on sdcard
    #
    # Notice: Will be affected in 2nd boot :D, so Reboot the system after 1st boot...
    ###
    
    #-- Prepare data_s in /sd-ext ( For system data )
    if [ ! -d /sd-ext/data_s ]
    then
      busybox mkdir /sd-ext/data_s;
      #-- Just Open All Permissions ;)
      busybox chmod 0777 /sd-ext/data_s;
    fi;
    
    #-- Now Move All com.htc* and com.android* to Internal Memory
    cd /data/data/;
    for i in `ls -d com.htc* com.android*`;
    do
      #-- Only Non Symlink
      if [ ! -h /data/data/$i ]
      then
    	  busybox mv /data/data/$i /sd-ext/data_s/;
    	fi;
    done;
    
    #-- Create Symlink of /data/data_s/* to /data/data/ (mmcblk0p2)
    cd /sd-ext/data_s/
    for i in `ls -d *`;
    do
      #-- Only If Symlink Not Exists
      if [ ! -h /data/data/$i ]
      then
    	  busybox ln -s /sd-ext/data_s/$i /data/data/$i
    	fi;
    done;
    
    #-- Of Finished.... :D


    INSTALL ZIP FROM RECOVERY?
    Thanks to tezgomet ;) -- Download Attachment by tezgomet >>
    SD-EXT Mod - AMARULLZ DATA TO SD-EXT
    from recovery
    tested on BlissMod007_v03_a-STOCK
    install rom and without rebooting install script

    !!!WARNING!!!
    INSTALL IT ON YOUR OWN RISK.

    KNOW BUG
    • Titanium Backup - Restore the Application Data ( com.android*/com.htc* data )
    65
    SD-EXT Mod - AMARULLZ DATA TO SD-EXT

    SD-EXT Mod - AMARULLZ DATA TO SD-EXT
    from recovery
    tested on BlissMod007_v03_a-STOCK
    install rom and without rebooting install script




    !!!WARNING!!!
    INSTALL IT ON YOUR OWN RISK.
    40
    NOT WORK ON YOUR ROM?, DON'T WORRY I WILL HELP YOU

    This script (AD2SDX) alghoritm should be compatible in any android phone that support init.d, busybox and rooted, but it still depended on how the ROM place the files in your phone.

    To make this script compatible with more ROM+PHONE, you can send me your file system information with this sh script (also available in attachment to download):

    Code:
    #!/bin/sh
    echo "AD2SDX - Dump Logs...";
    echo "   by amarullz [at] yahoo [dot] com"
    echo ""
    echo "WARNING!!!"
    echo "This script WILL dump an Informations About your Storages,"
    echo "If you allow me to know your filesystem structures,"
    echo "maybe I can help to improve AD2SDX Compatibility..."
    echo ""
    echo "This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME"
    echo "SERIAL NUMBER and ANY PERSONAL INFORMATIONS..."
    echo ""
    echo "But Please provide me your Device Name and ROM when you"
    echo "submit it on AD2SDX Thread..."
    echo ""
    sleep 1
    echo "Mounting data, sd-ext, and sdcard..."
    mount /data
    mount /sd-ext
    mount /system
    mount /sdcard
    echo ""
    
    echo "Dumping FileSystem..."
    echo "DF" > /sdcard/ad2sdx-dump.txt
    echo "==" >> /sdcard/ad2sdx-dump.txt
    df >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    
    echo "Dumping File List on data files..."
    cd /data
    echo "LIST /data" >> /sdcard/ad2sdx-dump.txt
    echo "==========" >> /sdcard/ad2sdx-dump.txt
    ls -la >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    
    echo "Dumping File List on /sd-ext files..."
    cd /sd-ext
    echo "LIST /sd-ext" >> /sdcard/ad2sdx-dump.txt
    echo "============" >> /sdcard/ad2sdx-dump.txt
    ls -la >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    
    echo "Dumping File List on /system files..."
    cd /system
    echo "LIST /system" >> /sdcard/ad2sdx-dump.txt
    echo "============" >> /sdcard/ad2sdx-dump.txt
    ls -la >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    
    
    echo "Dumping File List on /system/etc/init.d files..."
    cd /system/etc/init.d
    echo "LIST init.d" >> /sdcard/ad2sdx-dump.txt
    echo "===========" >> /sdcard/ad2sdx-dump.txt
    ls -la >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    echo "" >> /sdcard/ad2sdx-dump.txt
    
    echo ""
    echo "Finished... Thanks..."

    HOW TO DUMP?
    You should use adb, or Script Manager as root
    • Copy ad2sdx-dumpinfo.sh into your /sdcard/
    • (for ADB): Run "sh ad2sdx-dumpinfo.sh" in adb shell
    • Copy "/sdcard/ad2sdx-dump.txt" from your phone to your pc ( If you not trust me, you can review it before you send it to me )
    • Post comments + content of "/sdcard/ad2sdx-dump.txt" in this thread "use CODE or attachment"

    COPY FILES WITH ADB
    From PC to Phone
    Code:
    adb push c:\ad2sdx-dumpinfo.sh /sdcard/
    From Phone to PC
    Code:
    adb pull /sdcard/ad2sdx-dump.txt c:\ad2sdx-dump.txt
    SHELL
    Code:
    adb shell
    * You are more advance than me about it :eek:...

    WARNING!!!
    This script WILL dump an Informations About your Storages,
    If you allow me to know your filesystem structures,
    maybe I can help to improve AD2SDX Compatibility...

    This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME
    SERIAL NUMBER and ANY PERSONAL INFORMATIONS...

    USE IT YOUR OWN RISK!!!


    But Please provide me your Device Name and ROM when you
    submit it on AD2SDX Thread...

    EXAMPLE DUMP FILE
    Code:
    DF
    ==
    Filesystem           1K-blocks      Used Available Use% Mounted on
    tmpfs                   206664        64    206600   0% /dev
    tmpfs                   206664         0    206664   0% /mnt/asec
    tmpfs                   206664         4    206660   0% /mnt/asec/download
    tmpfs                   206664         0    206664   0% /mnt/obb
    tmpfs                     8192         0      8192   0% /app-cache
    /dev/block/mtdblock3    148480    124428     24052  84% /system
    /dev/block/mtdblock5    294528    152336    142192  52% /sd-ext
    /dev/block/mtdblock4      5120      1228      3892  24% /cache
    /dev/block/mmcblk0p2   1968876    547236   1321624  29% /data
    /dev/block/vold/179:1
                          13656560   4473152   9183408  33% /mnt/sdcard
    /dev/block/vold/179:1
                          13656560   4473152   9183408  33% /mnt/secure/asec
    
    
    LIST /data
    ==========
    drwxrwx--x   13 1000     1000          4096 Oct 20 15:16 .
    drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
    -rwxrwxrwx    1 0        0             1069 Oct 20 08:17 99SuperCharger.sh
    lrwxrwxrwx    1 0        0               13 Oct 20 07:49 DxDrm -> /sd-ext/DxDrm
    -rw-rw-rw-    1 0        0               14 Oct 20 08:17 SuperChargerAdj
    -rw-rw-rw-    1 0        0               34 Oct 20 08:17 SuperChargerMinfree
    -rw-rw-rw-    1 0        0                4 Oct 20 08:17 SuperChargerOptions
    drwxrwxr-x    2 1000     1000          4096 Oct 20 13:32 anr
    drwxrwx--x    2 1000     1000          4096 Oct 20 08:05 app
    drwxrwx--x    2 1000     1000          4096 Oct 20 07:50 app-private
    drwxr-xr-x    2 0        0            12288 Oct 20 08:20 app_s
    drwx------    5 1000     1000          4096 Oct 20 15:52 backup
    lrwxrwxrwx    1 0        0                9 Oct 20 07:49 d -> /sd-ext/d
    lrwxrwxrwx    1 0        0               20 Oct 20 07:49 dalvik-cache -> /sd-ext/dalvik-cache
    drwxrwx--x   59 1000     1000         12288 Oct 20 08:22 data
    lrwxrwxrwx    1 0        0               14 Oct 20 08:07 data_s -> /sd-ext/data_s
    lrwxrwxrwx    1 0        0               17 Oct 20 07:49 dontpanic -> /sd-ext/dontpanic
    drwxr-xr-x    2 0        0             4096 Oct 20 07:40 framework_s
    lrwxrwxrwx    1 0        0               13 Oct 20 07:49 hosts -> /sd-ext/hosts
    lrwxrwxrwx    1 0        0               13 Oct 20 07:49 htcfs -> /sd-ext/htcfs
    drwxr-xr-x    2 0        0             4096 Oct 20 07:40 lib_s
    lrwxrwxrwx    1 0        0               13 Oct 20 07:49 local -> /sd-ext/local
    drwxr-xr-x    2 0        0            16384 Oct 20 07:49 lost+found
    lrwxrwxrwx    1 0        0               12 Oct 20 07:49 misc -> /sd-ext/misc
    lrwxrwxrwx    1 0        0               16 Oct 20 07:49 property -> /sd-ext/property
    drwx------    3 1000     1000          4096 Oct 20 07:50 secure
    drwxrwxr-x    9 1000     1000          4096 Oct 21 01:00 system
    -rw-r--r--    1 0        0             3107 Oct 20 15:16 zipalign.log
    
    
    LIST /sd-ext
    ============
    drwxrwx--x    1 1000     1000          2048 Oct 20 07:38 .
    drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
    lrwxrwxrwx    1 0        0               23 Oct 20 08:22 99SuperCharger.sh -> /data/99SuperCharger.sh
    dr-xr-xr-x    1 0        0             2048 Oct 20 07:49 DxDrm
    lrwxrwxrwx    1 0        0               21 Oct 20 08:22 SuperChargerAdj -> /data/SuperChargerAdj
    lrwxrwxrwx    1 0        0               25 Oct 20 08:22 SuperChargerMinfree -> /data/SuperChargerMinfree
    lrwxrwxrwx    1 0        0               25 Oct 20 08:22 SuperChargerOptions -> /data/SuperChargerOptions
    lrwxrwxrwx    1 0        0                9 Oct 20 08:07 anr -> /data/anr
    lrwxrwxrwx    1 0        0                9 Oct 20 07:49 app -> /data/app
    lrwxrwxrwx    1 0        0               17 Oct 20 07:49 app-private -> /data/app-private
    lrwxrwxrwx    1 0        0               11 Oct 20 07:49 app_s -> /data/app_s
    lrwxrwxrwx    1 0        0               12 Oct 20 08:07 backup -> /data/backup
    drwxr-xr-x   16 0        0                0 Jan  1  1970 d
    drwxrwx--x    1 1000     1000          2048 Oct 20 07:49 dalvik-cache
    lrwxrwxrwx    1 0        0               10 Oct 20 07:49 data -> /data/data
    drwxrwxrwx    1 0        0             2048 Oct 20 07:49 data_s
    drwxr-x---    1 0        1007          2048 Oct 20 07:49 dontpanic
    lrwxrwxrwx    1 0        0               11 Oct 20 07:49 drm -> /data/local
    lrwxrwxrwx    1 0        0               17 Oct 20 07:49 framework_s -> /data/framework_s
    -rw-r--r--    1 0        0           708302 Aug  1  2008 hosts
    drwxr-xr-x   16 0        0                0 Oct 20 15:16 htcfs
    lrwxrwxrwx    1 0        0               11 Oct 20 07:49 lib_s -> /data/lib_s
    drwxrwx--x    1 2000     2000          2048 Oct 20 07:49 local
    drwxrwx---    1 0        0             2048 Oct 20 07:49 lost+found
    drwxrwx--t    1 1000     9998          2048 Oct 20 15:16 misc
    drwx------    1 0        0             2048 Oct 20 21:54 property
    lrwxrwxrwx    1 0        0               12 Oct 20 08:07 secure -> /data/secure
    lrwxrwxrwx    1 0        0               12 Oct 20 08:07 system -> /data/system
    lrwxrwxrwx    1 0        0               18 Oct 20 08:07 zipalign.log -> /data/zipalign.log
    
    
    LIST /system
    ============
    drwxr-xr-x    1 0        0             2048 Oct 20 07:41 .
    drwxr-xr-x   16 0        0                0 Oct 20 15:16 ..
    lrwxrwxrwx    1 0        0               13 Oct 20 07:41 app -> /sd-ext/app_s
    drwxr-xr-x    1 0        2000          2048 Oct 20 07:41 bin
    -rw-r--r--    1 0        0             7966 Oct 20 08:17 build.prop
    -rw-r--r--    1 0        0             7437 Oct 20 08:17 build.prop.unsuper
    drwxr-xr-x    1 0        0             2048 Oct 20 07:40 customize
    drwxr-xr-x    1 0        0             2048 Oct 20 07:41 etc
    drwxr-xr-x    1 0        0             2048 Oct 20 07:40 fonts
    lrwxrwxrwx    1 0        0               19 Oct 20 07:41 framework -> /sd-ext/framework_s
    drwxr-xr-x    1 0        0             2048 Oct 20 07:47 lib
    drwxr-xr-x    1 0        0             2048 Oct 20 07:40 lost+found
    drwxr-xr-x    1 0        0             2048 Oct 20 07:41 media
    drwxr-xr-x    1 0        0             2048 Oct 20 07:41 usr
    drwxr-xr-x    1 0        2000          2048 Oct 20 07:41 xbin
    
    
    LIST init.d
    ===========
    drwxr-xr-x    1 0        2000          2048 Oct 20 07:47 .
    drwxr-xr-x    1 0        0             2048 Oct 20 07:41 ..
    -rwxr-xr-x    1 0        0              446 Oct 20 13:36 00aroc
    -rwxr-xr-x    1 0        2000          1167 Aug  1  2008 02ramtweaks
    -rwxrwxrwx    1 0        0             4151 Oct 20 07:47 40a2sd
    -rwxr-xr-x    1 0        2000          1938 Aug  1  2008 77tweaks
    -rwxr-xr-x    1 0        2000          1499 Aug  1  2008 97zipalign
    -rwxrwxrwx    1 0        0             1097 Oct 20 08:17 99SuperCharger
    -rwxr-xr-x    1 0        2000           176 Aug  1  2008 99complete
    15
    here´s the script with all to ext (for me it was important because i always make the roms fit to 387mb hboot...so all things are on system partition [nand] and rom is faster) :)

    with kind regards...Alex
    8
    TEST ONLY - [AOSP/SENSE] AD2SDX - RC02 TEST

    Use it Your Own Risk

    If you don't want to mess with your phone, don't try it... If you like to mess with it, try it and tell me the reports :D

    File In Attachment...