[Q] Does "factory reset/wipe data" delete /sdcard - Nexus 5 Q&A, Help & Troubleshooting

Hey,
I was wondering if the "factory reset/wipe data" from the recovery menu deletes the /sdcard folder? I did this multiple times on my Nexus 5 and my photos, music and stuff are still there, same with everything in my download folder. Is that normal? I did a factory reset on another Nexus 5 and all data was gone, I had to re-login to a lot services and photos are not on the device anymore, just on google+. Is that the way it should be?

Which recovery did the other n5 have?
Twrp doesn't delete anything from the sdcard if you chose factory reset.

it had automatic restore activated on both devices. I assume the Nexus 5 factory reset should delete the /sdcard folder. Its just a virtual sdcard on the nexus 5. I does not have a sd slot. how would you be able to delete everything from the device? I'm just confused why one nexus 5 wipes the sdcard folder during the factory reset and the other doesn't. is it a bug? or is there a setting which on activation, preserves the /sdcard folder during a factory reset?

kickberto said:
Hey,
I was wondering if the "factory reset/wipe data" from the recovery menu deletes the /sdcard folder? I did this multiple times on my Nexus 5 and my photos, music and stuff are still there, same with everything in my download folder. Is that normal? I did a factory reset on another Nexus 5 and all data was gone, I had to re-login to a lot services and photos are not on the device anymore, just on google+. Is that the way it should be?
Click to expand...
Click to collapse
factory reset on custom recoveries only delete /data, and /cache files and folders(EXCEPT /data/media folder, since its the internal sdcard)
factory reset on stock recovery formats /data and /cache, which deletes the folder media inside data(which is the sdcard, /sdcard is just a symlink for bad applications which have /sdcard hard coded in their file calls)
It dosen´t matter any setting or config you have under you system, both recoveries ignore anything related to system

both nexus 5s are stock. so the photos and all other media should be gone after a factory reset right? I wonder why mine doesn't do that.

Related

[Q] factory reset performed, data still here

hi,
I had so much stuff on the tablet I decided to reinstall rom...
performed factory reset, wiped cache partition, & installed ics rom again and to my surprise all my data was there.
what else needs to be whiped to delete all wanted and unwanted data?
thanks
You can delete all the stuff from /data/media - its mounted as sdcard - its the content that you see when you are connected via usb. Dont worry, all directories will be created new when you flash the rom again. You can also format the system partition in recovery. Put the rom to your empty data/media directory before you do this and install with choose from zip...

Internal memory not being erased?

I wanted to wipe my phone back to stock, so I did a Factory data reset in the Setting>Power menu. After it completed I connected the phone in disk drive mode, but it still had many of my old app folders in the root.
How can I get rid of these folders and go back to how I got my phone from ATT?
you can flash the RUU thats in the dev forums, it should wipe the phone.
i haven't tried to wipe this phone yet, but on my gnex, iirc, there was an option when you asked it to wipe to remove all personal data as well. i'll have to check for it on my 1x after i finish flashing the new RUU to it.
edit:
i looked again, it's in settings / storage. in there it has options to wipe saved data from the apps partition as well as the sdcard partition, and also the factory wipe.

[Q] Factory reset doesn't delete data/restore system?

