yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy Note II] siraltus:
It happened much more on the cards in the phone's card slot than on the OTG-connected USB sticks. On the card, I would get files corrupted while the OS was booted - camera would save pictures as zero-byte length files, etc.

Oh, and the issue with TWRP not executing CM Updater's autoupdate script is gone since I reformatted my card to FAT32. Four consecutive builds and no failure. Weird. EDIT Aug. 12 - Nevermind, it just failed with today's nightly. Guess it's not related.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Not sure why you get that error from time to time. I only got it once. If I can get it and replicate, I will fix it.

Also let me know if you have troubles with your sdcard still formatted fat32. I have been reading that people are having lots of problems with Sandisk 32/64 gig cards in Samsung phones even on stock with S3, S4, and Note 2. Apparently somehow Sandisk might have fixed there cards to be more compatible but can't find any technical details on how they fixed it.
[T-Mobile Samsung Galaxy Note II] siraltus:
Zero problems since I reformatted my card to FAT32 a few days ago. And I'm using Samsung Pro Series cards (32GB and 64GB), not SanDisk.
[T-Mobile Samsung Galaxy Note II] farfromovin:
I've read in the CM10.2 threads about a problem with 4.3 and recoveries creating the reboot hang issue as well as not being able to restore nandroids. CWM was updated recently and fixed the issue. I love TWRP but it hasn't worked for me very well on cm10.2. Surprised nobody else has brought this up here?
[T-Mobile Samsung Galaxy Note II] bigbiff:
I will probably upgrade tonight. But in the meantime I would love to see logs of the issues.

People, please give me a log of your problem when they occur so I can help.
[T-Mobile Samsung Galaxy Note II] farfromovin:
I'm stuck at work all day/night/day but will post a log if it is not addressed by tomorrow evening. Thanks!
[T-Mobile Samsung Galaxy Note II] pvtjoker42:
Glad you mentioned it, was getting ready to download 10.2.. Guess I'll hold off until the next update.. :)
[T-Mobile Samsung Galaxy Note II] bigbiff:
Other people have said there are no issues. Shrug, won't know until I try myself I guess.
[T-Mobile Samsung Galaxy Note II] farfromovin:
Here is a quote from the cm10.2 thread that seems to explain the current situation. For one reason or another, I am unable to reboot any 4.3 ROM with TWRP but CWM works fine. Will provide log file tomorrow evening.

*deleted*
[T-Mobile Samsung Galaxy Note II] bigbiff:
We only use recovery.fstab for TWRP code internally. We don't use it with the mount commands.
[T-Mobile Samsung Galaxy Note II] siraltus:
Just chiming in I have two devices with 4.3 ROMs (Nexus 7 2013 rooted stock and Note 2 with CM10.2 nightly) and TWRP and have no issues rebooting or anything of that sort.
[T-Mobile Samsung Galaxy Note II] fonsus:
I'm also using the International version N7105 with TWRP 2.6.0.0 and I face the same reboot problem. When rebooting into recovery, TWRP asks me for a password, but it's easily by-passed by hitting the "back" key which goes directly to the main TWRP screen. Then when I take a look at the "data" partition of the phone, it can't be backup.

Think something went wrong somewhere. Can anyone advise?

Is there a way to uninstall TWRP and install CWM?
[T-Mobile Samsung Galaxy Note II] bigbiff:
Did you encrypt data?
[T-Mobile Samsung Galaxy Note II] fonsus:
Nope, didn't encrypt data.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Post the log so we can see what is going on.
[T-Mobile Samsung Galaxy Note II] fonsus:
I installed clockworkmod from the Google Play store, and used that app to install CWM. Then did a clean install of CM 10.2 and it works without a hitch. Sorry, I couldn't extract the recovery.log cos it seems that the data partition is corrupted after I reboot the phone under TWRP :( can't read anything at all!
[T-Mobile Samsung Galaxy Note II] bigbiff:
I have installed cm 10.2 twice now and haven't had that issue with TWRP. If someone encounters this issue, logs would be appreciated.
[T-Mobile Samsung Galaxy Note II] farfromovin:
I went back to the latest twrp and have gone back and forth between every 4.3 rom and tw with no issues. Maybe it was just the first ciuple 4.3 unnoficial nightlies that gave some devices problems? Glad that everything is playing nice now though.
[T-Mobile Samsung Galaxy Note II] chrisa887:
Have a question. I plugged my phone in my computer to transfer my backup to the computer, I drag the file to desktop and in check it after because it was really fast on the transfer and it total file size is 8.00mb I transferring it from my internal SD card cause I don't have external at the moment.

