What files can I delete in the root "/" directory? - General Questions and Answers

If I'm going to install a new os via twrp recovery with full wipes.
In other words
What files can't i delete?
Thank you so much

Just make a factory reset in TWRP and you're good to go. No need to go through files and folders with a file manager.

zerolam said:
If I'm going to install a new os via twrp recovery with full wipes.
In other words
What files can't i delete?
Thank you so much
Click to expand...
Click to collapse
Don't delete anything in root ("/") partition, before or after flashing.
Make a nandroid backup of your current ROM before you do the following.
If you want a completely clean install of the new OS then you need to choose the Wipe option in TWRP, then choose the advanced wipe option, then select the data partition, system partition, cache partition and dalvik/ART cache, then swipe the slider to wipe these partitions, then you're ready to flash the new ROM.
Sent from my SM-S903VL using Tapatalk

Related

installing rom question

Do you have to backup to stock rom or can you just install a rom on top on another without backing or w/e?
rasdabess said:
Do you have to backup to stock rom or can you just install a rom on top on another without backing or w/e?
Click to expand...
Click to collapse
You should backup your rom before flashing, this way if anything goes wrong you can go back.
You should always wipe, wipe, wipe.
Wipe data/factory reset
Wipe cache partition
Go to Advanced and wipe Dalvik Cache
After the wipe go back and Install zip from sdcard. After install I do another wipe on the Dalvik Cache then fix permissions. Remember Wipe, Wipe, Wipe.
so as long as I do that then I can install a rom over another and delete the previous one while doing so?
rasdabess said:
Do you have to backup to stock rom or can you just install a rom on top on another without backing or w/e?
Click to expand...
Click to collapse
I recommend making several backups.
First, make sure you have Clockworkmod installed via nvflash. Then make a backup. Download the backup to your pc for safe keeping (just in case things go wrong).
Use Titanium Backup (free version works, but buy the full one if you like it). Use the batch feature to back up all user apps. Do not back up system apps.
When installing a new rom, especially roms that use different versions of android, you should wipe everything you can except the external sd card (where you keep your backups). Wiping "system" is important.
If you need help, shout out.
http://forum.xda-developers.com/showthread.php?t=1056847

Clean start?

