[Tutorial] How to setup a2sd in SGA S5830?
I am not responsible for anything you choose to do.
Prerequisites:
1. EXT4 partition on microSD Card
2. A2SD zip installer
3. CWM4 Recovery
4. Root/SuperUser
5. Terminal Emulator or A2SDGUI
DO NOT TYPE "" THEY ARE ONLY THERE TO SHOW WHAT TO TYPE.
* Make sure SD card is formatted with ext 4
* Open android market and download terminal emulator
* Open terminal emulator
* Type "su" then press enter and grant root access if keyboard is gone press and hold menu then type "a2sd install" and press enter now there will be stuff going on do not exit or do anything on phone until it reboots.
* After rebooted open terminal again. type su then enter now type "a2sd check" then enter now scroll back up in terminal and look for apps on the right of the screen once you see that look to the left and look and make sure it say programs run from sd card and there is [ ] next to it not [ ... ] (... are there to show space) also check your storage and see if it decrease this is another way you can tell if it worked. Titanium backup is great for checking your storage and backing up apps.
* Now type "a2sd zipalign" after you type this you will see some words fly up the screen just wait till it stops and last line says setting file system ready property to 1. the next line will be #
* Check your storage you should see a decrease. if you want it to decrease more open terminal emulator and type "su" press enter then type "a2sd cachesd" press enter wait for reboot
* This is an optional step. this will sometimes help with speed. Now type "a2sd heapsize64" press enter and wait for reboot.
* After reboot now check storage again and it should have dropped again. once you have done all this your phone will be running on your sd card and its internal memory so when sd card is mounted to pc your phone maybe a little slow. also boots will take a few seconds longer with dalvik moved to sd. now with your apps running from sd your apps will automatically be installed there so its set it and forget it.
* If you change roms and you want a2sd+ make sure the rom supports it and you will have to set it up again but after your sd card has been partitioned once if you never format it back to only one partition you will not need to repartition it like in step 2 but you can follow step one and see if your sd card is formatted correctly.
Thanks to user kryptico of forums.miui.us for making this guide.
Activate Swap partition:
su
a2sd reswap
Deactivate Swap partition:
su
a2sd noswap
Other Swap Scripts:
su
a2sd swapspace - To check swap partition
a2sd swappyXX - Assign swap percentage (e.g. swap 10%, then enter swappy10)
If someone want to revert to default settings, then use below commands.
Revert Apps to Internal Memory:
su
a2sd remove
Revert Cache to Internal Memory:
su
a2sd cachesdreset
Revert Zipalign:
su
a2sd nozipalign
Revert Swap:
su
a2sd noswap
It's clear that nexusace have a2sd darktremor enabled by default. And I think the tutorial on the original nexusace thread is clear enough.
But probably this thread is useful for newbie.
Yes fla.sh, I created this thread for newbies... So that they can easily use a2sd.
Below are my SGA memory details as per Titanium Backup:
System Rom: 218 MB (19.8 MB Free)
Internal: 189 MB (174 MB Free)
SD Card: 13.7 GB (6.82 GB Free)
SD Card (a2sd): 2.11 GB (1.96 GB Free)
DP
How to format sd card to ext4? I'm little bit confused.. Should format using in phone or by pc/laptop..
Sent from my GT-S5830 using XDA App
do u know how to activate DALVIK JIT in terminal ?
i tried with command "a2sd jit" but it said dat its unknown command. i know we can activate D-JIT through a2sdgui but wanted to know how to do the same in terminal
rockzanei said:
do u know how to activate DALVIK JIT in terminal ?
i tried with command "a2sd jit" but it said dat its unknown command. i know we can activate D-JIT through a2sdgui but wanted to know how to do the same in terminal
Click to expand...
Click to collapse
Correction: can't find the command.
You can check at Darktremor's Apps2SD page: https://www.facebook.com/note.php?note_id=158826790833326
Diliban said:
Yes fla.sh, I created this thread for newbies... So that they can easily use a2sd.
Below are my SGA memory details as per Titanium Backup:
System Rom: 218 MB (19.8 MB Free)
Internal: 189 MB (174 MB Free)
SD Card: 13.7 GB (6.82 GB Free)
SD Card (a2sd): 2.11 GB (1.96 GB Free)
DP
Click to expand...
Click to collapse
My Titanium Backup details with my own modifed version of the rom(5 days old install) just after being done with your tutorial :
218MB (63.9 MB Free)
Internal: 188 MB (175 MB Free)
SD Card: 15.0 GB (5.50 GB Free)
SD Card (a2sd): 991 GB (894 MB Free)
Thanks for the guide, forgot the commands and saw it as first post
Does this work on 2.3.4 kph fw???
Sent from my Galaxy ace using Tapatalk
@ chinoyray i already checked that page but its not there... i even tried this page http://forum.xda-developers.com/showpost.php?p=7021609 but still not working from terminal
Android-Desire said:
My Titanium Backup details with my own modifed version of the rom(5 days old install) just after being done with your tutorial :
218MB (63.9 MB Free)
Internal: 188 MB (175 MB Free)
SD Card: 15.0 GB (5.50 GB Free)
SD Card (a2sd): 991 GB (894 MB Free)
Thanks for the guide, forgot the commands and saw it as first post
Click to expand...
Click to collapse
Why your device have free memory 63.9 mb and my device with codenexus rom have free memory only 13nb. Thanks
Sent from my GT-S5830 using Tapatalk
Because i modified the rom to my needs.
Sent from my GT-S5830 using XDA Premium App
Are you using linux?
If you have ubuntu, download gparted:
sudo apt-get install gparted
Open it by going "System>Admin>Gparted", then go "File>Devices" and pick /dev/sdb
Then, format fat32 to ext3/4
Android-Desire said:
Because i modified the rom to my needs.
Sent from my GT-S5830 using XDA Premium App
Click to expand...
Click to collapse
More free space of system rom have any advantage? Thanks
Sent from my GT-S5830 using Tapatalk
joryS5830 said:
More free space of system rom have any advantage? Thanks
Sent from my GT-S5830 using Tapatalk
Click to expand...
Click to collapse
Well i find my phone very stable and fast with all that free space, but i could be wrong about it, havent checked any benchmarks yet as i just want a fast phone with more free memory.
The Quadrant Score for my Galaxy Ace is 1066... with the amount of space I have.
need help
can anyone help me how to ext4?
really want to try this rom. many thanks who will help
Did anyone use datasd in your coderomnexus?
Sent from my GT-S5830 using XDA Premium App
Great ROM
System Rom: 218 MB (16.7 MB Free)
Internal: 189 MB (150 MB Free)
SD Card: 7.35 GB (4.56 GB Free)
SD Card (a2sd): 503 NB (382 MB Free)
migz012788 said:
Did anyone use datasd in your coderomnexus?
Sent from my GT-S5830 using XDA Premium App
Click to expand...
Click to collapse
Yes... I used a2sd in Coderomnexus and it worked really fine.
Siblyx said:
can anyone help me how to ext4?
really want to try this rom. many thanks who will help
Click to expand...
Click to collapse
Do google search for Minitool Parition and search the same in XDA forum or you can use the below mentioned linux way which considered as lot risky.
http://forum.xda-developers.com/showthread.php?p=15944289#post15944289
Related
hello..
1. i'm noob...
2. i put Android to my HD2. ok...
Problems... Low Memory on my phone after a few instalations.
i make one partition ext3 on my SD.
My problem is that partition never seen by software...
When i try to put commands on the terminal, at "su" command i see the next message: "Permission denied"...
In the ROM MANAGER 4.3.2.3. when i try to partition SD card , when i try to install ClockwordMod Recovery , i choose the HD2 model and on my phone appear "An error ocurred while attempting to run privileged commands!"
PLS HELP!!!! My sd card in a 16Gb, class 10.
Only i needed is space for a new programs on my phone...
I send you a beer if you can help me (special pentru cei din Bucuresti eventual...).
sorincristian said:
When i try to put commands on the terminal, at "su" command i see the next message: "Permission denied"...
Click to expand...
Click to collapse
maybe you have used a rom without root permission. make sure that your rom supports app2sd. Secondly partition your sd card with the help of gparted livecd or you can use the AD recovery's build-in tools to partition your sd card. then flash a rom supporting app2sd. here cm7 recommded,the extra space will be recognized automatically. if you use miui rom, pls make sure that your partition format is ext3. after flashing miui, open terminal-1.su-2.a2sd reinstall-3.reboot automatically-4.open terminal again-5.su-6.a2sd zipalign-7.a2sd cachesd-8.reboot automatically-9.just install whatever you want.
elvis1988 said:
maybe you have used a rom without root permission. make sure that your rom supports app2sd. Secondly partition your sd card with the help of gparted livecd or you can use the AD recovery's build-in tools to partition your sd card. then flash a rom supporting app2sd. here cm7 recommded,the extra space will be recognized automatically. if you use miui rom, pls make sure that your partition format is ext3. after flashing miui, open terminal-1.su-2.a2sd reinstall-3.reboot automatically-4.open terminal again-5.su-6.a2sd zipalign-7.a2sd cachesd-8.reboot automatically-9.just install whatever you want.
Click to expand...
Click to collapse
In QUICK INFORMATON INFO write:
sd card storage..... free 11 gb
A2SD storage 22 mb free
internal storage 40 mb free
system storage 18 mb free...
i don't understand something...
Yes.. it's a based MIUI ROM instaled
I can't use the terminal... i haven't permissions... read my first message...
"after flashing miui" - what do you recommand?
does it the miui rom you are using support app2sd ? and you haven't downloaded app2sd+ from market, if so id get a rom that supports app2sd, then id recommend downloading THIS to fully format your sd card, and would also recommend using THIS to partition your sd card Ext3/4 depending on rom...
sorincristian said:
In QUICK INFORMATON INFO write:
sd card storage..... free 11 gb
A2SD storage 22 mb free
internal storage 40 mb free
system storage 18 mb free...
i don't understand something...
Yes.. it's a based MIUI ROM instaled
I can't use the terminal... i haven't permissions... read my first message...
"after flashing miui" - what do you recommand?
Click to expand...
Click to collapse
if your rom is app2sd....
you must not have it set up correct make sure you take 1gb (1024) out of your sd card to use for app2sd, take a look at my screen shot at how many apps i have to what internal i have left with typhoon build...
Sent from my HTC HD2 using XDA Premium App
sorincristian said:
A2SD storage 22 mb free
Click to expand...
Click to collapse
This makes me believe that App2sd+ is working, how else is there only 22 mb free? What is the partition size you made?
Things you can do:
Clear Cache of apps
Clear the downloadfile-#.apk in /Cache/ (you need a root explorer to do this)
Backup apps, delete apps, restore apps.
Another thing to do is to start from scratch, reflash your rom, using a backup program to backup your apps. Completly clear caches, and wipe sd card.
DOING THIS WILL WIPE YOUR PHONE AND LOSE ALL SETTINGS
Rommanager is only available for cLK, make sure you have cLK, or phone will boot-loop.
Eelkede said:
This makes me believe that App2sd+ is working, how else is there only 22 mb free? What is the partition size you made?
Things you can do:
Clear Cache of apps
Clear the downloadfile-#.apk in /Cache/ (you need a root explorer to do this)
Backup apps, delete apps, restore apps.
Another thing to do is to start from scratch, reflash your rom, using a backup program to backup your apps. Completly clear caches, and wipe sd card.
DOING THIS WILL WIPE YOUR PHONE AND LOSE ALL SETTINGS
Rommanager is only available for cLK, make sure you have cLK, or phone will boot-loop.
Click to expand...
Click to collapse
I think that i don't have luck..
i reinstall the my HD2 with this ROM: DFT_LEO_NAND_Android.rar
Another (new) problem... my Android working good... but i don't see my SD...
I seen that SD only at boot if i boot in "MASS STORAGE"
Do you know what i really understand?
I have enough hours loosed... i need my telephone working...
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
1. nand backup via CWM or Amon_RA recovery
2. don't use ROM Manager (EVER for ANYTHING), either make the partition via recovery or via the built in tools
---------- Post added at 12:21 PM ---------- Previous post was at 12:19 PM ----------
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Yeah, 1024 goes a long way but if you got a big SD card you might want to go for twice that and swap isn't just not needed, it's not even used unless you make a separate script to use it which ISN'T included in most roms.
Which kind of built in tools?
Sent from my Blade using xda premium
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
rohitzz said:
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
Click to expand...
Click to collapse
Jinxxed posted it above
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
rahulsa said:
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
Click to expand...
Click to collapse
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Click to expand...
Click to collapse
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
rahulsa said:
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
3. Just nitpicking but the way it works is to mount data to /sd-ext/data, /sd-ext is just the mount point for your ext partition (which may be ext2, ext3 or ext4 depending on how you configured it during partitioning and how you mount it). Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Jinxxed said:
... Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Click to expand...
Click to collapse
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
rahulsa said:
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Jinxxed said:
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Click to expand...
Click to collapse
To deactivate mounts2sd-4.6.2 script and use your script.
I did following after getting your answer as PM.
I deleted 10mounts2sd script from \system\etc\init.d\ .
While observing S2E-Swap-Jinxxed.zip, I realized that it contained s2e.apk in /system/app.
So I actually installed s2e from from market to get latest version.
Then to enable swap and other optimizations, I added following lines in begining of 20userinit script present in /etc/init.d .
mount -o remount,noatime,nodiratime,relatime,barrier=0,nobh /system
mount -o remount,noatime,nodiratime,relatime /data
swapon /dev/block/mmcblk0p3
So I got what I wanted and also learnt many things in the process.
Also experimented with /etc/sysctl.conf by adding vm.swappiness=50 (initially 70).
---------- Post added at 08:47 PM ---------- Previous post was at 08:26 PM ----------
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
....
Click to expand...
Click to collapse
I backed up my Blade using the latest ClockworkMod 5.0.2.0 .
CWM backup up saying done, but with a message.
It said it did not backup up /sd-ext or external ext2/3/4 partition.
So I was worried to use app-to-ext scripts or programs.
Now I successfully used tar to backup sd-ext and restore it on a faster (class 4 to 6) sd card.
But I would like know if there is any new version of CWM for Blade 6.0.1.2 with or without touch, which backs up ext2/3/4 without any issues.
If yes, I would upgrade my CWM.
It saves time to use CWM, compared to tar.
Thanks in advance.
So let's start this off by explaining both of them.
Zram basically compresses unused apps within the system RAM. This allows the system to swap less needed processes to the Zram partition for faster access at a later time, instead of killing them. This does take up some of your ram though, so I imagine that the value you are setting is determining exactly what percentage of your ram that the zram partition is allotted.
Swap instead uses a small portion of the SDcard like RAM. The phone will attempt to keep as much within the ram as possible until fill, and then begin using the swap partition on the SDcard. At that point, the phone will begin moving inactive blocks of memory to the SD, freeing up RAM for active processes. If one of the pages on the SD needs to be accessed again, it will be moved back into RAM, and a different inactive page in RAM will be moved onto the SD ('swapped').
Swap files don't restrict available RAM but writing to the sdcard impacts the speed of opening apps.
And if I'm not wrong, swap also shorten the lifespan of your SD Card.
So what do you think? Zram or swap is better?
Sent From My Sony Xperia Arc S
For me the swap is better
I'm using swapit expander and it let me use 1600 mb as ram and give me better gaming experience(mutch less lag)
Sent from my Lt15i using xda app-developers app
MontyAlHabbash said:
For me the swap is better
I'm using swapit expander and it let me use 1600 mb as ram and give me better gaming experience(mutch less lag)
Sent from my Lt15i using xda app-developers app
Click to expand...
Click to collapse
Much less lag...? With that amount of swap memory it should FLY.
Can you please share with us the file of swapit expander,. the link that google is giving us is not working anymore,. please:crying: i think it's the prev. version 1.3.3
omersonster said:
Can you please share with us the file of swapit expander,. the link that google is giving us is not working anymore,. please:crying: i think it's the prev. version 1.3.3
Click to expand...
Click to collapse
isn't sharing paid apps against the ROLL
MontyAlHabbash said:
isn't sharing paid apps against the ROLL
Click to expand...
Click to collapse
Oops sorry didnt know about that, this is my first post by the way,,. :laugh:
I think swap is better, maybe with a class 10 microSD, but how can I make my phone use a swap partition? Is there a mod, a script or a root-app?
Use swapper2 from the market, it's free. Use a partition app on windows or gparted on linux to create a swap partition for best results, but with that app you don't have to.
No need for partition for swap
Sent from my R800i using xda app-developers app
Anyone had their sdcard that died in swap before?
Sent From My Sony Xperia Arc S
Using swap didn't kill you sd-card, you have to wait for 10 years for.
Anyway, there is a simple way to activate swap and take more apps on multitask, just do this.
Create with minitools in your sd-card these partitions in this order :
- fat 32 (any size)
- ext2 (512MB, to use with link2sd and move apps on)
- swap (min 256, max 1gb)
Then, go on adb shell and enter these commands :
- swapon /dev/block/mmcblk0p3 (3 partitions, otherwise put mmcblk0p2)
- free (to verify swap working)
To get a permanent swap, create a script named userinit.sh in /data/local/ and put this on it :
#!/system/bin/sh
#Swap
swapon /dev/block/mmcblk0pX (x is 2 or 3, see higher)
Save it, and in adb shell enter this command: chmod a+x /data/local/userinit.sh
Finally also on adb shell, this last command :echo vm.swappiness=60 >> /system/etc/sysctl.conf
Personnaly i use 0 on swappiness to got more reactivity.
Reboot and enjoy.
mekayzer said:
Using swap didn't kill you sd-card, you have to wait for 10 years for.
Anyway, there is a simple way to activate swap and take more apps on multitask, just do this.
Create with minitools in your sd-card these partitions in this order :
- fat 32 (any size)
- ext2 (512MB, to use with link2sd and move apps on)
- swap (min 256, max 1gb)
Then, go on adb shell and enter these commands :
- swapon /dev/block/mmcblk0p3 (3 partitions, otherwise put mmcblk0p2)
- free (to verify swap working)
To get a permanent swap, create a script named userinit.sh in /data/local/ and put this on it :
#!/system/bin/sh
#Swap
swapon /dev/block/mmcblk0pX (x is 2 or 3, see higher)
Save it, and in adb shell enter this command: chmod a+x /data/local/userinit.sh
Finally also on adb shell, this last command :echo vm.swappiness=60 >> /system/etc/sysctl.conf
Personnaly i use 0 on swappiness to got more reactivity.
Reboot and enjoy.
Click to expand...
Click to collapse
Do this work on locked bootloader?
Sent from my LT18i
KradEdis said:
Do this work on locked bootloader?
Sent from my LT18i
Click to expand...
Click to collapse
Nope, since the kernel dont monitor ext and swap partition.
seems like swap works with 587 stock
mekayzer said:
Nope, since the kernel dont monitor ext and swap partition.
Click to expand...
Click to collapse
I try this with the 587 firmware, AND IT'S WORK : http://forum.xda-developers.com/showthread.php?t=1821071&highlight=swap
On 481, trying to activate swap leads to error.
but do you have stock kernel too??
mortillo said:
but do you have stock kernel too??
Click to expand...
Click to collapse
yes, stock kernel, locked bootloader.
and now swap is working properly?
Lol, i tested it and yes Swapper2 is working with stock kernel!! wow!!
mortillo said:
and now swap is working properly?
Click to expand...
Click to collapse
yes, but i don't see any improvment. And now i don't know how to get rid off those swap
I turn swap off, delete file and uncheck start on boot with swapper_2, but the file is always recreated on boot. It's the same for zram, there is no script that enable it, but on reboot swaps are enabled again :crying:
mekayzer said:
Using swap didn't kill you sd-card, you have to wait for 10 years for.
Anyway, there is a simple way to activate swap and take more apps on multitask, just do this.
Create with minitools in your sd-card these partitions in this order :
- fat 32 (any size)
- ext2 (512MB, to use with link2sd and move apps on)
- swap (min 256, max 1gb)
Then, go on adb shell and enter these commands :
- swapon /dev/block/mmcblk0p3 (3 partitions, otherwise put mmcblk0p2)
- free (to verify swap working)
To get a permanent swap, create a script named userinit.sh in /data/local/ and put this on it :
#!/system/bin/sh
#Swap
swapon /dev/block/mmcblk0pX (x is 2 or 3, see higher)
Save it, and in adb shell enter this command: chmod a+x /data/local/userinit.sh
Finally also on adb shell, this last command :echo vm.swappiness=60 >> /system/etc/sysctl.conf
Personnaly i use 0 on swappiness to got more reactivity.
Reboot and enjoy.
Click to expand...
Click to collapse
Hi mekayzer,
On new .587 fw for Arc, Sony (Ericsson) crew added zram and swap support.
And zram is activated on kernel level (no init.d on stock rom).
Now I added and linux swap partition of 300MB (new class 10 micro SD).
So totally 360 MB for swap.
Any advice how to fine tune this?
Hi guys! Yesterday i wanted to make swap ram and i followed this tutorial http://forum.xda-developers.com/showthread.php?p=26220059 Thanks @CarlDeanCatabay for tutorial.Today at school i was excited to make swap ram LOL because i can run more processes.I have sdcard 2GB and i dont have a card reader..... and use repencis kernel from repencis v3.5 rom not new repencis and i used CWM.So,i followed this steps at school:
1.I go to CWM.
2.Go to Advanced,then partition sd card then i choosed 256 for ext size and 256 for swap size.Before do this i had circa 282 mb free on sdcard and already had ext for link2sd.
3.Rebooted and my sdcard was formated and losed all things and now i have 1.39 GB free.
4.When i open terminal emulator and type su then type free i see numbers on swap(is not 0).
Check attached screenshots.
Tell me if i do something wrong!
Now my questions are:
1.I proceeded correctly when i choosed 256 mb for ext size and 256 mb for swap in CWM?
2.My ext3 partition before created other partition for swap was affected?
3.I see numbers on swap in terminal emulator after type free.How i know if swap ram work properly?
Sorry if are noob questions,but everyone was noob before learn and sorry if my english is bad Please help me!
Nobody cant help me????????sry for double post.
Swap is recommended if you have sd card of class 10 or higher if not it will ultimately slow down your phone rather than increasing its speed that's why I have never tried it and don't even know about it but from your ss it looks like swap is working
Sent from my GT-S5360 using xda app-developers app
Hey there,
first, thank for this really great ROM - [17/02/2013] [JB] [4.1.2] Pixeldroid Jelly Bean V2.4[AOKP] [BeatsAudio] [720p]
its running a few weeks absolutly fine, fast.
but today, i needed to reboot the phone and then i got the welcome screen (that one after a clean install).
the problem is the memory, i followed exactly the installation steps but it seems, it uses the internal memory for apps (~55 MB are full, nothing left)
the actual memory status is shown in the attachment.
seems, the ext4 partition on the 8 GB SD isn't used, but why ?
and - how can i free the internal, no chance to install any app
TheRealLuke
therealluke said:
Hey there,
first, thank for this really great ROM - [17/02/2013] [JB] [4.1.2] Pixeldroid Jelly Bean V2.4[AOKP] [BeatsAudio] [720p]
its running a few weeks absolutly fine, fast.
but today, i needed to reboot the phone and then i got the welcome screen (that one after a clean install).
the problem is the memory, i followed exactly the installation steps but it seems, it uses the internal memory for apps (~55 MB are full, nothing left)
the actual memory status is shown in the attachment.
seems, the ext4 partition on the 8 GB SD isn't used, but why ?
and - how can i free the internal, no chance to install any app
Click to expand...
Click to collapse
You need to install something to switch data usage to the sd card. There are many scripts & apps to accomplish this but I couldn't tell you which would be best for your rom.
Alternately, you can ask whoever published the rom to add a DataOnExt install option.
---
Be careful about reading health books, you may die of a misprint...
NYLimited said:
You need to install something to switch data usage to the sd card. There are many scripts & apps to accomplish this but I couldn't tell you which would be best for your rom.
Alternately, you can ask whoever published the rom to add a DataOnExt install option.
The DataOnExt comes with the ROM and i activated it within the install routins.
At this Point i can't install any app.
any chance to clear something with QtADB from the internal mem to get a a2SD or smth. else working ?
Click to expand...
Click to collapse
therealluke said:
NYLimited said:
You need to install something to switch data usage to the sd card. There are many scripts & apps to accomplish this but I couldn't tell you which would be best for your rom.
Alternately, you can ask whoever published the rom to add a DataOnExt install option.
Click to expand...
Click to collapse
The DataOnExt comes with the ROM and i activated it within the install routins.
At this Point i can't install any app.
any chance to clear something with QtADB from the internal mem to get a a2SD or smth. else working ?
Click to expand...
Click to collapse
How big is your ext partition?
EDIT: I hate it when people can't quote properly ..
Marvlesz said:
How big is your ext partition?
Click to expand...
Click to collapse
around 1,5 GB ext4 but it seems like android uses the 5 GB fat32 part
therealluke said:
around 1,5 GB ext4 but it seems like android uses the 5 GB fat32 part
Click to expand...
Click to collapse
I don't understand the language in the picture so I can't make anything out of it, but if you really have a 1.5gb ext partition and you chose dataonext during installation you shouldn't have any problems.
Marvlesz said:
I don't understand the language in the picture so I can't make anything out of it, but if you really have a 1.5gb ext partition and you chose dataonext during installation you shouldn't have any problems.
Click to expand...
Click to collapse
I Think i will do a full reinstall and check again the option with dataonext, and restore my saved data,
thanks for your help
therealluke said:
around 1,5 GB ext4 but it seems like android uses the 5 GB fat32 part
View attachment 1766202
Click to expand...
Click to collapse
Marvlesz is right - it should work if you have DataOnExt. The picture shows "Available" space if I am not mistaken. What is your "Internal" space indicate? Look in Titanium Backup if you can.
NYLimited said:
Marvlesz is right - it should work if you have DataOnExt. The picture shows "Available" space if I am not mistaken. What is your "Internal" space indicate? Look in Titanium Backup if you can.
Click to expand...
Click to collapse
Above, the "internal" Available Space is 0,0 GB
56,83 MB used from apps
i used the configuration in the rom description:
★ install Recovery with 300 MB System and 5 MB Cache
★ 2 GB EXT4 cluster default / SWAP 256 MB / the rest FAT32 cluster default
the "USB Speicher" (5,31 GB at all) ist the fat32 part on the SD Card
QtADB says :
/data: nothing shown
/system : 292,97 MB at all with 51,41 MB free
/sdcard : 5,16 GB at all with 4,89 free
/ext: grey (empty)
therealluke said:
Above, the "internal" Available Space is 0,0 GB
56,83 MB used from apps
i used the configuration in the rom description:
★ install Recovery with 300 MB System and 5 MB Cache
★ 2 GB EXT4 cluster default / SWAP 256 MB / the rest FAT32 cluster default
the "USB Speicher" (5,31 GB at all) ist the fat32 part on the SD Card
Click to expand...
Click to collapse
Something is definitely very wrong but I cannot yet see what or where. Marvlesz, any ideas yet?
Your memory display should look something like this one - this is with 3 GB of ext4 partition:
You might want to take a look at this post about formatting. You may spot something that you did differently which could help.
Not knowing your ROM I can only guess what it is expecting.
Your ext4 partition is the second one on the card, marked as primary, yes?
What does DF report?
The data part. was corrupted end not write or readable, after a recovery reinstall i got "internal" size of 1,65 GB with 1,21 GB free
Thanks for your help !! you helped me to indicate the lost data partition