sent from my Note 2
[T-Mobile Samsung Galaxy Note II] bigbiff:
What software are you using to browse the note2 in TWRP?
[T-Mobile Samsung Galaxy Note II] chrisa887:
Just the Window that pops up when I plug phone in. I select open folder and I go to the twrp folder then backup then the drag the back up to my desktop. Used to do this all the time but that was when I had all my backups on a external sd card which that might be why it wont transfer the whole fine
[T-Mobile Samsung Galaxy Note II] bigbiff:
Ok I assume you are in android. Can you check the permissions on the backup. I think twrp has a bug where it sets the wrong permissions. You can also move the files to external storage and try from there.
[T-Mobile Samsung Galaxy Note II] chrisa887:
I will try this when I get home and let you know thanks alot
[T-Mobile Samsung Galaxy Note II] nofroyo:
Im sorry if this has beem already answered or not. I am not finding the option to mount sd to my computer using usb storage mount. Any suggestions?
[T-Mobile Samsung Galaxy Note II] bigbiff:
Unfortunately it's not supported.
[T-Mobile Samsung Galaxy Note II] siraltus:
>Fixed a bug that caused TWRP to not wait for compressed backups to finish causing 0 byte files and md5sums to not match

Unfortunately it's still doing this when backing up to an exFAT-formatted volume (and with uncompressed backups, too). Corrupts the volume bitmap and the last file it writes is zero-byte. When you run chkdsk on a Windows computer, it recovers that file and puts it in the FOUND.000 directory as FILE0000.CHK. It does not do this when backing up to a FAT32-formatted volume.

Log attached.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Can you post dmesg too. I haven't been able to replicate this issue.
[T-Mobile Samsung Galaxy Note II] siraltus:
How do I do this? Over adb shell? Cat dmesg into a file? Before or after I run the backup?
[T-Mobile Samsung Galaxy Note II] bigbiff:
After the backup. I am hoping to see something being printed to the kernel log regarding the filesystem corruption. You can do adb shell dmesg and pipe the output to a file.
[T-Mobile Samsung Galaxy Note II] siraltus:
Here you go. I don't think this will help you because exFAT for AOSP is implemented via FUSE - Filesystem in Userspace - and is not part of the kernel, while FAT32 is a kernel feature.

I saw nothing in there pertaining to mounting the exFAT volume.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Unfortunately nothing telling in there. You are getting this always on external sdcard right?
[T-Mobile Samsung Galaxy Note II] janjannsen99:
As soon as I finish backup to ex fat sdcard it says 0 bytes backed up or something like that. I still this the same thing you guys are talking about.

Secondly would that backup be a viable one to restore to even though the file size is actually 4.2 gbs?
[T-Mobile Samsung Galaxy Note II] bigbiff:
I think I just received the error unfortunately. Not sure what is causing the issue. It's like everything is being written, but discarded and not written to the file. I will open a bug report with the author of exfat-fuse. The biggest issue is that it's not replicable.
[T-Mobile Samsung Galaxy Note II] siraltus:
It happens on three different external SD cards (32GB Samsung, 64GB Samsung, 64GB SanDisk) as well as on a USB stick (32GB Patriot XT) connected via an OTG cable, and ONLY if they're formatted to exFAT.

As soon as I reformat the same card or USB stick into FAT32, the problem stops happening and never comes back.

---------- Post added at 07:08 PM ---------- Previous post was at 07:04 PM ----------

It definitely gets written to the card, because when I run chkdsk on the computer, it recovers the data into a FILE0000.CHK file in the FOUND.000 directory. If I move that file to the TWRP backup directory and rename it to the name of the TWRP file that is zero-bytes, the backup restores perfectly fine from that file.

