yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
If you're trying to do this with the ZIP that I attached to my post, then you should use your recovery's "install from zip file" option (it's a flashable zip file).

Otherwise, if you prefer the manual install route, then simply edit the contents of the file in the zip attached to the opening post with any text editor, make sure it doesn't save with any file extension, put it back in the zip and then follow the installation instructions from the original post.

Anyways, it's past midnight this side of the world, so I'm heading for bed.. I'll check in the morning for any other replies, but in theory you should be able to get it working pretty easily with what you've got now. :)
[Android Software/Hacking General [Developers Only]] PsychoShaft:
thanks i tryed what you said my phone just goes into a boot loop! i setup my SD card with EXT4..

i dont understand what this means: install rom and without rebooting install script

when you install the rom and after config the installer the phone reboots.

Regards

Paul
[Android Software/Hacking General [Developers Only]] CosmicDan:
The diff file I assume is the changes I made compared to original AD2SDX.

Are you sure it's in a bootloop? If you install this script on a ROM with data on there, espexially on the R800, it could take 5+ minutes to move everything around. If you are sure it's in a loop, can you do us a logcat?
[Android Software/Hacking General [Developers Only]] jbcarvajal:
my sd ext is nearly full. how to remove linked apps in the sd ext? :confused:
[Android Software/Hacking General [Developers Only]] CosmicDan:
You can't. You need to wipe everything and remove the script. Or do a nandroid backup, make the sd-ext partition bigger, then restore nandroid.

Remember that sd-ext is mounted to data, so if an app is saying that sd-ext is nearly full, it's actually your internal data that's nearly full. Get an app like SD Maid to clean up.
[Android Software/Hacking General [Developers Only]] PsychoShaft:
Hey Guys, thanks for the HELP!!! i managed to sort it! if anyone else if having problems don't use MiniTool Partition Wizard Home Edition 7.6... go into recovery and create a partition though the phone. i created Ext3 and ext4 with swap. and my phone is now showing 4gb of internal memory! thanks guys for all the support!
[Android Software/Hacking General [Developers Only]] CosmicDan:
I used MiniTool, worked fine for me. Must be your PC.
[Android Software/Hacking General [Developers Only]] PsychoShaft:
I also had remove the battery and SD card after the rom was installed... then reformat the Cashe and do a factory reset.. i then turned off the phone and rebooted without the SD card then turned off again.. insert the SD card and boot.. it how shows a lot of internal memory :)

hope this helps if anyone is stuck
[Android Software/Hacking General [Developers Only]] CosmicDan:
I found on my new ICS build I need to manually run the script once in Recovery mode adb shell. The phone would boot loop otherwise. What it was doing was booting too fast, it started generating dalvik cache while it was still linking. I can make a zip update that can run the script once if anyone wants it.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] CosmicDan:
It seems amarullz is not very active any more, hope he is OK.... and I hope he doesn't mind....

I am going to create an Aroma Installer ZIP called "AD2SDX Tool" that will allow user to install, uninstall, and performance maintenance related to the script. I too have run into problems with the script sometimes, and could only fix it with a lot of manual shell work. With the help of Aroma installer, it will be very user-friendly and allow me/us to see their error logs, and fix problems where possible.

I'll post when it's ready, in a new thread.... again, I hope this is OK. All credit of course goes to amarullz, but I continue to update it and support it.... because it's the best :)
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
That sounds like an awesome plan.. I'd love to play around with doing stuff like that, but I just don't have the time to dedicate to learning how to do it. I highly doubt Amarullz would mind you using his installer package for his init script though... :)
[Android Software/Hacking General [Developers Only]] roponor:
I thought that was the main benefit of using Amarullz vs Darktremor.
[Android Software/Hacking General [Developers Only]] CosmicDan:
I can't remember, I've used only Link2SD for years until I found this. I think all older sd-ext scripts link everything to sd-ext, the main benefit of Amarullz' script is that it keeps dalvik cache and data from system apps on internal.

Swapping sd-ext and data doesn't really do anything but make apps look like you have large internal data. But it creates a lot of possible problems, and also causes non-specified stuff to go to sd-ext e.g. MIUI theme installs, which is bad and causes lag.

