yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] vradmilovic:
Still getting "low on space"

I apologize if this was answered before, but I couldn't find it (it has been asked months ago, though, but no answer).

I've installed latest Sandvold's ICS ROM on HTC Desire and selected ad2sdx (stock a2sd didn't work for me from some reason). Everything seems to be fine: internal storage is 1.5GB and I installed bunch of applications. However, at some point, I started getting "Low on space" warnings. I suppose that it is not related to internal storage, but I can't figure out where exactly it comes from and how to get rid of it.

This is what Titanium Backup reports:

System ROM: 17.5 / 263 MB free

Internal: 1.49 / 1.58 GB free

SD card: 7.34 / 13.8 GB free

[*]SD card (a2sd): 3.99 / 154 MB free

And this is what Quick System Info shows (note there are differences, especially for a2sd):

System ROM: 16.77 / 250 MB free

Internal: 1.32 / 1.48 GB free

SD card: 6.84 / 12.90 GB free

[*]A2SD storage: 1.32 / 1.48 GB free

System cache: 38.87 / 40 MB free

Now, if I am to believe Titanium, "SD card (a2sd)" is the part I should be worried about, but two questions remain:

1. Why QSI shows different numbers? If I'm understanding correctly, correct numbers?

2. What can I do to resolve the problem, as the whole purpose of ad2sdx is to avoid this 154 MB limitation?

If possible, I would like to avoid another wipe and ROM flashing, as I've done that for last three days from various reasons and I just finished setting and restoring everything up. But of course, if there is no another way... :(

Thank you in advance!

Edit: After inspecting script code, trying few other mods and reading various posts with similar problems, here are new observations:

The main reason why this happens is dalvik-cache. Sandvold's ROM uses "AD2SDX Special Edition for Sebastiaan15 RunnyMede Desire ROM". According to the web page, this version should put 3rd-party dalvik-cache to SD card and system dalvik-cache to internal memory (it switches directories by mounting internal to /sd-ext/dalvik-cache and SD to /data/dalvik-cache).

Anyway, in my situation, both 3rd-party and system dalvik-cache files are on the same place: internal memory, which caused it to fill up pretty quickly.

I'm looking at script code and maybe I will try to modify it, but I'm not sure that I'll do it right... So any help is still much appreciated. :)
[Android Software/Hacking General [Developers Only]] karl001:
This script is just awesome. Installed it on a HD2 and finally I can install as much apps as I want. Thanks!
[Android Software/Hacking General [Developers Only]] adell_:
FYI, you can configure Titanium Backup to display MiB instead of MB. If possible, you should reduce the size of the system partition so you will have more space in the data partition.

Alternatively, you can search a modified script. There is a script that moves everything to SD-Ext.
[Android Software/Hacking General [Developers Only]] vradmilovic:
Thanks, I didn't know this was configurable.

I've tried with other scripts that move everything to SD-Ext, but it was really, really slow for me - the phone wasn't usable at all (I blame Patriot SD card for that).

Anyway, in the meantime I got it working. I've checked the script line by line and discovered that on my phone from some reason it didn't run correctly. Main script should create two "subscripts" in /data/ad2sdx/ ("dalvik-waiter.sh" and "waiter.dh") by using "cat > ... << EOF", which failed. So I created those two .sh files manually, fixed few more (compatibility?) problems and restarted phone - at the end, everything worked as expected: data dalvik-cache on SD-Ext, system dalvik-cache on internal memory. Running like a charm. :)

Thanks!
[Android Software/Hacking General [Developers Only]] rkmiks:
deleted
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
To quote the OP:

So yes, that would be normal. When your partitions are mounted at boot, your EXT partition is mounted as /data and internal memory (normally mounted as /data) is mounted as /sd-ext instead. In Linux a partition must be mounted in order to access it, at which point it's accessed by the mounted name. This means when Android checks the size of your /data partition, the physical storage space that's been given that name is your EXT partition.