So somehow, it's as if TWRP doesn't close the file/data stream and the file allocation table is never updated with the sector length of the last file TWRP writes to the card.

I noticed it happens more often the fuller the card is. I have about 12,000 files on my 64GB exFAT card and it happens every single time I backup. But if I backup to an empty 32GB exFAT-formatted USB stick, it only happens every second or third backup. So maybe it has something to do with how big the file allocation table is on the volume.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Are you using encryption during backup?

I was able to reproduce the issue now:

1. Create 12000 files

2. Backup

3. Reboot

4. Verify data file is 0 bytes

I opened an issue on the mailing list.
[T-Mobile Samsung Galaxy Note II] siraltus:
No encryption. Thanks for getting this escalated, I knew I wasn't going crazy.
[T-Mobile Samsung Galaxy Note II] siraltus:
Oh, also, the CM Updater bug is still there. It reboots into the TRWP main screen instead of running the OpenRecovery script.

Log attached.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Are you able to get this repeatedly? I am not sure if sometimes CMUpdater is putting different values. Otherwise it should fail all the time... I think I know the issue.
[T-Mobile Samsung Galaxy Note II] siraltus:
Repeatedly but not consistently. Every 2-3 updates or so.
[T-Mobile Samsung Galaxy Note II] bigbiff:
We probably will have to scrub the entire input strings.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Do you use CM exfat?
[T-Mobile Samsung Galaxy Note II] siraltus:
Yes, I've been running CM 10.1.x nightlies (on RC2 now) and I was using exFAT but I switched to FAT32 once I realized exFAT is corrupting my data.

I have the Camera app set to store pictures on the external SD card and when I was using exFAT, the Camera would randomly store zero-byte JPEGs on the card. No such problem on FAT32.
[T-Mobile Samsung Galaxy Note II] bigbiff:
I am experimenting with the gpl exfat kernel drivers and see how it goes.

Can you test this siraltus? http://goo.im/devs/OpenRecovery/t0ltetmo/openrecovery-twrp-2.6.1.0-exfat-test-t0ltetmo.zip

I am using the gpl exfat kernel driver from github.
[T-Mobile Samsung Galaxy Note II] siraltus:
Will do in a few. BTW look at the last two commits here: https://code.google.com/p/exfat/source/list

Might be related to our problem, especially the last one.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Those are merged in 2.6.1.0 Still gives me the same issues. He asked me to reproduce on the desktop but couldn't. If you can test the kernel exfat I will release 2.6.1.1 tonight with the new kernel. It fixed my issues.

I am not sure if I can get him to fix the issue for android and my limited time and knowledge doesn't allow me to fix the issue.
[T-Mobile Samsung Galaxy Note II] siraltus:
Ran five consecutive backups, no zero-byte files and no corruption in the volume bitmap!

---------- Post added at 02:55 PM ---------- Previous post was at 02:19 PM ----------

Looks like the problem's gone!
[T-Mobile Samsung Galaxy Note II] bigbiff:
I think I have a test fix for cmupdater. http://goo.im/devs/OpenRecovery/t0ltetmo/openrecovery-twrp-2.6.1.1-test-t0ltetmo.zip

Mind testing this too? I think I am clearing up the gobbledygook cm is putting in to the script.
[T-Mobile Samsung Galaxy Note II] siraltus:
Just updated six times in a row and it worked every time. Looks like you fixed it!
[T-Mobile Samsung Galaxy Note II] siraltus:
Just updated again to today's nightly and worked great. CMUpdater is fixed. Thank you!
[T-Mobile Samsung Galaxy Note II] siraltus:
Just updated again, no failure. Yay.
[T-Mobile Samsung Galaxy Note II] siraltus:
Updated today and it went to the home screen instead of updating. Booted back into Android, told it to update again, and this time it worked.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Do you have the log?
[T-Mobile Samsung Galaxy Note II] siraltus:
Didn't grab it or I would have posted it. Next time it fails, I'll grab it - I wasn't expecting it to fail, since it updated 7 times in a row with no failure.
[T-Mobile Samsung Galaxy Note II] siraltus:
Updated to today's nightly with no error. It's much more reliable than it used to be, that's for sure!
[T-Mobile Samsung Galaxy Note II] siraltus:
Updater just failed on today's nightly. Log attached.
[T-Mobile Samsung Galaxy Note II] bigbiff:
LOL now it's doing a space before and after the =.