Also with my modified script, the phone wont be stuck in a bootloop if you take sdcard out - you'll just lose all your installed apps. But if you turn off, insert card again and reboot, it goes right back to how it should be. I tested that myself.
[Android Software/Hacking General [Developers Only]] apoc [t.i.m.]:
Why ext2? For what I know ext4 is better? If I change/replace ext2 in your script into ext4 it'll use ext4 instead?

ERROR?

I uploaded (copy) 40ad2sdx with es file explorer to system/etc/init.d en changed permissions to rwx, shutdown phone and again power on, BUT nothing happend?

And there doesn't seem to be a log file (csdx.log)? at least I can't find it in /data/

With kind regards, Tim
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
Better for what? EXT2 is probably the simplest Linux partition. EXT3 and EXT4 are journaled file systems (they store a log of every file change), so they're generally better for desktop drives because of the higher data integrity features, while EXT2 is better for SD cards and flash drives because of the lower overhead while reading/writing/modifying data.

EXT4 also allows the journal to be disabled if you prefer, and allows for 16TB files (in case the max file size of 2TB on EXT2 or 3 isn't enough for you...). But I don't think many of the new features it provides have any significant effect while using Android.

Let's just say EXT2 is the fastest, EXT3 is safer, and EXT4 is a combination of both. :) But at the end of the day, unless you base you life's value on how your Android handles benchmarks, the average user probably wouldn't even notice a difference in day-to-day usage.
[Android Software/Hacking General [Developers Only]] CosmicDan:
ext4 is useless for flash-based storage. Google it.

If it doesn't work, check logcat on boot. Works fine for me.
[Android Software/Hacking General [Developers Only]] apoc [t.i.m.]:
catlog

will do catlog? when I start catlog and search ad2sd I get this:

Process id: 1098

Tag: ActivityManager

Starting:

Intent { act=android.intent.action.VIEW

cat=[android.intent.category.DEFAULT]

dat=file:///etc/init.d/40ad2sdx

typ=text/plain

flg=0x10000000

cmp=com.estrongs.android.pop/ .app.PopNoteEditor }

from pid 1662
[Android Software/Hacking General [Developers Only]] CosmicDan:
Err, no. You need to show me everything between [CSDX] Begin and [CSDX] Finished.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software/Hacking General [Developers Only]] apoc [t.i.m.]:
hmmm

this is what I get, no csdx??? :crying:
[Android Software/Hacking General [Developers Only]] NYLimited:
Not sure where you got this information from. According Ted Ts'o (a lead designer and maintainer of the ext4 filesystem) and his tests the above is not correct.

His timings were recorded in seconds it took to write the complete, uncompressed linux 2.6.34 kernel directory to an SD card, then read it back (after flushing the caches).

And the clear winner was ext4.

Almost exactly four times as fast as ext3, almost three times as fast as ext2, and clearly best overall. NTFS put up a good show until reading, where it came in dead last. Be warned about Reiser, it's always slow on flash.

Google his name - you'll find the test results at Linuxplanet quickly.

---

Weather forecast for tonight: dark overnight, getting lighter toward morning ... (via Tapatalk)
[Android Software/Hacking General [Developers Only]] CosmicDan:
Great, here we go with the endless debate...

ext4 is only faster than ext2 if journaling is enabled, which increases storage wear and CPU work. The write speeds for full ext4 is a little bit faster, and the read speeds are barely faster - sometimes slower - than ext2, probably due to it needing to do more work to cross-check the journal.

I did my own Android I/O benchmarks on my own microSD and found the above to be true, at least for me on my device. I'd advise you to do the same and make your own opinion rather than blindly believing that the guy says his work is the best choice to use.

Change it to ext4 if you want, I don't care. I just don't want people complaining about it being slow.
[Android Software/Hacking General [Developers Only]] mwakious:
ALPHA2 IS WORKING PERFECT ON MY ROM!!

very good job!!:eek::eek:
[Android Software/Hacking General [Developers Only]] bone069:
Same problem for me. Anybody knows how to solve this problem?

