Hay.
how i can format my nexus one or clear its all earlier data . I also have 8gb sd card
waiting for reply. Thanks
Uh... do you mean a factory reset cause that is pretty easy just go to settings -> privacy -> factory reset this will wipe everything from your internal storage except the ROM and updates so you will stay on the same version that you are running now. This will not delete anything on the SD card so if you want to do that just put it in your computer and format it from there.
storage
Hay
can u more define.
is factory rest bracke my root
If by that you mean will it unroot you, then no you will stay rooted even if you factory reset.
There are two different main partitions in the phone (for partitions, think different drives under windows). The first being the /system partition. Everything in the /system partition is readable only. You are not able to modify anything in there (with a standard setup... we will delve a bit into this later). The other partition is the /data partition, which is read/write. This is where every app that you install is located (with a few exceptions which I will note below). When you do a factory reset/data wipe, it will just wipe out that /data partition so all your apps and data are gone (including any system settings.
The exception to the rules are for rooting, and certain flashable zips that put apps in the /system partition (like the google apps zip if you are running a custom ROM). So when you rooted, it put everything required for root into the /system partition (by changing it to read/write using root permissions). So if you do the factory reset, it will wipe the /data directory along with the .android_secure folder on the root of the sdcard (which is where all your apps are stored when you store apps on the sdcard).
Since the factory reset doesn't include the /system partition (otherwise you would be left without an OS to boot into), your root will remain, and otherwise, it will be just like it was when you first started up the phone.
If you want to remove root, you will have to flash a ROM (most likely a stock Android version) that doesn't include root/superuser permissions.
Related
As stated in the title, does flashing a new ROM erase data on the built-in flash drive such as contacts, apps, appdata, music, videos, pictures etc?
I'm rather new to ROM flashing.
short answer: Yes with an If, long answer: No -- with a But...
When flashing a new ROM to an Android phone its a good idea to do as its creator has advised and wipe data/factory reset and wipe dalvik cache all via ClockworkMod recovery, that way there is no additional bloat ware or old system data to gum up the works,, anything stored on the phone (contacts/system data) is erased anything on the 'internal storage' (8GB or so on the XL) or memory card is spared, so anything backed up to there will be safe
Its worth making note that when first installing a ROM, most if not all work on A2SD/ADSD+/+ etc, this is where your given the option to store app data on the memory card, in devices where you can take out the memory card you will need to format it (via ClockWorkMod recovery) and sort out the size of your 'hidden' EX3/4 partition that app data is stored on. formating and partitioning yor memory card wipes everything on it so back it up to a PC before doing anything!
Additional Note: Since the XL has internal storage make sure you get everything you want off it first then when we have CWM working on the XL format the crap out of the internal storage and have fun!
DanTehMan01 said:
short answer: Yes with an If, long answer: No -- with a But...
When flashing a new ROM to an Android phone its a good idea to do as its creator has advised and wipe data/factory reset and wipe dalvik cache all via ClockworkMod recovery, that way there is no additional bloat ware or old system data to gum up the works,, anything stored on the phone (contacts/system data) is erased anything on the 'internal storage' (8GB or so on the XL) or memory card is spared, so anything backed up to there will be safe
Its worth making note that when first installing a ROM, most if not all work on A2SD/ADSD+/+ etc, this is where your given the option to store app data on the memory card, in devices where you can take out the memory card you will need to format it (via ClockWorkMod recovery) and sort out the size of your 'hidden' EX3/4 partition that app data is stored on. formating and partitioning yor memory card wipes everything on it so back it up to a PC before doing anything!
Additional Note: Since the XL has internal storage make sure you get everything you want off it first then when we have CWM working on the XL format the crap out of the internal storage and have fun!
Click to expand...
Click to collapse
Ahhhh I see. So if I want to flash a new ROM, I have to back up everything on my own then manually re-enter them.
Thanks for enlightening.
Pretty much yeh, always a good idea to manually do a backup every now and again,, once you have your ex3/4 partition apps data will be restored when you reinstal the app, also Titanium Backup w/root permissions on a fully ROMd device will restore data in the same way too (if you backup with root access the first time etc)
How do I "clean" my phone after flashing different roms. I explored the contents of the root directory ('/') and I could find the files/directories which I suspect are from earlier roms that I had used.
I thought flashing stock rom through ODIN would delete everything related to previous rom but looks like that is not the case. Should I use reparttition option in ODIN with pit file to achieve this ?
What i do when i get to this point is copy everything off internal sd card onto a folder on my pc and format internal sd card. Then do all the normal clear data, cache, dalvik, init'd and ns tools and finally flash new rom...
Sent from my GT-P7500 using Tapatalk 2
You'll want to go into CWM prior to flashing and format /system as well as 'wipe data/factory reset' (this will format the rest). Optionally you can format the sdcard, but with the above you'll have a clean system.
scubadude said:
What i do when i get to this point is copy everything off internal sd card onto a folder on my pc and format internal sd card. Then do all the normal clear data, cache, dalvik, init'd and ns tools and finally flash new rom...
Sent from my GT-P7500 using Tapatalk 2
Click to expand...
Click to collapse
I understand sd card formatting & WIPE (data, cache & dalvik). But what exactly is init'd and ns tools ? how do I do this ?
upichie said:
You'll want to go into CWM prior to flashing and format /system as well as 'wipe data/factory reset' (this will format the rest). Optionally you can format the sdcard, but with the above you'll have a clean system.
Click to expand...
Click to collapse
Thanks..I believe format /system will format /system (i.e. cleaning up system directory in root '/'). Does it mean that I don't have any other leftover in the root directory ( '/') ? Every thing that a rom & kernels install will be wiped after formatting /system ?
If you don't format sd card you still going to have those left over folders and files from various roms and programmes you have installed and removed. This stuff isn't necessary to remove but thought that is what you were asking about.
Sent from my GT-P7500 using Tapatalk 2
scubadude said:
If you don't format sd card you still going to have those left over folders and files from various roms and programmes you have installed and removed. This stuff isn't necessary to remove but thought that is what you were asking about.
Sent from my GT-P7500 using Tapatalk 2
Click to expand...
Click to collapse
Essentially, /sdcard is the only thing you don't need to format. Apps store files here, but they aren't within the system and won't affect performance if they're left over. You can manually delete them if you no longer have the app, or you can backup things to keep and then format it as well.
Otherwise, you'll want to format everything (except for boot).
Init.d is a folder which contains scripts that run at boot. Wiping this prevents problems that may occur from leftover scripts. NSTools is an app that has settings that run at boot, such as overclocking, undervolting, etc. It is also advised to wipe these settings as to avoid conflicts when flashing new kernels, ROMs, etc.
But formatting /system and wiping data/factory reset (which formats the rest of the Androids operating system) will allow you to have a clean install of any ROM. The leftover app files on /sdcard are negligible and can be deleted.
Now with the release of many JB leaks for our Galaxy Note, more and more people are starting to flash custom ROMs into their devices. However, many don't do a proper clean-up / wipe of their devices before doing so, complaining about supposed "bugs" that in fact are not real bugs, but just incompatibilities with previous app data and config left from the previous ROM or improperly restored from backups (TB etc.).
So, after facing that myself with the first ROMs I flashed, reading a lot of tips from the senior members, and experimenting different approaches, I came up with a method that I always follow before flashing a new ROM, which gives me less or no issues at all.
Pros: you minimize the chance of having issues when flashing a new ROM.
Cons: you have to manually reinstall your apps (can be somewhat automated from Google Play) and reconfigure everything.
Pre-reqs: I'm assuming you have CWM installed and know how to use it, and are not a complete noob. If you don't, search the forums and read the guides. Read this guide fully and make sure you understand everything before proceeding.
IMPORTANT: ONLY wipe your device if you have a SAFE (BRICK-FREE) KERNEL. Check your kernel and search the forums. Don't proceed if you are not sure! I'm not responsible for any bricks, unexpected issues that can happen to you or personal data loss because you forgot to backup that! If you want to stay safe, don't want to experiment with your cell phone, it's critical you have it working everytime, stay with the official Samsung ROMs updates you get OTA and don't proceed with this how-to.
How-to:
1) Boot into recovery and perform a full backup (a.k.a. nandroid) to your internal or external SD card.
2) Reboot, and create backups of personal data needed from your apps in your internal or external SD card. For instance, I backup data from apps which are not cloud-based; they usually have a "backup" menu for that.
3) Plug your device into your computer, and copy everything you need from your internal and external SD cards (including the backups done in 1) and 2)). Don't forget your pictures and MP3 files.
4) Delete any apps and data from your external SD card. Leave it as clean as possible (it's OK to leave personal data such as MP3s, pictures etc.).
5) Copy the ROM you are about to flash to your EXTERNAL SD Card (don't copy to internal, because we are going to wipe it).
6) Boot into CWM Recovery and do the following wipes:
6.1) Wipe data / factory reset
6.2) Wipe cache partition
6.3) Advanced -> Wipe dalvik cache
6.4) Mounts and Storage -> Format /system
6.5) Mounts and Storage -> Format /preload
6.6) Mounts and Storage -> Format internal SD card (make sure you know if your internal SD card if /emmc or /sdcard; see below!)
7) Install Zip -> Flash ROM from your external SD card.
8) Wipe cache partition again.
9) Advanced -> Wipe dalvik cache again.
10) Reboot
11) Don't restore anything from Titanium Backup. Reinstall and reconfigure everything from Google Play. I never tried but I think that if you just restore user apps, it should work. Just never restore system apps and data. The backups you created in step 2) and copied to your computer in step 3) can be safely restored from within the apps themselves.
Now you may ask why we format the internal SD card. Many apps store their configuration and app data there, so this way we ensure no old data and config are there which may be incompatible with the new ROM. In fact it might not be that important, since it's only related to user apps, but I prefer to clean everything before flashing a new ROM.
How to find if your internal SD card is mounted on /emmc or /sdcard in CWM Recovery:
1) Boot into CWM Recovery.
2) Install Zip -> Choose zip from internal sdcard. In the top you can see where yours is mounted (/emmc or /sdcard).
3) This is the partition you should format in step 6.6. Pay attention to not format the external SD card, because the ROM zip file is there!
If you still have issues after flashing a new ROM, try to reflash it without any wipes (i.e. just do step 7 again).
Hope it can help people with their flashing!
Good job
Is it any better to just install user apps from google play and then restore just the data from TB?
Sent from my GT-N7000 using xda app-developers app
allansy said:
Is it any better to just install user apps from google play and then restore just the data from TB?
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
No..the main purpose of the thread is to remove the incompatible app data and system data
Useful.
Sent from my GT-N7000 using xda premium
dbolivar said:
How-to:
6.1) Wipe data / factory reset
6.2) Wipe cache partition
6.3) Advanced -> Wipe dalvik cache
6.4) Mounts and Storage -> Format /system
6.5) Mounts and Storage -> Format /preload
6.6) Mounts and Storage -> Format internal SD card (make sure you know if your internal SD card if /emmc or /sdcard; see below!)
7) Install Zip -> Flash ROM from your external SD card.
8) Wipe cache partition again.
9) Advanced -> Wipe dalvik cache again.
10) Reboot
Click to expand...
Click to collapse
6.2 ---> unnecessary, because factory reset wipes user data and cache
6.6 ---> how on earth does formatting internal SD card help flashing any Rom?
8) ---> unnecessary, because your cache is already wiped
9) ---> see above
6.2) True, thanks for pointing out.
6.6) Some apps, including ones that usually give strange issues between ROM flashes like SNote, leave data there which may cause incompatibilities with a different version. This incompatibility is just a guess; as I said in the original post, it may not be that necessary to format the internal SD card, but I prefer to make sure there is no old data at all floating around, and this recommendation can also be useful when people are going to sell their devices (many think that just a factory reset is enough).
8) and 9) Is it possible that a new ROM can come with stuff in cache and dalvik cache, say, from the developer testing/cooking environment? If it is, can be useful to clean it again after flashing. Otherwise, I agree, it can be skipped.
Yeah total clean scenario is best. In my opinion. So also SD, but never efs
Sent from my GT-N7000 using Tapatalk 2
I too do things that are not necessary, I have a ritual when doing a deep clean lol
It involves things like the above method, but i do it twice.. No harm in that is there !
azzledazzle said:
I too do things that are not necessary, I have a ritual when doing a deep clean lol
It involves things like the above method, but i do it twice.. No harm in that is there !
Click to expand...
Click to collapse
Wel, better safe then sorry. Totally clean just feels right
Sent from my GT-N7000 using Tapatalk 2
Thank you very much. I will do this like you say.
I have CWM v6.0.1.2 and I don't have format/ preload. What can I do?
You can try to proceed without formatting it, or you can first flash a kernel with a more recent CWM. Always a safe kernel, of course. After flashing it, you can just select "reboot recovery" from your current CWM to boot into the new CWM. I'm not sure if the absence of /preload is due to an old CWM, or it's because you don't have a /preload partition. Anyway, trying a newer CWM won't harm.
i follow this guide , considering that i'm a noob it mean that is written really really clear. Thanks for all your job . i have a clean cooked rooted cell now.
error preload
Hello, I got error when formatting preload
it is said "make_extf4fs failed on/dev/block/mmcblk0p9
and when i'm trying to format/scard it pop up some type format
"deafult
"exfat
"fat
bla bla bla
so i choose default, am i right to choose it?
what should i do?
What device, what recovery, what rom?
dbolivar said:
flashing!
Click to expand...
Click to collapse
Hey bro,
i forgot to do step 9
9) Advanced -> Wipe dalvik cache again.
Phone is working fine, but just curious. will it have any effect ? or will it cause any problem later ?
OK other phone I had has external SD card. When I wiped data it wiped internal SD completely. Since turbo has no external SD, will it wipe completely or just Android file data and preserve other files on internal SD. If it does wipe internal SD completely how would you flash ROM? Thanks for any advice.
newbe1droidx said:
OK other phone I had has external SD card. When I wiped data it wiped internal SD completely. Since turbo has no external SD, will it wipe completely or just Android file data and preserve other files on internal SD. If it does wipe internal SD completely how would you flash ROM? Thanks for any advice.
Click to expand...
Click to collapse
That depends on what kind of wipe you do. If you do a factory reset in TWRP, it will not wipe your user data (downloads, music, everything else in /data/media/0 or /sdcard). However, if you select Format Data, or you pick Internal Storage in the advanced wipe menu, all of your user data will be wiped. Usually, a factory reset is all you need after flashing roms, so you don't have to worry about losing photos/music/etc.
Great thanks for the fast reply. OK other phone was sgs3. Sometimes when flashing and then running new ROM it seemed the settings stayed the same as previous ROM. Devs would have you format data for clean install. How would that work on this droid turbo?
I also wiped data and it wiped my internal storage. I thought maybe I had wiped internal storage accidentally or did something else wrong but this leads me to believe I didn't do anything wrong. Back to the previous version that worked for us? (I think it was 2.8.7)
Edit: I just read that choosing to format data will also format internal storage, but a factory reset which "wipes data" does not touch the internal storage. This is a little confusing if you aren't familiar with how everything is partitioned. Is internal storage actually on the data partition?
Sent from my XT1254 using Tapatalk
If I have the ROM and gapps on internal SD and format data I loose ROM and gapps right? Then how would you install ROM? Second if I delete Android file on internal SD would that make it a clean install? But other files would still remain. Just trying to understand so I don't brick or can't get ROM on. Thanks
SpyderPride said:
I also wiped data and it wiped my internal storage. I thought maybe I had wiped internal storage accidentally or did something else wrong but this leads me to believe I didn't do anything wrong. Back to the previous version that worked for us? (I think it was 2.8.7)
Edit: I just read that choosing to format data will also format internal storage, but a factory reset which "wipes data" does not touch the internal storage. This is a little confusing if you aren't familiar with how everything is partitioned. Is internal storage actually on the data partition?
Sent from my XT1254 using Tapatalk
Click to expand...
Click to collapse
Yes, the internal storage is on the data partition. When you do a factory reset with TWRP and you read the script as it executes, it says something like "wiping /data without wiping /data/media." Doing the factory reset wipes everything on /data except /data/media, which is where your user data lives. So what gets wiped is all of the user apps and the data generated by the system apps, but your user data is preserved.
It makes sense that wiping data would wipe everything. I think having separate boxes for data and internal storage is to account for someone who might install an older version of android that is partitioned differently. I can't remember when the change happened, but at one point, the user data and app data were kept on separate partitions. I think that user data lived on /sdcard and apps lived on /data. That's why you see the /sdcard folder as a symlink when you go exploring with a root browser. It's symlinked to /data/media/0 to maintain backwards compatibility with older apps that are expecting /sdcard to exist.
Thanks st33v. My last phone had a /sdcard partition separate from /data so I think that is where the misperception came from. It also had /sdcard2, which was an actual SD card.
Sent from my XT1254 using Tapatalk
Yep my thinking too. You guys are great! Cleared it up.
If you wipe all your files simply use twrp and connect it to the PC. You can drag the files over for flashing.
mrkhigh said:
If you wipe all your files simply use twrp and connect it to the PC. You can drag the files over for flashing.
Click to expand...
Click to collapse
Awesome I was wondering if you could do that...
I'm panicking very much right now.
I did a big, big stupid and accidentally wiped my entire /data partition, including /sdcard (!!) in TWRP 3.0.4.1 while attempting to change the filesystem of my /data partition from F2FS to EXT4. I did a full backup of my phone, including /data partition (but excluding /data/media/0/ which is the location for /sdcard of course) on my phone prior to attempting to change the filesystem.
I didn't think that this would also wipe /sdcard, and ALL MY FILES INCLUDING MY BACKUP...
I'm frantically searching through Google as we speak for guides to clone these formatted sectors over USB (I'd imagine using ADB shell) to a PC and use Windows file or partition recovery tools to try and save every, if not most files.
Please lend me your knowledge and links to fixing this issue, Android community. <3
In older Android versions the /sdcard partition was it's own partition, which is why I didn't think of copying all my files over to a PC before making changes to /data.
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
OcazPrime said:
well, when you wipe data from any partition in twrp it sort of resets all space to be overwritten. The data that is marked for overwrite doesn't remain when you full wipe. Since you changed the file system, the data was removed and overwritten by the wipe with blank space.... i hope you had at least some of it backed up on your pc. I never use those apps personally, i always hard backup all my things with a drag and drop onto my pc. I highly recommend it, saves you a disaster. Im very sorry.... i hope you didnt lose anything really important.
Click to expand...
Click to collapse
Heh, that's exactly what happened. I'm gonna attempt this guide: https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Basically try to use "dd" to make a RAW copy of "dev/block/dm-0" which according to the mount command I ran in TWRP's terminal shell, is what block /data is used on OnePlus 3T (OOS 4.1.3).
Wish me luck.