I know it's not reproducible, but you can try this for your next flashes: http://goo.im/devs/OpenRecovery/t0ltetmo/openrecovery-twrp-2.6.3.1-t0ltetmo.zip

I am now skipping the pattern.
[T-Mobile Samsung Galaxy Note II] siraltus:
I think the Cyanogen people are trolling you now... :P Flashed 2.6.3.1 and will and report.

Oh also, Power Off (in the Reboot menu) doesn't work - it just reboots you back into TWRP.
[T-Mobile Samsung Galaxy Note II] bigbiff:
It's never worked and I am not sure how to fix it. Sorry.

I think I need to do something in the kernel, I asked in the development question and answer section, but noone responded. Please chime up if anyone has an idea on how to fix it.
[T-Mobile Samsung Galaxy Note II] siraltus:
No worries. Updater failed on 2.6.3.1 with today's nightly. Log attached.

Funny, the failure is very consistent now - if it fails, rebooting and hitting Update again results in a successful update every time.
[T-Mobile Samsung Galaxy Note II] siraltus:
Failed again today. Log attached.
[T-Mobile Samsung Galaxy Note II] siraltus:
OK, 2.6.3.1 now fails to update on every build - I have to reboot back into Android, trigger the update again, and then it updates. Reverting to 2.6.3.0 as it was much more reliable.
[T-Mobile Samsung Galaxy Note II] siraltus:
Failed on 2.6.3.0 today. Log attached.
[T-Mobile Samsung Galaxy Note II] bigbiff:
Made a new test build of 2.6.3.1

http://goo.im/devs/OpenRecovery/t0ltetmo/openrecovery-twrp-2.6.3.1-t0ltetmo.zip

This will print out more information to see what string is being passed from cmupdater into recovery.log. Please use this version and paste the failed logs.

I tested the following 3 variations

install =/sdcard/rom.zip

install = /sdcard/rom.zip

install = /sdcard/rom.zip

The third one failed but the first 2 were ok. Not sure if CM is putting 2 spaces but I don't think so. Thanks for helping siraltus.
[T-Mobile Samsung Galaxy Note II] siraltus:
Cool, flashed it in, will report what happens!
[T-Mobile Samsung Galaxy Note II] siraltus:
Three updates so far and no failure, I'll keep testing!
[T-Mobile Samsung Galaxy Note II] siraltus:
Failed today.
[T-Mobile Samsung Galaxy Note II] siraltus:
Failed again today.
[T-Mobile Samsung Galaxy Note II] Marty_Since87:
Thanks :o :o :o I installed via GooManager.
[T-Mobile Samsung Galaxy Note II] kedashy:
hey guy,s, I would like to know if it,s ok to use the twrp 2.6.3.0 that I downloaded thru the goo manager from the play store??? it,s installed over the cwm that was in place ... the only thing is that I been seeing a few people saying there phone was trashed by this twrp..I have a galaxy note 2 tmobile.... I backed up my stock rom on the phone and it,s in the the phone with the date I backed it up... now I want to install the jedi x20 but too dam afraid that 2.6.3 will screw my phone up... am I safe??? and another question, in the twrp I see the wipe touch button and when I tap it it shows at the top the factory reset , wipes data, cache, dalvik ( not including internal storage) this is the only wipe you need... so , by this being a new twrp since I used the 2.5 version I only need to wipe and it will take care of all that was specified without doing each separately??? then go get my jedi x20 rom and install and then wipe the cache and dalvik after rom has installed and then reboot and don,t touch for 10 minutes??? any help would be appreciated...
[T-Mobile Samsung Galaxy Note II] bigbiff:
There are no issues I am aware of at the moment with 2.6.3.0 of TWRP.
[T-Mobile Samsung Galaxy Note II] shaggyskunk:
I'm wondering if he's been reading the wrong thread for his device.. He may be thinking of the VERY first few releases of TWRP for the Note 3? Which btw - Is Backing Up & Restoring like a BOSS!