Edit: You have to select sd-ext folder for framework-res and system ui on the left then it will work :)
[Android Software/Hacking General [Developers Only]] chihliouma:
Hi there, it still won't work for me. Do you mind to send me your UOT file for reference. Thanks.

PS. OK, I think I've made it working now. But I suspect all the lib files under \sd-ext\lib_s won't be accessed after applying this script.
[Android Software/Hacking General [Developers Only]] bone069:
Please find it attached :)
[Android Software/Hacking General [Developers Only]] Alex-V:
Is there a way to move third party dalvik to ext..? Only system dalvik internal...

I ask because if internal data is full with dalvik cache but you have still free memory on ext..you cant install more apps...i have that problem in the past with data2whatever in the version with dalvik internal

And is one ext enough..or 2ext +swap like data2ext..?
[Android Software/Hacking General [Developers Only]] antonfrompreston:
Hi. I am currently using Supernova ROM, which uses Data2SD. In that case class 10 cards are known to be problematic and class 4 or 6 is recommended. Is that the case with this script or is it best to use the highest class card possible? I have class 6 and class 10 cards so I just wonder which is best to use.

---------- Post added at 12:33 AM ---------- Previous post was at 12:16 AM ----------

Also. For Runny you posted a modified script for that ROM, http://xdaforums.com/showpost.php?p=18773734&postcount=395.

1. Is this based on Alpha 2?

2. When you update to Alpha 3 and greater will you release a modified script again or will the standard script become compatible with Runny?

3. When updating when a previous version of the script is already installed is it the same procedure as a new install? Will all data be preserved?
[Android Software/Hacking General [Developers Only]] aspam:
Storage full

Hi guys ! first of all, sorry for my english, I'm just a froggy who wants to use is Desire at his top !

I'm using your script with BlissMod007 or RunnymedeMod007 (depending on the releases). It's fast and smooth, with a lot of space for my apps, but after few days, systematically, when I try to use internet, I obtain a box which said :

Storage full

You don't have enough free space remaining in your phone's storage. Please delete some content or applications to make some additional space. Tap Settings below to manage your apps.

But I have 700+ Mo ! Any Idea ?

Thx
[Android Software/Hacking General [Developers Only]] BeenAndroidized:
Nice, something to look forward to.

I have a T-Mobile G1 currently using FroyoMelt ROM. Trying to find out if it will works before I try. I want to be able to use the sd-ext feature. :D
[Android Software/Hacking General [Developers Only]] denzel09:
Thanks for script, i will try it when it will in beta stage. /

Please add also in next versions support for activate swap partition (and swappiness) to boot as in a2sd classic version. It is important ;:-)
[Android Software/Hacking General [Developers Only]] Alex-V:
Thats is what i say a post above...your internal memory is full with dalvik cache...because the app itself goes to sdext but the data is internal...

So my question again..is there a way to make system apps dalvik internal and 3party apps dalvik ro sdext..? If not can you release a script with dalvik complete to sdext...please answer..

Because i have problems with data2ext script in latest version with mount data partition...
[Android Software/Hacking General [Developers Only]] amarullz:
If you sure you want to move dalvik into sd-ext, remove this lines

###[ 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;

#-- Update Symlinks ( reupdate was safer )
if [ ! -h /data/$i ]
then
busybox rm /data/$i;
fi;
busybox ln -s /sd-ext/$i /data/$i;
done;
sync;

To make sure dalvik is in sd-ext, add dalvik-cache in this line:

###[ SDEXT mmcblk0p2 STRICT ]###
# app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
#
# ~ ALPHA02 - Add framework_s into (mmcblk0p2) strict
###
[B][COLOR="Red"]for i in app app_s lib_s plugins_s app-private framework_s weather_s data;[/COLOR][/B]
do
#-- If Symlink in /data, delete it
if [ -h /data/$i ]
then
busybox rm /data/$i;
fi;

...

To:

###[ SDEXT mmcblk0p2 STRICT ]###
...

for i in dalvik-cache app app_s lib_s plugins_s app-private framework_s weather_s data;

