Wiping everything in TWRP and Cyanogenmod - Galaxy S 5 Q&A, Help & Troubleshooting

Everyone, I have searched and searched for the answer and I have not been able to find it. I have a VZW Galaxy S5 with an unlocked bootloader. I installed CM13 on it. I tried wiping data, cache and dalvik and there are so many files and folders that still remain. Is there a way to wipe it clean and get rid of all those trash folders and files? Can I wipe internal storage, then while still in TWRP re-install CM13? Will everything be ok? How can I get rid of all those trash folders and files? Are they somehow needed still? Thank you so much for your help. I swear I have looked everywhere and I just can't find a definitive answer and I am afraid to wipe internal storage because I don't want to have to ODIN back to a stock rom and reroot etc.... If anyone knows how to get rid of all those trash files, help!

mattnin said:
Everyone, I have searched and searched for the answer and I have not been able to find it. I have a VZW Galaxy S5 with an unlocked bootloader. I installed CM13 on it. I tried wiping data, cache and dalvik and there are so many files and folders that still remain. Is there a way to wipe it clean and get rid of all those trash folders and files? Can I wipe internal storage, then while still in TWRP re-install CM13? Will everything be ok? How can I get rid of all those trash folders and files? Are they somehow needed still? Thank you so much for your help. I swear I have looked everywhere and I just can't find a definitive answer and I am afraid to wipe internal storage because I don't want to have to ODIN back to a stock rom and reroot etc.... If anyone knows how to get rid of all those trash files, help!
Click to expand...
Click to collapse
Don't worry you can wipe internal storage and reinstall CM13 no problem! But making a backup and then restoring it would be easier!
I would recommend you to do this, and before you do it make sure you are on twrp 3.0.2-2!
Firstly make a backup and plug your phone in to the computer, copy all your files from your internal memory to the computer just to be safe.
Remove sd card and then boot into twrp. After that go to wipe and click format data. This will erase everything on your phone! After that turn off your phone, insert sd card, go into twrp and restore your backup.
If you don't have a sd-card your backups are probably stored in your internal storage. That means you have to transfer them from your computer to your phone after the wipe is complete to be able to restore your backup.
Good luck and I hope this helped you!

Related

[Q] Question about TWRP backups before I wipe.

I have never had a device without a removable SD and am used to having the contents of my SD protected when I wipe and then flush, i mean flash (hah). When I wipe with TWRP, will I lose my pix, audio, etc as they are not on a separate partition?
docslate said:
I have never had a device without a removable SD and am used to having the contents of my SD protected when I wipe and then flush, i mean flash (hah). When I wipe with TWRP, will I lose my pix, audio, etc as they are not on a separate partition?
Click to expand...
Click to collapse
If you lost your pix, audio, etc that would really really suck. I don't think I would flash new ROMs daily. So of course the contents of internal SD are protected. UNLESS you choose to wipe internal storage in TWRP so don't mess with those advced options. They call it a factory reset in TWRP but its not like the phone option to factory reset which does wipe internal storage.
Your app data is lost. Just back up with titanium backup. After flashing new ROM install only TB, then restore apps and data (no system apps!) and you're done!
And make sure you have a backup! If anything does go wrong just restore it.
alright so lets say i download a rom and put it on my internal, then i boot into twrp do i just factory reset or what? i dont understand what to wipe to keep internal intact sorrry im a noob
in TWRP do a factory reset and install the new rom (and gapps if its CM rom) and you are golden.
stuck on team win screen
ok I need some serious help my battery is about to die! I rooted my phone last night and this morning I installed twrp 2632 and then rebooted and the phone now will not boot past the twrp screen then I got a call to go to a hospice home and that took several hours in the meantime my phone will not do anything just drain battery! any help would be greatly appreciated! thanks
tdevaughn said:
in TWRP do a factory reset and install the new rom (and gapps if its CM rom) and you are golden.
Click to expand...
Click to collapse

[Q] formatting internal SD card

