yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M7)] jpwhre:
so in preps for lollipop i did a complete wipe including system using zip installer app but not without doing a backup of cashe and data, and ran guru update installer to set back to stock and take all OTA's, htc website shows new lollipop update available, but if you click download it's just last 5.05 rom ruu.

guru installer failed, and trying to reinstall my rom i kept getting failed to flash, in bright red where it usually says success in blue with 2.8.4.0 and any other rom i tried would fail, guru still failing (uses aroma installer) and the one thing that was working was plugging in phone in recovery mode and it lets me read/write to internal storage. my phone is a bit old, and the usb port is sketchy at best on what works in fastboot, always get failed unknown reason in command line and have to send commands with phone unplugged and then plug back in while it shows waiting on device (rarely works)

glad i found this http://xdaforums.com/showthread.php?t=2656065 that flashed 2.8.0.1 in recovery and let me flash roms again. moved to internal storage with 2.8.4.0 in recovery and flashed it successfully

i have no idea why i have been having problems post 2.8.0.1 and no one else has been.
[Sprint HTC One (M7)] v1ral:
I have a weird issue after doing a RUU to the lates sprint build.

What is happening is that I don't see the TWRP folder through the pc and through es file manager.

I've tried various TWRP2.8.x.x versions even tdhite's version too, but still nothing. Another thing to note that is odd, is when restoring an updated nandroid, it hangs for a long time at the HTC screen. Is this a TWRP problem or am I doing the process wrong.
[Sprint HTC One (M7)] oddjob727:
Having the same problem on 2.8.4, I was able to see the TWRP folder on PC by booting into recovery and plugging in USB while in TWRP.
[Sprint HTC One (M7)] tx_jaycee:
Mine got moved to HTC One\Internal storage\storage\emulated\0\backups. Not sure what caused this to happen.
[Sprint HTC One (M7)] bemzts:
help

i have htc one m7 sprint carier.....

-Unlock and S-off

-android 5.02

-htc sense 6.0

-Rom Bad Boys sprint one m7 lolipop v2

-recovery philtouch recovey..

-CID 11111111 (super CID)

i flash TWRP recovery for sprint but not work just stuck in entering recovery

please give me solution,what wrong..?
[Sprint HTC One (M7)] raptoro07:
[MENTION=912474]Dees_Troy[/MENTION] I was wondering what you thought about this post from Santod? I'm not wanting to start anything, just trying to understand where he is coming from and what can be done to get his ROMs flashing correctly with TWRP on the Sprint M7.

http://xdaforums.com/showpost.php?p=59492022&postcount=20
[Sprint HTC One (M7)] smokin901:
It is not a recovery problem, recovery works perfectly fine.
[Sprint HTC One (M7)] raptoro07:
Yeah, it was figured out. I was trying to understand it as I didn't think it looked like a recovery issues, but I am no dev. :)
[Sprint HTC One (M7)] tdhite:
I'm sure the post author you reference is a great guy, but the information provided in that post is incorrect. TWRP has, for quite some time, mounted 'by-name'. One need only look to the fstab file used:

# mount point fstype device [device2] [parameters]
/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot
/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache
/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata flags=encryptable=/dev/block/platform/msm_sdcc.1/by-name/extra
/devlog ext4 /dev/block/platform/msm_sdcc.1/by-name/devlog
/misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc
/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery
/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system
# storage volumes
/usb-otg auto /dev/block/sda1 /dev/block/sda flags=display="USB OTG";storage;wipeingui;removable
/tmp # ^[[25;8R

