[GUIDE] How to create a swap partition on external micro-sd - Galaxy S I9000 General

Alright folks, you asked for it and here's a simple how-to that will guide you to create and enable a swap partition on external micro-sd on our SGS.
First things first I assume you have already flashed the kernel Devil2_0.73_swap_i9000_CFS_BLN_CMC_20120420 or any other kernel which supports swap partition.
First thing, you want to partition your SD card in order to create our swap partition, I recommend you to follow this accurately.
If you are on mac you can use iPartition to partition your sd-card, while linux users can use Gparted or any other partition tool they may like.
Now that we have successfully created our swap partition, we want to boot up the phone and enable our swap partition in order to be accessible to the kernel.
To detect the swap partition that we have just created open up a ADB terminal and type
Code:
fdisk -l dev/block/mmcblk1
it will look something like this
Code:
/dev/block/mmcblk1p2 1861 1924 514080 82 Linux swap
write down the exact number of the swap partition and let's activate it by typing
Code:
swapon /dev/block/mmcblk1pX
** where X is the number of the swap partition **
We can now check if our swap partition has been activated by executing the command free
Now we want to make our swap partition to be activated at boot time, without having to activate it manually everytime we reboot the phone.
Assuming you know how to at least write and save a text file in VI, let's go back to our fido ADB shell and type
Code:
vi /system/etc/init.d/05userinit
now lets drop few lines in
Code:
#Activate swap at boot
#!/system/bin/sh
swapon -a
If you are not really comfortable with VI you can also use Nano or even RootExploer or any other root editor if you are more comfortable with UI.
save it and once again in ADB shell lets make it executable
Code:
chmod 750 /system/etc/init.d/05userinit
Now lets create a fstab file so that the kernel can look at and activate the correct swap partition
Code:
vi /system/etc/fstab
Here it goes our swap partition. Remember where X is your actual swap partition according to your partition layout.
Code:
/dev/block/mmcblk1pX swap swap
As last step you may want to change the swappiness value. Note that most of the roms have it set to 60 by default, which is good enough in my opinion, although setting it to higher (max is 100) may help to improve overall performance, while setting it to lower may increase interactivity and overall stability.
Temporary change (until next reboot)
Code:
echo 60 > /proc/sys/vm/swappiness
Permanent change
Code:
echo vm.swappiness=60 >> /system/etc/sysctl.conf
As result
Code:
[email protected]:/ # free
total used free shared buffers
Mem: 385772 376352 9420 0 26420
-/+ buffers: 349932 35840
Swap: 514076 0 514076
** few notes **
I don't intend to take credit for this how-to as it takes few pieces of commands and hints from any guides out there which covers this topic, and anyways its basic linux knowledge really..
/** A special shout goes out to @DerTeufel1980 for listening to our request and enabling swap on his kernel. **/
So cheers you all and enjoy

You never know...

Thanks for great guide!!

Thx for this great guide.
Will try it out soon.

is it possible to make swap on internal flash storage ?

omyg said:
is it possible to make swap on internal flash storage ?
Click to expand...
Click to collapse
Maybe, but most external sd cards are faster. And it's saver.

Where can we find Devil2 73 please?
Envoyé depuis mon Amazon Kindle Fire avec Tapatalk

http://forum.xda-developers.com/showthread.php?p=25085260
Sent from my GT-I9000 using Tapatalk 2

it must be said that the card such use may come into disrepair faster

dark_knight35 said:
Thx for this great guide.
Will try it out soon.
Click to expand...
Click to collapse
Thank you all.. Your feedback is really important to me .
This guide has been tested on ICSSGS RC 4.2 with kernel Devil2_0.73_swap_i9000_CFS_BLN_CMC_20120420 . However it should just work fine on every roms and kernels which supports swap and do not mess with init.d.

omyg said:
is it possible to make swap on internal flash storage ?
Click to expand...
Click to collapse
Yes it is, but it wont worth to use ur nand as swap as the function of the swap is to read and write cpu data, and its usually very aggressive.
Yes it is faster, but it will most likely going to damage the nand, while using a sd-card is usually slower but the worst scenario is that u will have to trash your sd-card after a couple of years, not the phone..

Great Guide! Quite detailed
So, did you notice any heavy good change using SWAP?
Or is it just noticeable?
And what about Multitasking?

swap for sgs... great i watin for roms with this . dont forget about power ow swap

gokussjx said:
Great Guide! Quite detailed
So, did you notice any heavy good change using SWAP?
Or is it just noticeable?
And what about Multitasking?
Click to expand...
Click to collapse
Thank your for the feedback. However I can say I have suddenly noticed a speed bost in the way the phone response, especially whit multiple applications open and services running in background. Till yesterday without swap I had to close like some apps each 4/5 opened and left in background. Right now I am playing GTA and I have like 8 apps opened in background.

Segnale007 said:
Thank your for the feedback. However I can say I have suddenly noticed a speed bost in the way the phone response, especially whit multiple applications open and services running in background. Till yesterday without swap I had to close like some apps each 4/5 opened and left in background. Right now I am playing GTA and I have like 8 apps opened in background.
Click to expand...
Click to collapse
How big is your swap partition?
Looking forward to getting a new micro sd to also feel the speed.