Hope that helps. :)
[Android Software/Hacking General [Developers Only]] broim kaskus:
it's very nice script :good: , I'll use it for my Neo L. Thank you agan Amarullz
[Android Software/Hacking General [Developers Only]] Little Zed:
Bro! I have crashed all internal apps in my internal storage after using this script!

Using x8 with GingerDX v29
[Android Software/Hacking General [Developers Only]] Silentbob999:
Bro!

Don't quote the OP.

It's too damm long.
[Android Software/Hacking General [Developers Only]] :
Took the words right outta my mouth :rolleyes:

Sent from my Baconator Over-9000
[Android Software/Hacking General [Developers Only]] BeToven:
This is working fine on my ARC S with Xperia T ROM and KTG anzu Kernel v1.52.

Now I want to do it on a HTC Desire HD with Stock Rom, what is the best Kernel to support this script?

Thanks
[Android Software/Hacking General [Developers Only]] engabdelazem:
I Have HTC Desired HD

With new ROM Revolution 6.4

SD card 8GB first 5.5 GB FAT32 and EXT4 2 GB both primary and and work until now the system is not recognizing the scribt App 2 SD

Please find the the attached Txt file
[Android Software/Hacking General [Developers Only]] karimaelo:
hi I need help here please I have AOKP for Passion - Milestone 5 build 39 and i did all clean build. I have

Number Start End Size Type File system Flags

1 32.3kB 3422MB 3422MB primary fat32 lba

2 3422MB 3933MB 511MB primary ext4

3 3933MB 3965MB 32.2MB primary linux-swap(v1)

I tried installing the .zip file of the script from the recovery, but it shows me FAILED I have TWRP recovery installed

Please advise me what to do!!
[Android Software/Hacking General [Developers Only]] patryk00013:
Samsung Galaxy Ace - cm 7.2 14.03.2012 by FAT, Firekernel 09.10.2012, AdrenalineEngine CM 4.4
[Android Software/Hacking General [Developers Only]] TdiGuy:
Works for me.

I attempted to use the zip in the original post but my phone went into a boot loop. I then used the UOT-Cool3D-Runny-SD-ext.zip and it works great.

Very well done.

My phone is a lg optimus t (aka one) running latest stable oxygen rom.
[Android Software/Hacking General [Developers Only]] hell_lock:
How to put it in a kernel?
[Android Software/Hacking General [Developers Only]] joao_20:
hi, this work on xperia arc with Ultimate HD 2.0 rom + KTG kernel 1.52??
[Android Software/Hacking General [Developers Only]] BeToven:
Yes it's working perfectly!
[Android Software/Hacking General [Developers Only]] joao_20:
How do you install it? I tried the both methods and when i finish the install, my phone have FCs and lag.
[Android Software/Hacking General [Developers Only]] BeToven:
I formatted my Sd card class 10 in EXT4 (4GB) using the mini tool.

I install The ROM and KTG Kernel.

After with root explorer I copied the 40ad2sdx file to system/etc/init.d and changed the permissions (i ticked all except special permissions).

After reboot 2 times completely.
[Android Software/Hacking General [Developers Only]] PDAve:
Sorry guys for the lame question, I read a lot about a lot of ...2SD, bet I can't reach my goal: i don't want to see the "Insufficient storage" message after the 5th app.

A did everything as writen but the internal storage is still 140 Mb (Wildfire S), maximum 50 is free. Downloading Maps, Viber, etc and it's full. What shuold I do to eleminate this issue??? Can somebody help me? Thx
[Android Software/Hacking General [Developers Only]] joao_20:
ok. I'll try your method ;)

By the way what was the options that u used on mini tool, for fat32 and ext4 (cluster size etc..)???
[Android Software/Hacking General [Developers Only]] wolvie_rs:
Working like a charm. Unlocked Nexus One, using CMW to flash with a clean install of CyanogenMod 7.2 and Gapps. on first boot, little slow. After 2 restarts, working perfect! Thanks!
[Android Software/Hacking General [Developers Only]] cleansafi:
Myphone a818

I DID THE PROCESS MENTIONED IN OP FOR DUMPING SD INFO AND GET THIS ERROR BY SCRIPT MANAGER :

