Delete all the folders in the root folder? - Android Q&A, Help & Troubleshooting

Hey.
I've got a question. If I delete all files in the root folder (/ deepest subfolder), what would happen? e.g. /system, /sys, /vendor etc.
If this results in big trouble? Or can I even clean up my phone this way and install all things new (Rom etc.)?
Maybe a stupid question

Cic3ro said:
Hey.
I've got a question. If I delete all files in the root folder (/ deepest subfolder), what would happen? e.g. /system, /sys, /vendor etc.
If this results in big trouble? Or can I even clean up my phone this way and install all things new (Rom etc.)?
Maybe a stupid question
Click to expand...
Click to collapse
doing that will definitely brick you phone, to factory reset your phone you would format the /data partition or just use the reset option in settings

But sometimes i delete everything from internal and sd space and later, after installing a New Rom clean Master founds old trash =/

Related

[Q] clean up file system partition (xperia U)

Just did a fresh rom-flash (KA03) but seem to have 1.7gb of 1.9gb of the file system root filled up.
any one have any suggestions on how to find out which part of the file system partition can be cleaned up?
Is it possible with an android system to do a "format c" and start empty?
Ignore it.
K900 said:
Ignore it.
Click to expand...
Click to collapse
But why? (curiosity)
Kinda had issues with it when trying to flash a new rom, my partition was full and it wouldn't install anything anymore.
Didn't even show amount of free-space in the OS anymore, all settings I made were continuously lost.
had to delete all caches etc via recovery menu before I could do anything again.

[Q] Super wipe

Is there a super wipe script for the Atrix? I want to delete all directories before flashing a new rom, so there are no directories from uninstalled apps, logs, etc.
When flashing a new rom I do the typical - wipe Dalvik, erase boot, system, userdata, cache, webtop, and preinstall...
the two super-wipe scripts I have tried were not compatible and exited before executing, and I'm having difficulty finding one.
thanks in advance.
sixftsix said:
Is there a super wipe script for the Atrix? I want to delete all directories before flashing a new rom, so there are no directories from uninstalled apps, logs, etc.
When flashing a new rom I do the typical - wipe Dalvik, erase boot, system, userdata, cache, webtop, and preinstall...
the two super-wipe scripts I have tried were not compatible and exited before executing, and I'm having difficulty finding one.
thanks in advance.
Click to expand...
Click to collapse
What you normally do is just fine. But if you want something automated, try this.
Edit:
Great, now you got Super Bass stuck in my head!
thanks for your response.
the script you linked to looks like it is an automated version of the wipe process I was already doing.
this is nice, but I was looking for something that deletes absolutely everything. the wipe process I was using does not delete some directories leftover from uninstalled apps.
sixftsix said:
thanks for your response.
the script you linked to looks like it is an automated version of the wipe process I was already doing.
this is nice, but I was looking for something that deletes absolutely everything. the wipe process I was using does not delete some directories leftover from uninstalled apps.
Click to expand...
Click to collapse
Wiping with fastboot left directories behind? That is surprising. Where were the directories that weren't deleted and how did you determine that?
upndwn4par said:
Wiping with fastboot left directories behind? That is surprising. Where were the directories that weren't deleted and how did you determine that?
Click to expand...
Click to collapse
they were on the internal sdcard... some were directories that were leftover from uninstalled apps that I don't use anymore or don't restore after flashing new roms, some were temp directories that I created for music/movies/whatever. some of them were regular dirs, some were dirs with a period before the dir name (ExampleDir or .ExampleDir)
another example to overexplain, even the "Music" folder still has all my music after the full fastboot wipe process. I thought a super-wipe script would completely format/erase everything so when I flash the new rom and reinstall apps, there is nothing remaining except for the new rom OS files and apps. (so my music folder would be an empty dir after fastboot wipe and flashing a new rom, adobe wouldn't have files and folders everywhere until i restore it with TiBU, etc)
sixftsix said:
they were on the internal sdcard... some were directories that were leftover from uninstalled apps that I don't use anymore or don't restore after flashing new roms, some were temp directories that I created for music/movies/whatever. some of them were regular dirs, some were dirs with a period before the dir name (ExampleDir or .ExampleDir)
another example to overexplain, even the "Music" folder still has all my music after the full fastboot wipe process. I thought a super-wipe script would completely format/erase everything so when I flash the new rom and reinstall apps, there is nothing remaining except for the new rom OS files and apps. (so my music folder would be an empty dir after fastboot wipe and flashing a new rom, adobe wouldn't have files and folders everywhere until i restore it with TiBU, etc)
Click to expand...
Click to collapse
I have never seen fastboot commands for wiping sdcards. You can either delete the folders manually with a file explorer (recommended), factory reset (not CWM, but from within a GB ROM), or format the sdcards.
Neither fastboot nor any automatic "full wipe" scripts touch any kind of user storage. That includes both internal EMMC and external SD storage. Those are left entirely for the user to maintain.
answered my question, thanks! :good:
upndwn4par said:
What you normally do is just fine. But if you want something automated, try this.
Edit:
Great, now you got Super Bass stuck in my head!
Click to expand...
Click to collapse
+1
Personally did this about an hour ago and worked like a charm.

[Q] After CWM format of /data and /system, what happens to the other /directories?

Apologies for the very trivial question; I obviously do not know enough about linux.
But I'm puzzled because I keep on reading people who recommend a "full wipe" (before installing a new ROM) meaning a format of /cache (and dalvik cache), /data, /system.
They always say that by doing so the phone would be "fully wiped".
But if I browse through my (rooted) phone with any File Manager, I see a number of other directories under root: /dev, /acct, /d, /lib, /proc, /sys etc etc.
What happens to those after a format of /data and /system?
Do they get wiped as well?
...I'm just wondering about what data remains actually available in the phone after such a wipe...
degiovab said:
Apologies for the very trivial question; I obviously do not know enough about linux.
But I'm puzzled because I keep on reading people who recommend a "full wipe" (before installing a new ROM) meaning a format of /cache (and dalvik cache), /data, /system.
They always say that by doing so the phone would be "fully wiped".
But if I browse through my (rooted) phone with any File Manager, I see a number of other directories under root: /dev, /acct, /d, /lib, /proc, /sys etc etc.
What happens to those after a format of /data and /system?
Do they get wiped as well?
...I'm just wondering about what data remains actually available in the phone after such a wipe...
Click to expand...
Click to collapse
Ignore that just do a full wipe...wiping data/cache..etc.......do this if you're coming from a different rom...if you're updating the rom...there's no need to do full wipe
Click thank if this post is Useful/Reliable
---------- Post added at 05:49 PM ---------- Previous post was at 05:46 PM ----------
degiovab said:
Apologies for the very trivial question; I obviously do not know enough about linux.
But I'm puzzled because I keep on reading people who recommend a "full wipe" (before installing a new ROM) meaning a format of /cache (and dalvik cache), /data, /system.
They always say that by doing so the phone would be "fully wiped".
But if I browse through my (rooted) phone with any File Manager, I see a number of other directories under root: /dev, /acct, /d, /lib, /proc, /sys etc etc.
What happens to those after a format of /data and /system?
Do they get wiped as well?
...I'm just wondering about what data remains actually available in the phone after such a wipe...
Click to expand...
Click to collapse
Yr files like music/videos will remain in touch if it's in yr sdcard only..if it's on yr phone...just backup those files...of course app data will be deleted cos when u flash new rom u will have new data installed
Click on the thank button if this post help you
AshraafCulpo said:
Ignore that just do a full wipe...wiping data/cache..etc.......do this if you're coming from a different rom...if you're updating the rom...there's no need to do full wipe
Yr files like music/videos will remain in touch if it's in yr sdcard only..if it's on yr phone...just backup those files...of course app data will be deleted cos when u flash new rom u will have new data installed
Click to expand...
Click to collapse
Thanks!
To be honest I know that... I flashed multiple ROMs over the last few years...
What I was asking is:
1) Let's imagine I put an extra file in e.g. /sys
2) I wipe and format /data and /system
3) I load a new ROM
Will I still find my file in /sys?
I can obviously try and I will know the answer by myself...
degiovab said:
Thanks!
To be honest I know that... I flashed multiple ROMs over the last few years...
What I was asking is:
1) Let's imagine I put an extra file in e.g. /sys
2) I wipe and format /data and /system
3) I load a new ROM
Will I still find my file in /sys?
I can obviously try and I will know the answer by myself...
Click to expand...
Click to collapse
if you format anything you lose all data in that partition only .Unless the new rom is a wipe rom .
jje
JJEgan said:
if you format anything you lose all data in that partition only .Unless the new rom is a wipe rom .
Click to expand...
Click to collapse
...which means that files in /dev, /acct, /d, /lib, /proc, /sys etc etc keep on accumulating ROM after ROM.
This is interesting.
I have been changing from AOSP to custom-stock roms and I'm pretty sure files from both roms will now be in those extra partitions

[Q] A question about custom ROM's