Now I use 512 mb swap on 10 class sd-card partitioned and set up by this guide. Works well. Feels like much better than with swapper2. Thanks

lerkin said:
Now I use 512 mb swap on 10 class sd-card partitioned and set up by this guide. Works well. Feels like much better than with swapper2. Thanks
Click to expand...
Click to collapse
What's the name of your sd card? I want to buy a new one, because I only have class 2 atm.

dark_knight35 said:
What's the name of your sd card? I want to buy a new one, because I only have class 2 atm.
Click to expand...
Click to collapse
It's a cheep Silicon powder)
Sent from my GT-I9000 using Tapatalk 2

lerkin said:
It's a cheep Silicon powder)
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
Thx. I'm gonna buy this xD.

lerkin said:
Now I use 512 mb swap on 10 class sd-card partitioned and set up by this guide. Works well. Feels like much better than with swapper2. Thanks
Click to expand...
Click to collapse
My pleasure

Related

Getting slower after installing application

help me
My phone getting slower when i install the applications. the phone memory always decreased when I install every new apps eventhough I install it in my ext memory. What should I do? Can you help me?
Sent from my HTC Dream using XDA Premium App
What ROM are you using? And, do u use Apps2SD?
define memory
are you talking about storage memory , or ram?
reduction in storage shouldn't impact on performance, that is unless space is very tight and Android is constantly clearing caches.
What types of apps are you installing?
widgets and and service apps like news/weather, gmail , facebook , twitter etc etc will consume memory while they sync data. If you have several such apps the relatively constant syncing would impinge on overall performance.
if you do have many service apps first try increasing the time between syncs in its settings if you are still suffering then consider un-installing some of them.
re-reading your post I'm going to assume you are installing apps to external sdcard , and not an sd-ext partition.
this will still reduce the internal storage as only the apk is stored on the external sdcard the dex files ( aka dalvik-cache ) are installed on the internal storage.
but it is still unlikely a direct relationship between free space on internal and performance.
the apps on sdcard are stored in encrypted containers this might be causing the overhead, but in all honesty I have never actual used the external sdcard for apps so I can't say what the overhead is or even if it enough to be relevant, but many swear apps to sd-ext is better than sdcard so there may well be something in that theory..
I agree with Effdee. But more info would be beneficial for assistance. As previously asked, what ROM are you using? Is your SD partitioned? So on & so forth....
I don't know if this information will help or not
Mod version: CyanogenMod-6.10-DS
Kernel version : 2.6.35.9-cyanogenmod
DREAM PVT 32B ENG S-OFF
HBOOT-1.33.2005 (DREA10000)
CPLD-4
RADIO-2.22.19.26I
Apr 20 2009,15:30:43
I alredy partitioning my sd card when I root it
How to install app2sd-ext?
Sorry if my english bad
I really appreciate all of you for helping me
Sent from my HTC Dream using XDA Premium App
How many apps did you installed? And how much internal storage you have left?
Also, how did you partitioned your SD Card? (IE: Cache, EXT, and FAT32)
Also, go to Setting > Applications > Manage Applications
Look at the the SD card tap to see how many apps the you downloaded are in that area. If none of them is there, that means that you install them in the internal storage. You can move some of them to SD card depending on the apps by going to the Downloaded tap and open each one up and click in "Move to SD Card".
You might think about updating to ezterry's new radio/spl for 14 extra MB of ram. That could help quite a bit. Also play around with CC settings maybe?
Sent from my Dream/Sapphire using XDA Premium App
johnson8cyl said:
You might think about updating to ezterry's new radio/spl for 14 extra MB of ram. That could help quite a bit.
Click to expand...
Click to collapse
agreed, instructions here
http://forum.xda-developers.com/showthread.php?t=831139
johnson8cyl said:
Also play around with CC settings maybe?
Click to expand...
Click to collapse
Make sure it is off, I tried cm7 and it was on by default, it seemed faster for a short time then became very slow
this idea of putting swap on a compressed ramdisk is crazy, and it just doesn't work
I'm very surprised it wasn't dropped a long time ago
as for a2sdext
the easiest is to use ra recovery ( partition sdcard )
and then a script like firerat aio ( the a2sd option )
http://forum.xda-developers.com/showthread.php?t=679572
even easier is
http://forum.cyanogenmod.com/topic/9731-magpie-2010-12-18-hotfix-002/
because it will automatically install the correct kernel ( if you do or don't install ezterry's 2708 radio/spl ) and has ui for a2sdext
Most difficult bit is partitioning the sdcard,
Effdee said:
Make sure it is off, I tried cm7 and it was on by default, it seemed faster for a short time then became very slow
this idea of putting swap on a compressed ramdisk is crazy, and it just doesn't work
I'm very surprised it wasn't dropped a long time ago
Click to expand...
Click to collapse
well, ... I do not agree fully. In certain situations, especially when there are many services running in background, it can help, *but* swappiness is to be set very low. So only almost unused parts od the memory are swapped out to compcache and can remain there ...
Also see shadowch31 for a CC script and see if that helps. Stops,cleans and restarts CC I believe. Just throwing out ideas. Every phone works different. Just play
Sent from my Dream/Sapphire using XDA Premium App
AndDiSa said:
well, ... I do not agree fully. In certain situations, especially when there are many services running in background, it can help, *but* swappiness is to be set very low. So only almost unused parts od the memory are swapped out to compcache and can remain there ...
Click to expand...
Click to collapse
what is the point of using physical memory to store unusable pages of memory to only use cpu grunt to get it back into memory
Effdee said:
what is the point of using physical memory to store unusable pages of memory to only use cpu grunt to get it back into memory
Click to expand...
Click to collapse
As far as I know, single pages of a process will be swapped out, not the complete processes. So if a process has for example a lot of static data, which is not used during processing an activity, so this part can be swapped out to compcache. This will be compressed, so the phone has more memory available to start / hold in memory another process ... Especially when fast switching between processes is needed (launching sms-app when receiving a sms?) this *can* be an advantage.
Without compcache this process probably is to be re-launched, which most likely takes more time than switching tasks in memory.
AndDiSa said:
As far as I know, single pages of a process will be swapped out, not the complete processes. So if a process has for example a lot of static data, which is not used during processing an activity, so this part can be swapped out to compcache. This will be compressed, so the phone has more memory available to start / hold in memory another process ... Especially when fast switching between processes is needed (launching sms-app when receiving a sms?) this *can* be an advantage.
Without compcache this process probably is to be re-launched, which most likely takes more time than switching tasks in memory.
Click to expand...
Click to collapse
swap is not very smart about what pages are swapped
end of the day swap was a fudge for linux's poor memory management
and as I said
with the cyanogen rom cc was on, I turned it off and things were much better
you can try and convince me otherwise, but seeing as I have already compared cc on and cc off and find cc off to be much better I doubt you will change my mind
BeenAndroidized said:
How many apps did you installed? And how much internal storage you have left?
Click to expand...
Click to collapse
i installed 27 apps and i only have 15.14MB left
BeenAndroidized said:
Also, how did you partitioned your SD Card? (IE: Cache, EXT, and FAT32)
Click to expand...
Click to collapse
i don't know what method i use for partitioning my SD Card, but i do it using this method http://forum.xda-developers.com/showthread.php?t=727688
BeenAndroidized said:
Also, go to Setting > Applications > Manage Applications
Look at the the SD card tap to see how many apps the you downloaded are in that area. If none of them is there, that means that you install them in the internal storage. You can move some of them to SD card depending on the apps by going to the Downloaded tap and open each one up and click in "Move to SD Card".
Click to expand...
Click to collapse
i already do that too. but it dosn't make sense, my SD Card keep decreased when i installed new app
Effdee said:
agreed, instructions here
http://forum.xda-developers.com/showthread.php?t=831139
Make sure it is off, I tried cm7 and it was on by default, it seemed faster for a short time then became very slow
this idea of putting swap on a compressed ramdisk is crazy, and it just doesn't work
I'm very surprised it wasn't dropped a long time ago
as for a2sdext
the easiest is to use ra recovery ( partition sdcard )
and then a script like firerat aio ( the a2sd option )
http://forum.xda-developers.com/showthread.php?t=679572
even easier is
http://forum.cyanogenmod.com/topic/9731-magpie-2010-12-18-hotfix-002/
because it will automatically install the correct kernel ( if you do or don't install ezterry's 2708 radio/spl ) and has ui for a2sdext
Most difficult bit is partitioning the sdcard,
Click to expand...
Click to collapse
so do i have to reinstall my ROM or i just have to install only a2sdext?
i'm sorry if i ask too much. I'm just a newbie and sorry if my english bad
dhyqa said:
so do i have to reinstall my ROM or i just have to install only a2sdext?
i'm sorry if i ask too much. I'm just a newbie and sorry if my english bad
Click to expand...
Click to collapse
once you have partitioned your sdcard, after backing up because you will loose everything on sdcard
then run the firerat script
no need to reinstall rom
unless you want the ui for moving apps, this is easier then using the shell script in Firerat
Effdee said:
once you have partitioned your sdcard, after backing up because you will loose everything on sdcard
then run the firerat script
no need to reinstall rom
unless you want the ui for moving apps, this is easier then using the shell script in Firerat
Click to expand...
Click to collapse
hhmm.so i have to partitioning my SD Card again right?
to run the firerat script i have to go to fast boot?
dhyqa said:
hhmm.so i have to partitioning my SD Card again right?
to run the firerat script i have to go to fast boot?
Click to expand...
Click to collapse
yes afraid you need to repartition sdcard for sdext
many ways to do it but the easiest is with ra recovery
like I said you need to backup stuff on your sdcard first
and you run the firerat script in the rom using terminal
okay
i think to reinstall the new Rom that you gave me is the easier one method than the other one that you've explained to me. and i already try it and it work very well
thanks for everyone who help me find the solution
dhyqa said:
okay
i think to reinstall the new Rom that you gave me is the easier one method than the other one that you've explained to me. and i already try it and it work very well
thanks for everyone who help me find the solution
Click to expand...
Click to collapse
it would be very interesting to know if you get better performance with the same apps that were on sdcard now on the sd-ext.
I've not got round to doing my own tests on that yet
Effdee said:
it would be very interesting to know if you get better performance with the same apps that were on sdcard now on the sd-ext.
I've not got round to doing my own tests on that yet
Click to expand...
Click to collapse
yes. Now I don't have to waiting to long again to open or to close the app. Because now I have a spacious memory. And I think maybe I'll try to use the radio that you tell me to increase the memory
But not every app can be placed in sd-ext like adobe reader and aldiko book, it still decreased the internal memory
But I think it's better than before
Sent from my HTC Dream using XDA Premium App