MY ROM : Robinlaw V13 1.02

DEV PLZ HLP MEE 2 USE IT WITH THAT ROM IF POSSIBLE...
[Android Software/Hacking General [Developers Only]] :
WHY ARE YOU SHOUTING?
[Android Software/Hacking General [Developers Only]] weihong892:
hey guys, i flashed the zip into the recovery, the thing is working, i got extra storage in my internal storage, however, the sad thing is that the wifi isn't working, it has a error with it. i went to recovery and fix permission but it's still not working. i'm using lupus kernel and xperia NXT rom with init.d support. how you guys can get me a solution, it will be fully appreciated. (:
[Android Software/Hacking General [Developers Only]] mixednuts:
I plan to test it myself anyway, but just curious which ROM are / were you using??
[Android Software/Hacking General [Developers Only]] FitAmp:
Please give feedback afterwards, I'm interested in trying this :p
[Android Software/Hacking General [Developers Only]] jony35359595:
Hi all,

I'm using this amaizing script on my Wildfire S + CM10 and I got a problem.

I have a 2Gb sd ext4 partition and all works fine, but installing apps I'm getting a point, when market stopes downloading apps and they dont installing from .apk files.

My gues is that Im getting low on internal memory anyway.

Is there a way to fix this?

Thanks a lot!
[Android Software/Hacking General [Developers Only]] NYLimited:
Look for a modified version of this script, in this thread, posted by alex-v. His mod also moves the Dalvik cache to the ext partition which currently still resides in NAND.

---

No one can make you feel inferior without your consent... (via Tapatalk)
[Android Software/Hacking General [Developers Only]] Afnanshareef:
woks..........................

Thanx.........

works well for me but i used the recovery version

http://xdaforums.com/showpost.php?p=18602050&postcount=19

:good::laugh:
[Android Software/Hacking General [Developers Only]] lapeno022:
hi, i want test it, is possible to remove a2sd from init.d and copy your script into used rom? i don't want clean install...
[Android Software/Hacking General [Developers Only]] gpkumaran:
@amarullz, if this script is used in xperia phones(i'm using an arc s), then the basebands are lost on reboot.. So, the phone loses gsm signal..Can you pls make a fix for this?

int2ext+ by croniccorey has a rebuilt and fixed script for this .. it has something to do with moving /fota folder back to /data or something like that.. sorry i`m no dev.. couldn`t explain it better than this..
[Android Software/Hacking General [Developers Only]] lapeno022:
today i tested it with ext4 2GB partition with wildfire s

installed cm7.2

copied script to init.d (a2sd was not there)

reboot

installed ~80-90apps (400mb max)

everything work but i can't install apps like youtube, when downloading from market it give me error

"youtube could not be downloaded due to an error. (498)"

same was when i tryied install sygic, but i removed angry birds (all of them) then it works...

i have searched for 498 error and have 2 possible answers: google server shutdown for maintaince/something and low system cache/internal memory.

google servers are up i think...

so does i make something wrong?

+titanium backup show me:

System ROM: 282MB (139 free)

Internal: 2.01GB (1.65 free)

SD card: 5.7GB (3.79GB free)

SD card (a2sd) 157MB (2.02MB free)

here is etc/init.d/

00banner

01sysctl

03firstboot

04modules

05mountsd

06mountdl

20userinit

40ad2sdx

maybe i do something wrong or my internal memory is too low to store dalvik cache & system app data...

if i have low internal memory, is there any chance to edit script to save dalvik cache &system app data into phone memory first and when it is full to SD card?

logcat in attachment
[Android Software/Hacking General [Developers Only]] CosmicDan:
Notice it says a2sd space only 2MB free. Your dalvik cache is full.

Getting the script to detect dalvik size then send more to SD would be very hard to do.

I suggest you use Link2SD, it allows you to link dalvik cache for any apps you don't care about loading slowly e.g. games.

Also use SDMaid to clean wasted data.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] lapeno022:
thanks for respond but i don't want link2sd... it is little buggy... some apps won't start and stop responding after boot and spamming phone with errors..
[Android Software/Hacking General [Developers Only]] Daniel D.:
Deleted my old post...
[Android Software/Hacking General [Developers Only]] Sangoku84:
Hello,

