I'm going to install a new ROM for the first time, planning to install Wicked.
For installing a ROM, I understand you are free to do it from the internal or external storage - you just need to find the file from the recovery's file manager. No problem.
HOWEVER, instructions for this (and many ROMs I've read about) tell you to do a "full wipe" (data, cache and dalvik).
Does this mean I can't (shouldn't) install from internal storage? Or, what are the consequences of not wiping the data partition? Can it be wiped after somehow loading the ROM file?
j111 said:
I'm going to install a new ROM for the first time, planning to install Wicked.
For installing a ROM, I understand you are free to do it from the internal or external storage - you just need to find the file from the recovery's file manager. No problem.
HOWEVER, instructions for this (and many ROMs I've read about) tell you to do a "full wipe" (data, cache and dalvik).
Does this mean I can't (shouldn't) install from internal storage? Or, what are the consequences of not wiping the data partition? Can it be wiped after somehow loading the ROM file?
Click to expand...
Click to collapse
A "full" wipe isn't exactly a full wipe. You wipe system, data, and cache. While it's true that your internal SD card is on the /data partition, it is untouched by the wipe data function. As far as consequences to not wiping data... all sorts of problems can crop up if you don't wipe it; especially if you're moving between different ROMs (i.e. going from stock TouchWiz to an AOSP variant) or different versions of Android like 4.2.2 to 4.3, etc. If you're going from, say Wicked V9 to Wicked V10, it shouldn't be a problem to leave data intact because it's still Android 4.3. Wicked V8 to Wicked V9 would likely require a data wipe because it's going from 4.2.2 to 4.3.
lordcheeto03 said:
A "full" wipe isn't exactly a full wipe...While it's true that your internal SD card is on the /data partition, it is untouched by the wipe data function
Click to expand...
Click to collapse
Thanks. So the internal sdcard is not wiped by the data wipe? Is it possible to ask for the details of what the data wipe does in exact terms? Sounds like it doesn't do any formatting, so it must do a delete (rm -rf) of certain directories? Any idea which ones and which ones it leaves alone?
j111 said:
Thanks. So the internal sdcard is not wiped by the data wipe? Is it possible to ask for the details of what the data wipe does in exact terms? Sounds like it doesn't do any formatting, so it must do a delete (rm -rf) of certain directories? Any idea which ones and which ones it leaves alone?
Click to expand...
Click to collapse
It wipes the userdata partition, and others, there's like 30 different partitions. This partition is where your apps and app data is stored. It does not wipe the sdcard partition which is your internal sdcard.
Sent from my SAMSUNG-SGH-I727
I see. So what data is stored on the internal sdcard partition? Is this the file system that you see by default when you connect to a computer via USB (MTC)? Where pics are stored and whatnot...
j111;50555364Is this the file system that you see by default when you connect to a computer via USB (MTC)? Where pics are stored and whatnot...[/QUOTE said:
Yes.
Click to expand...
Click to collapse
Related
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
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.
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.
I followed This Guide to get temp root on my Verizon M8 in order to get s-off with sunshine. The SuperSU apk the guide requires is hosted on an iffy looking file hosting site. I'm worried that it could've been infected with malware, which would've gotten root access.
After getting s-off, I followed the guide to install the DigitalHigh GPE ROM HERE. First I had to flash the 5.1 GPE firmware, and then the ROM itself. Would doing both of these things remove any infections, if that apk was infected? If not, what should I do? If it had root access, it could have installed as a system app. I'm assuming that flashing either the 5.1 firmware or the ROM would've overwritten system apps, but I'd like to be sure.
If I wipe internal storage, will I still have s-off and be able to flash the firmware through adb or sideload a ROM?
TheLeshii said:
I'm assuming that flashing either the 5.1 firmware or the ROM would've overwritten system apps, but I'd like to be sure.
Click to expand...
Click to collapse
Firmware doesn't touch system partition; but a ROM flash wipes it and flashes the new ROM to the system partition.
TheLeshii said:
First I had to flash the 5.1 GPE firmware, and then the ROM itself. Would doing both of these things remove any infections, if that apk was infected?
Click to expand...
Click to collapse
I can't claim to have the technical knowledge to really say. But I suppose theoretically its possible some malicious code can reside on other partitions. But it probably unlikely for an infection to be that sophisticated, when there is lower hanging fruit to be had. I'd guess that you are correct, that most malware is installed in system partition or as an app in user data.
TheLeshii said:
If I wipe internal storage, will I still have s-off and be able to flash the firmware through adb or sideload a ROM?
Click to expand...
Click to collapse
Yes, yes, and yes.
The only thing that can make the phone s-on again, is you manually making it so.
So if I do wipe internal storage, would I be able to do everything without a microSD, being that I can't enable USB debugging with no OS? If so, would it be as simple as rebooting to fastboot, then RUU mode, flashing a firmware zip, and then maybe pushing the ROM?
Sent from my HTC One_M8 using XDA Free mobile app
TheLeshii said:
So if I do wipe internal storage, would I be able to do everything without a microSD, being that I can't enable USB debugging with no OS? If so, would it be as simple as rebooting to fastboot, then RUU mode, flashing a firmware zip, and then maybe pushing the ROM?
Click to expand...
Click to collapse
I'm not sure I follow. Wiping internal storage doesn't affect the ROM. Or are you thinking of wiping everything (internal storage, system, etc.) again.
Wouldn't wiping internal storage take out everything, including the ROM? I'd just like to my sure my phone is clean of malware.
Sent from my HTC One_M8 using XDA Free mobile app
TheLeshii said:
Wouldn't wiping internal storage take out everything, including the ROM? I'd just like to my sure my phone is clean of malware.
Click to expand...
Click to collapse
"Internal storage" specifically just means the user-accessible storage partition (also called the "virtual SD" by some), which is /data/media. That one partition, that's it. No other partitions are touched, including system (ROM) partition, as I already mentioned.
Now, there are options to wipe other partitions, such as in the Advanced Wipe options in TWRP. If you select the system partition, than that will wipe the ROM. But again, its a completely different option and partition than internal storage.
If I wipe the OS completely, would I still be able to access the device with adb? Or would wiping /system definitely get rid of all possible malware?
TheLeshii said:
If I wipe the OS completely, would I still be able to access the device with adb?
Click to expand...
Click to collapse
You should be able to use adb while booted into TWRP. Fastboot commands will work without OS (boot into bootloader-fastboot mode).
TheLeshii said:
Or would wiping /system definitely get rid of all possible malware?
Click to expand...
Click to collapse
"Definite" is a tough term. In the grand scheme, in theory you can have malware on your phone and computer from any number of sources. But its a matter of probability. I'd say if you've already replaced your ROM, wiped user data, and you wipe internal storage; the probability of malware is rather low.
redpoint73 said:
"Internal storage" specifically just means the user-accessible storage partition (also called the "virtual SD" by some), which is /data/media. That one partition, that's it. No other partitions are touched, including system (ROM) partition, as I already mentioned.
Now, there are options to wipe other partitions, such as in the Advanced Wipe options in TWRP. If you select the system partition, than that will wipe the ROM. But again, its a completely different option and partition than internal storage.
Click to expand...
Click to collapse
Sorry to ask again, seems I have to do it because my internal storage is almost full because of unnecessary "things".
So if I wipe the internal storage from TWRP, it will not affect the ROM, etc? So I don't need to flash any ROM again after wiping the internal storage?
Thank you, sir!
pryg said:
Sorry to ask again, seems I have to do it because my internal storage is almost full because of unnecessary "things".
So if I wipe the internal storage from TWRP, it will not affect the ROM, etc? So I don't need to flash any ROM again after wiping the internal storage?
Click to expand...
Click to collapse
ROM is on the "system" partition, which is completely separate from internal storage. You will only wipe the ROM if you specifically choose to wipe the system partition in Advanced wipe options.
You will however, lose all personal data on internal storage if you wipe it, including TWRP backups. So its advised you copy TWRP backups to your computer or removable SD before wiping. You should always have a known good TWRP backup available, in my opinion.
ROM zips also take up a lot of space. If you've been doing a lot of ROM flashing you might clear up your storage problem simply by moving unneeded TWRP backups and ROMs to your computer.
redpoint73 said:
ROM is on the "system" partition, which is completely separate from internal storage. You will only wipe the ROM if you specifically choose to wipe the system partition in Advanced wipe options.
You will however, lose all personal data on internal storage if you wipe it, including TWRP backups. So its advised you copy TWRP backups to your computer or removable SD before wiping. You should always have a known good TWRP backup available, in my opinion.
ROM zips also take up a lot of space. If you've been doing a lot of ROM flashing you might clear up your storage problem simply by moving unneeded TWRP backups and ROMs to your computer.
Click to expand...
Click to collapse
Thank you, sir. Where can I find the TWRP backups?
pryg said:
Thank you, sir. Where can I find the TWRP backups?
Click to expand...
Click to collapse
TWRP>Backups>Serial number
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.