...

Note: The app data is in sd-ext (not in Internal memory), If you run out of memory in data, you can absolutely move all data into sd-ext by removing com.android* and com.htc* line:

(remove this)

###
# 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;
sync;

#-- 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;
sync;

#-- 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;
sync;

#-- Of Finished.... :D
[Android Software/Hacking General [Developers Only]] chihliouma:
Hi there, I am not too familiar with the script, but I do use your special version script "ad2sdx-runnymede-3.4" for sebastiaan15's ROM and it works well.

I am wondering can you offer the update of that file and post for d/l ? Thanks.

By the way, will it slow down the speed after the above modification ? Currently, the speed is great. Thanks.
[Android Software/Hacking General [Developers Only]] Alex-V:
yeah...big thx..will try this :)

with kind regards
[Android Software/Hacking General [Developers Only]] Alex-V:
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
[Android Software/Hacking General [Developers Only]] juicebox666:
Awesome job!

Thanks for all your hard work. I'm using your script with sebatiaan15's Runnymede 4.8 and everything is running at a fast clip without any problems. I've got almost half a GB of free app memory.
[Android Software/Hacking General [Developers Only]] denzel09:
Hi to all, and great work.. So i see 2 version, original from amarullz and mod from Alex-V.

So, what is the big difference between 2 scripts? And which of them i should to use?

Only dalvik cache on sd is the difference?

Thanks ;;;-)
[Android Software/Hacking General [Developers Only]] uzi2:
I have been testing this with tyween's TyphooN ROM on the HD2 and it is working well as a replacement for the existing scripts.

The only small issue I have found is that TB reports the ext4 partition as internal and the internal partition as "Sd card (a2sd)"

With everything now on ext4, I just have to find a use for the internal memory :D
[Android Software/Hacking General [Developers Only]] Looki75:
Thanks!

As for performance, did you notice an improvement?

Was it as expected (see OP)?
[Android Software/Hacking General [Developers Only]] uzi2:
Performance seems to be about the same, but it's early doors in my testing. I had apps and dalvik on ext4 with the old scripts, so I guess any change won't be that noticeable.

I appear to have lost all my market links, despite having them linked in TB. I know sometimes they take a while to appear and that the new market is a bit quirky, so I'll wait a while before blaming this script ;) Edit: Clearing it's data and cache has restored all my apps to market :)
[Android Software/Hacking General [Developers Only]] Alex-V:
read this and the page before :)

with kind regards
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
I'll openly admit I haven't done any tests myself, nor do I have any burning desire to sit and do any of that... I simply Googled it and summarized the information I found. If what I said was incorrect, then I stand corrected. :)

One day when my trusty Desire is not my day-to-day device, perhaps then I'll start playing more with things like this. Right now I don't have the time or energy to do any more than rely on other people's findings.
[Android Software/Hacking General [Developers Only]] CosmicDan:
Fair enough. Although I will state that my 32GB card is only a Class 6 and I also use a swap partition, which also puts a little more load on the CPU. And my device is only ~1GHz (1.5 OC) single core. There are a lot of variables to consider for such a thing.

Regardless, it's recommended to mount ext4 without journal to prolong sd-card life - which apparently is where ext4 (and 3) get their minor speed improvement from. Although I've gone back and forth between ext2 and 4 over the past year and never noticed any real-world difference.
[Android Software/Hacking General [Developers Only]] apoc [t.i.m.]:
best way to install amarullz?

Question for CosmicDan:

I'm running new/fresh Adrenalin ROM v4 with Phiexz kernel and no a2sd scripts at this moment (on Samsung Gio) with 1024mb ext2 partition on my class-4 sd-card...

(http://xdaforums.com/showpost.php?p=26797120&postcount=1 | http://xdaforums.com/showpost.php?p=32564864&postcount=291)

What is the best way to install your ,,updated amarullz script'' ???

=> Save your code (as stated above) in notepad to

40ad2sdx

en just copy this into "system/etc/init.d/" and change permissions to rwx ???

Then it should have to work after I shutdown and restart my phone, correct? (reboot)
[Android Software/Hacking General [Developers Only]] NYLimited:
I take it you meant my post but I assure you I have neither the time nor desire for a long debate.

I have used Amarullz' script for quite some time so I am familiar with it and this topic.

My comment was directed to a blanket statement about file systems and I wondered where the information came from.

I have no problem with the file system you prefer for your mod of Amarullz' script, especially since I will not use or need it. I am not using any scripts currently.

I shall play some music while unsubscribing from here. :]

