So as the title says, I'm getting a "error occurred while restoring /data" message.
It all started when I received an MD5 mismatch error. I read some threads and was able to fix the MD5 mismatch using notpad++ and MD5 calc. It seemed that the data.img was the only one needing modification. After fixing the MD5, the restore process passed the MD5 check, however failed to restore data which I really need.
I've tried numerous backups. I've tried wiping all the cache's I could in CWM before creating backup. Nothing seems to work.
The kicker here, is that I have 2 backups nearly identical but only the earlier backup works when trying to restore. Now the only difference in the two backups are the offline map files I have installed for the app ForeverMaps.
I've had no problems restoring from backups before. I feel like the size of the backup may be the culprit. The backup size is about 2.3GB. But then again I don't understand why this would be an issue.
I'm running CWM version 4.0.0.4 and the ROM is a slightly modified stock rom for the galaxy tab 10.1. Honeycomb 3.1 I believe
balplaya4404 said:
It all started when I received an MD5 mismatch error.
Click to expand...
Click to collapse
If the checksum is incorrect, some data got corrupted somewhere. You can't just fix the checksum and expect the data to be correct thereafter.
Regards
Achim
Hmm...
Well is there a known issue with backups exceeding a certain size? I feel like this is where the error occurred in the backup process.
Related
Well, I get to join the ranks of the stupid. Ah well.
The objective: To "Re-build" a nandroid backup.
The cause: I wanted to use the new Netflix app, so I nandroided my Evil D 0.32 DHD ROM, downloaded Virtuous Fusion, went into recovery, and like the instructions said, wiped everything. In my tired state, I even did the SD card. Once done, I began to try to flash the new ROM, but could not find the zip. Cursing like a drunken sailor for forgetting to copy the zip file, I mounted the SD Card and my horror grew as I saw it was blank. Wiped.
Since then: I swapped my card with a spare, flashed a ROM, and began a recovery on the card. I got all 5 nandroids from the card back (at least I think I did)... but...
The issue: Each of the folder I recovered has 6 files inside: .android_secure, boot, cache, data, nandroid, recovery, and system. I rebooted into recovery, and tryto flash one. OFC, since they are no longer zips, it failed.
So I zipped one, and it fails as well. No error message just:
CWM Recovery .0.2.4
--Installing /sdcard/Nand1.zip
Finding Update Package
Opening update package
Installing Update
Installation aborted.
Root with gfree and eng hboot.
Ideas?
Just a quick bump and a status update...
Not sure why I was trying to flash backup when I needed to restore...
Anyways, I used the correct menu, restored a backup...
Good news is that 2 of the 5 backups restored no issue. Of the 3 dead ones, 1 was a stock backup, so I don't care about it. However, one of the other 2 is what I needed. (Meaning, the 2 that restored were old, and of the three ones that would not for MD5 issues, one I needed.)
So the question changes.
The 5 nandroids: 1 was stock, 4 were the same ROM, just taken at different points in time.
The reason 2 of them won't restore is failed MD5, which just means 1 byte (or more) has changed.
From what I know, the 6 files - .android_secure, boot, cache, data, nandroid, recovery, and system - all point to certain parts of the phone.
.android_secure - has to do with market from what I know.
cache - won't kill the phone if this is corrupt, cache will just rebuild.
data - the all important file. Your personal data is stored here. Apps, settings, etc.
nandroid - related to md5 and such? Not needed for apps/data
recovery - recovery image
system - the rom itself.
Now, if I am correct, if I restore a working nandroid, and then just the data from a dead nandroid, as long as the ROM was the same between the 2 of them, I should be golden?
right? And issues with this?
What are you worried about losing? Between Google sync and HTC sense sync you'll get most of the important stuff back.
Sent from my HTC Vision using XDA App
There are many apps which I no longer have a apk for that version (Soundhound? New version has permissions I don't want to give!) that I had there. And my TB backup was on the card as well...
So, anyone know if/how? In short: If I have a damaged nandroid and working nandroid of the same ROM, can I restore the data from the bad one to the good and how?
MordyT said:
So, anyone know if/how? In short: If I have a damaged nandroid and working nandroid of the same ROM, can I restore the data from the bad one to the good and how?
Click to expand...
Click to collapse
If you run an md5 of the data img you want, place that in the md5 file (included in the backup folder) it should restore properly. I've been in the same situation as you and that's what I did to fix it.
Sent from my HTC Glacier using XDA Premium App
Hi
When I attempt to make a backup using TWRP v2.3.2.3 from Matt's 1.20 Utility I get this message:
"[BACKUP STARTED]
* Backup Folder: /external_sd/TWRP/
E: Unable to locate sd-ext partition.
Updating partition details..."
It finishes almost instantly and under the white text "Backup Complete" at the top of the screen it displays in red Failed.
I have 100% battery charge
Stock 4.1.2 with out the latest OTA
I already made one successful backup right after installing TWRP v2.3.2.3 on my phone from Matt's Utility the other day.
Phone is Rooted utilizing Matt's Utility
Bootloader is unlocked (Matt's Utility)
Under Settings I have checked Force MD5 check on all zips. and Enable MD5 verification on backup files.
Under Mount Menu all but Mount System are checked.
I am attempting to save the backup to my External SD. But it also fails when I try the internal storage
I don't know if this is a major issue but my time zone doesn't select the proper time.
Under the Advanced tab I selected Fix Permissions and it still fails.
I haven't messed with much else because I'm not sure what they will do. ADB Sideload, Reload Theme etc,...
I find this extremely odd. I have used Hash-code's Safestrap 3.12 for nearly a year with flawless performance always made a back up when I needed it to. when I unlocked my bootloader i was under the impression that TWRP was way better than SS, but here I am having problems the second attempt at making a backup?
Does it only save one backup at a time?
Is there a setting that I need to adjust?
Do I need to update/Upgrade to a new version?
Is there a version of Safestrap users like me with an unlocked bootloader?
Why cant it find the ext partition the TWRP folder is there and even tho it fails it places an empty folder in the proper location with the name I gave to my failed backup?
My SD card is partitioned for use with Link2SD. But that was never an issue with SS or the first TWRP backup I made the other day.
I have plenty of space (42 GB) on my external. so that shouldn't be the issue.
I'm starting to miss Safestrap. But I really want this to work. Help please. Thank you.
SARM1084 said:
Hi
When I attempt to make a backup using TWRP v2.3.2.3 from Matt's 1.20 Utility I get this message:
"[BACKUP STARTED]
* Backup Folder: /external_sd/TWRP/
E: Unable to locate sd-ext partition.
Updating partition details..."
It finishes almost instantly and under the white text "Backup Complete" at the top of the screen it displays in red Failed.
I have 100% battery charge
Stock 4.1.2 with out the latest OTA
I already made one successful backup right after installing TWRP v2.3.2.3 on my phone from Matt's Utility the other day.
Phone is Rooted utilizing Matt's Utility
Bootloader is unlocked (Matt's Utility)
Under Settings I have checked Force MD5 check on all zips. and Enable MD5 verification on backup files.
Under Mount Menu all but Mount System are checked.
I am attempting to save the backup to my External SD. But it also fails when I try the internal storage
I don't know if this is a major issue but my time zone doesn't select the proper time.
Under the Advanced tab I selected Fix Permissions and it still fails.
I haven't messed with much else because I'm not sure what they will do. ADB Sideload, Reload Theme etc,...
I find this extremely odd. I have used Hash-code's Safestrap 3.12 for nearly a year with flawless performance always made a back up when I needed it to. when I unlocked my bootloader i was under the impression that TWRP was way better than SS, but here I am having problems the second attempt at making a backup?
Does it only save one backup at a time?
Is there a setting that I need to adjust?
Do I need to update/Upgrade to a new version?
Is there a version of Safestrap users like me with an unlocked bootloader?
Why cant it find the ext partition the TWRP folder is there and even tho it fails it places an empty folder in the proper location with the name I gave to my failed backup?
My SD card is partitioned for use with Link2SD. But that was never an issue with SS or the first TWRP backup I made the other day.
I have plenty of space (42 GB) on my external. so that shouldn't be the issue.
I'm starting to miss Safestrap. But I really want this to work. Help please. Thank you.
Click to expand...
Click to collapse
first, I would recommend to uninstall SS via the app (not using the OS manage apps interface). secondly, I almost always mount system prior to making a backup - not sure if that makes a difference or not. thirdly, I have gotten the "failed" message before - and that usually happens when I have 3+ backups and/or running out of room on my external SD card. typically, I will delete one of the backups, and then it will back up. also, the process takes about 20 minutes, so I usually plug in my phone during this time (sometimes when the phone is plugged in, it performs better).
another issue could be that you are using 2.3.2.3 with the latest OTA - you mean the latest TWRP version. however, that said, I'm still using 2.3.2.3
hope this helps.
jco23 said:
first, I would recommend to uninstall SS via the app (not using the OS manage apps interface). secondly, I almost always mount system prior to making a backup - not sure if that makes a difference or not. thirdly, I have gotten the "failed" message before - and that usually happens when I have 3+ backups and/or running out of room on my external SD card. typically, I will delete one of the backups, and then it will back up. also, the process takes about 20 minutes, so I usually plug in my phone during this time (sometimes when the phone is plugged in, it performs better).
another issue could be that you are using 2.3.2.3 with the latest OTA - you mean the latest TWRP version. however, that said, I'm still using 2.3.2.3
hope this helps.
Click to expand...
Click to collapse
jco23
Thanks for the help brother. I appreciate it. But I found the answer on an older post on another forum. What corrected my issue was going to settings and pressing restore defaults. That's it! lol but after that it worked like a charm. thanks again.
respectfully:victory:
I understand that there are some md5 mismatch fixes or workaround, but there are some backups that I used before but when I tried to use it again, I got the md5 mismatch. I have 3 different backups and they all showed md5 mismatch. Is there an issue with my SD card that is causing the backups to become corrupt? Anyone have an idea?
As I've been trying out custom ROMs lately I've made several nand backups using TWRP. Now today when I try to create a backup it always fails. There's plenty of room on my extSDcard. Here's what it says on the screen:
Backing up Boot...
*Generating md5...
*MD5 Created
Backing up System
That's where it stops. It will work for a while but then fails.
Any ideas? Thanks in advance.
Well, I checked "Enable Compression" and the backup worked. Is this advisable, or should I avoid the compression setting?
It does what it says and I've never had any problems with it.
I am not sure why but when I backup using TWRP Recovery it completes successfully but there is nothing written to the Data partitions. If I try to backup just the data I get a 25 MB file. It should be nearer to 6 GB. Whats more weird is the backup did work a while back and if I restore to that one I can make one more backup with Data included. After that one it stops backing up the Data partition again. Has anyone had an issue where Data is not actually being backed up even though it is selected and shows successful? Any thoughts?
I have a stock rooted Sprint Galaxy S4 on NAE. I have not taken the update.
Update: I tried updating from TWRP 2.6.3.1 to 2.8.0.1. That did seem to resolve the problem but left a new issue. After the backup is complete I always go to the file explorer in TWRP and make sure its there, which is was. But with 2.8.0.1 after I reboot the backup is gone. So I backed up again, and again checked the file explorer and it was there, powered the phone off and put the sd card in my pc and I can see the backup is there. Put the card back in my phone and turn it on, and the backup is gone. ???????
So I tried a different version of TWRP recovery. I installed 2.7.1.0 this time and now I'm back to the original issue. The backup is made, and I can see it again after the phone reboots but there is no data partitions being backed up even though during the process it says it is.
I have attached the TWRP log for assistance. The log shows it wrote quite a bit to data.ext4.win000 but this is 0 bytes in the backup directory. At the top of the log it says "Total size of all data: 7438MB" which I believe is accurate since my last good backup with data was 6.5GB. At the end of the log it says "Data backup size is 5052MB" but the directory properties show the backup size is really 2.2GB. This is because nothing is written to the data archive.
Could someone please help?
Anyone?
I noticed this same thing of 0 byte with data.ext4.win000 file in my TWRP backup 2.7
Viper41086 said:
Update: I tried updating from TWRP 2.6.3.1 to 2.8.0.1. That did seem to resolve the problem but left a new issue. After the backup is complete I always go to the file explorer in TWRP and make sure its there, which is was. But with 2.8.0.1 after I reboot the backup is gone. So I backed up again, and again checked the file explorer and it was there, powered the phone off and put the sd card in my pc and I can see the backup is there. Put the card back in my phone and turn it on, and the backup is gone. ???????
So I tried a different version of TWRP recovery. I installed 2.7.1.0 this time and now I'm back to the original issue. The backup is made, and I can see it again after the phone reboots but there is no data partitions being backed up even though during the process it says it is.
I have attached the TWRP log for assistance. The log shows it wrote quite a bit to data.ext4.win000 but this is 0 bytes in the backup directory. At the top of the log it says "Total size of all data: 7438MB" which I believe is accurate since my last good backup with data was 6.5GB. At the end of the log it says "Data backup size is 5052MB" but the directory properties show the backup size is really 2.2GB. This is because nothing is written to the data archive.
Could someone please help?
Click to expand...
Click to collapse
I noticed this same thing of 0 byte with data.ext4.win000 file and similar other conditions in my TWRP backup 2.7 on N7100 DN3 5.5. I am worried there's some corruption with data partitions. I have then redone the TWRP backup without compression and now the file is of reasonable size. Earlier my phone had gone into sudden bootloops for no apparent reason. Only after I changed the battery (which I had thought was the lamest thing to try) did it come back to normal. My phone however seems very slow and wonky. Now I am going back to dealing with those more serious issues.
I had problems with TWRP also not backing up correctly. I'm not sure why that is the problem, but I use Clockworkmod due to this issue. TWRP was not backing up Touchwiz roms correctly so my restores never worked. It seemed to work fine for ASOP roms though. At any rate, I never found TWRP reliable and I recommend anyone I know to use old school CWM instead.
I had a problem with TWRP a long time ago. Can't remember exactly what it was. I just like TWRP because it's touch but I went with Philz recovery and it never fails and is also touch or you can use the volume keys to navigate along with customize the look. It's the best recovery in my opinion. You should flash Philz recovery.
Here's the link for the Sprint Galaxy S4
https://goo.im/devs/philz_touch/CWM_Advanced_Edition/jfltespr/