If that's not the 'by-name' to which the post you reference refers, I'm not quite sure what is at issue (other than common blame placed on TWRP for (in every case I've ever seen) ROM coding errors).

Just my take ...
[Sprint HTC One (M7)] zyrzox:
Hello - I'm running TWRP 2.8.6.0 on my M7 and am unable to restore a DATA backup with a permission denied/error 255. The restore gets about 15% in before hitting this file and aborting:

==> extracting: //data/app/com.google.android.gms-1.apk (file size 29572202 bytes)

open(): Permission denied

FAILED RESTORE OF FILE i: //data/app/com.google.android.gms-1.apk

E:Unable to extract tar archive '/data/media/0/TWRP/BACKUPS/FA34VS903972/2015-05-07-nu7-v3-daily/data.ext4.win000'

I:Error extracting '/data/media/0/TWRP/BACKUPS/FA34VS903972/2015-05-07-nu7-v3-daily/data.ext4.win000' in thread ID 0

E:Error extracting split archive.

I:extractTarFork() process ended with ERROR=255

I attempted to use the Fix Permissions function to no avail. I hope that someone who knows permissions much better than I do can steer me in the right direction to getting this resolved!

Thank you in advance for any assistance you can provide.
[Sprint HTC One (M7)] kerngehirn:
I have the exact same problem using 2.8.6.0 and 2.8.6.1
[Sprint HTC One (M7)] zyrzox:
At some point you must have done what I did and changed some file attributes using the chattr +i command.

When I went back and removed the immutable attributes on the files (chattr -i), my TWRP backups restored properly again.

Good luck!
[Sprint HTC One (M7)] kerngehirn:
Okay, so there's hope. Can you go into detail on the removing the attributes? i have no idea how to do it and google is not really helping.

Thanks so much
[Sprint HTC One (M7)] zyrzox:
1) Using the TWRP restore log, identify which file is causing the error when you restore your backup;

2) From an ADB shell navigate to the directory which contains the file that caused the error;

3) For me, since I used the "chattr +i" command to originally assign the attribute, I used the "chattr -i" command to remove the attribute on the affected file(s). If your files were locked using some other technique you need to use the same technique to un-do the lock;

4) Make another TWRP back-up and try to restore the data partition. If it works, pat yourself on the back and get a drink;

5) If it fails again, start over and repeat this procedure until you've unlocked every file that's causing the data restore to fail (as indicated in the TWRP restore log).

Good luck!
[Sprint HTC One (M7)] kerngehirn:
Thanks again. But i still don't know how to do it.

I tried command line insode twrp and put in "chattr -i data.ext4.win000" Is that the correct way to do it?

Can i do it from cmd in windows via adb?

Sorry. I'm a real noob when it comes to this.
[Sprint HTC One (M7)] zyrzox:
The problem is with one or more files on your phone, not with the files contained in the backup, so you need to use the command on the file (or files) that cause the error when you try to restore your backup. The TWRP restore log (which will look just like the error details I included in my original post, which you should export/save after the restore fails) will indicate which file is causing the restore to abort. Once you have that information you need to modify the attributes of that file on the phone itself and then run another backup and restore. If you aren't familiar with modifying file attributes and don't want to invest the time to research the procedures the easiest way for you to get things back to normal would probably be to RUU the device back to "new" and start from scratch.
[Sprint HTC One (M7)] kerngehirn:
Okay. I got that. As I understand the logfile, the data4.ext.win000 is causing the problem, as you see.

I really don't want to factory reset my phone. There are very important things in the backup. I never had such a problem. :(

==> extracting: //data/app/com.google.android.calendar-2/lib/ (mode 40755, directory)
==> setting perms: //data/app/com.google.android.calendar-2/lib/ (mode 40755, uid 1000, gid 1000)
Restoring SELinux context u:object_r:apk_data_file:s0 to file //data/app/com.google.android.calendar-2/lib/
tar_extract_all(): calling th_get_pathname()
tar_extract_all(): calling tar_extract_file(t, "//data/app/com.google.android.calendar-2/base.apk")
item name: '/data/app/com.google.android.calendar-2/base.apk'
reg
==> tar_extract_regfile(t=0xb72a2790, realname="//data/app/com.google.android.calendar-2/base.apk")
==> extracting: //data/app/com.google.android.calendar-2/base.apk (file size 23108540 bytes)
### done extracting //data/app/com.google.android.calendar-2/base.apk
==> setting perms: //data/app/com.google.android.calendar-2/base.apk (mode 100644, uid 1000, gid 1000)
Restoring SELinux context u:object_r:apk_data_file:s0 to file //data/app/com.google.android.calendar-2/base.apk
[B][I]E:Unable to extract tar archive '/data/media/0/TWRP/BACKUPS/0071a519cb49d689/2015-05-28--14-31-50_LMY47O/data.ext4.win000'
I:Error extracting '/data/media/0/TWRP/BACKUPS/0071a519cb49d689/2015-05-28--14-31-50_LMY47O/data.ext4.win000' in thread ID 0
E:Error extracting split archive.
E:extractTarFork() process ended with ERROR=255[/I][/B]
I:Set page: 'action_complete'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'restore_select'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:Set overlay: ''
I:Set page: 'restore'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

