{"action":"created","issue":{"url":"https://api.github.com/repos/dlenski/tetherback/issues/9","repository_url":"https://api.github.com/repos/dlenski/tetherback","labels_url":"https://api.github.com/repos/dlenski/tetherback/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dlenski/tetherback/issues/9/comments","events_url":"https://api.github.com/repos/dlenski/tetherback/issues/9/events","html_url":"https://github.com/dlenski/tetherback/issues/9","id":148950488,"number":9,"title":"add corruption checks","user":{"login":"kerlerm","id":5772874,"avatar_url":"https://avatars.githubusercontent.com/u/5772874?v=3","gravatar_id":"","url":"https://api.github.com/users/kerlerm","html_url":"https://github.com/kerlerm","followers_url":"https://api.github.com/users/kerlerm/followers","following_url":"https://api.github.com/users/kerlerm/following{/other_user}","gists_url":"https://api.github.com/users/kerlerm/gists{/gist_id}","starred_url":"https://api.github.com/users/kerlerm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerlerm/subscriptions","organizations_url":"https://api.github.com/users/kerlerm/orgs","repos_url":"https://api.github.com/users/kerlerm/repos","events_url":"https://api.github.com/users/kerlerm/events{/privacy}","received_events_url":"https://api.github.com/users/kerlerm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-04-17T13:19:01Z","updated_at":"2016-11-28T17:58:51Z","closed_at":"2016-05-08T19:08:24Z","body":"Each backup file should get its md5sum stored as TWRP does. Perhaps set up as an option. This makes it easier to spot corrupted images.\n\nI suspect corruption in my backup because the backup of /data is not the size it should be. Another check could compare the amount of bytes backed up with the amount of used bytes on the mounted partition. \n\nWould that be helpful? \nWhy does TWRP split big backup files (.000, .001...) anyway? Should the script behave the same way?\n"},"comment":{"url":"https://api.github.com/repos/dlenski/tetherback/issues/comments/263344275","html_url":"https://github.com/dlenski/tetherback/issues/9#issuecomment-263344275","issue_url":"https://api.github.com/repos/dlenski/tetherback/issues/9","id":263344275,"user":{"login":"dlenski","id":128716,"avatar_url":"https://avatars.githubusercontent.com/u/128716?v=3","gravatar_id":"","url":"https://api.github.com/users/dlenski","html_url":"https://github.com/dlenski","followers_url":"https://api.github.com/users/dlenski/followers","following_url":"https://api.github.com/users/dlenski/following{/other_user}","gists_url":"https://api.github.com/users/dlenski/gists{/gist_id}","starred_url":"https://api.github.com/users/dlenski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlenski/subscriptions","organizations_url":"https://api.github.com/users/dlenski/orgs","repos_url":"https://api.github.com/users/dlenski/repos","events_url":"https://api.github.com/users/dlenski/events{/privacy}","received_events_url":"https://api.github.com/users/dlenski/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T17:58:51Z","updated_at":"2016-11-28T17:58:51Z","body":"> Update, On windows 7 with Motorola moto turbo (xt1255 ~ quark)\r\n>\r\n> D:\\turbo>tetherback\r\n> tetherback-script.py v0.9.1\r\n> Found ADB version 1.0.32\r\n> Using default transfer method: adb exec-out pipe (--exec-out)\r\n> Device reports kernel 3.10.85-perf-gf50d607\r\n> Device reports TWRP version 3.0.2-0\r\n> Reading partition map for mmcblk0 (41 partitions)...\r\n>   partition map: 100%\r\n> Reading partition map for mmcblk0rpmb (0 partitions)...\r\n>   partition map: 100%\r\n> Saving backup images in .\\twrp-backup-2016-11-27--16-34-39/ ...\r\n> Saving partition boot (mmcblk0p36), 16 MiB uncompressed...\r\n>   boot.emmc.win: 100%   3.6 MiB/s   8.7 MiB\r\n> Traceback (most recent call last):\r\n>   File \"C:\\Python34\\Scripts\\tetherback-script.py\", line 9, in <module>\r\n>     load_entry_point('tetherback==0.9.1', 'console_scripts', 'tetherback')()\r\n>   File \"c:\\python34\\lib\\site-packages\\tetherback\\tetherback.py\", line 344, in main\r\n>     backup_partition(adb, partmap[standard], bp, args.transport, backupdir, args.verify)\r\n>   File \"c:\\python34\\lib\\site-packages\\tetherback\\tetherback.py\", line 293, in backup_partition\r\n>     raise RuntimeError(\"md5sum mismatch (local %s, device %s)\" % (localmd5, devicemd5))\r\n> RuntimeError: md5sum mismatch (local b804df2473afbe6d58bf44e8832e668b, device 84c3f4252beaa6abc93e7f12ef65291a)\r\n>\r\n> tetherback -t in progress, no errors so far ..\r\n\r\nHi @z2z, this is a frustrating one. I don't think I've seen another case where `adb\r\nexec-out` with v1.0.32 results in a corrupt transfer, but TCP doesn't.\r\n\r\nCan you manually run `adb exec-out \"cat /dev/block/mmcblk0p36\" > temp_file\r\nand do a binary diff against the version produced with TCP transfer, in\r\norder to figure out where the corruption is occurring?\r\n"}}
{"actor":{"display_login":"dlenski"}}