[Q] swap memory for x8 - is it possible

I am tired of using link2sd, and low memory of x8.
Is it possible to make effective swap file for x8?
That will give ability to install everything in ram, and then it will be moved to swap, so no linksd is needed.
Also all software which need more than 90 mb of free memory can get that memory becouse system lib will be moved to swap file.
As i know guys from Cyagen made even support for it, but it should be activated.
Is any rom builder can add swap support to their roms?
1. Supposed be in general section
2. We have native app2sd or you can go to cyanogenmod settings then go to applications then select install to external memory.
Hope i help
Sent from my X8 using Tapatalk
gluhov said:
I am tired of using link2sd, and low memory of x8.
Is it possible to make effective swap file for x8?
Click to expand...
Click to collapse
Not unless the bootloader is cracked.
gluhov said:
That will give ability to install everything in ram, and then it will be moved to swap, so no linksd is needed.
Click to expand...
Click to collapse
The swap file does not work that way. Swap is used to augment the RAM. The X8 has:
1. RAM space - memory to run programs in. ~176MB
2. ROM space - Internal Storage - ~212 MB
3. External Storage - Your SD Card.
gluhov said:
Also all software which need more than 90 mb of free memory can get that memory becouse system lib will be moved to swap file.
Click to expand...
Click to collapse
You can, theoretically, use up your entire RAM to run an app. The Android System, has a "smart (???, others might disagree )" way fo handling tasks in which it "caches" background apps until they are called again. Although this is also periodically cleared. But some apps are required to stay in RAM, these are responisible for keeping your phone working.
Google "Android VM manager " and the "Android Memory Manager" if you want to learn more.
In short, having a larger RAM or using a swap file will just "imrpove" multitasking performance. notice that i put the word "improve" in qoutes.
Honestly, I've tried on Froyobread v015, and it lagged the whole rom down like sh!t >.<. After removing it was I able to have a decent fps. You can try it for yourself by using swapper on the android market or CWM recovery .
spyder12345 said:
Honestly, I've tried on Froyobread v015, and it lagged the whole rom down like sh!t >.<. After removing it was I able to have a decent fps. You can try it for yourself by using swapper on the android market or CWM recovery .
Click to expand...
Click to collapse
Did you verify it was working. Open up the terminal app and type in "free" without th quotes. It would show you the disposition of your RAM. if swap is zero then its not working.
Sent from my TI99 4A
gluhov said:
that will give ability to install everything in ram
Click to expand...
Click to collapse
wtf am i reading?
wujekandrzej said:
wtf am i reading?
Click to expand...
Click to collapse
Sent from my TI99 4A

