yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ardyhardy:
i used mini partition tool i got a 8gb sd card i partitioned 6593.00 fat32 and 1000.22 for ext2 then clicked apply
[Android Software/Hacking General [Developers Only]] majedev:
It seems that your device is not recognizing your second partition. Try partitioning again just to double check (and use another tool if possible).
[Android Software/Hacking General [Developers Only]] ardyhardy:
it comes up with same error :(:confused:
[Android Software/Hacking General [Developers Only]] majedev:
As long as executing "ls -l /dev/block/mmc*" does not list three devices, namely:

brw------- root root 179, 0 2011-04-25 17:42 mmcblk0
brw------- root root 179, 1 2011-04-25 17:42 mmcblk0p1
brw------- root root 179, 2 2011-04-25 17:42 [B]mmcblk0p2[/B]

Then you either didn't partition your SD card correctly, or there's something wrong with your firmware (which is not quiet possible ;))

Try partitioning using Ubuntu, will save you alot of time!
[Android Software/Hacking General [Developers Only]] ardyhardy:
lol i just done using ubuntu and it worked tahnks alot
[Android Software/Hacking General [Developers Only]] emceejay13:
Problem with mounting the ext2 partition

Hey

Please help me..

I tried mounting my galaxy ace... copy-pasted all the codes at their respective places..

It says..

Remounting system partition as read'write...

Mounting SD card ext2 partition...

and next

Im getting an "ERROR: ext2 partition couldn't be mounted, make sure you follow the partition guide correctly"

Thanks
[Android Software/Hacking General [Developers Only]] majedev:
execute "ls -l /dev/block/mmc*" as root and send the output
[Android Software/Hacking General [Developers Only]] emceejay13:
thanks...

im getting it as...

brw------- root root 179, 16 2011-05-01 22:17 mmcblk1

brw------- root root 179, 17 2011-05-01 22:17 mmcblk1p1

brw------- root root 179, 18 2011-05-01 22:17 mmcblk1p2

What is the problem?
[Android Software/Hacking General [Developers Only]] majedev:
mmcblk

1

?!? Are you testing this on a galaxy ACE? What's your firmware?
[Android Software/Hacking General [Developers Only]] emceejay13:
Yes im working it on Galaxy ace...

My firmware version..

PDA: S5830DDKA7

PHONE: S5830DDKA7

CSC: S5830DDKA7
[Android Software/Hacking General [Developers Only]] majedev:
Hmm, that's kinda weird! Just to double check, reboot your phone and execute "ls -l /dev/block/mmc*" once again. If it displayed mmcblk1 stuff (instead of mmcblk0), then use the attached script instead of the original one.

I hope this one helps :D
[Android Software/Hacking General [Developers Only]] emceejay13:
OMG..!!! I rebooted my phone and i had run the previous script and it says...

Remounting system partition as read/write..

Mounting SD card ext2 partition..

Installing startup script..

DONE: Now you can install Darktremor's a2sd, nJoy \m/

Thanks majedev
[Android Software/Hacking General [Developers Only]] emceejay13:
Problem againn...

For installing i opened android system recovery

i didnt find "select partition sdcard "

i can see..

reboot system now

apply sdcard:update.zip

wipe data/factory reset

wipe cache partition

Which option should i select??

Can you provide me with "update.zip" file..??
[Android Software/Hacking General [Developers Only]] Jackobyte:
If I install this and change my sd card in the future (looking for a 16gb at the moment) will this cause problems?
[Android Software/Hacking General [Developers Only]] emceejay13:
Hey...

I downloaded "update.zip" file from the forum and extracted it to the root folder of my SD card and i run the android system recovery and selected

"apply sd card: update.zip"

then it says

"f: sd card ERROR (status 0)

installation aborted"

and later when i rebooted my phone i observed that some of the icons in the bottom are missing like only call and menu icons were visible, contacts and messaging icons were not there then i again did a hard reset and got the icons back.

Please tell me how to install the darktremor app2sd and how to enter into partition SDcard in recovery as mentioned in the below process

after opening the android system recovery im getting only 4 options

"reboot system now

apply sdcard:update.zip

wipe data/factory reset

wipe cache partition"

i think the only possible option is to select "apply sdcard:update.zip"

please help me and if i have to take only that option then please provide me with "update.zip" file...

thanks
[Android Software/Hacking General [Developers Only]] harrythescorpion:
Hi majedev..

i have re-flashed my ROM ran ur script and have installed the darktremors a2sd.

everything seems to be going fine but there is one thing that is bugging me.

