Related
[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
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?
Here's a script I modified originally its a script written by mattiadj so I gotta give him props
Here's his thread its for the Galaxy S III I think - http://forum.xda-developers.com/showthread.php?t=1772234
This will make your external SDcard as Internal and your Internal SDCard external
It mounts data/media to your extSdcard
Please make a backup before you do this, just in case.
Let me know if you have any problems
1. Anyway.. you will need to place this script in your /data folder (Yes you need to be rooted)
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for just user)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything for user
3. Use Smamager (Download it if you dont have it, ... .its free) and goto the script file and open as script/execute, then when it opens choose "Is executable" and then click "Su" & "Boot". Click "Save".
4. Reboot and enjoy.
To go back to the normal setup just delete the script or open it back up in smanager and clear the SU & Boot options.
In order for some apps to function properly you will have to copy some folders from your old internal sdcard to your "New" one.
For example.. aptoide wouldnt work until the aptoide repos folder was copied over. If you want you can just copy over everything to be safe. I on the other hand just picked and chose what I needed
xalien8dx said:
2. Next use ES file manager and give it 777 permission (For the non-linux users, that's full permission on it, Read, write, execute for everyone)
-----------------to do this with ES file manager just press and hold down on the file and look at its properties. At the bottom you can see Permissions, hit the Change button and check-mark everything
Click to expand...
Click to collapse
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
imnuts said:
IMO, this is terrible advice. The script is probably getting run as root, and you're opening it up to be written by anyone. Imagine if malware edited the script? Think of what malware could do if it had root access...
Sent from my Galaxy Tab 2
Click to expand...
Click to collapse
Changed it to just user read, write, execute..
thanks
So, after this what happens to the internal SdCard. Does it, or is it still being used, and if so for what...?
^ same ? and has anyone tested this and is it safe?
All this is is a modded script from mattiadj. It was written for the GS3, so I changed it to work on the 3113 tablet
Here is what it does quoted from mattiadj
My aim was to use the external sd as internal sd and the original internal sd ONLY for apps installation.
So now my 64gb external sd is used for all tasks which the internal sd was used and the original internal sd is only used for apps storage!! All extra files (resources, caches, etc etc) are stored in my external SD, which is now mounted as internal
Click to expand...
Click to collapse
The original internal sdcard is mounted by default from the system as /data/media as well as /sdcard and mnt/sdcard
so with this script it puts data/media as extSDCard and /sdcard and /mnt/sdcard are mounted to the original external SDcard
you can still access the internal SDcard from data/media or /extSDCard or mnt/extSDcard
my code
Code:
sleep 5
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:25 /mnt/sdcard
sleep 5
mount -o bind /data/media /mnt/extSdCard
this can be easily modified to work on other systems.
Hope this helps,
N8
Tried this out last night. For me it works only if run manually... After reboot, I get long "checking SD for errors" and when it actually mounts SD it gets mounted twice- as both internal sdcard and extSdCard.
Sent from my GT-P3100 using Tapatalk 2
I ran this with SCript Manager (Play Store) and it works great on my p3113. My External SD card was mounted as internal and my Internal Memory was mounted as ExternalSDcard. I am going to love having this script!
If your having problems with it mounting as your internal and external try unmounting/remounting your external card in settings under storage. Or if your skilled enough try changing the second sleep value in the script to a higher number like 10 that should fix it
Works famously. For the apps that have issues just clear data under settings and it seems to be golden.
Sent from my GT-P3113 using xda app-developers app
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
king200 said:
I haven't done anything quite like this before but I have a use in mind. My GPS program, Sygic, puts the mapset on the internal sd card. Just the Western USA states are 500 mb If I get this running, and have Sygic do it's normal install, will the mapset to to the 32 GB MicroSD card that I have?
Click to expand...
Click to collapse
It should. For example, I use Amazon MP3 and when I downloaded a song before they went to the internal card. Now they are stored on the external. The device reads your external as though it is the internal.
Sent from my GT-P3113 using xda app-developers app
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
kdog48 said:
so is there Anyway on how to force this to start on boot?
Sent from my GT-P3113 using xda app-developers app
Click to expand...
Click to collapse
Yes
in script manager choose su and boot. If you follow the first post it will execute on boot. Or if you have a rom with init.d support place this script in your /etc/init.d folder, I dont have a rom with init.d support so I dont know if that would work but it should. If someone could test this and let me know I would appreciate it. Im not sure if you still have to set permissions to execute on it.
Well I've had problems downloading certain apps to SD it says insufficient memory delete 0mb of data so I actually will just manually use it haha
Sent from my GT-P3113 using xda app-developers app
Working 100% using a 32GB memory card! thanks for this!
hi guys
is applicable to 2 10.1 GalaxyTab P5100?
requires Android 4.1.1 or 4.0.4. ?
Thank you.
If this works, I will name my next born child after you!
Anyway, I would like to know if this will work on Cyangenmod 9.0.0? Or will it only work on the stock rom. I have my old stock rom of 4.0.4 saved if I need to go back... because I will if this works.
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
I already used the thank link... but stilll thank you so, so much! I just recently got my 8gb 3113... needless to say, I REALLY needed some space. If any, it was a good lesson for me to definitely choose the 16GB Nexus 4.
MadDogE134 said:
does root explorer have the 'su boot' option? never used it to run scripts...:silly:
Click to expand...
Click to collapse
It's from SManager.
Hello guys here another method to extend the Xperia SP internal memory and enjoy all heavy games you want. With this you will mount the /sdcard/Android folder in external memory.
What you need:
1. ROOT
2. init.d support
- UB: kernel with this feature.
- LB: You can use Universal Init.d
3. External SDCARD I have a 32GB class 10 and works like a charm.
Steps:
1. Run "Universal init.d" application and enable init.d
1. Create "/sdcard1/Android" folder
2. Copy or move the content from /sdcard/Android to /sdcard1/Android
3. Create or copy the following script into /etc/init.d/mnt_android:
Code:
#!/system/bin/sh
#script to mount /sdcard/Android in external sdcard
sleep 10
mount -o bind /sdcard1/Android /sdcard/Android
df > /sdcard1/mnt_android.log
4. Set 777 permission to the script file.
5. Reboot and enjoy.
6. Press thanks button.
RESERVED
On the step 3 I was in doubt, says create or copy the script, if I choose to create in what format should I save?
can i mount another one
can i mount another folder with the same steps
many thanks
lvints said:
On the step 3 I was in doubt, says create or copy the script, if I choose to create in what format should I save?
Click to expand...
Click to collapse
no format needed just create the file in plain text and save it with the name "mnt_android" in "/etc/init.d/" folder.
bloodraven174 said:
can i mount another folder with the same steps
many thanks
Click to expand...
Click to collapse
I think it won't be a problem which folder do you want to mount?
Question
jucares said:
I think it won't be a problem which folder do you want to mount?
Click to expand...
Click to collapse
Jucares with your will we have to cut and paste from the internal android folder to the sd card every time we install and app/game?
raziel123 said:
Jucares with your will we have to cut and paste from the internal android folder to the sd card every time we install and app/game?
Click to expand...
Click to collapse
The cut and paste only will be necessary the first time you used this script after that the external data of new apps/games will be installed in the mounted folder (sdcard).
guess it wont work for apps/games installed from other than play store....i tried and games wont run!!
It's work for me, all games is playable...:thumbup:
Sent from my C5302 using xda premium
hey bro. universal init.d, I say this: your kernel does not have init.d support, keep doing the following and step 3: 3. Create or copy the Following script into / etc / init.d / mnt_android: I do not understand if it's not in the system folder or outside the system. excuse the question but I really want to do this. I'm on stock 254 BL root and cwm. and my card is sandisk 32gb ultra HC1
Turn on auto execution tab at top of universal init.d app
Make sure you created the script and copied it to the unit.d folder. Permissionneeds to be set to rw-r-r
Solved (Swap the internal storage with external)
Guy's Guy's Guy's This is an easy and quik and stable method to swap your internal memory with the external big one for our Xpeia SP :laugh:
watch it on youtube
http://www.youtube.com/watch?v=qBzQIxCFtxQ
and on xda for xperia z also works on Xperia SP - V AND ??
http://forum.xda-developers.com/showthread.php?t=2180733
MemoHada said:
Guy's Guy's Guy's This is an easy and quik and stable method to swap your internal memory with the external big one for our Xpeia SP :laugh:
watch it on youtube
http://www.youtube.com/watch?v=qBzQIxCFtxQ
and on xda for xperia z also works on Xperia SP - V AND ??
http://forum.xda-developers.com/showthread.php?t=2180733
Click to expand...
Click to collapse
Only works on 4.2.1 Roms..... Xperia sp is still stuck on 4.1.2
Im getting this phone soon and need to know if moving apps to SD will be possible after 4.3 update?
Me too, I want to know if this method would still work after 4.3 update.
zakkkkk said:
Im getting this phone soon and need to know if moving apps to SD will be possible after 4.3 update?
Click to expand...
Click to collapse
On Android 4.4.2 (cm 11.0) it works like a charm using FolderMount app. So you should not be anxious as far as you root the phone. You will find a way despite not the one described in this post.
Sent from my C5303 using XDA Premium 4 mobile app
moved chrome and that worked, move a game and that didn't, it exit itself back to homescreen, anyone any idea?
thanks