I've never had any issues with TWRP running on my N2!
[T-Mobile Samsung Galaxy Note II] tonysac:
I want to go back to stock recovery for my nexus 4 .. is there any flashable zip ..I don't have PC so I need to do it through phone .. the reason is to go to stock for a whole until I'll get KitKat them I'll be back on this great custom recovery

Keep walking Greece
[T-Mobile Samsung Galaxy Note II] bigbiff:
Try looking in the nexus 4 forums.
[T-Mobile Samsung Galaxy Note II] apicia:
My last backup was using TWRP 2.6.0.3 and I went back to stock everything. I downloaded goo manager, but it said there was no recovery for my device. I was just going to odin the latest version, but was not sure if it would restore a 2.6.0.3 backup. Will the latest version (2.6.3.1) restore a backup made with 2.6.0.3 or should I just odin the older version?
[T-Mobile Samsung Galaxy Note II] shaggyskunk:
You'll be fine using a newer version of TWRP, to restore a backup made with the older version.

Sent from my SM-N900W8
[T-Mobile Samsung Galaxy Note II] Rich508:
I hope TWRP will be updated to support Android 4.4 ...i hate CWM i can't install 4.4 with data :mad:
[T-Mobile Samsung Galaxy Note II] shaggyskunk:
If you're having issues - Get a Recovery Log for bigbiff - It's very easy - after flashing Rom & Gapps - BEFORE you reboot - Go into Advanced in TWRP - Click on Recovery Log - It's saved to your SD Card - - Upload it to your Dropbox and post the link for bigbiff... Help yourself - Help everyone else ;)
[T-Mobile Samsung Galaxy Note II] Rich508:
can this be done in CWM?
[T-Mobile Samsung Galaxy Note II] shaggyskunk:
Well no - Because the issue is not happening in cwm - You have to be using TWRP Recovery in order to provide the logs :)
[T-Mobile Samsung Galaxy Note II] Rich508:
Well i don't think the latest TWRP recovery supports android 4.4? so it has to be installed in CWM for cell service to work..which is why im waiting for a updated version of TWRP recovery to install android 4.4:)
[T-Mobile Samsung Galaxy Note II] shaggyskunk:
TWRP is working for me with SlimKat 4.4 - t0tecan - But apparently it's not working for everyone - If you try it and it doesn't work - In a way, that'd be good - Because Your recovery log would help bigbiff to solve the problem! ;)

If you do try to flash with TWRP - Just have a nandroid before.
[T-Mobile Samsung Galaxy Note II] bigbiff:
More than likely I have heard the reason is that CWM ignores setting contexts. Can someone verify flashing the problematic rom without the file_contexts in the zip?

Also check dmesg to see if there are any selinux errors.
[T-Mobile Samsung Galaxy Note II] Rich508:
here you go :)

http://tinyw.in/oBzJ
[T-Mobile Samsung Galaxy Note II] Craniotomy:
I installed cyanogen thru there installer in play store. Found out they where using cwm for recovery. I've been trying to install twrp zip but it fails everytime. I wanted to go back to my old Rom. Any help? Ideas?

POWERED by the MASTER!
[T-Mobile Samsung Galaxy Note II] bigbiff:
What error are you getting?
[T-Mobile Samsung Galaxy Note II] Craniotomy:
In cwm, when i was installing the zip it would say install aborted, when i try to do it in goo manager it won't download the zip and install it, nothing happens with goo manager.

POWERED by the MASTER!
[T-Mobile Samsung Galaxy Note II] Coug76:
You might try to odin the twrp tar.

Hastily spouted for your befuddlement
[T-Mobile Samsung Galaxy Note II] bigbiff:
Can you use adb to pull /tmp/recovery.log after the install and post it here?
[T-Mobile Samsung Galaxy Note II] Mnementh666:
Not sure this will help you, but I had to use heimdall to push twrp back to my phone after installing cwm. I had the same issues you do. Maybe try mskip's toolbox?