low phone memory on G3

Hi ,
I use a G3 and have been facing a phone memory problem since i had the phone.I keep getting this warning often regarding low phone memory..th ephone becomes very slow...at times non responsive and dsnt let me install any new apps..I have Kyrillos' ROM 7on my phone and have a 16 gb class 4 sd card..can anyone suggest me a workaround on this....please???
sonijd said:
Hi ,
I use a G3 and have been facing a phone memory problem since i had the phone.I keep getting this warning often regarding low phone memory..th ephone becomes very slow...at times non responsive and dsnt let me install any new apps..I have Kyrillos' ROM 7on my phone and have a 16 gb class 4 sd card..can anyone suggest me a workaround on this....please???
Click to expand...
Click to collapse
Create an ext4 partition on your SD card and use the kyrillos apptoSD script
Blackyx007 said:
Create an ext4 partition on your SD card and use the kyrillos apptoSD script
Click to expand...
Click to collapse
Just to expand on what this user said. Use minitool partition wizard or go into recovery mode and make an partition. I'd say a 1024MB partition and a 256 MB Linux swap will be more than enough unless you want loads of apps which will in turn slow your phone down.
Smonic said:
Just to expand on what this user said. Use minitool partition wizard or go into recovery mode and make an partition. I'd say a 1024MB partition and a 256 MB Linux swap will be more than enough unless you want loads of apps which will in turn slow your phone down.
Click to expand...
Click to collapse
i don't think swap is suggested for sd card class less than 6..
Fakso said:
i don't think swap is suggested for sd card class less than 6..
Click to expand...
Click to collapse
I used swap on class 4 SD with no problems.
Sent from my GT-I5800 using XDA App
Smonic said:
Just to expand on what this user said. Use minitool partition wizard or go into recovery mode and make an partition. I'd say a 1024MB partition and a 256 MB Linux swap will be more than enough unless you want loads of apps which will in turn slow your phone down.
Click to expand...
Click to collapse
Hi,
Thanks for the update...just wanted to check what difference does it make..if i do this...will this make the phone work faster...or increase the phone memory ??
Create an ext4 partition on your SD card and use the kyrillos appt2SD script
I use a class 4 sd card, and the position works just fine for me.
Sent from my GT-I5800 using Tapatalk