Aside from the pee-stain at the bottom of the phone I did notice one thing. When you do a factory reset (and select/check that deleting userdata is okay) it does not:
• delete sdcard data
• remove user settings for apps/wifi
• restore modified system files (hosts, etc...)
• root remains as well
Is there actually a way to do a proper reset and have it restore things as it should? In line with that how do I securely erase the data if possible so in given it to a family or it ends up on some truck with Avast that the data can't be restored?
Thanks!
windraker said:
Aside from the pee-stain at the bottom of the phone I did notice one thing. When you do a factory reset (and select/check that deleting userdata is okay) it does not:
• delete sdcard data
• remove user settings for apps/wifi
• restore modified system files (hosts, etc...)
• root remains as well
Is there actually a way to do a proper reset and have it restore things as it should? In line with that how do I securely erase the data if possible so in given it to a family or it ends up on some truck with Avast that the data can't be restored?
Thanks!
Click to expand...
Click to collapse
WTF? Factory reset does not actually factory reset..? This seems like a huge bug with CM11... Especially the part about the lack of deletion in the SD card and user settings.
an_xda said:
WTF? Factory reset does not actually factory reset..? This seems like a huge bug with CM11... Especially the part about the lack of deletion in the SD card and user settings.
Click to expand...
Click to collapse
Nope. I had rooted the phone and while I think I lost root; the modified hosts file I changed (http://winhelp2002.mvps.org/hosts.htm) was still there as well as the entire SD card contents. It remembered my home wifi as well because I looked in settings and it showed my home one as "out of range"
Not sure if it's a bug or by design as I haven't tried flashing the stock image yet.
For a complete factory reset that will erase everything. Everything! You can do a factory reset from the boot loader. (Restart or power on phone and hold down the volume down button, scroll to factory reset, push power button) or from TRWP data reset, it makes you confirm and type "yes"
I reset my phone through the boot loader on accident a couple times and wanted to kick my dog.
Sent from my HTC One using XDA Free mobile app
You guys do know that factory resetting only formats the data partition excluding the /data/media directory. This is not a bug. It wouldn't need to do anything to the system partition of you don't root. And it's not able to restore the system partition without a system image and where are you going to store that? In the system partition? All user settings including apps and WiFi settings are stored on the data partition will actually be wiped unless when you log into your Google account you select restore from backup. There's no reason you would want to delete storage too when factory resetting unless you want to sell the phone and you can delete that in so many ways since it's your storage.
Sent from my TouchPad using XDA Premium 4 mobile app
cannonofcourse said:
For a complete factory reset that will erase everything. Everything! You can do a factory reset from the boot loader. (Restart or power on phone and hold down the volume down button, scroll to factory reset, push power button) or from TRWP data reset, it makes you confirm and type "yes"
I reset my phone through the boot loader on accident a couple times and wanted to kick my dog.
Sent from my HTC One using XDA Free mobile app
Click to expand...
Click to collapse
The Jack of Clubs said:
You guys do know that factory resetting only formats the data partition excluding the /data/media directory. This is not a bug. It wouldn't need to do anything to the system partition of you don't root. And it's not able to restore the system partition without a system image and where are you going to store that? In the system partition? All user settings including apps and WiFi settings are stored on the data partition will actually be wiped unless when you log into your Google account you select restore from backup. There's no reason you would want to delete storage too when factory resetting unless you want to sell the phone and you can delete that in so many ways since it's your storage.
Sent from my TouchPad using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you both Tried that and worked. Wanted to restore the hosts file to stock but couldn't find the original again. (didn't think to extract factory rom files on cyangen site)
The solution is in their FAQ.
so wait... if i factory reset from twrp... will my internal sd.. i.e. music.. and other files also get deleted?
abhimanyu bajaj said:
so wait... if i factory reset from twrp... will my internal sd.. i.e. music.. and other files also get deleted?
Click to expand...
Click to collapse
No.
Transmitted via Bacon
timmaaa said:
No.
Transmitted via Bacon
Click to expand...
Click to collapse
and if i flash a new rom... will it be deleted?
abhimanyu bajaj said:
and if i flash a new rom... will it be deleted?
Click to expand...
Click to collapse
Just flashing the ROM by itself will not wipe data or internal storage, but you may encounter bugs (it's called dirty flashing). The best way to get a bug-less ROM is to clean flash which means wiping every partition. The only one that should be OK is internal so you don't have to wipe that one when clean flashing.
abhimanyu bajaj said:
and if i flash a new rom... will it be deleted?
Click to expand...
Click to collapse
No, flashing a ROM doesn't wipe user data. When flashing a new ROM it's best to wipe system, data, cache, and dalvik cache, but it isn't necessary to wipe (internal storage) user data.
Newbie XDA member
I change my phone original bootanimation and then i get No Command when i factor reset .. Nothing Happend how do just restore my (/system) /system/media bootanimation.zip ... other way to fix this thing i have pc >?

Browse twrp backup

Hey guys i got a question. I did a backup via twrp and moved it to a USB flash drive then did a factory reset now I'm trying to fnd my photos to restore them via nandroid manager but i cant find them. Can anyone tell me the path where they were backed up?
FYI im pretty sure the photos are weithin the backup because it has a size of about 5gb.
Thank you in advance!
The 'backup' is for the system. Twrp does not backup folders per se. All my pics are on my 128gb card and no matter what I flash or restore, there they are. Are you saying they were on the phone and you managed to delete them, if so, that's what a restore should fix. I say should because sometimes restores don't work the way you might expect them too.
Yeah but I want to restore just the photos is there a way to extract them out of the backup?
Sent from my Xperia Z3 using XDA Free mobile app
TWRP backups and recovery backups in general only save /system, /cache, /dalvik-cache and /data, but the data directory has stored only app data, settings etc. but no media (that's in the /media or /sdcard directory). If you did a factory reset usually the internal sdcard won't be cleared. If it somehow happened your pictures are lost, if you didn't enable Google's automatic photo backup.
Link for a clearer explanation:
https://m.reddit.com/r/Nexus5/comments/278oq8/twrp_backup_is_data_the_sdcard_how_does_restore/

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

Categories

Resources