wheni run a2sd diskspace, it returns me the following output:

[-] Checkpoint 1: Check for SD Card Fix and Implement.

[-] Checkpoint 2: Run Dalvik Heap Program (if exists).

[-] Checkpoint 3: Run Set Low Memory Killer Program (if exists).

[-] Checkpoint 4: Determine Mount Point.

[-] Checkpoint 5: Set Parameter Variables.

[ ] GetProp Command = /system/bin/toolbox getprop

[ ] SetProp Command = /system/bin/toolbox setprop

[ ] Mount Point = /system/sd

[-] Checkpoint 6: Insert CyanogenMod patch.

[-] Checkpoint 7: Complete Dalvik Cache Move (if applicable).

[-] Checkpoint 8: Resetting Dalvik Cache Partition

[-] Checkpoint 9: Switching Davlik Cache to Cache Partition (if applicable)

[-] Checkpoint 10: Checking for existence of command parameter

[-] Checkpoint 11: Check for a2sd help command

[-] Checkpoint 12: Check for a2sd check command

[-] Checkpoint 13: Display version information.

[ ] Starting Darktremor Apps2SD Version 2.7.5.3 Beta 4a

[-] Checkpoint 14: Check for filesystem support.

[-] Checkpoint 15: Mount partition.

[-] Checkpoint 16: Reset Dalvik if Flag File is present.

[-] Checkpoint 17: Mount Swap.

[-] Checkpoint 18: Display Heap Size.

[ ] Heap Size set to: 64m

[-] Checkpoint 19: Check for start parameter and launch start2sd if needed.

[ ] Launching Apps2SD Start Program with diskspace

[X] No a2sd.swap environment variable found.

[ ] Starting Darktremor Apps2SD in diskspace mode

[ ] Displaying Disk Space statistics on SD card

-h: No such file or directory

/dev/block/mmcblk0p2: 142216K total, 12K used, 142204K available (block size 409

6)

[ ] Setting File System Ready property to 1.

#

it is not showing up my ext2 partition statistics.

what do u say about that?
[Android Software/Hacking General [Developers Only]] harrythescorpion:
then you will have to redo the procedure, to make it work on other card.

and u will have to remove the a2sd before switching over.
[Android Software/Hacking General [Developers Only]] majedev:
You don't have to "partition sd card" because you already did! The instructions on Darktremor's Facebook page says it all:

https://www.facebook.com/note.php?note_id=158809660835039

But you have to skip the part of partitioning. In the other hand, you should download the zip file provided in the page above, rename it to update.zip then copy it to your SD card. After that, you're fine to go with "apply sdcard:update.zip"
[Android Software/Hacking General [Developers Only]] majedev:
It's the same problem you had a while ago. I think it's a bug in Darktremor's script. Anyways, just try "ls -l /data", "df" and "mount" as root and post the output to double check.
[Android Software/Hacking General [Developers Only]] majedev:
Actually, if you removed your sdcard at any point it will cause you problems because it's considered as an "extension" to internal memory.

When you buy a new sd card, partition it as suggested in the guide, copy all contents from your old sd ext2 partition to the new sd ext2 partition, then insert the new one in your handset and test it (without redoing the script). I think that should work.

harrythescorpion's suggestion will work as well, but only if your internal memory has enough space to handle the data stored in ext2 partition.

Personally I'd choose the copying method, because it's much cleaner and safer.
[Android Software/Hacking General [Developers Only]] emceejay13:
Thanks majedev for your help..

When i install an app from the market it is installed in the SD card directly and even the internal memory is also getting occupiedwith some data or cache.

How can i move the complete internal app data/cache memory to the SDcard??:)
[Android Software/Hacking General [Developers Only]] emceejay13:
I have a problem now....

I installed the darktremor app2sd and booted my phone, after sometime... market and install manager lite apps are force closed and i again rebooted my device and the suddenly both market and installmanager disappeared from the applications list...!!! :eek:

Where did it go wrong?? :confused:
[Android Software/Hacking General [Developers Only]] emceejay13:
OMG...!!! Now my GPRS is also not working...!!!!

I installed Darktremor app2sd in my phone and my GPRS stopped working suddenly..

Somebody please help.... i factory reseted my phone twice.. but no change... these is no GPRS working in my phone...!! :eek:
[Android Software/Hacking General [Developers Only]] majedev:
Well let's do this step by step, it could be a problem with your carrier. First of all try using another SIM which actually has an active GPRS.

In the other hand, you might just lost some APN settings when you hard-reset your phone?

