Is this possible with the HOX.. given the size of the system partition and the free space available with some roms, could help to free up.space on the internal storage (data) partition.
Is there a script available ?
Titanium Backup can do something like this if you're rooted.
That only does system dalvik, integrates into Rom, recreating odex files..
I'm talking about creating a script so all dalvik is stored on a system partition.
Symlnked or hard linked,..
ie rather that data/dalvik-cache
Have it as system/dalvik-cache
I had a script for my DHD that moved the dalvik to the cache partition, I suggested the system partition with the HOX because of its has so much free space that would be more than adequate to store it..
I might have a look at this script later tonight if I still have it, and see if I can modify it, to work on the HOX for the system partition..
Figured it out..
I have added a patch to the Sense version of the ncx-217_v4_1 Kernel that stores the Dalvik Cache on the System Partition, therefore freeing up some space on the internal storage..
The System Partition is set as Rewriteable on boot to allow this to work..
I know some people say for security reasons System Partition should be left as Read Only.. But then my argument against that is why go to the trouble to root the device in the first place then. ?
Before installing this makes sure you have wiped the Dalvik Cache in recovery..
to install..
Code:
fastboot flash boot ncx_217_v4_1_SENSE_D2S.img
fastboot erase cache
The modules for this kernel don't require to be re-flashed if you have done prior to this already... But I did anyway just to be on the safe side..
Bare in mind if you flash any other kernel after this.. your Dalvik cache will go back to the stock setting, so if you do not have enough space on your Data partition you could run into problems..
To get around this you could always unpack the new kernel, add the patch to the 'init.rc' file then re pack..
For information on how to unpack and repack Boot.img files refer to this thread HERE
For information on how to apply the patch, read the article HERE
Related
Im trying to install some application updates from the market. They will not download because in CATLOG I see "NOT ENOUGH SPACE LEFT" ... the cache folder has 420K available. I tried uninstalling apps I never use but that didnt help.
What can I do to reolved this? I am using SPRINT LOVERS ROM which doesnt support moving the cache to the SD card. ANY ideas would be appreciated....
Update: I erase the dalvik-cache folder and when it re-created, I have 7.4MB of free space.. BUT the program I need to update is a 15MB download ... I removed a few more programs but still not enough space.. What I ended up doing is using ROOT EXPLORER to DELETE the entire contents of the DALVIK CACHE then do into market and it downloaded.
Is there a way I can determine what programs are using the most space in the cache folder? I need to free up space so I would have to unistall more programs but I only want to uninstall large programs (ones that will give me enough free space back)
Have you wiped your cache partition from the recovery? If that and wiping the market's cache doesn't help you'll probably need to uninstall some apps.
Sent from my PC36100 using XDA Premium App
xHausx said:
Have you wiped your cache partition from the recovery? If that and wiping the market's cache doesn't help you'll probably need to uninstall some apps.
Sent from my PC36100 using XDA Premium App
Click to expand...
Click to collapse
Yes I did that.. BUT it rebuilds the cache and its filled up again. is there a utility I can use to see which programs take up the most cache space??
So what this basically means is that you have too many apps installed to be able to put your dalvik cache on the cache partition. By default it's on the data partition, and NOT the cache partition, but some ROMs move it to the cache partition by default. Or maybe you moved it there.
The idea of moving dalvik to the cache partition to free up space for more apps is self defeating. I don't get why anyone does it. The more apps you have, the more space you need for dalvik. So if you've run out of space on /data with dalvik there, you're probably at or will soon pass the point where you have too many apps to fit your dalvik on /cache. If you have few enough apps that you can fit dalvik on /cache, you probably could just leave it on /data anyway.
Basically, either:
1. Keep dalvik and the apps on /data. This may not work for you based on the fact that you've got a lot installed already.
2. Move dalvik to an ext3 partition if you've set one up.
3. Move apps to an ext3 partition, and leave dalvik on /data
4. Move both apps and dalvik to an ext3 partition.
Find the darktremor a2sd thread for details on how to do any of those.
I tried stock a2sd with Y, Y, Y and after installing a load of apps it says "Insufficient storage available" for each new app (apart from a few small apps dotted around the middle of the sea of Insufficient storage available errors). Titanium Backup says that every partition has loads of free space.
In recovery it says the "Cache" partition is nearly full. How can I move this to the sd-ext partition (not the dalvik cache)?
Also, does stock a2sd with Y, Y, Y, do the same thing as data2sd and do I need to do a2sd install each time I install a new app?
Not 100% sure but if ur s-off rooted etc u can use terminal emulator from market and type
su
cachesd
Maybe someone can confirm this as i hav'nt used it myself but seen it in another post
Sent from my HTC Desire
Thanks but I already tried that - it seems to only move the dalvik cache.
maybe this will help
http://www.google.ie/url?sa=t&rct=j..._umVDA&usg=AFQjCNGWhD-cvvnyhZ8edSu7lhvb3UVryA
or try here
http://www.google.ie/url?sa=t&rct=j...t6CXDA&usg=AFQjCNH4BDsehxz01xYhghyEKjNzYbhSYA
Thanks. In the second link you posted I found this post, that explains you need to install Darktremor Apps2SD. Can this be used with stock A2SD, or do I need to start a fresh? It does look like you need to start a fresh because of overlapping commands and it has the same commands as stock A2SD anyway.
I have an sd-ext partition - will the script move it to there or the SD card and will I have to run it each time I install a new app?
I did try searching the forums and Google with different terms, but I couldn't find anything.
EDIT: It only mentions the Dalvik Cache, NOT the Cache in the Darktremor Apps2SD link below. I'll try it, but it looks like it's back to square one. Says here: "cachesd - Moves Dalvik cache files to the ext2/ext3/ext4 partition on your secure digital card. Creates Dalvik Cache to SD flag."
EDIT2: I found here that using Mount2SD there's an option to move the Cache when it's too small! But I can't find a download link.
EDIT3: Found it!
Cache - m2sd cache <enable/disable/auto>
By enabling this option, the script will link /sd-ext/cache to the /cache location. This is useful if your cache partition is to small to download big apps from market.
If you don't have an sd-ext partition, the cache will be linked to /data/cache instead.
Also by setting the auto option instead of enable, the script will only remount the cache if the nand cache is below 40mb.
Click to expand...
Click to collapse
Wrong post.
From my understanding formatting the /system partition through CWM will remove the android OS completely from your device and you would have to flash a new one to replace it. Found the following information on the below website:
http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
/system
This partition basically contains the entire operating system, other than the kernel and the ramdisk. This includes the Android user interface as well as all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.
My question is, if I format the /system partition, does it remove all my currently saved pictures and videos on my internal memory? When I install a new ROM I typically wipe data /factory reset, then perform TDJs super wipe before installing the new ROM.
However, the instructions for installing the newest CM10 ROM also says to wipe /system partition. I know this will remove the OS, but will this also remove my pics and videos or should I back them up first before performing this step? Thanks.
Chochiwpg said:
From my understanding formatting the /system partition through CWM will remove the android OS completely from your device and you would have to flash a new one to replace it. Found the following information on the below website:
http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
/system
This partition basically contains the entire operating system, other than the kernel and the ramdisk. This includes the Android user interface as well as all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.
My question is, if I format the /system partition, does it remove all my currently saved pictures and videos on my internal memory? When I install a new ROM I typically wipe data /factory reset, then perform TDJs super wipe before installing the new ROM.
However, the instructions for installing the newest CM10 ROM also says to wipe /system partition. I know this will remove the OS, but will this also remove my pics and videos or should I back them up first before performing this step? Thanks.
Click to expand...
Click to collapse
Now i could be wrong as i am no Dev by any means but i do not think it will wipe your emmc as well. Reason i think it will be fine if you wipe /system is if you go in with root explorer and go to your /system folder your emmc is not located there so therefore if you were to wipe your /system patition it sould leave the emmc partition in tact.
But as always i would backup your emmc to your pc and give it a try. Hope this helps :good:
sinfulgray said:
Now i could be wrong as i am no Dev by any means but i do not think it will wipe your emmc as well. Reason i think it will be fine if you wipe /system is if you go in with root explorer and go to your /system folder your emmc is not located there so therefore if you were to wipe your /system patition it sould leave the emmc partition in tact.
But as always i would backup your emmc to your pc and give it a try. Hope this helps :good:
Click to expand...
Click to collapse
I was thinking the same thing as well but just had to ask because I have never processed the format /system action before. I am currently running a TW ROM ATM and looking through ES File Explorer my sdcard (which is the same as emmc on AOSP ROMs) isn't located located in the /system folder either.
Thanks for your reply, I tried to give you a thanks but I have reached my limit today
sinfulgray said:
Now i could be wrong as i am no Dev by any means but i do not think it will wipe your emmc as well. Reason i think it will be fine if you wipe /system is if you go in with root explorer and go to your /system folder your emmc is not located there so therefore if you were to wipe your /system patition it sould leave the emmc partition in tact.
But as always i would backup your emmc to your pc and give it a try. Hope this helps :good:
Click to expand...
Click to collapse
I'm no Dev either, but your right. Formatting system will not touch your emmc or sd cards. If you format system when flashing a new nightly (which I do every 3rd flash), you won't lose any user data at all. Only ROM and system apps, this is why you need to reflash Gapps as well if you format system.
When you use TDJ's wipe script, it formats everything (including system) except emmc and external sd cards.
Sent from my SAMSUNG-SGH-T989 using Tapatalk 2
RikkKeith said:
I'm no Dev either, but your right. Formatting system will not touch your emmc or sd cards. If you format system when flashing a new nightly (which I do every 3rd flash), you won't lose any user data at all. Only ROM and system apps, this is why you need to reflash Gapps as well if you format system.
When you use TDJ's wipe script, it formats everything (including system) except emmc and external sd cards.
Sent from my SAMSUNG-SGH-T989 using Tapatalk 2
Click to expand...
Click to collapse
Thanks so much, I run TDJ's wipe script with each install of a new ROM and completely didn't realize that is also wipes the /system partition. I just re-read his Superwipe thread and right in the OP it says
"This exceeds anything that CWM is capable of from the menu options. This will format and erase EVERYTHING on your /system, /data, /cache partions with EXT4 file system. It WILL NOT wipe SD CARD or EMMC... After it is complete with format and e****, it will align all disks partitions properly."
I was up extra early this morning, forgive me, I need to learn how to read better as well :laugh:
Thanks again.
Remember guys, wiping doesn't wipe everything. However, not wiping everything can bring its own issues.
Sorry for bumping up an old thread but it was very relevant to this topic. If I wipe the system before flashing a new ROM will my apps remain intact with their data? I know system apps will be gone but they will come back anyway so it doesn't matter.
Chochiwpg said:
From my understanding formatting the /system partition through CWM will remove the android OS completely from your device and you would have to flash a new one to replace it. Found the following information on the below website:
http://www.addictivetips.com/mobile...plained-boot-system-recovery-data-cache-misc/
/system
This partition basically contains the entire operating system, other than the kernel and the ramdisk. This includes the Android user interface as well as all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.
My question is, if I format the /system partition, does it remove all my currently saved pictures and videos on my internal memory? When I install a new ROM I typically wipe data /factory reset, then perform TDJs super wipe before installing the new ROM.
However, the instructions for installing the newest CM10 ROM also says to wipe /system partition. I know this will remove the OS, but will this also remove my pics and videos or should I back them up first before performing this step? Thanks.
Click to expand...
Click to collapse
No, I flash all the time and always format system, you will not lose your internal or SD memory
Inagalaxyfaraway said:
Sorry for bumping up an old thread but it was very relevant to this topic. If I wipe the system before flashing a new ROM will my apps remain intact with their data? I know system apps will be gone but they will come back anyway so it doesn't matter.
Click to expand...
Click to collapse
Yes, they will stay intact with a /system wipe. However, with a factory reset or /data wipe, your apps will be gone.
Sent from my Nexus 7 using xda app-developers app
Sorry to bump old thread. I just deleted system, data, cache etc everything. Now when i attempt to
Reboot it warns that no OS installed. I m using TWRP. is it safe to power off the device? Will i be able to get back to recovery to flash a new rom afterwards, as i dont have one ready now??
Btw i hav nexus 7 , but didnt find this discussion there so i am posting here.
Thanks in advance for help....
I accidentally formatted system on my HTC desire HD. but i'm unable to install rom in it. If anyone can help me make it working(instruct how to install ROM in it) i'd be grateful.
Sawrose said:
I accidentally formatted system on my HTC desire HD. but i'm unable to install rom in it. If anyone can help me make it working(instruct how to install ROM in it) i'd be grateful.
Click to expand...
Click to collapse
You might want to post your question here : http://forum.xda-developers.com/forumdisplay.php?f=754
Careful with that with new versions of TWRP and CWM! http://forum.xda-developers.com/showthread.php?t=1966887
I format my system through xrecovery but after that first it stuck in sony ericsson logo.. sometimes it doesnt boot and the red light flashes
Accelerator00000 said:
I format my system through xrecovery but after that first it stuck in sony ericsson logo.. sometimes it doesnt boot and the red light flashes
Click to expand...
Click to collapse
I think you're lost friend. LOL.
Sent from my Moto X cellular telephone...
kj2112 said:
I think you're lost friend. LOL.
Sent from my Moto X cellular telephone...
Click to expand...
Click to collapse
it stucks at the sony ericsson and i cant enter the xrecovery sorry it just low battery thats why red light flash.. LOL
Accelerator00000 said:
it stucks at the sony ericsson and i cant enter the xrecovery sorry it just low battery thats why red light flash.. LOL
Click to expand...
Click to collapse
Buttttt...this is the t989 S2 forum.
Sent from my Moto X cellular telephone...
I've had my nexus since December and have tried several ROMs since then--not a total noob, but there's a lot I don't know.
I've been wondering what part of the memory is left untouched by the factory wipes that I've been doing in preparation to flash a ROM? And is there any need to periodically wipe that portion of the memory to remove any remnants of ROMs or deleted apps or anything else that is potentially problem causing or just eating up memory space?
And would your answer explain this: I once did a factory wipe and then accidentally selected reboot before flashing the new ROM and the phone booted normally into the ROM I thought I had just wiped.
factory wipe (data/cache) in CWM only removes the apps, user data, and cache
it leaves /data/media alone (this is the /sdcard/ partition)
so if you hit reboot after a factory reset, it will still keep the same rom as /system is untouched unless you remove it or the rom installer script for the new rom deletes the partition.
When you wipe you clean the ROM for a new one to come. and as far as I know there's no storage to be cleaned up. When yo wipe cache and data it should be good to go.
Sent from my Galaxy Nexus using xda app-developers app
if you factory wipe using CWM, it will keep the data/media folder, which is all your sdcard contents. other than that the rest of the data folder (apps/settings) will get wiped.
if you wipe userdata using fastboot, either by typing in 'fastboot erase userdata' or when using the -w command when installing factory images then your sdcard will get formatted too.
Anytime you want to change Rom's just move the important files/pics/etc to a subfolder of /data/media or just copy them to your PC first. I think its good to factory reset every once in a while to clear out the remnants of uninstalled programs. Seems to speed up the phone too in my opinion.
Mounts & Storage → Format System "Not SD"
It will help with issues people mostly run into.
bOx Stash - https://www.box.com/shared/d8a46b7252c38069deb1
Hello all,
Sorry for this semi-noob question. I have had many android phones and rooted all of them but this is my first Nexus device. I've unlocked my bootloader and have TWRP installed and I'm ready to install a ROM. Unfortunately I am unsure of how I can do a full wipe without wiping my internal storage too.
On every other phone I have had, I would go to advanced wipe and then wipe system, data, cache and dalvik cache but I just did that and it wiped my internal storage :/
I had to flash the stock system image through ADB because ADB sideload wasn't working. Now I'm afraid to wipe system again before trying again because I feel like it will wipe my internal storage again. How can I wipe system properly before installing a new ROM?
Thanks!
Now the interesting question here is: What is internal storage?
You seem to think it is the entire emmc, including your system, cache and data partitions but that is not how that term is used.
As far as I have been able to figure this out "Internal Storage" in Android refers to the entire /data partition which in itself again is divided into a user accessible part where your photos, videos, files are stored ( /data/media and mounted as /sdcard/0 ) and the rest of the /data partition which is used for apps you install and their data. That part is not accessible to the user unless you have root.
Now, for 99% of all wipe operations all you need to do when installing a new rom is to wipe the data partition of all user installed apps and their data, dalvik and cache - also called a 'clean install'.
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
TWRP made this very easy: Enter the Wipe menu and swipe the button. Default is to wipe /data (without wiping /data/media), cache and Dalvik. Flash the rom - done.
berndblb said:
Now the interesting question here is: What is internal storage?
You seem to think it is the entire emmc, including your system, cache and data partitions but that is not how that term is used.
As far as I have been able to figure this out "Internal Storage" in Android refers to the entire /data partition which in itself again is divided into a user accessible part where your photos, videos, files are stored ( /data/media and mounted as /sdcard/0 ) and the rest of the /data partition which is used for apps you install and their data. That part is not accessible to the user unless you have root.
Now, for 99% of all wipe operations all you need to do when installing a new rom is to wipe the data partition of all user installed apps and their data, dalvik and cache - also called a 'clean install'.
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
TWRP made this very easy: Enter the Wipe menu and swipe the button. Default is to wipe /data (without wiping /data/media), cache and Dalvik. Flash the rom - done.
Click to expand...
Click to collapse
"Internal Storage" as I used the term refers to just the user accessible part of the data partition where (as you said) photos, files, etc are stored. On previous versions of TWRP for phones I have had, you could wipe system, date, cache, etc and it would always leave internal storage intact. Ergo, after wiping, you could navigate to your downloads folder and find the ROM you wanted to flash. The issue I had was that I wiped "system" using TWRP and it wiped my "internal storage", meaning my downloads and photos and everything - leaving me with no ROM to flash.
You answered my question perfectly toward the end with this
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
Click to expand...
Click to collapse
I come from a series of phones where this was not standard behavior for ROM installers, so failing to wipe system would lead to a dirty flash and almost assuredly cause issues. Thanks for the input, I will just do a data wipe from now on.
You shouldn't count on roms wiping system automatically.
A well established rom like pure Nexus for instance does not wipe system at flashing, leaving it up to the user to clean or dirty flash.
Always read and follow the installation instructions that come with the rom and you should have little problems. If there aren't any instructions, stay away from the rom is my advice, especially of you are a new user.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
peltus said:
You shouldn't count on roms wiping system automatically.
A well established rom like pure Nexus for instance does not wipe system at flashing, leaving it up to the user to clean or dirty flash.
Always read and follow the installation instructions that come with the rom and you should have little problems. If there aren't any instructions, stay away from the rom is my advice, especially of you are a new user.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
Click to expand...
Click to collapse
Thanks, I'm not a new user by any stretch, just new to the Nexus 5x.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
Click to expand...
Click to collapse
This is exactly what I did when it wiped the ROM file (and all photos/sms backups) from my internal storage. That's how I have always wiped before flashing a new ROM in TWRP and this is the first time it ever wiped my internal storage, hence my question. I think I'll just stick to ROM installers that perform a system wipe. I plan on running the odex stock based ROM I just installed for a while anyway.
The_mamba said:
Thanks, I'm not a new user by any stretch, just new to the Nexus 5x.
This is exactly what I did when it wiped the ROM file (and all photos/sms backups) from my internal storage. That's how I have always wiped before flashing a new ROM in TWRP and this is the first time it ever wiped my internal storage, hence my question. I think I'll just stick to ROM installers that perform a system wipe. I plan on running the odex stock based ROM I just installed for a while anyway.
Click to expand...
Click to collapse
Sorry for assuming you're a newby. Last time i wiped that way in twrp (June 2016) it left my SD card alone. Maybe you checked the wrong box?
peltus said:
Sorry for assuming you're a newby. Last time i wiped that way in twrp (June 2016) it left my SD card alone. Maybe you checked the wrong box?
Click to expand...
Click to collapse
No worries, I appreciate the help either way. I suppose it's possible I checked the wrong box but I am very diligent about that because I have REALLY screwed myself over with that in the past. I accidentally wiped internal storage once or twice on my HTC One and had to RUU back to stock, losing everything including root. Luckily recovery is quicker and easier on the 5x (and the phone is brand new so it had no pictures on it).
I'm afraid to try it again even with a nandroid since the recovery files or stored on internal storage so wiping that would leave me SOL too. Like I said, I'll probably just ride on this ROM until the Nougat or so and then make a full cloud backup before trying a full wipe again.
Wiping system did not erase your files. /system is read only, so you nor your apps can store anything there.
I respectfully disagree with @peltus. In those parts of XDA where I "grew up" a dirty flash is a rom flash without wiping data. And I would be grateful for a link to a rom where the installation script does not involve formatting or wiping /system.
I could be wrong but I believe TWRP's wipe of data is without data/media.
Internal Storage wipes the entire data partition.
One if these days with more time I'll give it a try
Sent from my Nexus 5X using Tapatalk
BONUS: What is a data/media device?
https://twrp.me/faq/datamedia.html
The relevant part:
Since /data/media is part of /data, we pretty much never actually format the data partition. Formatting data, of course, also removes the media folder that contains the internal sdcard. When you choose a factory reset [or wipe data], instead of formatting, we use rm -rf commands to remove all the folders except for the media folder so that we can remove all of your apps and settings while leaving your "sdcard" intact. In TWRP we also have a wipe internal storage option that rm -rf's the media folder and a "Format Data" option that formats to recreate the entire file system in case something goes completely wrong or to remove device encryption.
Click to expand...
Click to collapse
[ ] - added by me.