I also cannot extract the file on my laptop. winrar tells me it's corrupted. But I don't know if winrar is able to deal with tar files that are protected or what.
[Sprint HTC One (M7)] zyrzox:
Your problem looks a bit different than mine. On your restore log, //data/app/com.google.android.calendar-2/base.apk appears to extract properly but then throws an error. I would suspect that the permissions on the base.apk file is implicated but that's just a guess on my part. Have you changed anything related to the calendar on your device since the last time you were able to backup and restore successfully? If so, un-do it. Also, have you tried the "fix permissions" option within TWRP (or another utility that has the option)?

I'm sure there's a solution but at this point I'm not sure what else to recommend...hopefully one of the good folks at TWRP will offer some guidance but I suspect there are better ways of going about asking them for help other than on this thread.
[Sprint HTC One (M7)] kerngehirn:
Okay. Thanks for your help. it's very kind of you to invest your time. I guess I'll try to caontact twrp via email or whatever they offer on their homepage.

Just to complete my experience:

I already did a factory reset as i reflashed the 5.1.0 image with flash-all.bat via fastboot.

Then i adb pushed the twrp backup to sdcard and tried to restore it. Because of that, there is nothing left on my phone that could cause the problem. It has to be inside the backup, even though md5 is fine. Fixing permissions is not even possible after a factory reset.

But i don't see a problem with flashing stock image and restore a nandroid afterwards. Did that hundreds of times before.

Also the problem was there before i factory resetted the device.
[Sprint HTC One (M7)] zyrzox:
So based on the above, although the problem is now with restoring a file in the backup...the issue is being caused by the file (and its properties) that was backed-up to begin with. I don't think the problem is with TWRP. I understand now why you were trying to extract the contents of the data backup rather than changing the permissions of the file on the device itself and think you were probably headed down the correct path...you just need to find a way to successfully extract and modify the backup.

One other thing you could try would be to use Titanium Backup to restore the backup file. You might have to buy a Pro license if you don't already have one...but it would probably be worth it! Assuming that the calendar base.apk file is indeed the culprit, you should at least be able to selectively restore everything else (aside from the calendar stuff) with Titanium.
[Sprint HTC One (M7)] kerngehirn:
I already tried that. I have TB Pro and tried to extract the app backups out of the nandroid.