64GB Kernel Script Patch for Z1

Hey Guys,
I asked @kokotas to help me figure out a way to make a Patch to extend the Internal Memory as for me, due to the size of the high-end Applications and Games, is too limited 16GB, 11,70GB available only, on our Z1.
So my first Idea was to sacrifice 16Gb Internal Memory and use 64GB External SD Memory formatted in EXT4 where all the Data will be stored.
To do so we have to understand few thing and how is the structure of the Z1 Kernel is made and try to extract "ramdisk.cpio" where we can edit "init.rc" and change the line "/data mount"
As for the kernel "Autopsy" we used @krabappel2548 kernel build, I hope he is fine with that.
From what we know, the recovery is injected in the boot.img and this makes things more complicated.
Are all kernels built in this way? Even the stock ones?
Also, is there a specific rule in the way of naming the included ramdisks?
I attached a picture to make things more clear.
Any help will be appreciate.
eclyptos said:
Hey Guys,
I asked @kokotas to help me figure out a way to make a Patch to extend the Internal Memory as for me, due to the size of the high-end Applications and Games, is too limited 16GB, 11,70GB available only, on our Z1.
So my first Idea was to sacrifice 16Gb Internal Memory and use 64GB External SD Memory formatted in EXT4 where all the Data will be stored.
To do so we have to understand few thing and how is the structure of the Z1 Kernel is made and try to extract "ramdisk.cpio" where we can edit "init.rc" and change the line "/data mount"
As for the kernel "Autopsy" we used @krabappel2548 kernel build, I hope he is fine with that.
From what we know, the recovery is injected in the boot.img and this makes things more complicated.
Are all kernels built in this way? Even the stock ones?
Also, is there a specific rule in the way of naming the included ramdisks?
I attached a picture to make things more clear.
Any help will be appreciate.
Click to expand...
Click to collapse
1. Sony doesn't have a recovery partition in their phones hence developers add the recovery in the ramdisk. Also stock sony kernels doesn't have a recovery included by default only bootloader/flashmode.
2. You can't adjust the 16gb internal partition without diving deeply into the bootloader. The NAND partition profiles are hardcoded in the bootloader so modifying even just a little bit of info in the partition of the NAND would brick your device. The only way I could possibly suggest to try is hijacking the fstab and ramdisk to unmount the internal storage and mount the external storage on init. But if your issue is only about disk space I suggest you leave the internal storage and just symlink the obb folder instead of hijacking the whole internal storage. And BTW the disk IO of the internal storage is worlds apart compared to your microsd card no matter what class it is so it would be very unefficient if you use your microSD card as internal. IMHO reading the dalvik-cache 1 by 1 on startup would be pretty slow! Same goes for reading the byte code of an app once you open it.
Riyal said:
1. Sony doesn't have a recovery partition in their phones hence developers add the recovery in the ramdisk. Also stock sony kernels doesn't have a recovery included by default only bootloader/flashmode.
Click to expand...
Click to collapse
We know that. If there will be a Partition for recovery it will be much more easy and safe. That why we also used a Kernel with recovery implemented.
Riyal said:
2. You can't adjust the 16gb internal partition without diving deeply into the bootloader. The NAND partition profiles are hardcoded in the bootloader so modifying even just a little bit of info in the partition of the NAND would brick your device.
Click to expand...
Click to collapse
We trying and this is the risk of everybody who flashing a Custom Kernel.
Riyal said:
The only way I could possibly suggest to try is hijacking the fstab and ramdisk to unmount the internal storage and mount the external storage on init. But if your issue is only about disk space I suggest you leave the internal storage and just symlink the obb folder instead of hijacking the whole internal storage.
Click to expand...
Click to collapse
Maybe not the whole internal storage but implement the external SD with the internal?
Riyal said:
And BTW the disk IO of the internal storage is worlds apart compared to your microsd card no matter what class it is so it would be very unefficient if you use your microSD card as internal. IMHO reading the dalvik-cache 1 by 1 on startup would be pretty slow! Same goes for reading the byte code of an app once you open it.
Click to expand...
Click to collapse
I know the difference between Internal and External Storage. Yes the internal bandwidth is higher but like I said is worth the sacrifice, or try. Best solution will be System and Apk on Internal and link the SD to use there all Data. This is more efficient that a third Apps like Link2sd or kind of. BTW, I don't think it will be so slow but we have to try. The idea have to be made to improve what next.
So we need more Ideas, do you have any?
We know that. If there will be a Partition for recovery it will be much more easy and safe. That why we also used a Kernel with recovery implemented.
We trying and this is the risk of everybody who flashing a Custom Kernel.
A: This isn't about risk this is a fact. Once you successfully manage to alter the partition table of the built in NAND you're sure to get a hard brick from doing this.
Maybe not the whole internal storage but implement the external SD with the internal?
A: Implementing internal storage with external to support it is possible but limited. Like I said you could symlink the obb and Android folder to the external storage. That way you can allocate some of the storage space to data, dalvik etc. and the data files to the external SD which uses the most resources.
Hmm, changing the partition table has been successfully done on the xperia T
http://forum.xda-developers.com/showthread.php?t=2147997
I am not an expert here, but is this what you are talking about,
What benefit would this give a user?
Sent from my C6903 using xda app-developers app
gregbradley said:
I am not an expert here,
Click to expand...
Click to collapse
Me either, @kokotas is the Master here and all thanks should go to him for help me with this, actually the picture is of his work.
gregbradley said:
Hmm, changing the partition table has been successfully done on the xperia T
http://forum.xda-developers.com/showthread.php?t=2147997
Click to expand...
Click to collapse
We do not try to repartitioning the Sony Z1 internal memory to get a recovery bootable from different partition, which still a very good idea to develop for Z1. We try to mount the External SD instead of the Internal to expand the storage for the Z1, and here we need a patch. If kind of patch like that will really work, with some help, anyone just will format the SD in EXT4 and use what like he like, 32/64GB.
So we will be glad even to involve more "Programmers" to help us make it true.
So any way to let this work?
Jay794 said:
What benefit would this give a user?
Click to expand...
Click to collapse
Expand storage. You will be able to format a 64GB, micro SD in 2 Partitions and use 32GB by the System and 32GB like a normal SD, for example, and it will be managed by the system and not by Apps. So instead of 11,70GB you will have 30GB in System.
Surely this will just make accessing the SD card data really slow? Even with a class 10 running games off the SD card would be laggy as hell
Sent from my C6903 using xda app-developers app
Jay794 said:
Surely this will just make accessing the SD card data really slow? Even with a class 10 running games off the SD card would be laggy as hell
Click to expand...
Click to collapse
Thank you for your Opinion. Is not your problem.
Expert Request Please..
Can someone who know more than me just have a look on the attachment and answer few question, unanswered form post 1.
..for Z1
1) Are all kernels built in this way? Even the stock ones?
2) Also, is there a specific rule in the way of naming the included ramdisks?
3) Do all kernels use the sbin folder?
4) Is ramdisk.cpio the default name used in all kernels
Hey, I support the idea, I just don't see how useful it will be
Sent from my C6903 using xda app-developers app
gregbradley said:
Hmm, changing the partition table has been successfully done on the xperia T
http://forum.xda-developers.com/showthread.php?t=2147997
I am not an expert here, but is this what you are talking about,
Click to expand...
Click to collapse
Yes it is possible but not easy... I'm pretty sure the dev that made that had a hard time before he successfully got it. Also I'm pretty sure he has a JTAG box so in case his phone got hard bricked he can easily fix it again. Also IMHO that was already patched by sony on the latest s1boot so I'm sure it's alot harder than before.
Riyal said:
Yes it is possible but not easy... I'm pretty sure the dev that made that had a hard time before he successfully got it. Also I'm pretty sure he has a JTAG box so in case his phone got hard bricked he can easily fix it again. Also IMHO that was already patched by sony on the latest s1boot so I'm sure it's alot harder than before.
Click to expand...
Click to collapse
Yes, he did brick his Xperia T a few times, and the LK kernel was never really taken up because of the risks.
But it does show that it was possible to change the partition table.
As for on the xperia Z1, I don't know
gregbradley said:
Yes, he did brick his Xperia T a few times
Click to expand...
Click to collapse
I can do that.
Only problem with having the SD used all the time for system files is the risk of corruption and or a failed card.
Saying that I had it on the S3 and it worked brilliantly, was a relatively simple script which required init'd support from a custom kernel.
In all fairness, after using folder mount the worries i've had with my internal memory have gone, i'm always over 10GB of space with several really big games installed which would easily take over the whole internal memory.
dladz said:
Only problem with having the SD used all the time for system files is the risk of corruption and or a failed card.
Click to expand...
Click to collapse
Here you sound like Google.
dladz said:
Saying that I had it on the S3 and it worked brilliantly, was a relatively simple script which required init'd support from a custom kernel.
Click to expand...
Click to collapse
I had it on HD2 as well and never had any issues and I had full control of my device, this is what also we looking at, no restrictions and no storage limit on a high-end device. I will be glad to see 64GB recognized as my System Storage instead using Apps on Apps like the Mount Folder.
I play Most Wanted, of curse a bit slow, on mine HD2 so if we get this work we will have 40mb/s in writing and reading, instead of 70mb/s in internal, due to the limitation of the slot. I think even with a kind of transfare like that you will never see any slow down of the performance on your device.
Some Smart One will say now to me "Why then you don't go back to HTC". That's the point! Imagine have Z1 with such a Development and full control of you device.
At last it's a choice of the user if he want apply that patch or not, but I think if this will be possible many will be happy, but like I can see, we don't have much support due to the risk and any Developer will not take this in consideration, or maybe will, but apparently not now.
eclyptos said:
Here you sound like Google.
I had it on HD2 as well and never had any issues and I had full control of my device, this is what also we looking at, no restrictions and no storage limit on a high-end device. I will be glad to see 64GB recognized as my System Storage instead using Apps on Apps like the Mount Folder.
I play Most Wanted, of curse a bit slow, on mine HD2 so if we get this work we will have 40mb/s in writing and reading, instead of 70mb/s in internal, due to the limitation of the slot. I think even with a kind of transfare like that you will never see any slow down of the performance on your device.
Some Smart One will say now to me "Why then you don't go back to HTC". That's the point! Imagine have Z1 with such a Development and full control of you device.
At last it's a choice of the user if he want apply that patch or not, but I think if this will be possible many will be happy, but like I can see, we don't have much support due to the risk and any Developer will not take this in consideration, or maybe will, but apparently not now.
Click to expand...
Click to collapse
I actually probably will be going back to HTC after this phone. Doubt it'll be the M8, although i do like it, the camera is sup par though and i've come accustomed to a decent picture.
dladz said:
I actually probably will be going back to HTC after this phone. Doubt it'll be the M8, although i do like it, the camera is sup par though and i've come accustomed to a decent picture.
Click to expand...
Click to collapse
I know, I try to don't give up on it too but to much to deal with. The camera is good but I was disappointed anyway. So I was thinking about 64GB HTC One, or wait for the next release and I will finally be fine. For the moment I try to deal with Z1, I hope somewhere we will have 64GB system storage , this maybe will change my mind, everything is possible.
eclyptos said:
I know, I try to don't give up on it too but to much to deal with. The camera is good but I was disappointed anyway. So I was thinking about 64GB HTC One, or wait for the next release and I will finally be fine. For the moment I try to deal with Z1, I hope somewhere we will have 64GB system storage , this maybe will change my mind, everything is possible.
Click to expand...
Click to collapse
Have you used folder mount before? It really is a great app and i've not needed the larger internal storage since using it.

