what exactly gets wiped when i wipe data? - Samsung Galaxy Nexus

Hello everyone,
after more then 2 years with my trusted N1 i finally had to move to a new phone because i broke the screen of my old one.
having the GN now for allmost a week, and within the first few hours of owning the device it got 3 OTA updates and is now at 4.1.1. i am quite happy with it but 2 days ago i startet messing around wiht it. so i ulocked the boodloader and rooted and got myself franco kernel on the GN.
as expected everything worked fine.
today i wantet to give some 3th party roms a try. i tried installing MIUI and euroskanks cm10. both with rom manager.
but on each of them i got in a bootloop after flashing, just showing the franco kernel boot animation.
i flashed both roms without wiping the data (just the cache)
i suspect that is my problem.
i am a little bit scared about the wipe data option for flashing new roms. on my N1 it worked fine since all my files on the sd card where not touched and i could get started allmost immediantly.
unlocking the bootloader of the GN wiped everything out off my phone and i had to copy it all back from a backup.
if i choose wipe data will that also (again) wipe my complete device or just the "OS part" and leave my data alone?
if it wipes everything how do i avoid having to make a backup of my data and restore it afterwards after each and every rom i flash?
i have noted the mnt/sdcard folder on my GN that (apparently) just links back to the root of the memory. what is the puropse of this folder? just to be compatible with "old" apps that insist on writing files to the SD-card or something else?
thanks for the info

no data from sdcard gets removed.
its basically a "NON REMOVABLE sdcard"... think of it that way.

patlabor said:
Hello everyone,
if i choose wipe data will that also(again) wipe my complete device or just the "OS part" and leave my data alone?
if it wipes everything how do i avoid having to make a backup of my data and restore it afterwards after each and every rom i flash?
i have noted the mnt/sdcard folder on my GN that (apparently) just links back to the root of the memory. what is the puropse of this folder? just to be compatible with "old" apps that insist on writing files to the SD-card or something else?
thanks for the info
Click to expand...
Click to collapse
1. It will wipe your "OS part" + apps. Will leave data in "sdcard" alone. Factory Wipe clears the virtual "sdcard"
2. Can't be avoided, I use Wugfresh's toolkit to make app backups a breeze. Takes a little more time than it used to when I had my OG Droid with a EXT partition but hey, at least you'll always have a current backup of your apps.
3. Yes. It'd actually be less obvious it's still called /sdcard/ if you weren't rooted and poking around . I believe JB switches this to sdcard0 now to account for devices that have external sdcards to be mounted as /sdcard1 and so on.

Ok, I guess I get it.
Just one more thing to make sure.
It looks like all my files are in the root of my phone and mnt/sdcard has just one folder but with the same files as the folder with the same name in my root.
When I wipe data now will it keep everything or just the files in my mnt/sdcard folder?

patlabor said:
Ok, I guess I get it.
Just one more thing to make sure.
It looks like all my files are in the root of my phone and mnt/sdcard has just one folder but with the same files as the folder with the same name in my root.
When I wipe data now will it keep everything or just the files in my mnt/sdcard folder?
Click to expand...
Click to collapse
Custom recovery (AKA not CWM or TWRP or whatever you're using) will wipe your SD card. Just remember that.
All the custom recoveries wipe /data/ while keeping /data/media/ (your sd card).
Nothing on your "SDcard" will be lost.

I'm in the same situation as the original poster and would like a "definitive" answer. CWM has both a factory reset and a format /data option (in a separate submenu). Which preserve the content of the virtual sdcard ? Which is the raccomended way to try out a JB rom? I have 10+ Gb of data in the sdcard and i would like to avoid moving everything forth and back via MTP protocol...
Thanks
Sent from my Galaxy Nexus using xda app-developers app

IF you are using CWM recovery, "wiping data" will erase the entire userdata partition EXCLUDING /sdcard. This means that everything under /data (except /data/media which = /sdcard) will be erased. This includes all apps you have installed in /data, and most data for those apps.
IF you are using a stock recovery, "wiping data" or "factory reset, will wipe the entire userdata partition, including /sdcard.
Wiping data or factory restore/reset/whatever does NOT touch the system partition or return the device to "factory condition". So if you have installed apps in /system or have root, the will still be there.

Related

[Q] How do I format the internal storage and flash with cwm

I've had a bit of a nightmare tonight, I rooted and cwm my nexus within the first hour of ownership and flashed modaco pauls rom however after a couple of days of messing around I found myself wondering how to format the internal storage but still be able to flash via cwm. Have poked around I've found you are able to push the rom via adb while in cmw so again no problem except selecting "wipe" from ics doesnt really format the partition the storage, while when the phone is running and plugged into the computer you seem to have a fresh storage area however the free space is still taking into account of old files. And when I went back to cwm it clearly still showed the old deleted files which seems strange. The only way i was able to clear everything was via the storage menu with ics deleting folders one at a time ?!
So my question is......
Which is the best way to format the internal storage area and once completed am i able to push my rom onto the phone and flash correctly?
Same problem here.
Even with wiping and formatting data, cache, system, dalvik cache and even a factory reset from the running Android, I still have old data from non-present apps in my app list.
Download the Super Wipe script from the Android Revolution HD thread, flash it in CWM and voila - completely formatted phone (bar the user data like pictures, music, etc)
Simplest way is to re-lock and re-unlock back the bootloader
Proyoyo said:
Simplest way is to re-lock and re-unlock back the bootloader
Click to expand...
Click to collapse
Will this has any effect on rom / root?
GBIC said:
Same problem here.
Even with wiping and formatting data, cache, system, dalvik cache and even a factory reset from the running Android, I still have old data from non-present apps in my app list.
Click to expand...
Click to collapse
Grab the Nexus Toolkit in the development section. It will do everything you are looking for plus more.

Will wiping out device wipe out the content in /sdcard/ ??

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

[Q] Cleaning my internal memory before ROM flash

I flash a lot of roms on my phone. Recently I noticed that there was a lot of left over programs and apps on my internal memory. I have nothing on the phone I want to keep that is not already backed up via TitaniumBackup.
What I would like to do, is wipe everything that I can without messing up partitions or Mount points or the needed stuff in ./data/media so I can flash a new room on a totally clean phone (except for the nessasary files needed like the data/media stuff and recovery stuff ect..)
Normally when I flash I do this: (in TWRP)
1. Nandroid backup
2. Wipe/factory restore
3. Wipe data and system again
4. Flash new ROM
5. Wipe devlik/cache
6. Reboot
When I finally get to the desktop I start up root explorer and look around my internal memory. This is were I still see a lot of old apps still sitting there. I want them gone. I'm afraid to wipe/format internal memory while in TWRP because I will lose everything right ? Even the stuff that is needed to boot the phone to recovery.
Any suggestions ?
Thanks
T-Mobile Samsung G S4
SGH-M919
TWRP v6.x.x.x
16 gig micro sd-card
Go in twrp and click wipe, advanced, and click everything. after wiping Mount the phone to PC via twrp and move the rom and kernel to sd card. Unmount then do the steps you usually do to install a ROM, including wipe.
~~~~~~~~~~~~~~~~~~~~~
I am always on the mobile app and am always 'trying' to help others and moderators on the forum and learning something new everyday. I make stupid posts sometimes, but I never repeat a mistake more than once. I may not be a developer, but I know alot of stuff, so feel free to messsge me any questions and I'll be happy to answer them to the best of my ability.
~~~~~~~~~~~~~~~~~~~~~
I'm starting a video game company with my friend where we will be making Android games. message me for more info or go here: http://forum.xda-developers.com/showthread.php?t=2290843
Thibor69 said:
I flash a lot of roms on my phone. Recently I noticed that there was a lot of left over programs and apps on my internal memory. I have nothing on the phone I want to keep that is not already backed up via TitaniumBackup.
What I would like to do, is wipe everything that I can without messing up partitions or Mount points or the needed stuff in ./data/media so I can flash a new room on a totally clean phone (except for the nessasary files needed like the data/media stuff and recovery stuff ect..)
Normally when I flash I do this: (in TWRP)
1. Nandroid backup
2. Wipe/factory restore
3. Wipe data and system again
4. Flash new ROM
5. Wipe devlik/cache
6. Reboot
When I finally get to the desktop I start up root explorer and look around my internal memory. This is were I still see a lot of old apps still sitting there. I want them gone. I'm afraid to wipe/format internal memory while in TWRP because I will lose everything right ? Even the stuff that is needed to boot the phone to recovery.
Any suggestions ?
Thanks
T-Mobile Samsung G S4
SGH-M919
TWRP v6.x.x.x
16 gig micro sd-card
Click to expand...
Click to collapse
If you have your TiBu backups, nandroids, and ROM zips, pictures, videos, etc already on your SD card; there is no harm in formatting your internal memory. You won't lose recovery, you won't have a problem with booting, nothing of that sort.
When I was running SynergyRom on my S3, wiping Internal memory was usually Always suggested because of the reasons you mentioned.
Move your Nandroid and files you want to flash to your extSdCard card for obvious reasons.
I have TWRP 2.5.0.2 as my Recovery, which has been running without issues for months.
Enter Recovery:
Press -
Wipe
Format Data
As a safety valve, you'll be asked to Type in Yes to continue this Internal wipe.
You'll retain the partitions you mentioned.
I think the above will get you to where you want to be.
You can always double check afterward as you've already done before.
Biker1 said:
When I was running SynergyRom on my S3, wiping Internal memory was usually Always suggested because of the reasons you mentioned.
Move your Nandroid and files you want to flash to your extSdCard card for obvious reasons.
I have TWRP 2.5.0.2 as my Recovery, which has been running without issues for months.
Enter Recovery:
Press -
Wipe
Format Data
As a safety valve, you'll be asked to Type in Yes to continue this Internal wipe.
You'll retain the partitions you mentioned.
I think the above will get you to where you want to be.
You can always double check afterward as you've already done before.
Click to expand...
Click to collapse
Just wanted to say good question and responses. Helpful.

completely wipe the phone?

Just wondering, as i'm probably selling my Galaxy S3 soon... what's the easiest way to completely wipe everything off the phone? Pictures, apps, documents.... everything? Will re-install a custom ROM after wiping.... just want to make sure all personal data is off the phone.
elementaldragon said:
Just wondering, as i'm probably selling my Galaxy S3 soon... what's the easiest way to completely wipe everything off the phone? Pictures, apps, documents.... everything? Will re-install a custom ROM after wiping.... just want to make sure all personal data is off the phone.
Click to expand...
Click to collapse
I imagine using twrp would be the best way. Not sure if there is another alternative. Maybe odin.
First before wiping system you may want to wipe internal storage (after backing up your internal storage to your computer or something first of course). Then boot up your current system and transfer a rom you want to install to your internal storage. Then reboot to twrp and wipe system, factory reset, cache and dalvik. Then install a rom fresh and then it should be ready to go. This is what I do after selling a device, before shipping to a customer.
.... wouldn't copying a custom ROM to the internal storage BEFORE wiping System and everything also erase the custom ROM i just transferred to the device?
And i mean wiping EVERYTHING. basically as if the phone was just taken out of the box, and unlocked, rooted, and custom ROM installed. No left over files whatsoever. Don't think wiping just System does that, does it? Wouldn't i do the "Wipe Internal Storage" or something like that? Think that's about what i did on my Motorola Atrix when i sold that.
* edit looking into the wiping system part to see exactly what it erases.
Wiping system, factory reset, cache and dalvik should erase everything except storage. You could wipe internal storage after you freshly install a ROM. But hopefully there are no errors, because you will have no files on storage if something had went wrong during installation. I would also have a ROM file on an external sdcard that you could plug in if you needed to.
You will probably want to leave one ROM file on the device for the person you are selling it to, just incase.
Sent from my Nexus 5
stelv said:
* edit looking into the wiping system part to see exactly what it erases.
Wiping system, factory reset, cache and dalvik should erase everything except storage. You could wipe internal storage after you freshly install a ROM. But hopefully there are no errors, because you will have no files on storage if something had went wrong during installation. I would also have a ROM file on an external sdcard that you could plug in if you needed to.
You will probably want to leave one ROM file on the device for the person you are selling it to, just incase.
Sent from my Nexus 5
Click to expand...
Click to collapse
Well, I am selling it with the 8GB Micro-SD card anyway, since i've got no use for it with the Nexus 5. And i believe that's what i did with the Atrix. Wiped storage/system/factory reset/cache. Pretty much everything that made sense to wipe.... and just kept the ROM on the SD card out of the phone, just to make sure i didn't accidentally wipe that somehow.
And i'll probably just do what i usually end up doing for stuff like this. Wipe everything, install the ROM and make sure it boots, and just shut it off when it comes to the initial setup screen.
Here are some useful links
http://forum.xda-developers.com/showthread.php?t=1823906
http://teamw.in/whattowipe
Sent from my Nexus 5

Unsure how to properly wipe without wiping internal storage

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.

Categories

Resources