Ok, how do i completely wipe everything off of my AT&T 1.14 HOX, except for TWRP so that I can install a new rom.
RC196 said:
Ok, how do i completely wipe everything off of my AT&T 1.14 HOX, except for TWRP so that I can install a new rom.
Click to expand...
Click to collapse
I assume you already have twrp installed if so boot into fast boot flash the boot. IMG of rom you desire them boot into recovery wipe system factory reset than flash ROM and enjoy
tactical kitten said:
I assume you already have twrp installed if so boot into fast boot flash the boot. IMG of rom you desire them boot into recovery wipe system factory reset than flash ROM and enjoy
Click to expand...
Click to collapse
Can I delete everything leaving the TWRP folder and a copy of my rom?
RC196 said:
Can I delete everything leaving the TWRP folder and a copy of my rom?
Click to expand...
Click to collapse
Are you talking about the internal SD? If you use Titanium Backup, then obviously you should not delete that folder, as that is where the backup files are located. Aside from that, if you don't want to keep any past data from apps, pics etc, then yes you can delete the internal SD contents (aside from the ROM and TWRP nandroid). There may be some other exceptions (particularly for other backup software that you may be using). But in general, the folders on the internal SD are disposable (if flashing a new ROM). When you install a new app after flashing, if the new app needs a folder on the SD, it will just be created automatically.
Aside from the internal SD, before flashing a new ROM do a factory reset (in TWRP not within hboot) and wipe Dalvik and cache. Nothing else really "needs" to be wiped. System partition (where the ROM is stored) will get wiped when the ROM flashes.
I like to format my SD every Sunday to keep this beast on a diet. Then I flash a Rom, inject it with steroids via a custom kernel, and watch it poop all over the s3's I work with
Sent from my HTC One XL using Tapatalk 2
redpoint73 said:
Are you talking about the internal SD? If you use Titanium Backup, then obviously you should not delete that folder, as that is where the backup files are located. Aside from that, if you don't want to keep any past data from apps, pics etc, then yes you can delete the internal SD contents (aside from the ROM and TWRP nandroid). There may be some other exceptions (particularly for other backup software that you may be using). But in general, the folders on the internal SD are disposable (if flashing a new ROM). When you install a new app after flashing, if the new app needs a folder on the SD, it will just be created automatically.
Aside from the internal SD, before flashing a new ROM do a factory reset (in TWRP not within hboot) and wipe Dalvik and cache. Nothing else really "needs" to be wiped. System partition (where the ROM is stored) will get wiped when the ROM flashes.
Click to expand...
Click to collapse
Yes that's exactly what I want. To wipe out with a fresh start. No apps, no files.
Sent from my HTC One XL using xda premium
then do it buddy!!!
So when you say internal are you talking about the SD or everything?
Sent from my HTC One XL using xda premium
RC196 said:
So when you say internal are you talking about the SD or everything?
Click to expand...
Click to collapse
If you want to wipe the SD card (then flash a ROM), the best way is probably to:
Connect phone to your computer, and copy your TWRP folder (nandroid) to your computer, along with any other backup data, such as Titanium Backup. Then wipe the SD in TWRP.
Mount USB to your computer again, and move the TWRP folder, new ROM zip file, and other backups (like Titanium).
Then in TWRP, factory reset, wipe cache, Wipe Dalvik, then install the ROM.
There is no reason to wipe system, as this gets wiped when your flash the ROM. Some people like to do it "just to be sure". But IMO it serves no purpose. Also keep in mind the second you wipe system, the phone will no longer boot, since you just wiped the OS. People seem to forget that a lot and ask "I wiped system, why won't my phone boot now?"
redpoint73 said:
If you want to wipe the SD card (then flash a ROM), the best way is probably to:
Connect phone to your computer, and copy your TWRP folder (nandroid) to your computer, along with any other backup data, such as Titanium Backup. Then wipe the SD in TWRP.
Mount USB to your computer again, and move the TWRP folder, new ROM zip file, and other backups (like Titanium).
Then in TWRP, factory reset, wipe cache, Wipe Dalvik, then install the ROM.
There is no reason to wipe system, as this gets wiped when your flash the ROM. Some people like to do it "just to be sure". But IMO it serves no purpose. Also keep in mind the second you wipe system, the phone will no longer boot, since you just wiped the OS. People seem to forget that a lot and ask "I wiped system, why won't my phone boot now?"
Click to expand...
Click to collapse
Is it normal for TWRP to be 2.58GB?
No its not
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Are you talking about the TWRP folder? Your NANDROID backups are in there if you took any. That might explain why it's large.
Valohtar said:
Are you talking about the TWRP folder? Your NANDROID backups are in there if you took any. That might explain why it's large.
Click to expand...
Click to collapse
Yes that was it. I just copied my backup to my pc. Freed up a lot of space on phone storage but in app storage it shows 4.23gb and under other it shows 3.85gb. Not sure what that is all about?
*GalaxyFanatic* said:
No its not
Click to expand...
Click to collapse
Yes, its somewhat normal. It depend on the size of the ROM that is currently on the phone, and the other data (apps, etc.). But its not unusual for a nandroid to be a GB or so, so if you have 2 nandroids on the SD = 2.5 GB.
redpoint73 said:
Yes, its somewhat normal. It depend on the size of the ROM that is currently on the phone, and the other data (apps, etc.). But its not unusual for a nandroid to be a GB or so, so if you have 2 nandroids on the SD = 2.5 GB.
Click to expand...
Click to collapse
Thanks for the help
Sent from my HTC One XL using xda premium

Clean install

Hi.
I use a custom rom and I want to change to Purity. I want to make a real clean install, to clean every useless stuff on SD card.
I suppose I need to do a factory reset and wipe system partition.
But I prefer check here before.
Thank you.
Sent from my Nexus 5 using xda app-developers app
Backup what you want to keep on the SD card, then run the factory image following the guide on here to the T. You'll then be 100% stock with a clean, stock ROM
Hi,
The rom has nothing to do with your sdcard (this part of the storage), I mean a clean install is with a full wipe: Wipe Data/Factory Reset and Wipe Cache Partition/Dalvik cache, no need to wipe the sdcard, but if you want....

Does factory reset in twrp delete the backups?