But it didn't work. There was no error, there was even a notification that the "batch restore" was successful. But it wasn't. No apps were restored and no TB Backups were restored. (I don't know how the extract works. Does it restore the app right away, or do you need to restore a restored TB Backup file? Anyway, none of the two happened).

I will try to extract the data.ext4.win000 file. I just downloaded ubuntu. Maybe a linux OS can handle the file better. I hope the live DVD works.

Thanks again.
[Sprint HTC One (M7)] zyrzox:
Interesting about Titanium not working, either, and good idea giving Ubuntu a spin (I think you'll probably have better results). One more question - what version ROM was the backup made on before you flashed the 5.1 image? Maybe the file structure is too drastically different between versions...? Just throwing that out there. Please let me know how things turn out.
[Sprint HTC One (M7)] kerngehirn:
Okay, i gave up. Ubuntu gave me the possibility to extract the tar file. Unfortunately only 1,2 of the 1,6 GB. I recompressed the 1,2 GB to a tar file end renamed it. I then restored the backup and it worked, no error. It even booted, but it was a total mess. Obviosly too many system files and app files went missing during the unzip rezip thingy.

Now i put CM 12.1 on my phone and I will try to extract as many files as possible out of the nandroid manually with ubuntu.

I hope that won't happen again on twrp. Next time i will test the archieves before i mess with the phone.

Regards

kern
[Sprint HTC One (M7)] zyrzox:
Not the outcome I was hoping for...and I'm sure you weren't either! Sometimes that's how it goes, though, and it sounds like you tried just about everything possible to get your data to restore. Hopefully you are able to salvage the most critical of your files...
[Sprint HTC One (M7)] jbhtexas:
I just did the 6.23.651.3 RUU and installed TWRP 2.8.7.0. TWRP generally seems to work. When I reboot to system, TWRP offers to install SuperSU, which is normal and desired, but it doesn't seem to work. There is no prompt to further install SuperSU when rebooting into the system, and there is no root access. When I go back into TWRP and then reboot to system, TWRP again asks to install SuperSU. My M7 is S-OFF. I flashed the latest SuperSU.zip through TWRP without issue, and now have root access.

Has anybody else run into this? Bug in TWRP perhaps?

Thanks!
[Sprint HTC One (M7)] bbgun7:
I know this is a bit late, but try to factory reset, download titanium backup pro, and use that to open the twrp backup.
[Sprint HTC One (M7)] JahGruva:
Pls I need a solution to this ?

C:\Users\user\Desktop\ss\hboot>fastboot flash zip h144.zip

target reported max download size of 1514139648 bytes

sending 'zip' (501 KB)...

OKAY [ 0.248s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) zip info parsing...

(bootloader) checking model ID...
[Sprint HTC One (M7)] joe7dust:
Why were you guys trying so hard to fix the permissions issue? I just ran into the same problem but I think the quickest solution here is just to wipe and then restore.
[Sprint HTC One (M7)] unimatrix725:
I am sorry nothing worked for you and this makes me mad. I am afflicted with the same problem. I will try TiBu, but dont have a good feeling. It makes no sense about the error 255 ExtractTarFork error. I think TWRP is Junk! Philz never gave me any problems and had more options! I am using 3.0.2 which takes forever to load. I found a workaround for the forever loading. Install Philz, then install TWRP and load time is normal. Something is being broken during upgrades.

The first time I got the error it had warned me about my backup being f2fs and the /data being different. I formatted back to f2fs to see if it would work. It still gives the same error, makes no sense what others said. If my partition is cleanly formatted how can it be a permission issue? Logically thinking & Speaking its a problem with the Tar backup aka TWRP implementation(Says so in Error Name!)! I suspect its related to not having more options. I am sifting thru a 2mb recovery log via terminal cat. I keep seeing allot of cache files! Really!?! I also belive that the wiping function is broken somehow. There is no way I have 7764MB of crap, unless including cached stuff. I always choose wipe cache/dalvik before backup. Philzs is somehow about 3GB less but is way too old, I must have some things from that backup.

Did you ever hear anything back from TWRP?

---------- Post added at 05:22 PM ---------- Previous post was at 04:55 PM ----------

This is just weird period. Im still watching the log flow. Now seeing unable to unlink. After Googling and reading at stackoverflow, thats what it is.

Never liked TWRP and now I never will. Its got serious issues. Perhaps related to /data/media? It doesnt give the option to backup or restore it, but sure does complain on a restore. I have never had any issue period with Philzs. I have hoped that someone would fork it or pick it back up.

I only tried TWRP at the insistence of many devs saying CM12.1 & CM13 will only support TWRP. Dont complain or file reports otherwise. I know I need a new phone, but this is crazy. How TWRP devs or even CM devs never had these problems is beyond me. I guess their terminal fu is better than mine...:(
[Sprint HTC One (M7)] kushalchauhan98:
I came across the same problem in my MotoE2(4G-LTE). Turns out that I was not having enough space in the Internal Storage to restore the /data partition. I deleted some music, photos, etc. and voila, it worked.

PS: I know that it has been a long time since you posted this issue(and you probably don't need any assistance anymore!), but I just felt like sharing a solution that I just came across. :D
[Sprint HTC One (M7)] chwiejak:
Guys, you are still there?

I have got error extracttarfork 255 with some file.

It is about permission for file in running rom?

Which code should I use for this file?

Thanks
[Sprint HTC One (M7)] kruc Ire:
holy crap. I just saw this... thank god I didnt listen to your original advice...all I had to do for my 255 error message was simply create more space in my storage by deleting some things. Then it restored just fine.

anyone getting that 255 message about the extractTARfork() process ended with error=255 would be advised to check the space on the phone they are attempting to restore to.
[Sprint HTC One (M7)] Kisakuku:
TWRP 3.2.0.0

Download

Changelog
[Sprint HTC One (M7)] kudos1uk:
I just wanted to say thanks for this, I was getting "error 255" after waking to a soft bootloop on my S4.

I had a 4 day old nandroid but it would not install, I tried old nandroids I have used before and they all errored 255 even after a full wipe, I formatted my data partition and all was fine with the latest backup.

My internal personal storage only had a couple of files in it as I keep everything on my external sd, clearly it was TWERP trying to save my personal files that wa the issue and once my data file was clean all was good.
[Sprint HTC One (M7)] TrueChart251:
ok so when i flash it, reboot and enter recovery, and nothin it just shuts down
[Sprint HTC One (M7)] gruniu78:
I upload android10 to mimix3. I uploaded settings and made copies of TWRP. I wanted to restore copies and error 255.

I found a way to fix the error on the internet.:

I have installed: twrp-3.3.0-0-perseus.img

Ok. Let start. Install from Play store: Android Terminal Emulator.

Open Terminal and type:

$su (hit Enter)

#pm remove-user 999 (hit Enter)

Should come up: Success: removed user

And now i have problem with USB. Camera and other applications show: mount USB.

What can I do next?

mimix3 has no external sd. I connect OTG, but TWRP can't see OTG.
[Sprint HTC One (M7)] Sloth:
This thread is for the HTC M7 :confused:
[Sprint HTC One (M7)] Mehhhh...:
Is it possible to safely root a LG W30 (LM-X440ZM) device?

If searched almost everywhere and can't seem to find a clear answer...🙁
[Sprint HTC One (M7)] tmuka:
thanks for the great dev work at impressive speed! i picked up my sprint htc one today and post #2 got me root and recovery so smoothly! thanks!
[Sprint HTC One (M7)] AssassinsLament:
There is no "sdcard" mounting in recovery on the HTC One. The best option inside of recovery is to adb push to sdcard.

For more info, read this explanation written by Dees_Troy: http://teamw.in/datamedia
[Sprint HTC One (M7)] fario78:
How about the latest version of TWRP? Gives an error or it works well?
[Sprint HTC One (M7)] erikivy:
2500 works well for me. I haven't seen any errors. I'm really digging the advanced wipe menu. I updated from 2420 (I think) and it still required multiple wipes to do a full wipe.
[Sprint HTC One (M7)] Roman G:
Pardon my ignorance guys, but it's been about a year since I have done any modding or rooting.

What I highlighted in red, does anything need to proceed that at the command prompt.

Thanks
[Sprint HTC One (M7)] mrrogers1:
You'll need to have ADB setup on your machine.
[Sprint HTC One (M7)] Roman G:
That is how I got to this point was using ADB. I just need to know if i'm supposed to point it to a specific folder or just type that in at any old command prompt.

Thanks
[Sprint HTC One (M7)] Paleryder:
yes you are absolutely correct, remember sometimes it is advisable to boot your device totally prior to using the recovery ! Welcoe Back:good:
[Sprint HTC One (M7)] mrrogers1:
You just need to have the recovery.img in the same folder/path as your adb resides in so it knows where to grab it from. I attached a screen shot of what mine looks like and the cmd window. Hope that helps.
[Sprint HTC One (M7)] SuperSonicEJ8:
how can i get my phones sd card to mount since i can't get it to work through twrp or is there a way to do it and i'm missing it. thanks
[Sprint HTC One (M7)] SuperiorEVOlution18:
I know you can mount it normally through android but I'm not sure if there is a way to do it from recovery or bootloader there's a link somewhere in here to explain more about the mounting system, I'm at work or I'd find it an link it.
[Sprint HTC One (M7)] Roman G:
Thanks that did help although I must still not be getting something.

c:\android

^thats where it's pointed to.

recovery.img

^thats the name of the file.

fastboot flash recovery recovery.img

^this is what i'm typing in.

'fastboot' is not recognized as an internal or external command,

operable program or batch file.

^this is what it's saying after I type it in

:crying:

^and thats where i'm at right now.
[Sprint HTC One (M7)] erikivy:
Are you sure you have the SDK installed? It doesn't look like it's finding the necessary executable files. I just zipped up 4 files that I think are necessary to run adb and fastbboot and copied the archive up to my dropbox account. If you want to plop them into your c:\android folder, they might work for you. If not, someone else will probably be able to sort you out.

https://dl.dropboxusercontent.com/u/7794270/fastboot_files.zip
[Sprint HTC One (M7)] Roman G:
Thanks thats what it was, now I got device not found.
[Sprint HTC One (M7)] erikivy:
Is your phone booted into bootloader?
[Sprint HTC One (M7)] Roman G:
If you have the right drivers installed your phone screen will now say: FASTBOOT USB

^this^^^^

But I have to hit the volume down after I plug my phone in to see FASTBOOT USB

When my phone is on and usable and I execute "adb devices" it sees it, but not when I am in the bootloader.

---------- Post added at 10:13 AM ---------- Previous post was at 09:59 AM ----------

C:\android>fastboot devic

FA344S902155 fastboot

I just issued this command and it found my phone in fastboot. So I don't know what the hell i'm doing wrong.

---------- Post added at 10:32 AM ---------- Previous post was at 10:13 AM ----------

I also went in to device manager and everything looks to be in order in there. Someone please.
[Sprint HTC One (M7)] AssassinsLament:
Type in:

.\fastboot flash recovery .\recovery.img
[Sprint HTC One (M7)] Roman G:
same thing