Lost some SDCard data after Flashing Custom ROM - Xperia Arc Q&A, Help & Troubleshooting

hello,
New to android
I have Flashed MIUI custom ROM on my ARC s.
After flashing done, I have lost some videos, movies, and some .apk files. On SDCard
Actually files didnt get deleted , showing 0 kb size files,
I didnt lost Images and videos captured by camera.
here is what i did before flashing MIUI ROM
wipe data/factory reset
wipe cache partition
wipe delvik cache
format /cache
format /data
format /system
format /sd-ext (i have 1gb ext2)
this is second time i lost data. please tell me where did i make mistake.??
2nd Q (important for me). please tell me how to clean install custom rom.
Thank you

Restore your /data partition backup through CWM.

Related

[Q] Please Help me!!

I tried to wipe everything off my phone. I booted into Clock recovery. This is what I did: Wipe data/factory reset
wipe cache partition
Wipe Dalvik cache
Format /data
format /system
format /cache
format /emmc
format /sdcard
Because I want to get rid of everything inside my phone and then I sell it to someone.
I downloaded some roms and put it into my sd card. But obviously, what I get is "Couldn't open directory. No files found"
I tried backup and restore and install zip from sdcard. But the result is the same.
My phone(Galaxy s2 t989) is rooted
I think I screw everything up
Please help I would really appreciate it.
READ READ READ is your best friend! I think what you are looking for is http://forum.xda-developers.com/showthread.php?t=1513359
Good luck
When you formatted /system you wiped your Android os files. You need to flash back to stock...follow the instructions doormankenneth posted.
Sent from my SGH-T989 using XDA

Problems doing an Factory Reset

Hello, i have an small issue with my Samsung Galaxy Nexus witch is i m unable to perform an Factory Reset using the Recovery Mode (ClockworkMod v6.0.1.0) or the using the Backup & Reset > Factory data Reset option in Android 4.1.2
The ClockWorlMod gives the following error's on the Data/Factory Reset:
-- Wiping Data --
Formating /data
Error Mounting /data
Skipping Format
Formating /cache
Formating /sd-ext
Formating /sdcard(.android_secure
Error Mounting /sdcard(.android_secure
Skipping Format
Data Wipe Complete
1 Note i have my Partition Encrypted and i think this is why i m having this issue but i m unable to to remove the the encryption if i cant do an factory reset. Anyone could help me ? thanks in advance
EDIT: The phone is fully functional everything works fine....
CrioStage said:
Hello, i have an small issue with my Samsung Galaxy Nexus witch is i m unable to perform an Factory Reset using the Recovery Mode (ClockworkMod v6.0.1.0) or the using the Backup & Reset > Factory data Reset option in Android 4.1.2
The ClockWorlMod gives the following error's on the Data/Factory Reset:
-- Wiping Data --
Formating /data
Error Mounting /data
Skipping Format
Formating /cache
Formating /sd-ext
Formating /sdcard(.android_secure
Error Mounting /sdcard(.android_secure
Skipping Format
Data Wipe Complete
1 Note i have my Partition Encrypted and i think this is why i m having this issue but i m unable to to remove the the encryption if i cant do an factory reset. Anyone could help me ? thanks in advance
EDIT: The phone is fully functional everything works fine....
Click to expand...
Click to collapse
I am no expert... And I use TWRP (you can get by downloading goo manager from the market)
I did a system wipe...
Which deletes all contents from your SD including previous back-ups
(so back up everything to a harddrive 1st)
The I used wugfresh to put the stock software back on
Then I flashed my desired ROM (Mmuzzy)
Hobeycat said:
I am no expert... And I use TWRP (you can get by downloading goo manager from the market)
I did a system wipe...
Which deletes all contents from your SD including previous back-ups
(so back up everything to a harddrive 1st)
The I used wugfresh to put the stock software back on
Then I flashed my desired ROM (Mmuzzy)
Click to expand...
Click to collapse
Yeah wugfresh did the trick for me as well tvvm
Hobeycat said:
I am no expert... And I use TWRP (you can get by downloading goo manager from the market)
I did a system wipe...
Which deletes all contents from your SD including previous back-ups
(so back up everything to a harddrive 1st)
The I used wugfresh to put the stock software back on
Then I flashed my desired ROM (Mmuzzy)
Click to expand...
Click to collapse
System wipe only wipes the /system partition and doesn't touch the sdcard, for future reference. If your sdcard gets wiped to something must be wrong.

Mount and Storage - Format System, Data and Cache

I want to install a 4.3 ROM over my 4.2.2 ROM, in the instructions it wants me to do the following:
1. Wipe Data/Factory Reset + Wipe Cache partition. (I have done this before).
2. Mount System + Storage
Format System
Format Data
Format Cache.
(Haven't done this before)
3. Wipe Dalvik Cache (I have done this before)
So my question is what does step 2 do. I am scared it will wipe all my data like pictures audio files etc. that I want to keep.
Gaseous Anomaly said:
I want to install a 4.3 ROM over my 4.2.2 ROM, in the instructions it wants me to do the following:
1. Wipe Data/Factory Reset + Wipe Cache partition. (I have done this before).
2. Mount System + Storage
Format System
Format Data
Format Cache.
(Haven't done this before)
3. Wipe Dalvik Cache (I have done this before)
So my question is what does step 2 do. I am scared it will wipe all my data like pictures audio files etc. that I want to keep.
Click to expand...
Click to collapse
its alright to format /system, /data & /cache as long as you don't format the /sdcard, i always format /system /data even when i'm just updating the rom .. ^^
Just use factory reset in your custom recovery. It handles data and cache. You don't need to manually wipe system and you don't have to touch dalvik
Sent from my Galaxy Nexus

Unsure how to properly wipe without wiping internal storage

Hello all,
Sorry for this semi-noob question. I have had many android phones and rooted all of them but this is my first Nexus device. I've unlocked my bootloader and have TWRP installed and I'm ready to install a ROM. Unfortunately I am unsure of how I can do a full wipe without wiping my internal storage too.
On every other phone I have had, I would go to advanced wipe and then wipe system, data, cache and dalvik cache but I just did that and it wiped my internal storage :/
I had to flash the stock system image through ADB because ADB sideload wasn't working. Now I'm afraid to wipe system again before trying again because I feel like it will wipe my internal storage again. How can I wipe system properly before installing a new ROM?
Thanks!
Now the interesting question here is: What is internal storage?
You seem to think it is the entire emmc, including your system, cache and data partitions but that is not how that term is used.
As far as I have been able to figure this out "Internal Storage" in Android refers to the entire /data partition which in itself again is divided into a user accessible part where your photos, videos, files are stored ( /data/media and mounted as /sdcard/0 ) and the rest of the /data partition which is used for apps you install and their data. That part is not accessible to the user unless you have root.
Now, for 99% of all wipe operations all you need to do when installing a new rom is to wipe the data partition of all user installed apps and their data, dalvik and cache - also called a 'clean install'.
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
TWRP made this very easy: Enter the Wipe menu and swipe the button. Default is to wipe /data (without wiping /data/media), cache and Dalvik. Flash the rom - done.
berndblb said:
Now the interesting question here is: What is internal storage?
You seem to think it is the entire emmc, including your system, cache and data partitions but that is not how that term is used.
As far as I have been able to figure this out "Internal Storage" in Android refers to the entire /data partition which in itself again is divided into a user accessible part where your photos, videos, files are stored ( /data/media and mounted as /sdcard/0 ) and the rest of the /data partition which is used for apps you install and their data. That part is not accessible to the user unless you have root.
Now, for 99% of all wipe operations all you need to do when installing a new rom is to wipe the data partition of all user installed apps and their data, dalvik and cache - also called a 'clean install'.
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
TWRP made this very easy: Enter the Wipe menu and swipe the button. Default is to wipe /data (without wiping /data/media), cache and Dalvik. Flash the rom - done.
Click to expand...
Click to collapse
"Internal Storage" as I used the term refers to just the user accessible part of the data partition where (as you said) photos, files, etc are stored. On previous versions of TWRP for phones I have had, you could wipe system, date, cache, etc and it would always leave internal storage intact. Ergo, after wiping, you could navigate to your downloads folder and find the ROM you wanted to flash. The issue I had was that I wiped "system" using TWRP and it wiped my "internal storage", meaning my downloads and photos and everything - leaving me with no ROM to flash.
You answered my question perfectly toward the end with this
Any rom installer worth a damn will format /system before installing a new rom, so wiping /system is redundant.
Click to expand...
Click to collapse
I come from a series of phones where this was not standard behavior for ROM installers, so failing to wipe system would lead to a dirty flash and almost assuredly cause issues. Thanks for the input, I will just do a data wipe from now on.
You shouldn't count on roms wiping system automatically.
A well established rom like pure Nexus for instance does not wipe system at flashing, leaving it up to the user to clean or dirty flash.
Always read and follow the installation instructions that come with the rom and you should have little problems. If there aren't any instructions, stay away from the rom is my advice, especially of you are a new user.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
peltus said:
You shouldn't count on roms wiping system automatically.
A well established rom like pure Nexus for instance does not wipe system at flashing, leaving it up to the user to clean or dirty flash.
Always read and follow the installation instructions that come with the rom and you should have little problems. If there aren't any instructions, stay away from the rom is my advice, especially of you are a new user.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
Click to expand...
Click to collapse
Thanks, I'm not a new user by any stretch, just new to the Nexus 5x.
As to your question: go to the wipe menu in twrp. Then do an advanced wipe. Check every box except internal storage and wipe. Then proceed to flash your rom.
Click to expand...
Click to collapse
This is exactly what I did when it wiped the ROM file (and all photos/sms backups) from my internal storage. That's how I have always wiped before flashing a new ROM in TWRP and this is the first time it ever wiped my internal storage, hence my question. I think I'll just stick to ROM installers that perform a system wipe. I plan on running the odex stock based ROM I just installed for a while anyway.
The_mamba said:
Thanks, I'm not a new user by any stretch, just new to the Nexus 5x.
This is exactly what I did when it wiped the ROM file (and all photos/sms backups) from my internal storage. That's how I have always wiped before flashing a new ROM in TWRP and this is the first time it ever wiped my internal storage, hence my question. I think I'll just stick to ROM installers that perform a system wipe. I plan on running the odex stock based ROM I just installed for a while anyway.
Click to expand...
Click to collapse
Sorry for assuming you're a newby. Last time i wiped that way in twrp (June 2016) it left my SD card alone. Maybe you checked the wrong box?
peltus said:
Sorry for assuming you're a newby. Last time i wiped that way in twrp (June 2016) it left my SD card alone. Maybe you checked the wrong box?
Click to expand...
Click to collapse
No worries, I appreciate the help either way. I suppose it's possible I checked the wrong box but I am very diligent about that because I have REALLY screwed myself over with that in the past. I accidentally wiped internal storage once or twice on my HTC One and had to RUU back to stock, losing everything including root. Luckily recovery is quicker and easier on the 5x (and the phone is brand new so it had no pictures on it).
I'm afraid to try it again even with a nandroid since the recovery files or stored on internal storage so wiping that would leave me SOL too. Like I said, I'll probably just ride on this ROM until the Nougat or so and then make a full cloud backup before trying a full wipe again.
Wiping system did not erase your files. /system is read only, so you nor your apps can store anything there.
I respectfully disagree with @peltus. In those parts of XDA where I "grew up" a dirty flash is a rom flash without wiping data. And I would be grateful for a link to a rom where the installation script does not involve formatting or wiping /system.
I could be wrong but I believe TWRP's wipe of data is without data/media.
Internal Storage wipes the entire data partition.
One if these days with more time I'll give it a try
Sent from my Nexus 5X using Tapatalk
BONUS: What is a data/media device?
https://twrp.me/faq/datamedia.html
The relevant part:
Since /data/media is part of /data, we pretty much never actually format the data partition. Formatting data, of course, also removes the media folder that contains the internal sdcard. When you choose a factory reset [or wipe data], instead of formatting, we use rm -rf commands to remove all the folders except for the media folder so that we can remove all of your apps and settings while leaving your "sdcard" intact. In TWRP we also have a wipe internal storage option that rm -rf's the media folder and a "Format Data" option that formats to recreate the entire file system in case something goes completely wrong or to remove device encryption.
Click to expand...
Click to collapse
[ ] - added by me.

[Guide] What to wipe or format: the case of an upgrade or a completely different ROM

I feel like explaining this somewhat more extensively as it was not clearly documented somewhere. In the case of a totally new and different ROM (so not an upgrade to a newer version which the ROM developer stated as safe for upgrading), you should wipe the following partitions:
/system (where your ROM resides)
/data (without /data/media if you want),
/cache (probably not needed though as it does not contain a whole lot usually).
When upgrading, if deemed possible, you don't format anything, and flash the new ROM over the old one. In many ROMs, /system will usually still be erased/formatted by the flashing procedure. However, most ROMs automatically reinstall Gapps, root, F-Droid etc. through an addon.d script specifically designed for ROM upgrades, which is convenient when upgrading. When flashing a totally new ROM, erasing /system yourself is hence not strictly necessary, but to make sure the old ROM packages do not interfere with the new one through addon.d, it's best to erase it before flashing.
In TWRP, this formatting for a new ROM goes as follows:
You can simply perform a "factory reset" in TWRP (which deletes most of /data, the Dalvik cache in /data and /cache). Now your settings and apps are removed. Your user data in the internal storage is untouched, which is actually at /data/media, a.k.a. /sdcard where it is mounted too. Then format /system via advanced wipe.
For the same result, you can also just via the "advanced wipe" wipe data, Dalvik cache, cache and system.
Alternatively, choose "format data" (which then wipes /data completely, including internal storage (/data/media) as well as Dalvik cache) and wipe /cache and /system) via "advanced wipe".
For the same result, you can also just via the "advanced wipe" wipe data, Dalvik cache, cache, system and internal storage.
You can leave the other partitions (such as modem partitions, persist, preload (unless your new ROM uses it), EFS, boot (since the kernel is updated by your new ROM) and a few others). In fact, most of these you cannot even format using TWRP.
Note that a factory reset in a custom recovery is usually different from the factory reset in the stock recovery (confusing, I know): it only deletes /data (without /data/media) and cache. In the original recovery it formats /data completely (similar to the "format data" option in TWRP).
See also here and here.
BTW some people on this forum seem to think you should wipe things several times, like wiping the floors ...
Of course, that's nonsense. Flashing too: it should only be done once. These bits are digital people!

Categories

Resources