Related
Hello
I formatted /sdcard on recovery mode by mistake, was going to format /data, /system and /cache
now I lost all of my backup and ROM files and my N7 stuck at Google icon when reboot.
recovery and bootloader can still access....if that help.
Any way i can get my baby to boot up like it used to be? or How to put files back to N7? (maybe I can install the ROM if it's there?)
Thanks in advance >___<
First make sure you have the Nexus 7 plugged into a PC while attempting to start bootloader and choosing recovery. You might be able to do a factory reset from there. Wipe data, cache and dalvik. You may want to hit 'Fix Permissions' last just in case, then reboot. If you're familiar with ADB and fastboot you can find info on flashing stock images here http://forum.xda-developers.com/showthread.php?t=1907796. If neither of those helps you'll need to go to this post http://forum.xda-developers.com/showthread.php?t=1766475, download and install the toolkit and choose 'Flash Stock + Unroot' with the option 'Soft-Bricked, Bootloop' (assuming that is still the case) checked. It will ask which image to download, pick the latest (4.1.2). You shouldn't have to relock the bootloader. From there it's just like stock so play with it as you like, just watch what you're wiping, lol.
Thank you very much!!!!
everything work now.
I was playing around with kernels in fastboot the other day, and somehow my SD storage partition got all messed up. It's supposed to be 16GB, but it's only showing 5.8GB.
I ran the fastboot erase commands for boot, userdata, system, and cache, then flashed the jdq39 factory image. When I rebooted, the partition was only 5.8GB, and there were no files left on it.
I've tried formatting it in cwm recovery, but it just stays the same size. It's not showing any extra storage partition, but it almost feels like that's what happened somehow, and I just can't access the other partition. I'm also thinking that maybe the other partition I can't access possibly still contains my missing files, which I would love to recover, if possible, since I do have a nandroid on there I'd love to be able to restore!
I'm running UBUNTU and do not have windows, so if I need to do any terminal work I'm game...but I'm also a n00b, so please explain well
hp420 said:
I was playing around with kernels in fastboot the other day, and somehow my SD storage partition got all messed up. It's supposed to be 16GB, but it's only showing 5.8GB.
I ran the fastboot erase commands for boot, userdata, system, and cache, then flashed the jdq39 factory image. When I rebooted, the partition was only 5.8GB, and there were no files left on it.
I've tried formatting it in cwm recovery, but it just stays the same size. It's not showing any extra storage partition, but it almost feels like that's what happened somehow, and I just can't access the other partition. I'm also thinking that maybe the other partition I can't access possibly still contains my missing files, which I would love to recover, if possible, since I do have a nandroid on there I'd love to be able to restore!
I'm running UBUNTU and do not have windows, so if I need to do any terminal work I'm game...but I'm also a n00b, so please explain well
Click to expand...
Click to collapse
you might have to flash the stock system img via fastboot to fix it.
I've done a FULL flash...bootloader, radio, boot, system, userdata
http://forum.xda-developers.com/showthread.php?t=2033692
You'll either follow the steps in the OP or flash stock recovery and factory reset and clear cache.
Sent from my Nexus 4 using xda premium
OMG thank you!! This is exactly what I was looking for I knew there had to be one!
Had this fixed on my first one . Had to return it and I cant find how i fixed it. Rooted. TWRP gives error message cant mount data. I cant backup or restore. Can someone point me to the fix, please?
Please note any instructions contained within this post are to be followed AT YOUR OWN RISK. I am not responsible for data loss, device failure, or any other form of damages resultant from the below post.
Final Edit: Method below tested and working on my SM-T580. Please read entire post before making any device modifications.
The reason you cannot mount /data is because TWRP does not support Samsung encryption, and your /data partition is encrypted by default. To fix this, you must disable encryption and FORMAT (not just wipe) your /data partition. You will lose all data on your device by doing this.
To disable encryption you must flash this ZIP file by ashyx via TWRP. I will update this post momentarily with the link.
Edit: Procedure that worked for me is as follows: [YOU MUST HAVE A ROM FILE TO REINSTALL]
-oem unlock and flash twrp
-format data
-wipe cache, dalvik, system, and data
-back out to main menu and reboot recovery
-flash your rom of choice back onto the device, I personally am using Fenix v2 found on XDA
-flash ashyx zip *not sure if this is actually necessary but it couldnt hurt, I flashed this file at this time
-reboot system
-then reboot to recovery to flash xposed, sd patch, etc
-you will see that twrp successfully mounts /data
Good luck!
REtails said:
Please note any instructions contained within this post are to be followed AT YOUR OWN RISK. I am not responsible for data loss, device failure, or any other form of damages resultant from the below post.
The reason you cannot mount /data is because TWRP does not support Samsung encryption, and your /data partition is encrypted by default. To fix this, you must disable encryption and then FORMAT (not wipe) your /data partition. You will lose all data on your device by doing this.
To disable encryption you must flash this ZIP file by ashyx via TWRP. I will update this post momentarily with the link.
Edit: There you go, so to recap: backup important data, reboot to recovery, flash zip, reboot to recovery, format data, reboot to system.
Click to expand...
Click to collapse
NO joy. See my post in stock ROM above (below now I guess...)
tennessee_titan said:
NO joy. See my post in stock ROM above (below now I guess...)
Click to expand...
Click to collapse
What? Not sure what you meant but it seems there is more to it than this. For some reason my device is forcing encryption across all sorts of wipes and such so I am currently trying to figure this out as well, will update if/when I figure it out
Edit: got it, updating post and sending you a PM
I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
cyborgium said:
I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
Click to expand...
Click to collapse
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
spawnlives said:
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
Click to expand...
Click to collapse
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
cyborgium said:
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
Click to expand...
Click to collapse
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
spawnlives said:
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
Click to expand...
Click to collapse
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
cyborgium said:
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
Click to expand...
Click to collapse
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
spawnlives said:
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
Click to expand...
Click to collapse
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
spawnlives said:
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
Click to expand...
Click to collapse
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
cyborgium said:
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
Click to expand...
Click to collapse
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
spawnlives said:
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
Click to expand...
Click to collapse
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
cyborgium said:
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
Click to expand...
Click to collapse
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
spawnlives said:
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
Click to expand...
Click to collapse
I think that second thread you linked may have done the trick.
At first it didn't seem to help, but when I tried it again after reflashing everything, I am now able to mount /data.
I'm still in the dark as to why this happened and hasn't happened to anyone else other than the person who created that file, but either way, thank you very much for your help.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Try the modded twrp from nx thread
Hello,
So I tried to install LineageOS 17 (Android 10). And there were errors. So I decided to return to RR. And what i see is that the data is encrypted and I have to format my phone. When I click on this button phone restarts to recovery(orange fox) where I have to enter PIN. And everything is fine but in logs I see this:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
I can't use my device now. After booting to system same button and text appears. Please help
Update.
When I was writing this thread I couldn't find option Format Data but when I was searching in the recovery I finnaly found it. Now everything works fine
I don't think you can flash anything without first formatting the storage . This happened for me on Redmi6pro (sakura). That was the only option left for me that time.
hope you had a back up otherwise you will lost your files.
if you had a pin to unlock your phone put that ping in the box asking for decrypt the phone. if that doesn't work you may need to format data and reinstall.
If that's the case, restart into recovery (power+vol_up)
-go to manage partitions, format data partition.
-restart to recovery
-full wipe (data, dalvik, cache system)
-flash rom (can be the same) after a format and full wipe should work well i had lineage and was great.
-restart to recovery
- flash gapps and magisk if you like.
-restart into system.
Hope you get luck.,
Mr.Dogerrr said:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
Click to expand...
Click to collapse
If you this exact text, then you can pretty much say goodbye to the data from internal storage. At this point, there no way to rescue the files... Sadly, had the exact thing happen to me & I lost all my stuff