Tutorial Link2SD/make more Space in Internal Memory with Link2SD for Moto G 3rd 2015

Prerequisites:
1. obviously moto g 2015 3rd gen
2. bootloader unlocked followed by root (search for this in other threads)
3. make backup of your ext sd card as everything will be deleted (mine is 64 gb strontium memory card)
4.card reader (mine is Transcend USB 3.0 Super Speed Multi-Card Reader for SD/SDHC/SDXC/MS/CF Cards)
Steps:
1. switch off your device and take ext sd card out
2. download and install MiniTool Partition Wizard Free Edition 9.1 on your pc http://www.partitionwizard.com/free-partition-manager.html
3. Insert your SD card to a card reader and open it on your computer
4. Back up all your files to the computer because partitioning will wipe your data
5. Open Mini Tool in your computer. Locate your SD card (be careful in choosing and make sure not to choose the drive of your computer)
6. Right click and choose Delete
7. Right click on it again and choose Create New. Create “FAT32″ partition (This is where all your media files will go. Be sure to make it bigger than the 2nd part)
8. Select “Create as: PRIMARY”
9. Next, ext4 partition. This is where your apps will go. I suggest a value of 512Mb or 1Gb would be big enough but if you insist you can go as high as 2Gb.
10. Select “Create As: PRIMARY” (make sure that it is both set to primary because it will not work if it is not set to primary)
11. Click the “Apply” button on the top left corner and wait for it to finish the process. Done.
12. Put back your SD card to your phone and switch it on.
13. Download and install Link2sd from Google Play Store https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en
14. Open Link2sd. You will be prompted to choose between ext2, ext3, ext4 and FAT32. Select ext4.
15. It will say mount script created. Reboot your phone now.
16. Open link2sd and if the message doesn’t show up, you succeded.
17. check storage info
18. Go to Link2sd>Settings>check the autolink (to automatically move apps upon installation)
i have link2sd plus version as it allows me to link obb etc
attached some pics for idea
lastly do not held me responsible for any problem as i tried my best to explain everything in detail
if any query feel free to ask and to encourage me for more work hit THANKS :highfive:
Will this allow apps not normally capable of being installed on external storage to be moved to external storage?
hp420 said:
Will this allow apps not normally capable of being installed on external storage to be moved to external storage?
Click to expand...
Click to collapse
The above method makes partition of external sd card and treat that as internal memory so answer is yes.now u may ask why this linking ? Answer is simple because some apps have widgets
umo4u said:
The above method makes partition of external sd card and treat that as internal memory so answer is yes.now u may ask why this linking ? Answer is simple because some apps have widgets
Click to expand...
Click to collapse
Great, this is exactly what I've been loking for, thanks!!
Now my next question...can I just use gparted to set the partition? I really prefer to not use windows if I can avoid it.
hp420 said:
Great, this is exactly what I've been loking for, thanks!!
Now my next question...can I just use gparted to set the partition? I really prefer to not use windows if I can avoid it.
Click to expand...
Click to collapse
Gparted why not because it works same as tool which I have mentioned in my guide.though I have not tried it but u can,but remember to backup your external sd card first.
Hey so I didn't think I'd need to do this on this device however turns out I had too. could anyone help me out? I'm getting slight lag on 16gb class 10. I have it partitioned 10gb FAT32 and 4gb ext4. Is that wrong?
Sent from my MotoG3 using XDA Free mobile app
christopherrrg said:
Hey so I didn't think I'd need to do this on this device however turns out I had too. could anyone help me out? I'm getting slight lag on 16gb class 10. I have it partitioned 10gb FAT32 and 4gb ext4. Is that wrong?
Sent from my MotoG3 using XDA Free mobile app
Click to expand...
Click to collapse
well u can try 3c toolbox trim partition feature or this https://play.google.com/store/apps/details?id=com.grilledmonkey.lagfix&hl=en and hope this solves your problem.
about partition u have done right that is 10gb fat32,4gb ext4 and actually is depends how many apps u going to use on your device.i have 5gb ext 4 partition.
umo4u said:
well u can try 3c toolbox trim partition feature or this https://play.google.com/store/apps/details?id=com.grilledmonkey.lagfix&hl=en and hope this solves your problem.
about partition u have done right that is 10gb fat32,4gb ext4 and actually is depends how many apps u going to use on your device.i have 5gb ext 4 partition.
Click to expand...
Click to collapse
I'll try that app and report back!
I did set 10gb fat32 and 4gb ext4 so I'm glad that's correct, hopefully this lag fix sorts me, opening apps are sluggish on the SD card to the point where having link2sd and save obb to sdcard is more strain then the worth lol
Sent from my MotoG3 using XDA Free mobile app
best of luck
christopherrrg said:
I'll try that app and report back!
I did set 10gb fat32 and 4gb ext4 so I'm glad that's correct, hopefully this lag fix sorts me, opening apps are sluggish on the SD card to the point where having link2sd and save obb to sdcard is more strain then the worth lol
Sent from my MotoG3 using XDA Free mobile app
Click to expand...
Click to collapse
3c toolbox app has another feature named "sd card read speed" try that also.if possible try to find what is actually causing lag and we will try to fix that problem :fingers-crossed:
Thanks for the Tutorial @umo4u it's seems ideal however can you please confirm it's working ok with the latest version of Link2SD?
The review thread on Play seems to point to a recent update breaking mount scripts (I understand that various other reasons will cause) just looking for clarification.
Sent from my MotoG3 using Tapatalk
welcome
somerandomhash said:
Thanks for the Tutorial @umo4u it's seems ideal however can you please confirm it's working ok with the latest version of Link2SD?
The review thread on Play seems to point to a recent update breaking mount scripts (I understand that various other reasons will cause) just looking for clarification.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
i am using latest version of link2sd which is 4.0.12 and link2sd plus (new) 1.1 and everything working fine.
Hey man, you linked me to a super old file.
http://www.anandtech.com/show/7185/android-43-update-brings-trim-to-all-nexus-devices
That's been in android since end of JB.
Still used it but can't seem to be sure as of yet. Need to redo the link2sd process.
Sent from my MotoG3 using Tapatalk
christopherrrg said:
Hey man, you linked me to a super old file.
http://www.anandtech.com/show/7185/android-43-update-brings-trim-to-all-nexus-devices
That's been in android since end of JB.
Still used it but can't seem to be sure as of yet. Need to redo the link2sd process.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
I did not know.I use 3c toolbox fs trim http://www.3c71.com/android/?q=node/2537#main-content-area why u need to redo link2sd process ?
Thanks for the guide, used it for my Moto G/4G.
I'm still a bit puzzled by some inner workings of Link2sd though, mainly the fact that the APK part keeps going back to the main memory even though I keep linking it to the external SD. Is anyone else seeing that?
Did your problem solve
Sent from my MotoG3 using XDA Free mobile app
Mine ? Not since this morning, no
here to help
webvan said:
Mine ? Not since this morning, no
Click to expand...
Click to collapse
i do not face any problem u mentioned earlier as i have done same exact guide on my moto g 2015 too step by step.try steps mentioned below
1.go to link2sd and open it,if no message pop up than u have created mount scripts right.if any message pop up than recreate mount scripts by taping bar on left side of app than recreate mount script than ext4 than reboot,hopefully u should not see any message after u open app
2.now go to three dots (on extreme right of app) and check storage info (u will be able to see all partitions including the one which u have created of external sd card and check whether it have free space or not)
3.go to settings and check auto link followed tap install location and check automatic
hope above steps solves your problem :fingers-crossed:
Yeah, that's all good. The slight problem is that for some reason the APK part sometimes goes back to the internal memory, at least according to the interface. Check your apps, maybe you'll see the same thing.
webvan said:
Yeah, that's all good. The slight problem is that for some reason the APK part sometimes goes back to the internal memory, at least according to the interface. Check your apps, maybe you'll see the same thing.
Click to expand...
Click to collapse
well i checked all my linked apps and all there apk part are not linked to internal memory rather to sd card (partition of ext sd card)
which version of link2sd u using ? did ya download it from play store or other source ? do u have link2sd plus too ?
Link2sd Plus, yes, latest version, I'm going to check the "auto link" option maybe that will fix what I am seeing.

Categories

Resources