I tested your script on my Xperia Play R800i with JokaWild V3 Rom and unfortunately I must tell you that my perfomance dramatically decreased. It depends on almost every action for at least 1 to 2 seconds. After restoring a Titantium-BackUp all collapsed and I am forced to perform a factory reset by CWM.

Int2Ext4+ (http://xdaforums.com/showthread.php?t=1716124) runs great, but only up to restore using Titanium.
[Android Software/Hacking General [Developers Only]] Daniel D.:
Ok, second try to install this script with a fresh installed ROM on my Xperia Arc S. I tried the alpha 2 with my .587 ROM (rooted, busybox, init.d). If I look at the free space, Android says 95MB used/325MB free - before and after.

I created a primary EXT4 partition (~509 MB) with MiniTool Partition Wizard 7.6 on my SD card (8 GB), but it doesn't seem to work. Any ideas? I'll try CosmicDan's version and report back.

edit: Ok, I created a FAT32 partition and changed the line from "ext4" to "vfat". Here is the dump. Does it work? I've still only 420 MB space, even if the partition is ~509 MB.
[Android Software/Hacking General [Developers Only]] EAGLEBOOY:
thanks

very very very great

keep going your great work
[Android Software/Hacking General [Developers Only]] yukarundeng:
i come from link2sd, how i suppose to install this?

i'm on arc s, class 10 uhs 32gb sd card

and i have 1gb smthing on ext4
[Android Software/Hacking General [Developers Only]] ivaneris:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

You can use terminal/adb to install this script...the one flashable zip sometimes failed...

Sent from my LG-P990
[Android Software/Hacking General [Developers Only]] HomosapienSapiens:
where can i find the alpha 2 or what is newest stuff?
[Android Software/Hacking General [Developers Only]] TF85:
Hello,

It could be used with the Gingerbread 2.3.3 stock rom ?

My HTC Desire phone is rooted with 4EXT Recovery Touch.

If I can do it,

Have I extractonly the 40ad2sdx script from the zip file and copy it to into my phone to /system/etc/init.d ?

I tried to flash the zip file in Recovery mode, my phone hangs at boot time.

Thanx
[Android Software/Hacking General [Developers Only]] Diablo67:
Thanks brother,works great on the OG EVO/JBMod
[Android Software/Hacking General [Developers Only]] jeepo90:
cos a bootloop.. maybe i had make some mistake :crying:
[Android Software/Hacking General [Developers Only]] Nexxxeh:
Largely just to say thanks, I used this on CM7.2 on my HTC Desire and it made the phone perfectly usable, as opposed to the crazily restricted >200MB battle it was before. I used the .zip recovery installer (wipe -> CM7.2 -> GApps -> Data to SD-Ext -> Reboot) and it worked perfectly. One thing I did discover was using "MiniTool Partition Wizard Home Edition 7.7" to create the partitions just gave me a broken phone, I used GParted and everything just worked.

Do not re-partition your SD card using MiniTool Partition Wizard! Boot your PC (/laptop) from a GParted live disk or flash drive and repartition from there.
[Android Software/Hacking General [Developers Only]] Daniel D.:
Partition Wizard worked fine for me. :rolleyes:
[Android Software/Hacking General [Developers Only]] NYLimited:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

You had some other issues. MiniTool worked fine for many cards and many roms.

---

Exaggeration is a billion times worse than overstatement... (via Tapatalk)
[Android Software/Hacking General [Developers Only]] NYLimited:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Where is the script? I think it should be in init.d - any idea what happened to it?

---

Exaggeration is a billion times worse than overstatement... (via Tapatalk)
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Maybe he restored from his backup because it caused a problem? :rolleyes:

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] am2222:
At the first when I installed it got bootloop so I removed it from init.d..If I copy script there I will get bootloop again...

Is there any new partion needed for this script?

---------- Post added at 06:15 AM ---------- Previous post was at 06:13 AM ----------