Sent from my SGH-T889
[T-Mobile Samsung Galaxy Note II] bigbiff:
I am trying to figure out if the zip is borked if anyone could get the log.
[T-Mobile Samsung Galaxy Note II] truckerdewd:
I've tried to install the newest TWRP recovery. Tried via goo but it won't download at all. Tried via downloading zip from TWRP website and flashing via 2.6.3.0 recovery but it fails to flash, just says failed.

Sent from my wickedly awesome Galaxy Note 2 using my fingers. Duh!!!
[T-Mobile Samsung Galaxy Note II] Craniotomy:
I don't know how to do that. But i might odin back to fix it

POWERED by the MASTER!
[T-Mobile Samsung Galaxy Note II] bigbiff:
What file are you trying to flash? What is the exact error message verbatim? Can you post /tmp/recovery.log?
[T-Mobile Samsung Galaxy Note II] truckerdewd:
It's the zip file that is supposed to be flashed from recovery. Downloaded it from the website. It started to flash and says it's writing then says failed in all red letters

Sent from my wickedly awesome Galaxy Note 2 using my fingers. Duh!!!
[T-Mobile Samsung Galaxy Note II] bigbiff:
Can you pull /tmp/recovery.log so I can see why?
[T-Mobile Samsung Galaxy Note II] truckerdewd:
It was still in my cache so I uploaded it to my drop box account. Here's the link.

https://www.dropbox.com/s/pt5s305ymlmbf83/last_log

Sent from my wickedly awesome Galaxy Note 2 using my fingers. Duh!!!
[T-Mobile Samsung Galaxy Note II] bigbiff:
Can you try turning off zip verification?
[T-Mobile Samsung Galaxy Note II] truckerdewd:
It's off. Just tried again and it still fails.

https://www.dropbox.com/s/n6npsog2yiqn3om/recovery.log

Sent from my wickedly awesome Galaxy Note 2 using my fingers. Duh!!!
[T-Mobile Samsung Galaxy Note II] Craniotomy:
What i did to make or install twrp back was using odin, search for twrp download files, look for 2.6.3.0 tar file, then go to device manager on your pc scroll to the bottom, look for a gadget serial in usb tab, then update drivers, choose our locate your own, you'll see Samsung etc., in a list, choose the 2nd one, then put your phone in download mode, connect to pc start odin, if the top left box has a com 3 or whatever highlighted, then odin sees your phone, check pda, look for the twrp tar file you downloaded, then hit start. It will reset your phone then after that your good, twrp will be installed.

POWERED by the MASTER!
[T-Mobile Samsung Galaxy Note II] bigbiff:
Sorry I can't look through forums, if you can provide a link I will download it tonight and try.
[T-Mobile Samsung Galaxy Note II] deeznutz1977:
Bigbiff Why did you guys increase the font size.. Was better b4 nbd just curious
[T-Mobile Samsung Galaxy Note II] bigbiff:
The bigger font is easier to read.
[T-Mobile Samsung Galaxy Note II] farfromovin:
Well im a huge cwm guy but love that twrp backs up the erf partition. However the non support of exfat has me puzzled... Is this in the gameplan for twrp?
[T-Mobile Samsung Galaxy Note II] bigbiff:
I am looking into it.
[T-Mobile Samsung Galaxy Note II] gaww:
Ditto - I was not initially aware of it, but ended up having to reformat my 64 gb card to FAT 32 to make it accessible. However, there were other apps that would not recognize the exFAT card, so I probably would have reformatted in any case.
[T-Mobile Samsung Galaxy Note II] deeznutz1977:
Ex fat is Microsoft (licensed) Microsoft, IE: Microsoft wants money >.> Thats why Cyanogen doesn't support ex fat
[T-Mobile Samsung Galaxy Note II] bigbiff:
Might have a way around it. Will be testing tonight. Yeah you will probably never see exfat in cyanogen.
[T-Mobile Samsung Galaxy Note II] deeznutz1977:
Nice thanks