How to restore device after wiping internal storage

Hey Guys

I tried yesterday to encrypt my device (galaxy J500FN) and I got the impression my device was stuck in some loop, because every couple of minutes my device was rebooting and I had to enter my PIN-code, and this was going on all afternoon. So after having been busy for hours (seriously) I was getting tired of it and I decided to see what I could do to change the pattern, whenever I got into TWRP after rebooting again. I was fully aware that had the risk of resetting to factory settings, but I had made a backup before entering the process, so it didn’t seem to be a big deal to me.

However, I am starting to believe a made a big mistake at that time, because now my device is entering TWRP whenever I boot the device. So I thought I could solve the issue by copying the e-image into internal-storage and then go through the installation-process again, but it seems my internal storage is wiped entirely. When I plug in my device by usb into desktop or laptop I can’t find my internal storage, and also in TWRP it says my internal storage is 0 Bit.

So it seems I seriously screwed up.

I have to admit I don’t entirely know what I am doing, but


*could somebody please roughly outline the steps I have to go through to bring my device back to life (assuming this is still possible, because I like to stay positive)?

thank you in advance

Go to TWRP / Wipe menu.
format data (left side bottom) EDIT: I mean ‘RIGHT’ side :wink:
Reboot to TWRP
push e.zip to your device
flash e.zip with twrp install menu
reboot
and hope, everything will work again

EDIT: by the way. This: ‘When I plug in my device by usb into desktop or laptop I can’t find my internal storage, and also in TWRP it says my internal storage is 0 Bit.’ is, because your /data is enrypted. And that’s why the new e-install fails. With format data as described above it should work,

2 Likes

Hi, hi, hi, I’m having dĂ©jĂ  vu [left site - right site].
A little bit of fun is necessary. And you understand him, don’t you @harvey186 
 No offence!

Ups, sorry was standing in front of a mirror :joy:

I have the same device and know how to make the encryption work on Samsung devices when it doesn’t work.

  1. Have you tried Wipe > Advanced wipe > Select dalvik, cache, data, internal storage, system > And swipe to wipe ? Does it work or is there some red errors ?

  2. When you start the encryption process I guess your phone will directly show the “e” bootlogo and ask for the PIN code, and your phone won’t be encrypted. Is that correct ?

really ??? I think that’s no good Idea !!! Wipe / format data, yes, aber not ‘internal storage’

Could be that ny inforamtions are old, but I have learned: ‘never wipe internal storage’

I’ve always wiped Internal Storage. Since we don’t want to keep any personal data I don’t see why it’s bad.

Hello Harvey (and everybody else!),

I hope you are still reachable. :pray: Your description seems to relate exactly to my error. I can no longer mount the /data partition, and I have the described boot loop (I can still draw the unlock pattern).

Also, TWRP now starts in recovery mode. If I perform the wipe now, will my personal data be preserved? I’m a bit stuck on that.

Thank you very much for any help!!!

Jan

Info: I also didn’t do anything special with the phone before the phone bricked into this state 
 I am very confused, why this happend in the first place. :o

Hallo Harvey,
ich hoffe du bist noch erreichbar. :pray: Deine Beschreibung scheint sich auch genau auf meinen Fehler zu beziehen. Bei mir lÀsst sich die /data partition auch nicht mehr mounten und ich habe den beschriebenen Bootloop (das Entspeermuster kann ich noch einzeichnen).
Auch TWRP startet jetzt im Recovery Modus. Wenn nun den Wipe durhfĂŒhrt, bleiben dann die persönlichen Daten erhalten? Da stehe ich gerade auf dem Schlauch.
Vielen Dank fĂŒr jede Hilfe!!!
Jan

I am very new to this forum (not new to eos). I hope I don’t do a mistake!
Many thanks for any help!!! I pray for not having to loose my data. :confused:

In the first post here @renax attempted to encrypt his phone 


What happened for you before this fail? 
 or was it spontaneous?

Which phone, /e/OS and Android version are you using?

In the case that the main /e/OS system fails to boot then we expect to see Recovery as fallback.

Now you can simply use TWRP to re install /e/. TWRP has an install option, or you can use adb sideload.

1 Like

Hi @jan545651, welcome to this Forum.

@Harvey186 is not anymore active here


in TWRP, “Wiping” the /data partition will preserve the called “internal_storage” (mounted in /data/sdcard)
when “Formating” /data will also erase the “internal_storage”.

1 Like

Hi aibid,
thank you so much for your reply! I guess you are years ahead of me. I just start trying to understand the concept after all.

I replaced the e-recovery with TWRP, like you suggested! And it’s possible to boot into TWRP.
It’s a Samsung Galaxy S9+.
And now I fear there might be a reason why all this happened also!
First: I received a “system storage full warning” the same day, but did not have the time to deal with it.
Second: I now understand that E-OS (per default?) encrypts the storage (wow 
 actually I never “wanted” that (I have no top-secret stuff x))

I guess the problem is: I guess I switched the phone off to save battery and after restarting it now trys to decrypt, but stops because the memory is full. :dizzy_face: :face_with_peeking_eye:

Could that be? :hushed:

When I want to do a Backup with TWRP - it says “failed to mount storage” - Backup failed.

When I log into the phone with adb–> the folders seem empty and I have very limited commands.

Good situation: I have a second S9 Phone (with e-os and working!) and here everything is exactly the same (no backup with twrp). But as soon as I enable adb via developer option 
 access to the files is possible via adb and then suddenly the shell is also able to do more commands. :pray:

Hi Piero!
thank you so much for your reply! This might be exactly the thing I am missing here. I wiped the cash and Dalvik cash via TWRP. But I am afraid if I wipe Data than a lot might be destroyed.
So my pictures will stay intact with " Wiping /data" ? But the apps will be wiped? :open_mouth:

I researched further in this wonderful place and found this thread : How to mount encrypted /data partition in recovery mode? - #13 by 2t8

I try to understand what went on there but, it seems it could be my error also. Not sure.

It has been reported before that a user can easily be overtaken by this warning. I think this is the problem to solve.

Loosely speaking, the phone requires some “headroom” to restart. So if that required headroom exceeds the free space then system will fail to start and Recovery will start instead.

(One reason the the phone might suddenly overfill could be that some automatic backup occurred.)

I think that trying to understand as much as you can of the “encrypted /data partition” thread which you linked above is the way to go.

Good luck.

2 Likes

This topic was automatically closed after 31 days. New replies are no longer allowed.