Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
anil76
Old
#1  
Senior Member - OP
Thanks Meter 13
Posts: 183
Join Date: Feb 2012
Location: Delhi
Default [Q] how to clean '/' after multiple flashings

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 ?
 
scubadude
Old
#2  
Senior Member
Thanks Meter 128
Posts: 404
Join Date: Feb 2012
Location: Cape Town
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
-------------------------------------------------------------------------------------------------------------------------
Samsung Galaxy S3 i9300 - Stock; Samsung Galaxy S i9000 - CM10.1, Semaphore
Samsung Galaxy Tab 10.1 P7500 - CM10.1; Google Nexus 7
-------------------------------------------------------------------------------------------------------------------------
 
upichie
Old
#3  
upichie's Avatar
Senior Member
Thanks Meter 233
Posts: 1,156
Join Date: Nov 2010
Location: Regina, Sask
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.
 
anil76
Old
#4  
Senior Member - OP
Thanks Meter 13
Posts: 183
Join Date: Feb 2012
Location: Delhi
Quote:
Originally Posted by scubadude View Post
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
I understand sd card formatting & WIPE (data, cache & dalvik). But what exactly is init'd and ns tools ? how do I do this ?
 
anil76
Old
#5  
Senior Member - OP
Thanks Meter 13
Posts: 183
Join Date: Feb 2012
Location: Delhi
Quote:
Originally Posted by upichie View Post
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.
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 ?
 
scubadude
Old
#6  
Senior Member
Thanks Meter 128
Posts: 404
Join Date: Feb 2012
Location: Cape Town
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
-------------------------------------------------------------------------------------------------------------------------
Samsung Galaxy S3 i9300 - Stock; Samsung Galaxy S i9000 - CM10.1, Semaphore
Samsung Galaxy Tab 10.1 P7500 - CM10.1; Google Nexus 7
-------------------------------------------------------------------------------------------------------------------------
 
upichie
Old
#7  
upichie's Avatar
Senior Member
Thanks Meter 233
Posts: 1,156
Join Date: Nov 2010
Location: Regina, Sask
Quote:
Originally Posted by scubadude View Post
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
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.

The Following User Says Thank You to upichie For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more