Also, try disabling a2sd and the startup script that was created by my script, by typing the following commands, then reboot your phone :

su
mount -o remount,rw /dev/stl12 /system
a2sd remove
rm /system/etc/install-recovery.sh
[Android Software/Hacking General [Developers Only]] emceejay13:
Hey

Sometime after resetting the factory settings the GPRS started working but i think darktremor is not working fine in my phone.

Im facing some or the other problem in my phone. First market and install manager apps disappeared saying some problem in launching the apps and they were force closed, its something related to "twlauncher" i uninstalled the app "install manager lite" and made a factory reset i installed darktremor again in recovery then the market was working fine and later after sometime the GPRS stopped working suddenly again i made a factory reset and again its working fine...

I really dont understand what the problem is...!!?? :confused:
[Android Software/Hacking General [Developers Only]] KoGi77GR:
Hey majedev, thanks again for the guide, I've got Apps2sd for weeks now without a problem.

Now that a rooted 2.3.3 ROM is out, do you know if we can install everything the same way?

Your preparations are still needed before Apps2sd? Will DT's Apps2sd install in Gingerbread at all?!?!?!
[Android Software/Hacking General [Developers Only]] majedev:
Your installation is fine, no worries at all! If you want to know how much ext2 memory you still have, just type "df" like you did above:

/system/sd: 375831K total, 167761K used, 208070K available (block size 1024)
[Android Software/Hacking General [Developers Only]] majedev:
Congratz for the update :)

Unfortunately I don't have enough time to test the new ROM, but you may help me by posting the following files:

/init.rc
/proc/filesystems
[Android Software/Hacking General [Developers Only]] majedev:
Did you disable a2sd as suggested in my previous post?
[Android Software/Hacking General [Developers Only]] harrythescorpion:
Thanx for the info majedev. I an also using a programme I think it us known as freespace. It gives me info about the all partitions, including ext 2. But my internal memory free space is also decreasing rapidly. Should I also link my data to sdcard? And one more thing that I've noticed is that when I type "device" command in adb shell, I get no device found, but every other command works well. Any ideas why it is doing that?
[Android Software/Hacking General [Developers Only]] majedev:
Dalvik-cache and data directories are space hungry, you may consider moving them (at least the dalvik-cache). In my case, apps use 60.7 MB, data use 63.4 MB and dalvik-chache uses 71.9 MB! So they tend to fill your internal memory very quickly.

I didn't get the "device" command point, would you explain more?
[Android Software/Hacking General [Developers Only]] harrythescorpion:
Sure.. When u are logged in through adb shell, and if u type in the command ' device' or ' devices' , it gives u an list of all the android devices connected. I have seen it at several videos on youtube.
[Android Software/Hacking General [Developers Only]] majedev:
Ahha, you mean "adb devices", it works fine for me. I've no clue to help you with this one :(
[Android Software/Hacking General [Developers Only]] harrythescorpion:
Hmm... Ohk.. Thnx.. And can u please tell what does adb 'devices' gives u as output? Serial number, or phone model?
[Android Software/Hacking General [Developers Only]] distan7:
Hi majedev, I've been trying for days to properly install DarkTremo yet it's noy completely installed. I tested your script and a2sd check shows exactly what I expect to see, and my swap partition is also enabled. Many thanks, you made it happen

And one more, I'm installing this on my Galaxy GT-S5570 aka Mini aka Pop with 3 partitions (fat32, ext3 and swap).
[Android Software/Hacking General [Developers Only]] majedev:
It shows the following:

List of devices attached
S58308963XXXX	device
[Android Software/Hacking General [Developers Only]] majedev:
Glad it worked :D I sent you a PM so maybe we can test this thoroughly on your device before updating the thread.
[Android Software/Hacking General [Developers Only]] harrythescorpion:
Hmm.. thanx..

but u know wht.. it suddenly worked! :D

List of devices attached

S58300e9aXXXX device
[Android Software/Hacking General [Developers Only]] emceejay13:
Hey Majedev,

I have done a factory reset and installed the darktremor again and GPRS is working fine but some applications are force closed like "Install Manager Lite" and "Raging Thunder 2". I dont know what the reason is but i observed that problem in the phone. All apps are directly getting installed in SDcard by default.

what might be the problem for force close??
[Android Software/Hacking General [Developers Only]] boxy44:
Hi, i have the latest europe Foryo firmware and have rooted it by super one click, uninstalled the 3 european default apps,partioned my 8gb class4 using the tutorial in the ACE 1st page,and now i'm stuck at

"Disconnect mass storage and login to ADB shell as root "

"

