Trying to increase RAM with a SD card partition - Magisk

Ok guys, so I've been trying to increase my ram by using app2sd, but the issue is when I try to mount the second partition (ext4 btw, because I see that all the other storage in my phone is in that format by app2sd) I get the next message: "unable to determine su.d path, you can set the "su.d/post-fs-data.d/service.d" path in Settings and try again" honestly I don't know what to do here at this point, where is that directory? do I have to put it in internal storage or in the second sd card's partition? (I've seen that some "/data" directory has something to see about)
I'm trying to get that 8GB partition on the sd card run as virtual RAM by swapping it with some swapper app, or there's actually a RAM limit that I don't know, or can I just assign whatever amount of RAM that I desire as long I have a partition big enough? Also I tried with a 32GB partition on another SD card with the same result
I'm using Magisk systemless on a Samsung Galaxy S5 G900T, running Lineage OS 17.1 klte

Related

[Q] Memory Card (Partition/Size Limits)

EDIT/UPDATE - Nevermind. I figured it out.
Finally upgraded to a 16GB SD Card for my N1 as I was simply running out of space (I like to store a lot of music on my phone).
What is the recommended swap partition size? I just read up on it and found that a 32/64MB swap file should be enough. That being said, when I tried to create a 14GB ext3 partition, I kept getting an error.
What can I do to maximize space on my card so I can put more than 4GB of music/pictures/data?
See my sig for specs/ROM/etc

[Q] SD issue

So I recently got the "almost out of space" notification and I realized that it says that I only have 2.7 gb total for my sd card (4 gb card). I remembered way back when i formatted a ext3 partition to it for apps2sd, but that was when i was running an older version of Fresh. I have since switched to CM6, and as best I can tell its not installing apps to that partition.
Gparted is saying theres only one partition available (2.7 gb), and is calling it unallocated space. Im not really keen on how android uses different partitions, so i had a few questions:
1. Can i backup all files on the card to my comp, format the card, then copy them back without losing any data/ apps?
2. Should i format it all as one partition (and if so what filesystem)?
3. Would formatting the card with a partition for swap benefit me at all?
Great question! I'd like to know too.
cerialphreak said:
So I recently got the "almost out of space" notification and I realized that it says that I only have 2.7 gb total for my sd card (4 gb card). I remembered way back when i formatted a ext3 partition to it for apps2sd, but that was when i was running an older version of Fresh. I have since switched to CM6, and as best I can tell its not installing apps to that partition.
Gparted is saying theres only one partition available (2.7 gb), and is calling it unallocated space. Im not really keen on how android uses different partitions, so i had a few questions:
1. Can i backup all files on the card to my comp, format the card, then copy them back without losing any data/ apps?
2. Should i format it all as one partition (and if so what filesystem)?
3. Would formatting the card with a partition for swap benefit me at all?
Click to expand...
Click to collapse
Are you talking about the internal memory is getting low notification in the status bar? If so, that is not your SD, it's internal memory. Check in settings/storage and see what it says. I think the warning comes up if you go below 20-25mb.
Also, CM6-7 roms do not come with a2sd/firerats/data2ext/etc. You would need to do that seperately if you want.
The notification was from the card, and I dunno what its called, but when I check an app in the apps management setting theres an option to move to phone/sd card.

[Q] Ext3.ko and Ext4.ko is for App2sd?

I'm currently using GingerCruzt 7.4
I saw Ext3.ko and Ext4.ko under /system/lib/modules/ i was wondering:
If i partition my 16GB SDcard to FAT32 and Ext3/4, would my internal memory increased like App2sd on Eclair does?
Or it's just gonna be wasted space?
Then i just repartitioned my sdcard(my sdcard was parttioned 12GB(data),1GB(Ext2),500mb(swap)) to 1GB(ext3) and the rest is FAT32 and nothing's happened, my internal memory remained 255 mb, is there any wrong steps i took?
bump bump bump
Moving apps to SD (whatever partition) frees up internal memory space as apps are installed there by default. By freeing up internal storage, your phone gets somehow faster
does it means it's doesn't show up as internal memory, but does the same thing as Eclair App2sd?
You can see the app in 'app managemet' on SD tab. The app will work the same except for widgets won't show up.
Sent from my Xperia X8 using XDA app
With GC or most of custom roms, you have only to create an ext2/3/4, then system recognizes your ext partition and installs your new apps directly there.
Then you just have to normally install apps on phone, and they'll go "silently" in the ext partition of the sd .
You can check if it works by going in the /sd-ext by a file explorer and see if there are folders inside (they should be 4). If everything is correct, you should find your apps installed in /sd-ext/app.
Please note that of course your total internal memory space won't grow up.
Apps will be simply installed in the sd-ext, leaving your internal space free
i dont know if is a bug or what , but my app2sd work's without ext partition in my sd card, my apps go to .android_secure folder in my sd card, is that normal ?

[Q] Swap Area / EXT2 partitions - Help needed.

Hello, I'm hoping someone can answer a few questions I have regarding the format of the SD Card for the Android system. - Apologies if this has already been explained on this forum, I did a search but didn't find anything too useful that answered my questions.
(I have knowledge of the linux file-system and swap drives, just unsure of the benifits of this for android).
Currently using a 16GB SanDisk Class4 SD Card.
I'm aware that you can format the SD Card to use as a swap-drive and for use of ext2 file-system.
While searching for info on this I found the following xda link which simply explains how to do this:
http://forum.xda-developers.com/wiki/SD_card_partitioning
My questions are:
1. What are the benifits of having the ext2 file-system? (Would apps stored on SD Card run faster etc?)
2. Do I need to keep a FAT32 partition (as opposed to just having a swap and ext2 partitions without any FAT partition).
3. Does the swap drive greatly improve performance. And is this worth doing on a Class4 SD Card?
Thanks in advance!
Hi.
at the first I must say swat will decrease SD card life.
i recommond you to create EXT3 or EXT4 partition.
1)one of the benefit of EXT partition is your phone storage will not full and its help your phone performance.
2)yes.of course you should have fat32 partition for eg:music-movies...and other files.
3)yes.swap is a very good.and it helps your phone ram.eg:when you play plants vs zombie at the first screen game will exit because of ram and swap will use like ram and its good for gaming.
Thanks for the reply, much apprecaited.
Are you sure I need a FAT32 partition though? Videos, music etc etc can all be saved to ext2/3/4 on a linux OS so I just assumed I could just do away with FAT32 all together?
Is the following just not the same as using an App2SD app?
"1)one of the benefit of EXT partition is your phone storage will not full and its help your phone performance."
Sorry for being a bit fussy but I'd like to fully understand what the Ext/2/3/4 partition is actually used for. Is it just used purely for storage?
Thanks again!
In a short summary (and assuming you are using a Kernel and ROM supporting the features) ...
- "Swap" on a swap partition has its own own "filesystem". The data structures are actually created by "mkswap" and the partition is not directly accessible by the user. If your phone runs low on physical memory unused parts of the memory will be swapped out into the virtual memory to make room for other apps.
Note that this is no "magically increase your RAM" solution. Once swapping occurs it actually slows down the system as the swapped out memory regions need to be copied back into physical memory, sooner or later. It may only help to run "RAM hungry" applications.
- "SD-Ext" is a, most likely, ext2 formatted partition to where Apps you move to the SD (either by Android or App2SD) will go. This increases the amount of apps you can possibly install, but doesn't resolve the problem that apps having widgets or apps that are started during Android boot-up need to reside in the internal phone memory.
- The /sdcard partition where all your user data is being stored should be kept FAT32 (for the simple reason of making a backup of your data by slapping the card into card reader easier - Windows can't read Linux filesystems by default). Some ROMs will allow you to format /sdcard ext3 or ext4 ... the advantage is that ext3/4 (if the mount options are correctly set) may perform a lot better than FAT32, though your mileage may vary.
Roger? ...or do is something still unclear?
Many thanks B.Jay - I'll hit the thanks button after I post this reply! You cleared up all my questions, but just going back to the FAT32 partition;
I use linux as my main OS, so accessing the EXT format partition wouldn't be a problem; Do you know if all ROMs would work without a FAT32 partition and replace it with EXT2/3/4 partition? If you're unsure I can always find out by formatting and loading a rom.
Thanks again, you've been most helpful!
Agenty1609 said:
going back to the FAT32 partition;
I use linux as my main OS, so accessing the EXT format partition wouldn't be a problem; Do you know if all ROMs would work without a FAT32 partition and replace it with EXT2/3/4 partition? If you're unsure I can always find out by formatting and loading a rom.
Thanks again, you've been most helpful!
Click to expand...
Click to collapse
Linux would, of course, be able to mount a ext partition (even on a SD card put into a card reader).
As for the ROM ... it depends.
The Stock Kernel Modules AddOn of GingerDX introduces ext3 and ext4 modules for the SEMC Stock Kernel, so in theory (I didn't test it!) you should be able to access /sdcard when being formatted ext3/4 - though it could be that you might need to adjust the vold script to properly mount the partition. The modules are mainly for supporting the sd-ext partition for "Apps-to-ext3/4-partition-on-mSD".
There's also alfsamsung's Alfs Kernel which is compatible with GingerDX and some other ROMs. That would be something you could try as well.
Simply look through the ROM threads ... I think MiniCM7 (+nAa's Kernel) should be able to support it, though this could involve some tinkering.
Personally speaking, I only have a ~2GB sd-ext on the SD in my X8 and the rest is a normal FAT32 partition (/sdcard).
yes you need a FAT32 partition.
when you partition your SD card you can move moveable app and games to ext partition.
please dont move app wich they cant move to ext partition.
cause after restart app that you moved to ext will corrupted.
good luck.
Thanks again! I think I'll follow your trend and try the 2GB SD-ext and the rest FAT32.
sd-ext missing!!
hey guys!! I've a small prob, would appreciate some tips. I normally move apps to sd card, if the app is movable by default. if the app is not movable by default, i use this app2sd by droidsail (available in the market) which force moves parts of the app 2 sd card. When I make back ups using xrecovery, i have no problem.
but when I use cwm for back ups, it gives an error saying sd-ext not found and it skips that part of the back up!! so any app I've moved by default or forced moved to sd card doesn't get backed up!! So I presume I have to create a sd-ext partition manually? How do I do it? I do have an sd-ext folder. but its not in sd card. it's in the root. (never had this prob with xrecovery though)
thanks in advance!!
neo_na said:
hey guys!! I've a small prob, would appreciate some tips. I normally move apps to sd card, if the app is movable by default. if the app is not movable by default, i use this app2sd by droidsail (available in the market) which force moves parts of the app 2 sd card. When I make back ups using xrecovery, i have no problem.
but when I use cwm for back ups, it gives an error saying sd-ext not found and it skips that part of the back up!! so any app I've moved by default or forced moved to sd card doesn't get backed up!! So I presume I have to create a sd-ext partition manually? How do I do it? I do have an sd-ext folder. but its not in sd card. it's in the root. (never had this prob with xrecovery though)
thanks in advance!!
Click to expand...
Click to collapse
Which version of CWM would that be?
Saipro said:
Which version of CWM would that be?
Click to expand...
Click to collapse
It's cwm 4.0.1.5

Resize Internat SD Card and System Partition, POSSIBLE ???

Did someone try this method on Lenovo a7000 with 8GB space?
This method supports MT6752 devices. The one Lenovo a7000 has.
Original Thread: https://forum.xda-developers.com/general/rooting-roms/guide-how-to-resize-data-internal-t3180978
It says there is a Zip file with AROMA installer to flash with TWRP
It will ask for a partition size, you choose anyone from there
It will reduce the "Data" partition (5GB) and increase the "System" partition (2GB), I think swap their sizes.
Then user must need an External SD card to store the pictures and downloaded files etc, but more apps
could be installed in the bigger "System" partition. There will be no "Space running out. . ." messages.
Make no mistake about one thing!
The Marshmallow's option "Use SD card as Internal Storage" doesn't work at all as what it says.
I used an app "DiskInfo" and saw the "System" partition size, when the 2GB space was occupied completely
the message started to show again "Space running out. . ."
Although I had a 32GB SD card used as Internal Storage.
Its all about resize the "System" partition more than 2GB.
I hope that method will work on our phone.
NimaXDA said:
Did someone try this method on Lenovo a7000 with 8GB space?
This method supports MT6752 devices. The one Lenovo a7000 has.
Original Thread: https://forum.xda-developers.com/general/rooting-roms/guide-how-to-resize-data-internal-t3180978
It says there is a Zip file with AROMA installer to flash with TWRP
It will ask for a partition size, you choose anyone from there
It will reduce the "Data" partition (5GB) and increase the "System" partition (2GB), I think swap their sizes.
Then user must need an External SD card to store the pictures and downloaded files etc, but more apps
could be installed in the bigger "System" partition. There will be no "Space running out. . ." messages.
Make no mistake about one thing!
The Marshmallow's option "Use SD card as Internal Storage" doesn't work at all as what it says.
I used an app "DiskInfo" and saw the "System" partition size, when the 2GB space was occupied completely
the message started to show again "Space running out. . ."
Although I had a 32GB SD card used as Internal Storage.
Its all about resize the "System" partition more than 2GB.
I hope that method will work on our phone.
Click to expand...
Click to collapse
But why do you want more system partition size?
System partition only contains the ROM and the system apps.
All user apps go to the /data partition. And MM (and onward) internal SD card feature works exactly as it claims.
You need to move already installed apps to SD card first to free up storage on internal storage to install more apps.
And the xda thread you linked, it is for data partition resizing. Resizing only means to shrink the size and not to increase it beyond its physical memory limit.

Categories

Resources