Yes I have deleted script and restored backup after that
[Android Software/Hacking General [Developers Only]] yukarundeng:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Dan, can you help me to install this on arc?

And does this better than link2sd?
[Android Software/Hacking General [Developers Only]] NYLimited:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Okay, tell me a little more.

Your phone is rooted and has init.d support, yes?

What partitions are on the card? The first partition must be fat32 and primary. The second should be ext4 (some like ext3?) and also primary. If you are not sure they are right see post 3 in this thread: http://bit.ly/VsToKU

Is your card located and can be mounted at mmcblk0? The ext4 partition should be located at mmcblk0p2 - if not the Script will likely have to be altered.

What else can you tell us about your partitions and device that might help?

---

Exaggeration is a billion times worse than overstatement... (via Tapatalk)
[Android Software/Hacking General [Developers Only]] am2222:
Thanks for your help...

my card is just one partion and I think this is problem...I dont see any need to make a new partion in first post and I thought it can work with 1 partion :(
[Android Software/Hacking General [Developers Only]] CosmicDan:
It says it's an sd-ext script, all sd-ext scripts require an sd-ext partition :p
[Android Software/Hacking General [Developers Only]] NYLimited:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Like CosmicDan already noted you need an sd-ext partition which must be the second one, hence you need 2. Missing a partition would be a good reason why it didn't work.

The first partition must be fat32 and primary. The second should be ext4 (some like ext3) and also primary. Please read post # 3 in this thread: http://bit.ly/VsToKU which will show you how to do that.

Don't forget to backup anything on the card since partition changes will delete everything on it.

---

The better the customer service, the sooner you get to someone who can’t help you. ...
[Android Software/Hacking General [Developers Only]] CosmicDan:
Your ROM setup is seriously borked. It has things in /data that shouldn't be there, including ramdisk files. And they are linked to sd-ext. Makes no sense. Either you've tried installing an sd-ext script before on this ROM, or the ROM you are using already has some sd-ext thing in there.

Factory reset and try again. If it still doesn't work after that, I suggest you report it to your ROM builder.
[Android Software/Hacking General [Developers Only]] am2222:
Oh sorry I did not know this:(

Thanks for your information...
[Android Software/Hacking General [Developers Only]] am2222:
Hello again

I created a ext3 (1gb) and flashed file again and again got bootloop..What I do now?It must be ext4?there was no ext4 in minitool partion..:(
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

No it doesn't matter. Logcat for us, and make sure the mount /sd-ext option in Recovery works.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

You should format all, then install Rom, then boot once. Then reboot to recovery and install the script.

It says data is 1GB because it swaps mounts with sd-ext. The free space on sd-ext in e.g. titanium backup is actually internal data.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] am2222:
Thanks for your information

I have another question...When I use recovery to install a mod while this script is enabled is there any possibility to ocure problem?for example if mod needs to copy files to /data/app folder does it work?:confused:
[Android Software/Hacking General [Developers Only]] CosmicDan:
I am not sure if it will work. This is why I originally said a while back that swapping /data/ and /sd-ext/ mounts can cause issues, and why I developed my own sd-ext script (TSDX, exclusive to Turbo Kernel).

If you want a reliable and easy-to-use sd-ext solution, I suggest using Link2SD app instead of any script.
[Android Software/Hacking General [Developers Only]] headtotoe:
Re: [Script] AMARULLZ DATA TO SD-EXT for S5830i

#!/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..."
[Android Software/Hacking General [Developers Only]] CosmicDan:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Dude, wtf are you posting that for?

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] azhiekurosaki:
Re: [MOD][AD2SDX][ALPHA02] New Data To SD-EXT Mod - AMARULLZ DATA TO SD-EXT [OCT-20]

Is this working on CM10.1?

Sent from My Wonderful Phone powered by Arco's CM10
[Android Software/Hacking General [Developers Only]] ArYaNsH:
helllllllll yeaaaaaaaah it worked!!!!!!!! thank you sooooooooo much :highfive:

Device: HTC EVO 4G

Rom: Halo Series II Nova