C:\Users\XXXX>adb shell

'adb' is not recognized as an internal or external command,

operable program or batch file. "

this is what i'm getting...

did some googling and intalled the java sdk 6, android sdk,but still same error....
[Android Software/Hacking General [Developers Only]] majedev:
I haven't tested neither of the mentioned apps. It could be a bug in a2sd, you'll have to consult a2sd creator for that matter :)
[Android Software/Hacking General [Developers Only]] majedev:
You didn't add adb to your system path. You have two options:

1- cd to the directory where adb executable is (e.g. C:\android-sdk-windows\platform-tools\) then run the command

2- Add the directory to system path (google it!)
[Android Software/Hacking General [Developers Only]] boxy44:
thanks,but it turned out the android sdk did not have a "platform-tools",instead had a text saying i have to update a 9mb file inorder to get that... installed app2sd and moved dalvic cache to sd as well,but the internal mem still showe 48mb full ? why is that?
[Android Software/Hacking General [Developers Only]] majedev:
Did you move data as well?

a2sd datasd

(not recommended if you have a slow SD card)
[Android Software/Hacking General [Developers Only]] boxy44:
thanx man...

i have a class 4 8gb card,and i have done what you have said,now tha internal mem is arnd 10mb.... is that the lowerst it can go?the most imp thing now is that i can install any number of apps,but to be honest,i did not find any improvement in either quadrant or neocore....
[Android Software/Hacking General [Developers Only]] emceejay13:
Hey

When i tried to move the data to SD im getting the following output

what might be the problem...!??:confused:
[Android Software/Hacking General [Developers Only]] majedev:
Try executing the command as root ^_^
[Android Software/Hacking General [Developers Only]] majedev:
The /data directory contains more that just apps and apps' data, there are some error logs and other stuff stored in there. Plus, what's the point of having an empty internal memory all the time?

Indeed, you shouldn't find improvements in any benchmark test, because you're extending the device storage, which has nothing to do with RAM and CPU!
[Android Software/Hacking General [Developers Only]] boxy44:
after moving tha data to sd,i noticed tha messaging is verry laggy,i.e after sending a msg,it is taking about 3 seconds to go back to the msg display page irrespective of the number of times i press the back button... moved it back to the internal mem and i'm back at 50 mb,but the messaging is back in form!!

ZipAlign Commands , how will help....
[Android Software/Hacking General [Developers Only]] pico.marco:
Has anyone tried? works with 2.3.3?

Many thanks.
[Android Software/Hacking General [Developers Only]] ysgace:
2.3.3 Problems

Thanks majedev for your hard work here. Good news and bad news for those of us running Gingerbread (2.3.3) on our Galaxy Ace S5830's.

The root process for Gingerbread on the SGA as described in http://xdaforums.com/showthread.php?t=1034145 doesn't install all the busybox symlinks. It took me a while of seeing things like "[: not found" before I realize that I had to create some symlinks myself:

cd /system/xbin
ln -s busybox [
ln -s busybox grep

After that, the a2sd_enabler.sh script runs successfully and doesn't produce any error - we're able to mount an ext2 filesystem.

Unfortunately, the lines in init.rc that run install-recovery.sh have been commented out (see my init.rc attached):

#service flash_recovery /system/etc/install-recovery.sh
# oneshot

I'm running the first (leaked) ROM that emerged on samfirmware - S5830XXKP8 - there have been three releases since so it may be that the init.rc is different on the newer ones, if anyone has flashed any of the later ones and is willing to check then that would be great. Otherwise, if anyone can think of a workaround here other than repackaging the image I'd be willing to give it a try.
[Android Software/Hacking General [Developers Only]] pico.marco:
I have KPE and the lines are commented.

For now, I have not found any way to mount the second partition in Ace 2.3.3:

http://xdaforums.com/showpost.php?p=13460479&postcount=1176

http://xdaforums.com/showpost.php?p=13678308&postcount=1249
[Android Software/Hacking General [Developers Only]] ysgace:
Are you saying that neither of those two methods have worked for you?
[Android Software/Hacking General [Developers Only]] pico.marco:
Unfortunately... neither.

I'm unable to mount second partition at boot. If I launch the script manually, it works.
[Android Software/Hacking General [Developers Only]] ysgace:
Well the first one seems promising except that the memsicd binary is called by user system not root. Maybe there's something else init init.rc or init.qcom.rc that can be used.
[Android Software/Hacking General [Developers Only]] ysgace:
a2sd for Gingerbread

So it's taken a lot of reading from a number of different places but I figured out how to modify the boot.img in the Odin CODE tarball in order to flash with an edited init.rc. I realize that with this power I could have simply built a2sd into the boot.img but one step at a time. So for now, if you want a2sd for Gingerbread (S5830XXKPE) then files and instructions can be downloaded using zoink.it/torrent/1866E42EE375C8E1336E5B9EFD0669A91BE9A04F.torrent (please copy and paste the link because right now I'm too new to post external links, bittorrent client required).
[Android Software/Hacking General [Developers Only]] peeter123:
A suggestion for you: MultiUpload Free and no torrent required ;)
[Android Software/Hacking General [Developers Only]] ysgace:
Thanks, now available from: http://www.multiupload.com/TBACWA4ZBH
[Android Software/Hacking General [Developers Only]] endemania:
Great!!! it's work!!!:)
[Android Software/Hacking General [Developers Only]] ushama:
Is it really work? Can you tell us step by step to do it? Thanks :D
[Android Software/Hacking General [Developers Only]] modtanoii:
i use 2.3.3 S5830XXKPE firmware