Hey Guys,
After doing some reading about Folder & partition structure of Android, I am totally confused & in worse condition.
My question is simple;
Flashing a new ROM does not reset/delete the folder in the internal SD card. Since I have capacity problem, I would like to delete those folders and make fresh start. How can I do this? Is is safe to delete /android/data folder?
Under setting/storage, the sum of all folders is around 5.2 GB, while it shows the total as 8.8 GB. Where is the rest of my space?
Best Regards
I have a GT-I9500, running Arrow ROM 11.0 (android 4.3)
Philz recovery has an option to format the device internal memory.
Sent from my GT-I9505 using XDA Premium 4 mobile app
9505 has 9.13gb
in recovery before flashing a rom you have to wipe data, system, cache, dalvkit cache, etc
i wist phyl recovery sayd wike internal memory, but there is no option like that, only wipe sdcard1 (external)
Okay this is what you need to do.
First download official firmware through SamMobile, then flash the .tar file through Odin, the boot into recovery, factory reset, the flash the same .tar file again. This will wipe out ALL your data on internal storage and give you a true fresh start. Of course after that if you're not happy you can always flash a custom recovery and flash a ROM.
Thanks for the replies. Going back to original firmware, seems like a tough route.
When I connect my device to windows, it simply allows me to format the SD card. What would happen IF I just do that? Would I brick the phone or loose an irrecoverable important data? (I don't care, If some bloatware does not work or loose its data)
xhuttra said:
Thanks for the replies. Going back to original firmware, seems like a tough route.
When I connect my device to windows, it simply allows me to format the SD card. What would happen IF I just do that? Would I brick the phone or loose an irrecoverable important data? (I don't care, If some bloatware does not work or loose its data)
Click to expand...
Click to collapse
I'm pretty sure if you format the internal card from a Terminal prompt, you will brick your phone.
we already told you you have to WIPE though recovery
maurocds said:
we already told you you have to WIPE though recovery
Click to expand...
Click to collapse
When wiping through recovery will that wipe/erase my efs folder?
That contance my imei and other...
marcel112 said:
When wiping through recovery will that wipe/erase my efs folder?
That contance my imei and other...
Click to expand...
Click to collapse
No. wiping through philz does not erase your efs directory.
However, you can always backup your efs to be totally safe

Accidently Wiped /data partition. Now how to recover data?

Hello guys I thought WIPE DATA in stock recovery is just like TWRP which means it won't format internal storage, but it did I tried undeleter and almost all good recovery tools, but nothing can be seen or retrieved. How do I restore my data? Thanks..
my phone is rooted btw
rip
http://www.jihosoft.com/recover-data/recover-data-after-factory-reset.html,i don't tried this app
https://drfone.wondershare.com/ Try Dr. Phone. I don't think it will help if you deleted the data but you can try

factory reset on custom rom

I haven't been able to find an answer upon searching and haven't come across this in my time reading forum posts.
So if I go to settings - backup and reset and do a factory reset from there.
I will lose all my data on internal storage, yes. But will the Android system boot into the same rom with Gapps and all just without any data at all? Allowing me to set it up as a new phone completely.
I'm on official Resurrection remix.
Edit - here's what I did. Thanks @Sam Nakamura
1. Clean flashed the ROM I wanted to use. (wipe everything except internal storage)
2. Booted into the ROM and set up Google account.
3. Booted into twrp and wiped internal storage.
4. Rebooted into system.
Everything is good as new. Setting it up from scratch now.
Isn't better doing it from recovery?
fabrquila said:
Isn't better doing it from recovery?
Click to expand...
Click to collapse
Trying to find out how. Want to delete all data including internal storage.
Want to lose all apps, files. Basically exactly as a new phone, just with a custom ROM.
pranayysharma29 said:
Trying to find out how. Want to delete all data including internal storage.
Want to lose all apps, files. Basically exactly as a new phone, just with a custom ROM.
Click to expand...
Click to collapse
Just use wipe data/factory reset function in TWRP and use the advanced wipe options.
fabrquila said:
Just use wipe data/factory reset function in TWRP and use the advanced wipe options.
Click to expand...
Click to collapse
And check everything, swipe to delete and reboot? But that way I won't have any rom or Gapps installed, will i?
pranayysharma29 said:
And check everything, swipe to delete and reboot? But that way I won't have any rom or Gapps installed, will i?
Click to expand...
Click to collapse
Not if you don't wipe system partition, where ROM and Gapps are located. Just if something goes wrong, you should have a way to flash these zips. You can use TWRP to transfer them.
Basically I'm not sure which partitions to wipe. As I don't know what is contained in which partition. Which is what I'm trying to understand
How to use twrp to transfer them? I lost you at that.
pranayysharma29 said:
Basically I'm not sure which partitions to wipe. As I don't know what is contained in which partition. Which is what I'm trying to understand
How to use twrp to transfer them? I lost you at that.
Click to expand...
Click to collapse
Wipe data, cache, dalvik, and internal storage partitions. Don't wipe system.
Data contains your apps. Cache works as cache for apps and dalvik has a similar function afaik. Internal storage stands for the internal memory, where files that you download, transfer or receive, are located.
I'm trying to say that you should have a backup of ROM and gapps just in case something bad happens, which I don't think. If that happens, just boot the phone in TWRP and plug it to a computer. Then transfer zip files of ROM and Gapps to internal storage, and then flash them. Voilá, clean ROM and full operative Gapps.
Sorry for taking so much to reply, I didn't see notifications in the forum.
fabrquila said:
Wipe data, cache, dalvik, and internal storage partitions. Don't wipe system.
Data contains your apps. Cache works as cache for apps and dalvik has a similar function afaik. Internal storage stands for the internal memory, where files that you download, transfer or receive, are located.
I'm trying to say that you should have a backup of ROM and gapps just in case something bad happens, which I don't think. If that happens, just boot the phone in TWRP and plug it to a computer. Then transfer zip files of ROM and Gapps to internal storage, and then flash them. Voilá, clean ROM and full operative Gapps.
Click to expand...
Click to collapse
Thanks for the explanation about the partitions.
I managed to achieve what I set out for.
Did a clean flash of my ROM. Then went on to wipe internal storage in twrp. Now have a new rom and everything. But clean slate for internal storage.

file corruption.

hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
cwarrow said:
hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
Click to expand...
Click to collapse
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
lewmur said:
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
Click to expand...
Click to collapse
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
cwarrow said:
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
Click to expand...
Click to collapse
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
lewmur said:
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
Click to expand...
Click to collapse
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
cwarrow said:
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
Click to expand...
Click to collapse
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there. You format the data partition in order to flash a custom ROM.
lewmur said:
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there.
Click to expand...
Click to collapse
yeah but, i stil have the same problem though, i still cant use my tablette properly. i cant install new games and other app. but anyway i already rooted my stock firmware using magisk. but thanks anyway for the help
its just that i dont like the custom firware we have for it, and the stock firmware is slow af. but ill end up probably falshing a custom firmware anyway. have a good day.

Categories

Resources