How to Completely Wipe for a Clean Install - Nexus 6 Q&A, Help & Troubleshooting

I want to wipe as much as possible before clean installing a ROM. I've been using this guide.
Basically what I do is format data in TWRP and then:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
then:
fastboot flash bootloader
fastboot flash radio
fastboot flash recovery
after that:
reboot into TWRP and flash the ROM's zip
Is this a good method of wiping everything before a clean install?

enginuity2 said:
I want to wipe as much as possible before clean installing a ROM. I've been using this guide.
Basically what I do is format data in TWRP and then:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
then:
fastboot flash bootloader
fastboot flash radio
fastboot flash recovery
after that:
reboot into TWRP and flash the ROM's zip
Is this a good method of wiping everything before a clean install?
Click to expand...
Click to collapse
It's much easier to just wipe everything but internal storage in TWRP and then flash zip. No need for fastboot.

RatchetPanda said:
It's much easier to just wipe everything but internal storage in TWRP and then flash zip. No need for fastboot.
Click to expand...
Click to collapse
What would that leave behind? Apps?

enginuity2 said:
What would that leave behind? Apps?
Click to expand...
Click to collapse
It leaves behind absolutely nothing except your internal storage. I will go over the partitions in TWRP.
system - all the system stuff - wipe this
data - all your apps, wipe this
internal storage - things in your SD card ie. your pictures you don't want to wipe this. it has no effect on a ROM.
cache dalvik&ART- you want to wipe this

Related

Formatting Cache Partition

How do I format my fastboot cache partition? Every other time I need to enter recovery, it can't, and I need to connect my phone to a computer and 'fastboot erase cache'. I believe if I could format the partition, it could fix the problem.
bloodrain954 said:
How do I format my fastboot cache partition? Every other time I need to enter recovery, it can't, and I need to connect my phone to a computer and 'fastboot erase cache'. I believe if I could format the partition, it could fix the problem.
Click to expand...
Click to collapse
You need a Folder with fastboot.exe, AdbWinApi.dll, and AdbWinUsbApi.dll
Then you open a cmd window, and navigate to the Folder. Then you type fastboot erase Cache.
I also had the Problem, that i couldn't enter recovery. It said entering recovery, and then simply rebooted. What helped me was simply re-flashing the recovery. I hope that helps you.
That's the problem, it happens ALL the time. I need to FORMAT, not ERASE my cache. I believe the formatting is screwed.
BUMP

USERDATA erase...

Long story short... My USB port is dead on my Nexus 6. I flash everything in TWRP such as roms, kernels and modems (YAY for the ability to do so). I am wanting to wipe everything in my phone to start fresh. Let's say I did a factory reset to the phone (wiped everything except userdata), got my rom to boot and then went into recovery to wipe my userdata partition only, would my phone go ahead and rebuild the partition on successful boot?
Thank you in advance!
thawte said:
...Let's say I did a factory reset to the phone (wiped everything except userdata), got my rom to boot and then went into recovery to wipe my userdata....
Click to expand...
Click to collapse
Wiping a partition in twrp will show a.o. the message 'formatting...'. The partition is already build but empty.
NLBeev said:
Wiping a partition in twrp will show a.o. the message 'formatting...'. The partition is already build but empty.
Click to expand...
Click to collapse
Ah gotcha. Also the rom will still boot with empty USERDATA? Just making sure it does not have important files for boot...
thawte said:
Ah gotcha. Also the rom will still boot with empty USERDATA? Just making sure it does not have important files for boot...
Click to expand...
Click to collapse
Wiping data in recovery shouldn't affect the system or booting.
But, personally, I'd take a full nandroid backup before anything. If you can't plug in to a pc and use fastboot to fix anything serious, you should be playing it very safe. :good:
Darth said:
Wiping data in recovery shouldn't affect the system or booting.
But, personally, I'd take a full nandroid backup before anything. If you can't plug in to a pc and use fastboot to fix anything serious, you should be playing it very safe. :good:
Click to expand...
Click to collapse
Doesn't the nandroid backup store to userdata?
Sent from my Nexus 6 using Tapatalk
thawte said:
Doesn't the nandroid backup store to userdata?
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
Data in recovery and userdata aren't the same. There's no "userdata" in twrp. (unless the newest twrp has changed?)
Userdata is apps, data and internal SD storage. You use fastboot typically to erase userdata.
You use twrp to erase data, and internal storage, separately.
Edit: and yes, it does store to userdata. But you can't erase userdata without a PC. Just erase data in twrp, and leave internal storage alone.
Or wipe it all, but without access to a PC, you could not fix the phone if anything goes wrong. That's why I'd keep a full nandroid backup on the device.

Phone memory disappeared after installing TWRP & custom ROM

Please Help,
I recently rooted my phone and flashed it with TWRP 3.0.0 recovery where I instilled Ressurection Remix Rom
Before flashing ROM, i followed these steps:
1 Unlock the bootloader
2 Flash custom recovery TWRP 3.0.0
3 Select ‘wipe data / format to delete encryption
4 Subsequently Install ZIP with Custom ROM
5 Subsequently Install GAPPS
The installation completed succesfully and after reboot i face following problems:
1. the internal Memory became much less I have 53 GB instead original 64.
That seems really weird to me since custom ROM is about 500MB and GAPPS are only 150 MB.
If I go to the file Manager on the Phone, PC or TWRP recovery I see that the total available space is only 53GB (((
Tried to put ORIGIAL ROM through TWRP recovery - although ROM space stays at 53GB(((
Tried to Flash ORIGINAL ROM through MI-FLASH-MODULE - however I cannot - gives me a fault ...
One more thing i have noticed is when i'm in TWRP recovery and try to install a new zip, I can see all the folders which my phone memory had; however I cannot see those files through any file manager. Why is it visible at that time? - could these files take extra 11GB? how to delete them?
Please HELP it is the first phone I rooted in my life and I really don't know it further
You have to format data in twrp
giardux91 said:
You have to format data in twrp
Click to expand...
Click to collapse
1. Just went to FASTBOOT where I did the following:
fastboot erase misc
fastboot erase recovery
fastboot erase boot
fastboot erase system
fastboot erase cache
fastboot erase userdata
2. Secondly through FASTBOOT I flashed TWRP recovery again
3. Thirdly in TWRP recovery went to WIPE and formated disc, but still my memory is only 53 GB.....(((
Where am I loosing 11 GB or ROM memory?
Please help
dual system partition ??
d.lnk said:
1. Just went to FASTBOOT where I did the following:
fastboot erase misc
fastboot erase recovery
fastboot erase boot
fastboot erase system
fastboot erase cache
fastboot erase userdata
2. Secondly through FASTBOOT I flashed TWRP recovery again
3. Thirdly in TWRP recovery went to WIPE and formated disc, but still my memory is only 53 GB.....(((
Where am I loosing 11 GB or ROM memory?
Please help
Click to expand...
Click to collapse
What 11 GB? On the official global stable I have 57.84 GB in total. You probably never going to have more than 53 GB on a custom rom.
abyssq said:
What 11 GB? On the official global stable I have 57.84 GB in total. You probably never going to have more than 53 GB on a custom rom.
Click to expand...
Click to collapse
Hi all,
since It is the first root - could you explain it to me why do I have 53GB instead 64GB?
Is there any option to have 64GB rom instead 53GB?
I guess 500 MB custom rom is smaller than 1.2GB Xiaomi stock.
thanks

I wiped all and have only TWRP, bootloop (please help)

Hello, i wiped today by missclick all data i had, system, dalvik, cache, data and internal storage.
All i have is just TWRP, how to send any package with example CM to phone and flash it via TWRP to boot phone?
Mount USB storage, then transfer the .zip file of the ROM you want, then flash it.
Phalcore said:
Hello, i wiped today by missclick all data i had, system, dalvik, cache, data and internal storage.
All i have is just TWRP, how to send any package with example CM to phone and flash it via TWRP to boot phone?
Click to expand...
Click to collapse
Google sideload Rom and try it.
I made The same, after wipe i could not Mount my PC so i sideloaded the Rom via adb. Try to Flash different TWRP Version or plus in Power on off during loop
Still, if after trying a usb mount and/or adb sideload and it doesn't help you, you can always download the fastboot package for your device and flashing it using fastboot manually or using Mi Flash
Just connect your phone to your computer and copy over the .zip file of the ROM that you want to install. Also, don't forget to flash GApps (as a .zip from TWRP)
Tap on "Install"
Find the .zip that you want to flash
Now swipe to confirm.
Now flash the GApps package you downloaded (only for Stock ROMs if I'm not wrong.)
Now wipe Dalvik Cache
And Reboot into system
If you just want to install MIUI then download MiFlash from here. Now go over here and follow the instructions to flash the Fastboot ROM of your choice.

Fastboot vs TWRP

I've found two ways of wiping and reinstalling my rom. One way uses fastboot and the other TWRP recovery. I'd like to find out how they correlate with each other.
Method 1: Fastboot
Format data
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash recovery recovery.img
Transfer rom zip files and install them
Method 2: TWRP
Simply format data and wipe every checkbox
Transfer rom zip files and install
What are you specifically looking to find? TWRP probably just issues the fastboot commands.
You don't need to flash the bootloader, modem, or recovery unless their are new ones available. Flashing them again is just redundant and a waste of time. Personally I only use fastboot to flash my bootloader,modem, or new version of TWRP. I use TWRP for literally everything else. You can wipe the partitions easier and quicker than using fastboot, or you can format data and completely nuke the phone and disable encryption. I'm not sure why you're asking how they correlate, I'm pretty sure it's common sense. If you erase a partition in fastboot, it's the exact same thing as wiping the partition in TWRP.
Also if you want to reinstall your ROM why are you wiping your whole internal storage? This is pretty much never required unless you want to free up space or decrypt the device. If you just wipe every partition but internal storage, you can keep local files (like Titanium Backup, pictures, music, any files you have on there, etc..). Then when you flash the ROM, it's still a clean flash because your system, data, cache, and boot partitions are already wiped.
The most important thing for me is that with Twrp-recovery, there is no other device needed; PC etc.

Categories

Resources