i execute a2sd_enabler.sh and have error message
[Android Software/Hacking General [Developers Only]] ysgace:
Please see the first post on this thread. You need to be root before you execute a2sd_enabler.sh
[Android Software/Hacking General [Developers Only]] lesp4ul:
hi, i wanna ask about swap partition for ace, what is the recommended size of the partition? i have created 3 partition including 256MB swap, but i found a2sd cannot activate swap (not supported). should i leave it or reduce the size?

please help, thnx!.
[Android Software/Hacking General [Developers Only]] pico.marco:
Great. Tonight I try.

EDIT

It works! THANKS!!!
[Android Software/Hacking General [Developers Only]] distan7:
256 is way too much. I think even if your swap is around 64MB with swappiness set to 40 you'll end up using less than 50% of your swap partition.

Btw maybe the kernel doesn't support swap partition. I just installed DT on my friend's Galaxy Ace and I have just the same problem : swap can't be activated.
[Android Software/Hacking General [Developers Only]] manju991:
man I flashed yur rom but app2SD is force closing.. help!!!
[Android Software/Hacking General [Developers Only]] hypergamer1231:
guys i want this on my have i am on villianrom and have also created a ext 2 partition but getting access denied in dos prompt please help me guys please
[Android Software/Hacking General [Developers Only]] emceejay13:
Lag in SMS Inbox

Hey..

I installed the darktremor app2sd and i moved the data from internal memory to SD using the command

Data is moved from internal memory to SD. Memory came down to 70MB from 128MB. But the problem is, when i get into SMS inbox and enter into some conversation, after pressing back button it is taking some time to go back to inbox. There is some lag in the process.

What might be the problem?? Moving data to SD affected to lag??:confused:
[Android Software/Hacking General [Developers Only]] hypergamer1231:
KPE ==> Villianrom ==> root using upd.zip ==> now trying your method pray it wrks god bless you
[Android Software/Hacking General [Developers Only]] tr.supradeep:
Even i have the same problem while using it for 2.3.3 Villain ROM. And i am executing it using root but still i am not getting to run the script as i end with this error. Need Help! I observe the code value is 0 but still why doesnt it enter the if-then part of the script?

ERROR: System partition couldn't be remounted, are you on root-aid? (error code 0)
[Android Software/Hacking General [Developers Only]] distan7:
Yup, moving data to SD creates a noticeable lag if you're using low-class SD Card. I tried this on my Class 6 Team MicroSD and the lag is annoying. You should use a Class 10 MicroSD to avoid this lag. Just revert what you did.
[Android Software/Hacking General [Developers Only]] emceejay13:
Thanks for helping :)
[Android Software/Hacking General [Developers Only]] distan7:
You're welcome :)
[Android Software/Hacking General [Developers Only]] emceejay13:
Hey, how to recognize whether the memory card is Class 6 or Class 10??
[Android Software/Hacking General [Developers Only]] peeter123:
It's on the specsheet online or printed on the packaging.
[Android Software/Hacking General [Developers Only]] devetle:
Hi, ysgace. Thanks a lot.

Now the S5830XXKPH 2.3.4 is coming. Can you please share with us "how to modify the boot.img in the Odin CODE tarball in order to flash with an edited init.rc"?

The init.rc of S5830XXKPH also comments the execution of "install-recovery.sh".

Thanks indeed.
[Android Software/Hacking General [Developers Only]] devetle:
The base of S5830XXKPH boot.img is 0x13600000.

Add "--base 0x13600000" to the mkbootimg command line~