FORUMS
Remove All Ads from XDA

[HOWTO] (Obsolete) Enabling a2sd on Samsung Galaxy ACE (s5830)

294 posts
Thanks Meter: 429
 
By majedev, Senior Member on 30th March 2011, 08:44 AM
Post Reply Email Thread
This thread is obsolete and the method is buggy. I've created a new post with a simple script that does the job. Please find it here:
http://forum.xda-developers.com/show...php?p=12827697


Hello,

In this guide I will show you how to enable Darktremor's a2sd (i.e. extending your internal memory using SD card, so you can install more applications easily). This method has been tested on a rooted Galaxy ACE running Android 2.2.1.
This guide assumes that your phone is rooted, and you have a basic knowledge in Linux.

REMEMBER: The steps below will not extend your phone's internal memory, you still have to install a2sd (link provided below) to complete the job.

Quote:

1- Backup all data, both on your phone and your SD card.

Quote:

2- Partition your SD card as following: 1st partition FAT32, 2nd partition ext2. I'm not sure about the optimal partition size of ext2, but you can start with 1-2 GB. Make sure that you use ext2 only, as ext3 and ext4 are not supported by the kernel. Here's a good guide to help you out.

Quote:

3- Insert your SD card and make sure that your phone recognizes it correctly.

Quote:

4- Connect your phone through USB and login to ADB shell as root:

Code:
> adb shell
su
_

Quote:

5- Try mounting the second partition to confirm that everything is going fine:

Code:
mount -o remount,rw /dev/stl12 /system
mkdir /system/sd
mount -t ext2 /dev/block/mmcblk0p2 /system/sd
df

Quote:

6- Applying the commands above should bring an output similar to the following, make sure that you have something similar to the line in red below:

Code:
/dev: 142220K total, 12K used, 142208K available (block size 4096)
/mnt/asec: 142220K total, 0K used, 142220K available (block size 4096)
/cache: 25656K total, 12K used, 25644K available (block size 4096)
/data: 185240K total, 36768K used, 148472K available (block size 4096)
/system: 213376K total, 211520K used, 1856K available (block size 4096)
/system/sd: 1032088K total, 38512K used, 993576K available (block size 4096)
/mnt/sdcard: 6783016K total, 190356K used, 6592660K available (block size 4096)
/mnt/secure/asec: 6783016K total, 190356K used, 6592660K available (block size 4096)

Quote:

7- So far you have successfully mounted your ext2 partition. Now you need to enable mounting it at boot time, and enable a2sd boot scripts, as following:

Code:
mount -o remount,rw /dev/stl12 /system
cd /system/etc
mv install-recovery.sh install-recovery.sh.bak
echo "#!/system/bin/sh" > install-recovery.sh
echo "/system/bin/mount -t ext2 /dev/block/mmcblk0p2 /system/sd" >> install-recovery.sh
echo "/system/bin/sh /system/etc/init.d/dtapp" >> install-recovery.sh
echo "/system/bin/sh /system/etc/init.d/99complete" >> install-recovery.sh
Don't worry if you get complains about "install-recovery.sh doesn't exist"

Quote:

8- To check that everything went well, reboot your phone and login again as root through adb, then run the following command, and find the highlighted line in the output below:

Code:
su
df
Output
Code:
/dev: 142220K total, 12K used, 142208K available (block size 4096)
/mnt/asec: 142220K total, 0K used, 142220K available (block size 4096)
/cache: 25656K total, 12K used, 25644K available (block size 4096)
/data: 185240K total, 36768K used, 148472K available (block size 4096)
/system: 213376K total, 211520K used, 1856K available (block size 4096)
/system/sd: 1032088K total, 38512K used, 993576K available (block size 4096)
/mnt/sdcard: 6783016K total, 190356K used, 6592660K available (block size 4096)
/mnt/secure/asec: 6783016K total, 190356K used, 6592660K available (block size 4096)

Quote:

9- Now you're good to go. Follow the directions as described in Darktremor's thread here:
http://forum.xda-developers.com/showthread.php?t=715116

Quote:

10- IMPORTANT: If your internal memory is still the same after installing a2sd and rebooting, then type the following commands in adb shell:

Code:
su
a2sd install

Quote:

11- BONUS: To move dalvik-cache from internal memory to ext2 partition, type the following commands in adb shell:

Code:
su
a2sd cachesd


Please feel free to comment and share your experience.


Note for the experts:
I think we can easily enable init.d scripts at boot using the /system/etc/install-recovery.sh. I didn't have the time to test this, but I think busybox run-parts is the way to start.
The Following 2 Users Say Thank You to majedev For This Useful Post: [ View ] Gift majedev Ad-Free
 
 
30th March 2011, 12:10 PM |#2  
Member
Thanks Meter: 0
 
More
wow...this is a very helpful thread !!!!!!
thanks n the step is very easy...
30th March 2011, 12:16 PM |#3  
Member
Thanks Meter: 0
 
More
need to flash custom recovery ROM b4 start ur step ???
30th March 2011, 01:07 PM |#4  
Senior Member
Thanks Meter: 16
 
More
Any performance issue after implement this?
30th March 2011, 01:32 PM |#5  
OP Senior Member
Thanks Meter: 429
 
Donate to Me
More
Quote:
Originally Posted by cheehing

need to flash custom recovery ROM b4 start ur step ???

Nope, you don't have to. Just follow the steps exactly as stated above
30th March 2011, 01:35 PM |#6  
OP Senior Member
Thanks Meter: 429
 
Donate to Me
More
Quote:
Originally Posted by mynewuser

Any performance issue after implement this?

4 days and no problems at all. Performance is great. I'm using a stock Nokia SD card (8 GB taken from Nokia 5800) - not sure which class it is, but I'm sure it's not super.
30th March 2011, 06:20 PM |#7  
Lovetz's Avatar
Senior Member
Flag Petrozavodsk
Thanks Meter: 1,776
 
More
Why you do not use Move2SD Enabler? I think it is more easily for every one.
What is the difference between your method and using Move2SD Enabler in practic?

One more easy way to free some space at main memory with out any scripts:
Link2sd
30th March 2011, 08:44 PM |#8  
OP Senior Member
Thanks Meter: 429
 
Donate to Me
More
Quote:
Originally Posted by Lovetz

Why you do not use Move2SD Enabler? I think it is more easily for every one.
What is the difference between your method and using Move2SD Enabler in practic?

First of all, it's not my method. Credits go to Darktremor for his contribution. All I did was enabling it to work on Galaxy ACE.

Move2SD moves applications to the FAT partition, which does not play well with many apps. Moreover, if you plugged your device as mass storage, these applications will not be available until you release it. Ofcourse, dalvik-cache can't be moved. Please refer to the original post for more details:
http://forum.xda-developers.com/showthread.php?t=720739

Quote:
Originally Posted by Lovetz

One more easy way to free some space at main memory with out any scripts:
Link2sd

This does the same job as a2sd, with the exception that you have to manually select apps to move to ext partition. This is not a disadvantage, but personally, I don't like it. Plus, it failed to move my dalvik-cache on SGA.


Just like you said, Move2SD and Link2SD are much easier and save you the hassle. A2SD in the other hand is more adventurous and sexy


Anyways, thank you for pointing this out, might help a couple of noobs finding easier alternatives.
31st March 2011, 01:57 AM |#9  
Member
Thanks Meter: 0
 
More
just follow all the steps u provided...no need to refer to Darktremor's thread right ??? the a2sd from Darktremor is for what?

but i cant find install-recovery.sh in /system/etc

sorry for many noob Q
31st March 2011, 06:30 AM |#10  
OP Senior Member
Thanks Meter: 429
 
Donate to Me
More
Quote:
Originally Posted by cheehing

just follow all the steps u provided...no need to refer to Darktremor's thread right ??? the a2sd from Darktremor is for what?

but i cant find install-recovery.sh in /system/etc

sorry for many noob Q

Actually you do have to follow Darktremor's guide to complete the process.

Regarding the install-recovery.sh, it doesn't have to be there. The 7th step above will create it if it doesn't exist (and back it up if it already exists).
31st March 2011, 06:55 AM |#11  
Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by majedev

Actually you do have to follow Darktremor's guide to complete the process.

Regarding the install-recovery.sh, it doesn't have to be there. The 7th step above will create it if it doesn't exist (and back it up if it already exists).

the a2sd from Darktremor is for what? need to download in install b4 starting the mount steps?
Post Reply Subscribe to Thread

Tags
a2sd, ext2, galaxy ace, s5830

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes