[Q] MotoX DEV factor reset; lose TWRP, SuperSU - Moto X Q&A

Question if I do a factor reset on my MotoX DEV Ed. 4.4.2 updated with unlocked bootloader, TWRP, SuperSU will I need to reinstall TWRP and SuperSU or will I retain TWRP and SuperSU?

A factory reset just wipes /data (via recovery). It doesn't do anything to recovery or to /system. Put those two together and you have your answer.

CartlandSmith said:
And when you have TWRP installed, it doesn't even completely wipe data since your Nandroid backups survive a factory reset. I just did one and was surprised to see that.
Click to expand...
Click to collapse
"Data" in this case is the /data partition. Backups are stored on the SD card, which is a separate partition.
Sent from my Nexus 10 using Tapatalk

CartlandSmith said:
thanks I did eventually figure that out. So /data is apps, settings, contacts, texts, call logs. Anything else?
Click to expand...
Click to collapse
Correct.
Sent from my XT1060 using Tapatalk

kbluhm said:
"Data" in this case is the /data partition. Backups are stored on the SD card, which is a separate partition.
Sent from my Nexus 10 using Tapatalk
Click to expand...
Click to collapse
No it isn't. The /sdcard is /data/media. The reason that TWRP and CWM do not format this during a factory reset is that they are setup not to. They don't actually format when you do it, they do a "rm -rf" of everything except /data/media, unless you select the option to wipe everything, in which case, they actually format it.

Related

[Q] script for wiping tablet for a real clean install

Hello,
I was wondering if such a thing as described in subject exists.
I am looking for something which wipes everything but the CWM bootloader and the sd card directory.
The option is already there in cwr
Sent from my Sensation using xda premium
Is it cenwesi? I know the wiping section, but for instance there's no option to format or resize the /recovery partition for example.
goenieg said:
Is it cenwesi? I know the wiping section, but for instance there's no option to format or resize the /recovery partition for example.
Click to expand...
Click to collapse
if you format the recovery you would lose CWM. A data wipe should be suffient, if not plug it into a computer and delete everything on the "sdcard"
bdfull3r said:
if you format the recovery you would lose CWM. A data wipe should be suffient, if not plug it into a computer and delete everything on the "sdcard"
Click to expand...
Click to collapse
thanks, I now have 13 Gb available, is the rest taken by the recovery partition? is resizing an option?
(pls forgive me for being ignorant
I think the devs would have to put a wipe script in their ROMs so the user doesn't have to do it manually. At least that's what the devs at my smartphone's forum (Vibrant) do. Albeit, sometimes it is best to do some manual cleaning, and TWICE at it (the system isn't infallible).

[Q] How to wipe Data partition after it's been encrypted?

Hey guys,
My work switched to Google Apps for their email so i wanted to test it out on my phone. Doing so required them to encrypt my phone. What this appears to have done is encrypt the data partition. So now when i go into (TWRP) recovery and try to do a backup / wipe / or anything else, it says it is "Unable to mount /sdcard" I'm unable to do a factory reset of any kind so i'm essentially stuck on this rom (ARHD) until i can figure out how to wipe data and get the /sdcard to be not encrypted. Does anyone have any ideas? I'm imagining that with the modified recovery not being able to access the data partition that i'm going to have to do some adb type stuff?
Please help! I want to keep flashing new roms!
Anyone??
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Guich said:
I think you can't decrypt your data partition...
Did you try to wipe your data partition with the latest TWRP?
Click to expand...
Click to collapse
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
jrun said:
That's the thing, the recovery can't mount /sdcard so wiping isn't an option from recovery
Click to expand...
Click to collapse
Hi! Only TWRP recovery can solve your issue just do this...
Boot to TWRP recovery->Wipe
From there there are 2 options the left is the advance wipe and on the right is Format Data
Just select the format data button and it should reformat the whole data partition.
1st one would prompt so many errors and reformat then reformat it again 1 time and it should fully reformat your phone.
In theory it should reformat data partition even when encrypted but just in case it fails and I won't be able to go back to this thread just boot in bootloader and type
"fastboot erase userdata"
Well none of that works. TWRP doesn't support decryption yet for this device.
sevenalive said:
Well none of that works. TWRP doesn't support decryption yet for this device.
Click to expand...
Click to collapse
What I instructed basically doesn't decrypt the partition. It reformats it.
Riyal said:
What I instructed basically doesn't decrypt the partition. It reformats it.
Click to expand...
Click to collapse
I know what you instructed, it doesn't work. Only way I got it to work. Flash the stock recovery. Boot into system. Take off the encryption, phone reboots and removes the encryption, data is formatted. Then flash TWRP again.
I basically ran into this exact problem. I was hoping that I'd still be able to back up the encrypted device, but forget about it. What a pain in the ass.
Someone should make add something to the guides about how encrypting your device makes nandroid backups impossible.

Best way to wipe fresh and restore?

I am having some wacky issues with my Moto X. I am on a dev edition with bootloader unlocked and rooter on 4.4.2. What would be the easiest most effective way to wipe and then restore my apps and what not?
reno55 said:
I am having some wacky issues with my Moto X. I am on a dev edition with bootloader unlocked and rooter on 4.4.2. What would be the easiest most effective way to wipe and then restore my apps and what not?
Click to expand...
Click to collapse
Boot into TWRP, select Wipe, then advanced wipe. Then check dalvik cache, data and cache. If you want your sd card wiped, too, select internal storage.
DO NOT WIPE SYSTEM UNLESS YOU KNOW WHAT YOU ARE DOING.
I would recommend fxz save data it resets your whole system like its fresh out of the box except your data so all your apps are still there. This will hopefully fix any wacky behavior. After the fxz reinstall twrp or whatever recovery you use then root. If you have fonts or xposed installed you will have install the fonts again. With xposed all you have to do is turn it on since you didn't wipe data it will reinstate the changes.
Sent from my XT1080 using xda app-developers app
What is fxz?
Sent from my XT1053 using Tapatalk
NightThyme said:
Boot into TWRP, select Wipe, then advanced wipe. Then check dalvik cache, data and cache. If you want your sd card wiped, too, select internal storage.
DO NOT WIPE SYSTEM UNLESS YOU KNOW WHAT YOU ARE DOING.
Click to expand...
Click to collapse
If I do this will all my apps and SD card files be there?
Sent from my XT1053 using Tapatalk
reno55 said:
If I do this will all my apps and SD card files be there?
Click to expand...
Click to collapse
if you wipe internal storage, you will lose your SD card files, pictures, music, videos and any other content you store on your internal sd card. If you wipe data, you will lose your apps, texts messages, call logs, system settings and contacts. But I thought you wanted to wipe your apps?
If you don't want to wipe your apps, try wiping just dalvik cache and cache and see if that helps before you wipe data.
---------- Post added at 07:51 PM ---------- Previous post was at 07:49 PM ----------
reno55 said:
What is fxz?
Click to expand...
Click to collapse
fxz = fastboot xml zip file

Noob Question. How to flash from Internal Storage?

This is my first phone that only has only internal storage. I need to double check before flashing any custom roms. Is there a partition on the phone that you guys save the custom roms to or does it not matter. I was thinking about saving it to the DCIM folder since its easy to find. My fear is that the rom will get erased when we clear the cache throught Teamwin recovery. Btw my phone is bootloader unlocked, rooted and has tw recovery installed. Tia.
Just copy it to the internal storage on the phone. TWRP does not erase internal storage when you factory reset.
Sent from my XT1095 using Tapatalk
Custom recovery do not wipe /data/media on factory reset, which is where "internal storage" is located. But you can wipe it with the "Format Data" option.
customervalued said:
This is my first phone that only has only internal storage. I need to double check before flashing any custom roms. Is there a partition on the phone that you guys save the custom roms to or does it not matter. I was thinking about saving it to the DCIM folder since its easy to find. My fear is that the rom will get erased when we clear the cache throught Teamwin recovery. Btw my phone is bootloader unlocked, rooted and has tw recovery installed. Tia.
Click to expand...
Click to collapse
Even I had a similar issue. I've never had a device without a SD card.
So if I flash twrp and then a custom rom do I lose things like photos,media on my phone?
Sent from my XT1095 using XDA Free mobile app
You only lose data if you unlock your bootloader. Or if you format the data partition. Flashing a rom and factory reset via TWRP does not erase your files.
Sent from my XT1095 using Tapatalk

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.

Categories

Resources