So I'm on twrp recovery (rooted Oneplus 3T) and i do a lot of moding which often results in bootloops, so I resort to my backups made in twrp. I was wondering if I'm doing a clean flash of a new rom and it fails, do i still have the backups?
Factory reset wipes only Data , Cache , and Dalvik.
If you select Advanced Wipe and then wipe the Internal Storage or select the option Format Data from the Wipe menu then you will lose your backups (and all your personal data too ) as they are located in Internal Storage/TWRP/Backups.
kenny3fcb said:
Factory reset wipes only Data , Cache , and Dalvik.
If you select Advanced Wipe and then wipe the Internal Storage or select the option Format Data from the Wipe menu then you will lose your backups (and all your personal data too ) as they are located in Internal Storage/TWRP/Backups.
Click to expand...
Click to collapse
What if you selected Factory Reset from Android Settings? Does that delete the TWRP directory (folder) and its contents as well (which contains the Nandroid backups)?
Cifer17 said:
So I'm on twrp recovery (rooted Oneplus 3T) and i do a lot of moding which often results in bootloops, so I resort to my backups made in twrp. I was wondering if I'm doing a clean flash of a new rom and it fails, do i still have the backups?
Click to expand...
Click to collapse
Save your data in laptop and boot your phone
zetret said:
What if you selected Factory Reset from Android Settings? Does that delete the TWRP directory (folder) and its contents as well (which contains the Nandroid backups)?
Click to expand...
Click to collapse
Yes, if your TWRP backups are stored in internal sdcard, factory reset from settings will wipe the internal sdcard and remove your TWRP folder and the backups contained in that folder.
BUT...
If your backups are stored on external sdcard, they will not be wiped by factory reset from settings, they also would not be wiped by factory reset from TWRP.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Yes, if your TWRP backups are stored in internal sdcard, factory reset from settings will wipe the internal sdcard and remove your TWRP folder and the backups contained in that folder.
BUT...
If your backups are stored on external sdcard, they will not be wiped by factory reset from settings, they also would not be wiped by factory reset from TWRP.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
DryreL said:
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
Click to expand...
Click to collapse
I know that, you probably meant to quote the person I responded to.
DryreL said:
Yeah... If you don't have SDcard, make sure your NAndroid backups or ROMs are backed up on your PC or external hard drive. Otherwise you cannot install/flash your new ROM which includes the android system.
Click to expand...
Click to collapse
Or, you could just factory reset in TWRP, factory reset from within TWRP does not wipe data/media, otherwise known as user storage partition where the TWRP folder is stored, therefore, any TWRP backups stored in the TWRP folder in your internal sdcard will not be wiped by the factory reset process from within TWRP.
However, factory reset in TWRP does wipe data/data partition, where user settings and user installed apps are stored. If your ROMs are also stored in the data/media(user storage partition), they will not be wiped by the factory reset process from within TWRP either.
Edit

Help on deleting residual files(?)

Hi, I am new to installing custom rom and just completed installing one. I have wiped the cache, system, data using twrp after flashing the ROM. After installation, I did a factory reset as well. I have noticed that there are residual files (files from previous rom, downloaded files, rom and firmware files). How do i go about cleaning them up? I assumed that all of it would be deleted after wiping and factory reset
sideger said:
Hi, I am new to installing custom rom and just completed installing one. I have wiped the cache, system, data using twrp after flashing the ROM. After installation, I did a factory reset as well. I have noticed that there are residual files (files from previous rom, downloaded files, rom and firmware files). How do i go about cleaning them up? I assumed that all of it would be deleted after wiping and factory reset
Click to expand...
Click to collapse
Factory rest in TWRP does not wipe /data/media, /data/media is where your various internal storage(user space) folders are located, folders such as download, Bluetooth, DCIM, etc..
You can delete from /data/media manually or you can boot into TWRP, then choose "Wipe", then choose "advanced wipe", Then choose to wipe internal storage, that will wipe your internal files.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Factory rest in TWRP does not wipe /data/media, /data/media is where your various internal storage(user space) folders are located, folders such as download, Bluetooth, DCIM, etc..
You can delete from /data/media manually or you can boot into TWRP, then choose "Wipe", then choose "advanced wipe", Then choose to wipe internal storage, that will wipe your internal files.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Oh that explains it. Thanks! I did a factory reset from the rom and it worked. I thought the twrp factory reset did the same
sideger said:
Oh that explains it. Thanks! I did a factory reset from the rom and it worked. I thought the twrp factory reset did the same
Click to expand...
Click to collapse
Be careful using the factory reset located in the device settings, using that method of factory reset has been none to frequently brick devices that are rooted, its very risky.
The best option is to use the advanced wipe in TWRP then select the cache, dalvik cache, data, system and internal storage partitions to be wiped. TWRP is the absolute best tool to use on rooted devices for everything you can think of, it is specifically designed to work with rooted devices without doing anything that the user has not specifically told it to do. In other words, as long as you understand how to correctly use the tool, there should never be an "uh-oh" moment unless you make a user error. Many features built into ROMs can be risky if the device is rooted, using built in features to flash or wipe is risky, TWRP and/or adb are better suited for the job and with much less risk involved.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Be careful using the factory reset located in the device settings, using that method of factory reset has been none to frequently brick devices that are rooted, its very risky.
The best option is to use the advanced wipe in TWRP then select the cache, dalvik cache, data, system and internal storage partitions to be wiped. TWRP is the absolute best tool to use on rooted devices for everything you can think of, it is specifically designed to work with rooted devices without doing anything that the user has not specifically told it to do. In other words, as long as you understand how to correctly use the tool, there should never be an "uh-oh" moment unless you make a user error. Many features built into ROMs can be risky if the device is rooted, using built in features to flash or wipe is risky, TWRP and/or adb are better suited for the job and with much less risk involved.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
Thanks I will definitely keep this in mind! I guess I got lucky that I did not end up with a bricked device. Thanks for the heads up!

Categories

Resources