Have fun!

---

He who has any respect for himself seems to have renounced the right of thinking meanly of others. (via Tapatalk)
[Android Software/Hacking General [Developers Only]] stedidg:
Script for Xperia X8

Someone have already a script for xperia x8?

http://xdaforums.com/images/icons/icon9.gif

Thanks

Ste
[Android Software/Hacking General [Developers Only]] coohdeh:
you must tell all devs about this

they not know it useless
[Android Software/Hacking General [Developers Only]] :
Do I flash this before or after gapps when I install cyanogenmod?

Sent from the Time Vortex
[Android Software/Hacking General [Developers Only]] nilhakim:
i've tried it but not successfull... my sd-ext can't mount to data

i've attached here my dumpinfo

anyone please help me

FYI :

My ROM : MIUIv4 ICS by Zackconsole based on nAa miniCM9

My Device : Xperia X8 (shakira)

thanks
[Android Software/Hacking General [Developers Only]] apoc [t.i.m.]:
Is there an easy way (for noobs) to see, test, verify if your customized script is actually running and doing it's thing correctly? I'm under the impression it's not running (properly) on my Samsung Bio. (AND can't find csdx.log)
[Android Software/Hacking General [Developers Only]] :
Is data restore with TB being worked on? That's the only thing stopping me from using this. Not asking for ETA or anything though.

Sent from the Time Vortex
[Android Software/Hacking General [Developers Only]] adell_:
It works fine. You can try it.
[Android Software/Hacking General [Developers Only]] :
Really? Op said that data restore failed :confused:

Sent from the Time Vortex
[Android Software/Hacking General [Developers Only]] adell_:
Yes, it works. Maybe, it has a problem with old versions of Titanium Backup.
[Android Software/Hacking General [Developers Only]] Dr. Globbyglob:
U R The BEST!!!
[Android Software/Hacking General [Developers Only]] :
Awesome! I'll install it then :D

Sent from the Time Vortex
[Android Software/Hacking General [Developers Only]] :
I'm getting bootloops but I've heard this should work on my phone and ROM :confused: do I install before or after gapps? And should it work if I edit ext4 to ext3?

Sent from the Time Vortex
[Android Software/Hacking General [Developers Only]] nanggala:
SD-EXT Mod - AMARULLZ DATA TO SD-EXT

I've done it all, information on recovery success or a successful installation! But to know the script is working or not, how? :confused: :confused: Though HP had me, can not mount sd-ext!:laugh::laugh::laugh:
[Android Software/Hacking General [Developers Only]] adell_:
You can check the storage size.
[Android Software/Hacking General [Developers Only]] ZaLiTHkA:
My Desire seems to have developed a strange problem lately, I'm still trying to track down the source of the problem though... One thought was that it's somehow related to the location that data is stored in, so just out of curiosity, is there any "safe" way to remove this init script?

The way I see it, I'll need to remove the script itself, then do a full wipe and start restoring settings and apps from something like Titanium Backup. Basically so that by restoring my apps they go to the original location as opposed to the location this script mounts to the /sd-ext partition. Or is there perhaps a way to do this without wiping data?

I'll have to do this tonight when I get home (battery too low and I don't have my charger with me), but I'm just doing some research first.. :) Any suggestions?

Edit: It's ok, nobody panic, the world isn't coming to an end any more... The problem seems to have gone away on it's own. :/ Really weird, I couldn't get any media players to update their album lists for about 2 weeks (was affecting both Winamp and Double Twist), but now it's working and I'm not complaining. :)
[Android Software/Hacking General [Developers Only]] refazta90:
Wohaha, urang bandung yeuh. Karek terang. Nuhun nya kang... :good: