LineageOS 14.1 - How Reduce /cache and /system partitions? - Android Q&A, Help & Troubleshooting

I installed LineageOS 14.1 into my Samsung S4.
My internal space is 16GB, but it isn´t enough.
I´d tried formatting my external SDCard as Internal Memory, but Android always return fails when I try it.
I already used apps like App2SD, but hardware warms and battery goes down quick.
I´m using WhatsApp and some online courses apps, and it´s enough to full fill internal memory.
So, I investigate and discober /cache partition allocs 2GB but use none and /system alloc 2.7GB but use 0.7GB.
I found some threads to resize S3 with CWM, but I´m using TWRP boot loader.
So, I´m needing procedures and or tools to resize /cache, /system and /data partitions.
Thanks!

Related

[Q] Clockworkmod and sd-ext

Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
YouArePoop said:
Just installed link2sd earlier (formatted partition as ext3). Wanted to flash a different rom. Trying to backup my phone, and clockworkmod tells me it can't mount sd-ext. Anyone know a reason and/or work around?
Click to expand...
Click to collapse
which version of CWM have you got?
3.0.2.4, which I've used for a while now, always tries to back up my 6GB ext2 debian partition unless I remember to change cards first. no way I leave room in the vfat partition to back up that much data.
I'll put it up on 4shared if you want it.
mihir287 said:
I think CWM works only with ext4 partition AFAIK. So, you can re-partition your sd card to a ext4 partition using CWM, or you can format the ext partition only to ext4 using a computer.
Click to expand...
Click to collapse
Guess when I get home I'll copy the contents to computer, reformat, and copy back. Hopefully link2sd will notice the formatting has changed and reset itself
Sent from my LG-VM670 using XDA App
Doesn't work with extra either. Version 3.2.0.1 I believe it was.
Guess it doesn't really matter, can just use titanium since its all app stuff on there anyways...
Sent from my LG-VM670 using XDA App
i use CWM to back up my 512MB ext2 partition for my data2ext all the time (with the rest of the backup) and it seems to have no problem, and just to check i just mounted the partition in mounts and storage and it mounts fine. I know some recoveries ive used in the past on other phones would have problems with partitions that were not in 64-128-256-512-1024 MB, etc. format because of block size issue errors that i would get (when mounting or trying to set block size to 4096). I also found that when partitoning/formatting to ext2/3/4 some programs do not properly write the drive formatting and certain systems/recoveries/apps could not properly read them on the android. the best most consistent (android friendly) formats that i have gotten to date were in ubuntu (or any other) linux using "gparted". It seemed to always be the best and usually better than the format done by the phone recovery. Hope this helps. Sorry to drone on and on.
Partitioned originally with gparted. Have since resized to be 2048, and set its label to 'sd-ext'. Now instead of getting an error saying sd-ext might not be supported on my device, it just gives me a generic 'error mounting sd-ext'
I've had ext partition mounting problems before, I'm not sure if the cause is something to do with vold or what, but
after unmounting a sd card to exchange it with another one, it changes the device partitions in /dev/block like
/dev/block/mmcblk1p2
for the sd-ext partition instead of the normal
/dev/block/mmcblk0p2
you can see if this has happened by
Code:
ls /dev/block
in adb shell.
to mount it manually, if the numbering is off,
Code:
mount /dev/block/mmcblk1p2 /sd-ext
I've only had this happen with android running, but it might work in recovery too
Switched over to using data2ext. Mounts the 2nd partition as the /data partition instead of /sd-ext. Can manually mount 2nd as /sd-ext from within rom, but it doesn't carry over to recovery.
A possible solution... Create a symbolic link pointing /sd-ext to the 2nd partition? But then again, since /data now points to 2nd partition, is recovery picking up on that unknowingly and backing up the 2nd's contents when it thinks its backing up the normal /data?
I suppose I should investigate.
Edit: Yep it does backup the 2nd partition, thankfully. Just tried to install a theme made in UOT Kitchen, it borked some stuff, and the restore worked.

[Q] HOW-TO Resize /system and /data partitions?

Hello XDA,
I've begun flashing ROMs and rooted my device a little under a month ago. From what I've noticed, the system partition on my Samsung Galaxy Ace is usually quite free (40mb+ on most ROMs). However, the /data partition isn't.
I'd like to know if there's a way so I can take some of the space used in the /system partition and add it to the /data partition. I do have Link2SD installed, but the problem is that some apps won't install because there simply isn't enough internal space available. I know that it's possible with other phones such as the LG Optimus, but is there a way to achieve this on our phone?
Thanks! I'm running StockLite v6
Note: The LG Optimus instructions are in the thread "[HOW-TO] Easily resize system + data partitions!" by effortless.
Haven't seen a method to use system partition as data .
But we don't need to do that.As AMARULLZ Scripts(original thread Amarullz Script) does a fine job
It will mount as sd-ext partition as /Data and vice-versa and copies system data to sd-ext(which now points to original internal mem.) so no performance degrade.
DO a nandroid Backup before.
If you have sd -ext partition just disable/uninstall links2sd ,s2e or any other such app and delete their script from init.d folder and reboot you will have no app in your app drawer from sd-ext if you did it successfully.
Now flash This Script.zip.(Mount System)
check you have 40ad2sdx in your init.d
Atleast reboot 2 times for smoother experience.
Now you will have Internal memory equal to sd-ext partition so never run out of memory .

Space not freeing up in /data partition after converting phone apps to system apps

Hello!
Few months ago, I rooted my Sony Xperia ZR (C5502) official ROM build 10.7.A.0.222, android version 5.1.1. Yesterday I decided to uninstall all the bloat that came with my device (like Google Play Movies & TV, Google Play Books, Hangouts, etc). I used Titanium Backup to uninstall these system apps. After that, I got lot of free space in my /system partition (around 500 MiB). I wanted to make use of this space by moving some apps installed in phone's internal memory to this /system partition. I used Link2SD's Convert to System App so that these apps move from /data partition to /system partition (I made sure the apps I moved were really installed in phone, and not external SD card's asec).
Now what should have happened is, /system partition should fill up, and memory in /data partition should free up. However, what happened is, /system partition filled, but no memory was freed up /data partition!! I suspected if Convert To System App just made a symbolic link in /system partition, but this wasn't the case. The /data/app/<package> folders for all apps I moved, were gone. I also executed ls -l on /system/priv-app/<package>, but it didn't show up as symbolic link.
I want to know why is the space in /data partition not freeing up? Thanks!
PS: I've also used Link2SD's Integrate update into system function, for those system apps that have been updated. That did free up memory in my /data partition.
Solved
I found the problem. Couldn't find a way to delete this thread so I'll just reply what I found.
Converting user app to system app only moves their apk and lib to /system. app's data and dex still reside in /data partition only, hence the space didn't free as much as I expected. However, I cleared dalvik-cache and then when they were rebuilt/recompiled on next phone restart, I could see a lot more free space in /data partition. This shouldn't happen though since Link2SD delete the old when when I converted and new one was made on phone restart. Maybe it couldn't delete some.

Internal Memory probably dead

Hello,
I need help for recover a Xiaomi android phone.
Internal memory soldered on the mainboard who is almost not repairable without IRDA is really a great thing, thank you to almost all manufacturers for that. A rpi like with micro sdcard for internal memory should be really a great thing for the future.
My problems :
- Recovery can't wipe any data because partition not mount anymore
- TWRP can't mount any partition : cache system and data
- I can create a new filesystem with mkfs.ext4 on all partitions but can't e2fsck because can't found superblock
- I try e2fsck by specified any superblocks listed during mkfs.ext4 but no one can read the partition
Now, I have an android phone with recovery working but cache, system and data partition seem corrupt and can't found any solutions for repair that.
There is any way to check each block like "badblocks" in the whole internal memory ?
I not found any tool for check the volume and e2fsck can't read the partition and can't check bad blocks.
If no ways for repair internal memory and memory is really dead, there is a way for modify permanently the /etc/fstab for mount at each restart cache system and data partition on the external sdcard ? (I can't boot and can't install any apps like link2sd for do that.)
Or a way for link sdcard to "/dev/block/mmcblk0" instead of "/dev/block/mmcblk1".
I hope there is a way for use sdcard or repair internal memory for not trash this phone not so old.
Thank you for your time and your help

How I can restore partition size to original?

When i was uploading new rom, partitions connect to one. Many roms have a problems with this. Second partition has a 0MB size. I try upload stock rom by flashtool and no results. I want to restore original size. How I can do this? My phone is sony xperia lt30p.
What ROM have you flashed? Have you done a clean install, means having wiped existing Android OS before?
What's the name of the mentioned 0MB partition?
BTW:
Android comes with standard partitons as
/boot
/system
/recovery
/data
/cache
/misc
and their sizes basically are hardcoded.
Never have noticed, heard or read that when a ROM gets flashed a partition with size of 0MB will be created.
Name se
jwoegerbauer said:
What ROM have you flashed? Have you done a clean install, means having wiped existing Android OS before?
What's the name of the mentioned 0MB partition?
BTW:
Android comes with standard partitons as
/boot
/system
/recovery
/data
/cache
/misc
and their sizes basically are hardcoded.
Never have noticed, heard or read that when a ROM gets flashed a partition with size of 0MB will be created.
Click to expand...
Click to collapse
The name second partition is ,,sdcard". Tt isn't sdcard it is internal memory for photos and the like things
jareczex said:
Name se
The name second partition is ,,sdcard". Tt isn't sdcard it is internal memory for photos and the like things
Click to expand...
Click to collapse
Don't confuse /sdard and sdcard.
With regards to /sdcard:
This is NOT a partition on the internal storage memory of the device but rather the ( external ) SD card.
With regards to sdcard:
This simply is a symbolic link to device's /data/media partition what is mounted as /storage/emulated/0
And How i Can restore default memory this partition? Partition with external sdcard has other name.
OK it's the partition named /data/media you're referring to.
If a partitition shows 0MB ( can't get mounted ) then this is because it probably is encrypted. Hence decrypt it. The common method is to perform a Factory Reset. If you've TWRP installed / at your fingertips then decrypting also can be done with TWRP.
This phone is other than many phones
For me, everything you post is crazy stuff: I can not understand what the problem really is.
Since Android is on the market, it has more or less the same partition layout as shown above. And I'm pretty sure your phone has this, too.
I mean about problem, when i am installing rom, show me comunicat ,,Error instaling zip file 'external_sd/android9 sony t/open_gapps-arm-9.0-pico-20201114.zip" and i wanna get rid of this problem, across restore this partition. Do you know, what i have a mean?
My last 2 cents here: Open Gapps isn't a ROM. It's merely a suite of re-compiled Google apps.
FYI: I no longer participate this thread. I hope for you others jump in.
ok, thank you for your help. Information for other people: I can't install apps on this roms, so i want to restore this partition

Categories

Resources