Hello everybody, new user here. I've been lurking for quite a while now, and decided to register since I need a question answered.
So anyway, to the question.
I want to install a custom ROM, LiquidSmooth to be exact, and I want to know, do I need to keep the previous system, the stock system, from Samsung, or can I delete it, and install my ROM? Problem is, I've got no external SD card, and I'm kind of OCD about spacing, I've noticed that when I installed it over the stock ROM, it worked perfectly, only thing that bothered me is that the system emulates a folder for all files, the folders called 0 in a normal file browser, and emulated in others.
Any help would be greatly appriciated.
-RCencelj
RCencelj said:
Hello everybody, new user here. I've been lurking for quite a while now, and decided to register since I need a question answered.
So anyway, to the question.
I want to install a custom ROM, LiquidSmooth to be exact, and I want to know, do I need to keep the previous system, the stock system, from Samsung, or can I delete it, and install my ROM? Problem is, I've got no external SD card, and I'm kind of OCD about spacing, I've noticed that when I installed it over the stock ROM, it worked perfectly, only thing that bothered me is that the system emulates a folder for all files, the folders called 0 in a normal file browser, and emulated in others.
Any help would be greatly appriciated.
-RCencelj
Click to expand...
Click to collapse
Custom rom
it worked perfectly, only thing that bothered me is that the system emulates a folder for all files, the folders called 0 in a normal file browser, and emulated in others.
Yes that is correct
You can delete previous system
jje
flashing a rom wipes system automatically
That's good and all, but how do I go about doing that? Since I don't own or have an external SD card, and I would preferably delete (wipe) everything with TWRP, problem is, if I do that, I delete the file that's on the phone, the .zip file that you use to install the actual ROM, so, where do I put the file so that it doesn't get deleted when I wipe everything off the phone?
*Edit*: Well, if it wipes the system automatically, how can I make it, so that the 0 or 'emulated' folder doesn't exist, and it just stores everything like the default ROM from Samsung? If that's possible.
RCencelj said:
That's good and all, but how do I go about doing that? Since I don't own or have an external SD card, and I would preferably delete (wipe) everything with TWRP, problem is, if I do that, I delete the file that's on the phone, the .zip file that you use to install the actual ROM, so, where do I put the file so that it doesn't get deleted when I wipe everything off the phone?
Click to expand...
Click to collapse
Flashing roms wipes system not whole internal SD card.
You won't loose all files in the internal SD card unless you choose to format internal CD card in the recovery (not needed to flash new rom).
Regards
RCencelj said:
*Edit*: Well, if it wipes the system automatically, how can I make it, so that the 0 or 'emulated' folder doesn't exist, and it just stores everything like the default ROM from Samsung? If that's possible.
Click to expand...
Click to collapse
Firstly it overwrites system rather than wiping so sometimes you can end up with residual files causing problems, hence most devs recommend you format system before flashing.
Secondly the 0 folder is the equivalent on 4.2 roms of the root folder on older roms. You can delete everything outside of the 0 folder, or so I believe but if you successfully delete the 0 folder it will be recreated on the next boot.
Sent from my GT-I9300 using Tapatalk 2
ghostofcain said:
Firstly it overwrites system rather than wiping so sometimes you can end up with residual files causing problems, hence most devs recommend you format system before flashing.
Secondly the 0 folder is the equivalent on 4.2 roms of the root folder on older roms. You can delete everything outside of the 0 folder, or so I believe but if you successfully delete the 0 folder it will be recreated on the next boot.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
So, just so I know I understood you, the 0 folder is the actual system for 4.2.x Android systems, and it can't be deleted/replaced?
If so, can I delete everything in the previous folder, except the 0 folder, like the DCIM, music, etc. folders, and I'm assuming those were used by the previous system, the default Samsung ROM.
Also, to be sure, if I just do a factory reset and install the LiquidSmooth ROM, it should delete the previous system and all files should work correctly on the new ROM?
RCencelj said:
So, just so I know I understood you, the 0 folder is the actual system for 4.2.x Android systems, and it can't be deleted/replaced?
If so, can I delete everything in the previous folder, except the 0 folder, like the DCIM, music, etc. folders, and I'm assuming those were used by the previous system, the default Samsung ROM.
Also, to be sure, if I just do a factory reset and install the LiquidSmooth ROM, it should delete the previous system and all files should work correctly on the new ROM?
Click to expand...
Click to collapse
if you revert back from 4.2.1 / 4.2.2 to 4.1.2 and below
make sure you download the megawipe from below link then flash any ROM you want
flash the megawipe zip file totally clear all your content in internal storage = just like format windows
http://forum.xda-developers.com/showthread.php?t=1832326
Thanks everyone, I got it sorted out now.

Clean install

Hi, i bought my galaxy November 2012 and since then I've made about 30-35 installations of roms..I searched around the forum and it seems that there are leftovers from previous installations, also, in some posts there are scripts that can clean your device, but the download links are broken...Can I delete leftovers manually with a root explorer?
Also, I've noticed that odin has became extremely slow, yesterday i waited for it for 40 minutes, several times I decided that it was stuck....but it wasn't; can this slowness be related to files, left from previous installations?
I saw this app - "Root Cleaner", should I try it out?
How can I make completely clean installation so that nothing old survives? If I use pit. file and odin stucks, will I be able go in "download mode" and reinstall...?
Hope that you can direct me! Thanks.
P.S. I'm trying to be understandable, but my English is not exactly perfect,so don't get mad
Downloading of script can be done, the links are perfectly fine!
I recommend Hawkerpaul's Nuke script (warning: this will delete every thing on yor device!!!)
Do not under any circumstances use .pit files!! Only if you're absolutely 101% sure what you're doing - then you can use .pit files. And there's a splendid Odin guide made by XDA's Hopper8. here you can read about it.
TheMasterOfToast said:
Downloading of script can be done, the links are perfectly fine!
I recommend Hawkerpaul's Nuke script (warning: this will delete every thing on yor device!!!)
Do not under any circumstances use .pit files!! Only if you're absolutely 101% sure what you're doing - then you can use .pit files. And there's a splendid Odin guide made by XDA's Hopper8. here you can read about it.
Click to expand...
Click to collapse
I'm definitely not sure what I'm doing, so I won't use .pit files. So i got this one: http://forum.xda-developers.com/showthread.php?t=2100558
I'm a complete noobie, i've read about it, there are 4 scripts, i'm not sure which one to use...
GS2ROMWipe - This wipes pre-defined areas of your device without performing any backups beforehand.
GS2ROMNuke - This does everything a Wipe does, and also deletes the following Android/Application-related folders on the internal and external SD Cards.
GS2ROMReset - This performs a additional tasks on top of a standard factory reset for your current ROM. This is designed to return you current ROM to its factory defaults. You will not have to re-install your ROM after running this. Just reboot and you will enter the Android installation wizard as normal on the first run.
GS2ROMClean - This will remove the following known temporary and corrupt files and folders.
It will attempt to remove them from your internal/external SD card.
I will use Nuke.It says to run it only before rom installations,but how does it work? I go into recovery, install it and how do I run it?
umex said:
I'm definitely not sure what I'm doing, so I won't use .pit files.
Click to expand...
Click to collapse
Good choice, same as i would!
umex said:
GS2ROMNuke - This does everything a Wipe does, and also deletes the following Android/Application-related folders on the internal and external
...
I will use Nuke.It says to run it only before rom installations,but how does it work? I go into recovery, install it and how do I run it?
Click to expand...
Click to collapse
Okay, but keep in mind that this will delete everything even from your internal and external sd cards. So if you have anything of value, anything at all - back it up.
I suggest you download HC-kTool from play store. Back up /efs. Then the files that appear after the /efs folder backup - back them up to your PC or a cloud storage (eg. dropbox) If you want to know which files had been created, sort the files after date. (keep in mind that there will be folder created too and if you've chosen a 'folder come first' policy in your file explorer, those folders will appear after all the lonesome files)
Just to check. In my phone (i just ran it again) there will be two files and three folders containing the necessary files to perform a /efs backup.
Now that /efs is backed up - you are good to go. Just 'flash' the nuke zip file as you would flash any ROM/kernel
Good luck.
TheMasterOfToast said:
Good choice, same as i would!
Okay, but keep in mind that this will delete everything even from your internal and external sd cards. So if you have anything of value, anything at all - back it up.
I suggest you download HC-kTool from play store. Back up /efs. Then the files that appear after the /efs folder backup - back them up to your PC or a cloud storage (eg. dropbox) If you want to know which files had been created, sort the files after date. (keep in mind that there will be folder created too and if you've chosen a 'folder come first' policy in your file explorer, those folders will appear after all the lonesome files)
Just to check. In my phone (i just ran it again) there will be two files and three folders containing the necessary files to perform a /efs backup.
Now that /efs is backed up - you are good to go. Just 'flash' the nuke zip file as you would flash any ROM/kernel
Good luck.
Click to expand...
Click to collapse
Thanks for the assistance! I ran the script through recovery and it "wiped" everything then it warned me to flash new rom.I did so, everything went OK , but it hasn't wiped the internal sd card, all my files are still there, i hope it has erased the leftovers from previous installations....Thanks again!
umex said:
Thanks for the assistance! I ran the script through recovery and it "wiped" everything then it warned me to flash new rom.I did so, everything went OK , but it hasn't wiped the internal sd card, all my files are still there, i hope it has erased the leftovers from previous installations....Thanks again!
Click to expand...
Click to collapse
It wont delete everything in sdcard. The system files will be there, but application data wont.
Glad it worked out!
PS. Don't say thanks - press it!

Categories

Resources