Will wiping the phone in CWM delete files on the "SD" space of the phone? I've read it is all apart of the same partition, so I wanted to make sure before awkwardly deleting the ROM I am about to install..
I have wiped tons of times in CWR and it hasn't touched the /sd yet. All my files are safe and sound.
Sent from my GNex
Grims said:
Will wiping the phone in CWM delete files on the "SD" space of the phone? I've read it is all apart of the same partition, so I wanted to make sure before awkwardly deleting the ROM I am about to install..
Click to expand...
Click to collapse
Yes, it clears *all* internal storage.
So...which is it?
Maybe I misunderstood but are you talking about wiping /data and /cache? Because when I do this it does NOT wipe the /sd but does wipe all other user data, just like on every other android phone I have had.
Sent from my GNex
Grims said:
So...which is it?
Click to expand...
Click to collapse
Wipe data/factory reset on CWM wipes your WHOLE phone, including "SD" card. I advise you to use the Super Wipe Lite script from the Android Revolution ROM, get it here. This will do a complete wipe, except SD card.
A bit of more info, in case you're interested: the SD card is the folder /data/media mounted as /sdcard. When you wipe in CWM, the data folder is emptied as well.
EDIT: i havent actually tried to do a normal full wipe from CWM, im stating the above just from reading other reports here. Maybe the last version from CWM has fixed this, i dont know
EDIT2: You can wipe cache and dalvik as usual from CWM without any problems.
flakz0r said:
Wipe data/factory reset on CWM wipes your WHOLE phone, including "SD" card. I advise you to use the Super Wipe Lite script from the Android Revolution ROM, get it here. This will do a complete wipe, except SD card.
A bit of more info, in case you're interested: the SD card is the folder /data/media mounted as /sdcard. When you wipe in CWM, the data folder is emptied as well.
EDIT: i havent actually tried to do a normal full wipe from CWM, im stating the above just from reading other reports here. Maybe the last version from CWM has fixed this, i dont know
EDIT2: You can wipe cache and dalvik as usual from CWM without any problems.
Click to expand...
Click to collapse
I figured that was how it was setup, but didn't know if CWM had any logic built into it to filter out the folder. I'll take a look at the script, thanks.
The built-in factory reset in Android will also wipe everything.
I did data,cache,dalvik wipe and formatted system going from 4.0.2 to 4.0.3.
I did NOT lose my SD card
The default wipe in ICS clears *all* internal memory. The default Factory Reset feature of CWM does the exact same thing. I've done it twice and it wiped fully both times.
Very interesting direct contradictions going on in here..
Wiping data in CWM DOES NOT WIPE THE VIRTUAL SDCARD. People need to stop saying it does.. it is all one partition but the virtual SD card is not wiped when you wipe data in cwm.. Factory resets in settings will wipe your virtual SD card but cwm WILL NOT.
Edit: sorry I had a long night, but I will leave the caps so people actually read it.
Sent from my Galaxy Nexus using xda premium
It is quite troubling to read how many people are saying that wiping in CWM will erase the SD card.
It 100% DOES NOT. I have wiped in CWM dozens of times already. I can not say the same for Factory Reset in Android...but in CWM wiping data DOES NOT wipe your SD.
Related
Since no one will answer this on the thread for the ROM;
This is the 1st time I ever did a partition and uses APS2SD, so when a new vewrsion of the ROM, or any ROM with APS2SD built in comes out, what do I NOT wipe with Amon Ra Wipe?
Do I still do a Wipe ALL DATA/Factory Reset like I alwasy?? Or do I wipe everything individually but not SD CARD? OR NOT SD EXT???
Do I need to copy my SD card to my computer, and then reformat and repartition????
One person please answer this question I've asked 14 times......
When you want to flash a new ROM, wipe as usual (data/factory, cache, dalvik cache) but also do "sdext". This will ensure that any apps stored in your partition are also cleared out for a fresh and clean install of your new ROM
And about wiping 'sdcard"... this would resultin losing pics, backups, etc.
Tower, this is SkyRaider requesting a fly-by...
I guess it's weird then that when I wipe all, it doesn't wipe the SD Card, unless it skips that on purpose, which would make sense....
Thanks!
Good to know
Sent from my PC36100 using XDA Premium App
HipKat said:
I guess it's weird then that when I wipe all, it doesn't wipe the SD Card, unless it skips that on purpose, which would make sense....
Thanks!
Click to expand...
Click to collapse
When you select wipe all (in among 2.3) it shouldn't wipe your SD card, but it does include SD ext I believe. If there was no ext3 partition then it would skip that part. I have 2 cards, one is the 8gb card that is not partitioned, and the other is 16gb with ext3 partition. With the card that isn't partitioned, when I select wipe all it will say "skipping g" on the sd ext wipe. With my card that is partitioned, it does not skip that part and it wipes normally.
Sent from my PC36100 using XDA App
THanks, K2...
My fear was that with the EXT Partition, it might wipe the whole card.
I know that sounds a little ridiculous, but ya never know
HipKat said:
THanks, K2...
My fear was that with the EXT Partition, it might wipe the whole card.
I know that sounds a little ridiculous, but ya never know
Click to expand...
Click to collapse
No problem man. Just be aware, there is an option in amon that WILL wipe out your entire card. the 'wipe sdcard' will wipe it all, gone forever. Just be sure to choose the SDEXT option to format just the partition.
See, that's what had me confused, because when you click wipe all, it looks like all those sub "categories" (Cache, Dalvik, EXT3, etc) get wiped in the process, but apparently, that's not the case
HipKat said:
See, that's what had me confused, because when you click wipe all, it looks like all those sub "categories" (Cache, Dalvik, EXT3, etc) get wiped in the process, but apparently, that's not the case
Click to expand...
Click to collapse
The ones you list do indeed get wiped. It wipes EXT3 but not the FAT32 partition where your "normal" data lies. That's definitely how it should be. In fact, I don't even like having that Wipe SDCARD option there. It scares me. Good thing I don't do much wiping while drunk.
bkrodgers said:
The ones you list do indeed get wiped. It wipes EXT3 but not the FAT32 partition where your "normal" data lies. That's definitely how it should be. In fact, I don't even like having that Wipe SDCARD option there. It scares me. Good thing I don't do much wiping while drunk.
Click to expand...
Click to collapse
Agreed... just seeing it there freaks me out
Hi,
Sorry for being a noob but i came from android phones with sdcards and this is the first time i had one without a sdcard card slot..
the main question is, if i wipe the device, will the content in the /sdcard folder that i transferred via MTP (photos, music, Nandroid backups, etc) be wipe out as well?
I am asking because I swear the i did a wipe yesterday and ALL the content in the phone is gone, including the things i put in the /sdcard folder...
just need to clarify or maybe i am crazy? Please help..
There is no SDcard. Its all one big partition. Doing a factory reset wipes the entire device. Yes your pictures and videos, too.
lordlad said:
Hi,
Sorry for being a noob but i came from android phones with sdcards and this is the first time i had one without a sdcard card slot..
the main question is, if i wipe the device, will the content in the /sdcard folder that i transferred via MTP (photos, music, Nandroid backups, etc) be wipe out as well?
I am asking because I swear the i did a wipe yesterday and ALL the content in the phone is gone, including the things i put in the /sdcard folder...
just need to clarify or maybe i am crazy? Please help..
Click to expand...
Click to collapse
Yes, the /sdcard folder actually points to /data/media. Doing a factory restore resets the /data partition, including the contents of /data/media. This means everything put in /sdcard will be erased.
That's stupid. Really stupid. I factory reset my phone all the time... Am I supposed to copy everything back over every time... Eh that would suck.
My transformer and G2x had internal memory and a factory reset from clockworkmod didn't touch the internal storage.
Nvbackups would copy everything though.
-sent from temp HTC Rezound waiting for Galaxy Nexus
player911 said:
That's stupid. Really stupid. I factory reset my phone all the time... Am I supposed to copy everything back over every time... Eh that would suck.
My transformer and G2x had internal memory and a factory reset from clockworkmod didn't touch the internal storage.
Nvbackups would copy everything though.
-sent from temp HTC Rezound waiting for Galaxy Nexus
Click to expand...
Click to collapse
Instead of doing a factory reset, you could just delete everything in /data except for /data/media. That will achieve the same thing and leave your media data alone.
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hmmmmmmmm.
Sent from my Galaxy Nexus using XDA App
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yeah if you just wipe your data/cache via CWM it DOES NOT touch anything in your /sd card. However doing a factory reset via the settings menu while booted does!
RTContent said:
Yeah if you just wipe your data/cache via CWM it DOES NOT touch anything in your /sd card. However doing a factory reset via the settings menu while booted does!
Click to expand...
Click to collapse
ok just to be clear, because people (me lol) get confused when people talk about the SD card when talking about the nexus. obviously there isnt one...so im assuming the partition that handles the media is what u refer to as the Sd card...virtual sd card. correct? and if i wipe data/cache via CWM it does NOT wipe my pictures, videos, etc...but if i factory reset under settings while booted...it WILL wipe EVERYTHING...i think i got it now if what i just said was correct...
v2.2v said:
ok just to be clear, because people (me lol) get confused when people talk about the SD card when talking about the nexus. obviously there isnt one...so im assuming the partition that handles the media is what u refer to as the Sd card...virtual sd card. correct? and if i wipe data/cache via CWM it does NOT wipe my pictures, videos, etc...but if i factory reset under settings while booted...it WILL wipe EVERYTHING...i think i got it now if what i just said was correct...
Click to expand...
Click to collapse
You got it
Sent from my Galaxy Nexus using XDA App
joshnichols189 said:
Wiping data and cache in CWM do NOT wipe my whole phone what are you guys talking about? The /sdcard is treated and mounted as if it were a physical SD card.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
+1.. all these people are thinking the phone doesn't have a "sdcard." There is a "sdcard" but its more like internal storage. Think of it as a computer,
- Older phones like the G1 rely on the SDCard fully... so this is like running a OS off a USB drive without internal storage (G1 has a little internal storage.. not enough to say that there is one)
- Phones such as Galaxy S1/S2 have a sdcard AND internal storage. What does this mean? It's like a internal hard drive with the ability for external storage (flash drive, sd cards).
Example: Galaxy S2 has 16GB internal storage and expandable storage.
Phones like the Galaxy Nexus, Nexus S, Galaxy Tab is like.... internal hard drives without the ability for expanded storage (unless you USB OTG a flash drive!). This is just a beyond misconception on the scene and this is what they meant by not having a sdcard.
When you do a factory reset, wipe cache, wipe dalvik... your /sdcard/ IS NOT TOUCHED unless you run a script that says otherwise!
/sdcard/ and all the other folders are treated as two separate partitions!
When you unlock your bootloader and it wipes, that deletes everything, including the sdcard folder.
yea i was about to say this is incorrect information, if you want to wipe everything i believe in the ARHD thread there is a wipe script to wipe everything, even data/media
azr3alazd3ycum said:
yea i was about to say this is incorrect information, if you want to wipe everything i believe in the ARHD thread there is a wipe script to wipe everything, even data/media
Click to expand...
Click to collapse
Super wipe lite from the ARHD thread does not wipe the virtual SD card.
--- This script will erase and format your system and cache partition using EXT4 file-system ---
--- It will also wipe /data partition, but /data/media (virtual SD card) will be untouched ---
Click to expand...
Click to collapse
All your personal files that would be stored in SD Card in other devices which has one, are stored under /data partition, at /data/media/.
The /sdcard/ is just a link to /data/media.
There seems to be special handling in CWM recovery image for Galaxy Nexus when formatting /data partition as it will not touch /data/media. It's nice feature indeed, but you cannot now empty your /data/media content without manual work. But normally you don't even want to do that so it's fine.
It would be much more simple to just forget about the "virtual sd card" or /sdcard, since those are just, well, virtual and makes unnecessary confusion.
So our files are now stored like they would be under C:\Users\media. If you format C-drive, you'll lose your 'personal' files as well from media folder. The "virtual sdcard" /sdcard would be just a similar as Windows has as "Favorite" feature, just a shortcut to a certain folder location.
joshnichols189 said:
Super wipe lite from the ARHD thread does not wipe the virtual SD card.
Click to expand...
Click to collapse
I was referring to the full one. Its not out for the nexus yet. He has it for the transformer however.
Sent from my Galaxy Nexus using XDA App
hey guys,
found this thread searching for an answer, i'll go ahead and ask it right here as it fits the the topic:
what i want to do when installing another rom is to wipe (system) data, cache and Dalvik cache (and i do not want my private files on the sd card to be touched). it is clear to me that CWM does not touch the sdcard partition. BUT: since all the apps are installed onto the sdcard partition they won't be deleted, right?
i want all my apps to be gone and to have a completely fresh new system installed without ANY leftovers from apps or apps/data or anything else that got stored on the sdcard partition while using the previous rom. of course these apps would not be installed anymore when you boot up the new rom, but all their files and folders would still remain on the sdcard partition, right? i'm talking about all those files that the rom generates itself and stores on the sdcard partition. of course i want to keep all my music, downloads, pictures, etc. but i want everything else to be gone.
to my understanding cwm does not touch the sdcard partition which leaves all the app folders and other android-created-files and folders (that were automatically created when using the previous rom) untouched and i would have to manually look for all these files and delete all these remnants which is kind of annoying.
do you know what i mean?
thx and greetz,
v.
vercetti said:
hey guys,
found this thread searching for an answer, i'll go ahead and ask it right here as it fits the the topic:
what i want to do when installing another rom is to wipe (system) data, cache and Dalvik cache (and i do not want my private files on the sd card to be touched). it is clear to me that CWM does not touch the sdcard partition. BUT: since all the apps are installed onto the sdcard partition they won't be deleted, right?
i want all my apps to be gone and to have a completely fresh new system installed without ANY leftovers from apps or apps/data or anything else that got stored on the sdcard partition while using the previous rom. of course these apps would not be installed anymore when you boot up the new rom, but all their files and folders would still remain on the sdcard partition, right? i'm talking about all those files that the rom generates itself and stores on the sdcard partition. of course i want to keep all my music, downloads, pictures, etc. but i want everything else to be gone.
to my understanding cwm does not touch the sdcard partition which leaves all the app folders and other android-created-files and folders (that were automatically created when using the previous rom) untouched and i would have to manually look for all these files and delete all these remnants which is kind of annoying.
do you know what i mean?
thx and greetz,
v.
Click to expand...
Click to collapse
When you clear all your data/cache when installing a new rom it will also wipe apps that have been installed on your sdcard. This does not include removing folders that apps may store additional data on the sdcard. If you want to remove these folders unfortunately you will need to do it manually.
Sent from my Galaxy Nexus
Installed apps do not go in /data/media, but /data/app and /data/data. I dont think /data/cache exists, /data/dalvik-cache does.
Those are only erased if you do a wipe data/factory reset in cwm/twrp, and for the latter wipe dalvik cache.
sent from my i9250
Since there is no sd card, when you flash a ROM and have to wipe data, do you lose all the stuff like music, pictures, and ringtones? If so, what do you guys use to make this not a pain. I can't imagine recompliling all the folders from what you have backed up on your computer is the best way. I have titanium backup, but isnt that really just for restoring your apps and contacts, not so much for things like music and ringtones etc.?
Also, does the CWM backup/recovery work with this phone? I come from a droid charge and the restore never really worked on that phone.
its been answered a ton of times
your data in /sdcard/ (also known as /data/media/ ) is left alone when you wipe data/cache in cwm/twrp
restore works fine.
Your virtual SD card isn't wiped, so your photos and music are preserved. If you want a little extra assurance though, just back it all up to a Dropbox account. That way you always have access to it if something does go wrong during a wipe.
Sent from my Galaxy Nexus using xda premium
What he says!
I have clockwork mod touch installed. For a fresh clean install, I wipe data/factory reset, wipe cache and then install the zip from sdcard (the new ROM is itself stored on the sdcard).
Zepius said:
its been answered a ton of times
your data in /sdcard/ (also known as /data/media/ ) is left alone when you wipe data/cache in cwm/twrp
restore works fine.
Click to expand...
Click to collapse
DZYR said:
What he says!
I have clockwork mod touch installed. For a fresh clean install, I wipe data/factory reset, wipe cache and then install the zip from sdcard (the new ROM is itself stored on the sdcard).
Click to expand...
Click to collapse
In the sd card, the images, ringtones, data files will remain untouched also with a full wipe.
DZYR said:
What he says!
I have clockwork mod touch installed. For a fresh clean install, I wipe data/factory reset, wipe cache and then install the zip from sdcard (the new ROM is itself stored on the sdcard).
Click to expand...
Click to collapse
Be aware that wiping data/factory reset also wipes cache. And the need to wipe caches when flashing roms is a myth. They're hash signed by the rom at flash, different roms have different signatures, thus android will always be forced to rebuild them after a new rom has been flashed.
Sent from my i9250
When installing a new rom what are you suppose to wipe? I always thought you only wiped cache/dalvik /data. Is there something I'm missing because I read today that someone was wiping their internal sd card also.
lartomar2002 said:
When installing a new rom what are you suppose to wipe? I always thought you only wiped cache/dalvik /data. Is there something I'm missing because I read today that someone was wiping their internal sd card also.
Click to expand...
Click to collapse
It depends what rom you are replacing. If stock to cm, you should factory reset (that automatically wipes cache and dalvik for you). If just flashing a new cm rom over an existing cm rom, then just wiping dalvik is usually enough. You should never need to wipe your internal sd media.
Sent from my SM-T707V using XDA Premium HD app
never wipe internal SD unless you have a ROM file or TWRP backup on an external SD card. wiping internal SD will delete the ROM file (in the root folder) that you plan to install after the wipe.
Yeah, I always d/l to ext sdcard. learned my lesson about the hard way when I first started rooting and flazhing roms.
I never wipe anything except cache and dalvik. I always dirty flash. If it doesn't boot then I wipe data.
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.