yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
In theory, I think you are correct, I haven't been able to successfully flash the software on my device however so I cannot confirm.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jsyd09:
Is there an easier way to access twrp? My boot screen goes too fast for me to press the power button when the lg logo appears.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eli Smith:
there seems to be a problem with mounting /system
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] billyx1:
This is not working on my US997.

I'm able to flash recovery (which is very fast, only 0.7s)

fastboot flash recovery twrp-3.1.1-0-us997.img
target reported max download size of 536870912 bytes
sending 'recovery' (22440 KB)...
OKAY [ 0.495s]
writing 'recovery'...
OKAY [ 0.215s]
finished. total time: 0.713s

But then I'm not able to boot the twrp. If I try the suggested method with power off, power-on + vol- I get to the factory reset menu. Selecting two times yes does a factory reset bot not booting to TWRP.

Please help...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] gewecht:
Here's what I did to make it work reliably:

Flash recovery in fastboot, as you did

With the phone still on, and in bootloader unplug the device from USB

Press and hold Power + Vol. Down (about 12 seconds)

When the LG logo appears, quickly release and press the power button.

Confirm the "yes" option twice.

That's worked for me every time.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
That totally worked for me too (once I got driver issues sorted). Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Longtomo:
Edit: I am reporting that the above method worked, but it only works a single time. Even when you reboot into bootloader and do that trick a second time, it won't work. It only takes you to the factory reset screen.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] billyx1:
I think it would be worth to add this to / correct the first post.

In fact I didn't have found a way to turn of the phone after flashing twrp from the bootloader. So I always did a reboot and turned it of after starting Android which doesn't work, because it replaces the flashed bootloader with the default one.

So the only possibility is to restart the phone from bootloader (works best for me with command "fastboot reboot") while pressing Volume down and Power and releasing Power for half a second when you see the LG logo first time and pressing it again until you get the "erase" menu (releasing Power and pressing it again happens before you see the new awful "bootloader is unlocked" warning screen from LG.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Longtomo:
Someone correct me if I'm wrong, but right now, installing custom ROMs on the US997 is absolutely out of the question, because:

1. Recovery doesn't work, in case of soft brick.

2. You can't get into bootloader if your OS doesn't boot, because ADB won't connect from broken recovery state, and the only way to access bootloader mode is through ADB.

3. From the Soft-Off state, you can only hope to access factory reset mode, and that does no good if your OS or is borked or something happens during flashing.

Recovery mode sends you to a static screen that says "no command" with no connection to ADB, and that's it - Full Stop.

TLDR: In the case that your OS fails to boot, there's no way to rescue it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Cameron581:
Yeah there is I'm using it now. I have no issues with my twrp at all. And you can always enter download mode from the off position hold volume up and plug a USB in. Where are you getting twrp doesn't work?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eli Smith:
Does anyone know how to fix the can't mount /system error
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jsyd09:
I know this is based off the G6 European twrp. They have had official for a while now. Any way this one will get official?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hayfever:
Getting the same when trying to do a backup in TWRP:

Failed to unmount "/system" (Device or resource busy)

I haven't flashed/rooted/romed in a while so I'd definitely like to be able to make a backup before going further. Going to abstain for now, I guess.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rjan22:
I have a US997 version I have any idea how any of this work, can anyone make a video on how to root my G6 step by step and how to remove ads on my phone that is all I care and how to get back to stock too. Message me Ill pay $20 so I won't brick my G6 US997?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Longtomo:
Thanks for the reply. If you search around this thread, you'll find that several people, including me, are having the issue of TWRP working correctly only one single time upon install. For us, there is no way to access TWRP a second time, for some reason. Attempting to enter recovery after the phone reboots (Volume Dn + Pwr) takes us to the standard factory reset screen.

has it been fixed?

I'm not arguing, and if I've made some kind of error, I'd be happy to try installing it again, or try whatever you suggest. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Cameron581:
so you actually just gotta act like your resetting but it will boot into twrp :p its been like that since the g2 bump days from what i remember, because g1 just flashed mako bootloader XD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Longtomo:
No, it won't. That's the problem, sir. If I click "Yes" twice, in the factory reset mode, it legit just factory resets all data and restarts into new user setup. There is no TWRP unless you use fastboot to reinstall it, and then do the trick described a few pages back, but that trick is a one time deal.

Maybe this version of TWRP won't work for all US997
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] gregfink83:
Mine works fine. You have to flash a custom ROM that doesn't restore the recovery on every boot. The instructions are in this thread. I have root and can boot into recovery whenever I want without a problem.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] CommieColin:
Will a factory restore (power button and vol. down) reinstall the original recovery? Or will you be totally stuck if for some reason TWRP doesn't boot? I don't mind doing a factory reset to save my phone, but I don't want to brick it either
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
TWRP replaced the factory recovery. It included everything the factory version does and more.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] CommieColin:
Right. I've had TWRP on many devices. I just meant, if there is somehow a problem with booting into TWRP, is there a fallback for reverting to stock?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
No, you've replaced the stock recovery.

It's no longer there to revert to.

Some phones have a backup copy that the OS will install if it detects a change in the factory recovery, bit if you are using TWRP you've disabled that too.

LG phones are good illustration of how TWRP replaces by the stock tool. The hardware key don't go straight to recovery. It takes you to a screen asking if you want to reset. But when you select that it takes you to TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Anarchist77:
Or use LG Bridge and "Restore Error Recovery" and it will restore your G6 back to the Latest.. factory/update KDZ for your particular variant. ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] p13rr0t:
I can confirm that the only option to boot into recovery is only after flashing recovery.

Also, I can confirm that failed to mount /system error could be resolved by wiping all the data and formatting it and rebooting phone back to recovery again
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Velrix:
This did not work for me btw, I flashed it, booted it, did the no-verity flash, formatted the data however everytime I flashed a zip and rebooted, it would just boot right back into TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hashwagon:
I'm hoping someone can help me. I'm running the TWRP_US997-3.1.1-0 build and everything was working until I ran a Lineage OS update and rebooted into TWRP to complete the install of the update. I never found the update file within /data/data and my phone hasn't been able to boot into the system since.

Update: Since then I manually flashed the latest build of Lineage OS and my system is still only booting to TWRP. I was assuming there was a temporary chainloader that wasn't clearing so that's why I ran the Lineage OS install manually.

Any thoughts?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mwsundberg:
A few things could be going wrong, when you flash LOS are you also flashing the su addon, or the dm verity file? You need to do both in the same recovery session. By booting into TWRP do you mean going to TWRP when booting into System? or only being able to access Recovery, with the main boot failing?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Common problem with the G5 and G6, you need to flash the stock kdz and reflash twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nirk2:
nima0003 how do I get the TWRP? Thanks :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Download should be in the first post :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] keimond:
flashing twrp

<deleted post... someone shoot me now I found my problem... SMH...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TBacker:
So is this working/stable?

I saw numerous references to:

- Problem mounting /system

- Problem with TWRP disappearing after the first use/reboot

And then nothing - no resolution or further complaints.

I have a US997 G6 on the way that I intend to root and flash a ROM to, but this TWRP sounds damn flakey.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
So my understanding is the 1st relates to encrypted data partition.

The second is due to stock ROMs replacing recovery. Flash a custom ROM and recovery doesn't​ get overwritten.

With root it may be possible to stop that or replace the backup copy that is being written, but that's​ not TWRP's fault.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TBacker:
Hmm. Okay, that makes sense. I will be flashing some AOSP variant and don't plan to encrypt at the moment, so this shouldn't be a problem then.

Now to find that AOSP-like ROM that has everything working - a lot of weeding through posts to figure that out!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Bubblewhip:
I seem to have lost encryption after flashing TWRP and rooting the phone. I remember setting up a password and being prompted for encryption (password on boot) before I flashed TWRP. After flashing TWRP and installing root to make it stick, I seem to have lost encryption, and it is no longer asking me a password on boot, or TWRP is not asking me to decrypt the system partition. Is anyone experiencing a similar issue?

LG G6 Reflashed to stock using LG UP

- Have made a backed up Nandroid

- has run dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc (To get out of bootloop) \

- Rooted using SuperSU
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
Are there any updates regarding official TWRP support?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AsItLies:
I'm confused also, sadly doesn't seem to be much happening with the LG G6. I like mine, and have gotten the unlock.bin from LG.

First, I'd prefer to have Lineage running, but what app is available for full access to the camera? Don't see the LG camera app anywhere. Are there other issues where there won't be full access to the hardware?

Second, (and I could be mistaken here) but it **sounds** like once Lineage is flashed (using this TWRP - Thanks!), when you go to update to the latest version of Lineage, TWRP will get over written and you'll then have to LG Up a KDZ, and then reflash TWRP?

I know that sounds silly. The previous post by STDog indicates once TWRP and Lineage are flashed, you should be able to update to a newer Lineage no issues.

If someone who has done that on their G6 could confirm that I'd appreciate it. It doesn't really make sense that going to 'about phone' and Lineage says 'there's a newer version, click to update' would result in losing TWRP... hopefully I'm just misunderstanding... Thnx
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Bubblewhip:
I can't seem to restore recovery data, it's giving me a "extractTarFork() process ended with ERROR: 255"

I don't think anyone should trust this recovery to actually backup their data and restore it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
The snap camera from the LG G5 Lineage days have access to all cameras, and Lineage updates shouldn't overwrite TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
Concur.

Since the LOS distribution doesn't include recovery (or most other partitions) it would be difficult for it to mess with recovery.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AsItLies:
Thanks to nima0003 and STDog for your feedback, much appreciated. I really like my G6, it's doing great. It won't be long and it will be doing even better with LOS on it :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Bubblewhip:
I reflashed back to stock and can confirm the TWRP is not what is causing my encryption loss. I suspect its the bloatware removal commands i sent from this guide , but I still need to confirm that.

As for backup restorations, I am having zero luck. It seems that system will restore if you boot it up quickly to avoid the "/system device or resource busy" error, but data seems to not want to restore with some

"extractTarFork() process ended with ERROR: 255"

I did this with both the 870 TWRP and the 997 TWRP versions and restorations always seem to brick my device since it will try to format the partitions and fail to restore.

If anyone can tell me if anyone is having their backup restorations work, that would be great.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TBacker:
So at this point TWRP on this device is only good for flashing custom ROMs but not backup? Hmmm. Thinking my G6 that is on the way is going to get root but stay on the stock ROM TFN. I always back up before tinkering with heavy debloating, kernels, & ROMs. Not good.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] tsman:
Hello

Has anyone tried this twrp on t-mobile H872?

Thanks

Tony
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TBacker:
The date / time is completely off when I run this on my US997 - like months! It's 11/21/2017 21:44 and TWRP thinks it's 2/11/2017 01:27. Auto-generated title reflects this, and file timestamps also.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I took the latest 3.2.1 TWRP that J0SH1X shared on Telegram and made the changes for US997 (us997 kernel and change device id to us997 in default.prop), and it seems to fix the backup/restore issue I was having (the Format Data option now creates a proper filesystem rather than a corrupt one).

https://files.persona.cc/zefie/file...ry/recovery_TWRP_US997-3.2.1-0_kernel-16a.zip
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] joelbeni:
Please help me, when I try to flash my twrp.img it do that
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Cameron581:
Your bootloader is still locked...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
This worked great, zero issues with flashing and getting into TWRP consistently (both issues I've had before with TWRP). Also, no issues with mounting, worked perfectly from first boot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Mind if I put it in the OP?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Sure :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] asdfoiuqwer:
Seconded. I updated to this recovery (TWRP_US997-3.2.1-0_kernel-16a) today and was able to flash a LOS update without /system mounting errors on my first try which was very rare on the prior release. Thanks :good::good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
After flashing this version of TWRP, I can't see (or mount) my External SD Card. Any ideas why?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I think I may know why, is it in exFAT format?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
Yes. I assume your version of TWRP does not support exFAT?

If so, would it be possible for you to add it?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Try this image and report back if it works :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
No, that did not fix it. Still the same.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Okay, finally, after extensive testing with my own exFAT card....

Try this one

[MENTION=5197535]nima0003[/MENTION]
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
That one works. THANK YOU!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] MagikGab:
Will it work on H870?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
No, use J0SH1X's original version, this one is modified for US997.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] MagikGab:
Ok, thanks :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
One more build: https://files.persona.cc/zefie/file...y_TWRP_US997-3.2.1-0_melina_exFAT_timefix.zip

Features:

Melina Kernel

exFAT

F2FS

Date and time fix (See here as to why official builds can't have valid date & time on our device yet....)

Edit: If you downloaded this before the time of this edit, please redownload, as I fixed the model variable (forgot to change h870 to us997, which would prevent you from flashing us997 specific stuff)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Perfect, added to OP :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
Well, that's just stupid of the phone makers. Why change the default time like that. They should just default to the Unix epoch.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Well, its more that most phones with this time issue defaulted to a date in 2014, so TWRP set their workaround to check for that, not anticipating the default date to change.

The reason my build works is because I rebuilt TWRP with the function to check for a date earlier than today, but it can never be official because it's changing TWRP code, thus I requested them to make it a config option, or automated.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] RorshachBR:
Lg g6 h870 - brazil

I have LG G6 H870 - BRAZIL , i cant unblock bootloader with LG DEVELOPERS.

Can you help me ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
This is the wrong thread for that question, for like 3 reasons (TWRP thread, US997 thread, non-development question in development forums).

Plus, I can't really help as I don't know what error you are getting. Try here.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Yet another build :P

New Features:

Updated Melina Kernel (rel6-prerelease)

Proper F2FS support

sd-ext support (including backing up and restoring, both ext4 and F2FS supported thanks to Melina)

Purple theme, because purple is cool

Download: https://files.persona.cc/zefie/file...3.2.1-0_melina_exFAT_timefix_sdext_purple.zip
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
You can only unlock EU h870. Sorry :(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] MoveAlong77:
Just wanted to say thank you for your work on this. Seems to be working just fine.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Wannab007:
none of zefie's twrp files can be downloaded from that files.persona.cc site, for some reason i cannot access that site at all even through vpn
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] swpointer:
I just downloaded it with my phone, using Chrome browser.

This one.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Sorry, was migrating my sites to a new server yesterday and had about 5 hours downtime for the first time in about 3 years :) All should be well now though.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Wannab007:
No need to apologize, I was just reporting the links were broken when I tried them. All is working well now. Thank you
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hashwagon:
On my us997 I flashed the most recent recovery_melina-TWRP_v3.2.1_18-01-05_zefie_LGUS997_rel3.zip package in the https[ : ]//files.persona[ DOT ]cc/zefie/files/cell/LGUS997/recovery/rel3/ directory. After flashing the latest build of Lineage OS I'm stuck in a TWRP boot loop. The system only boots to TWRP. I tried flashing an older build of Lineage and the same thing happens. Any thoughts? I'm thinking of trying and older unofficial version of TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] eridnis:
I've had this problem as well.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
Clearing part of the misc partition works to fix this on many LG devices.

Search this thread, I'm sure the instructions are in it (or linked).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hashwagon:
Hallelujah! Thanks to this dd

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

command my system booted and completed the first time setup of Lineage. Thanks, all: :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] eridnis:
When I enter the 'fastboot reboot recovery command' I get a 'fastboot: usage: unknown reboot target recovery' error message.

Any way around this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
On lg devices you can't fastboot reboot recovery, you have to use the button combo.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] silverh20:
Any mirrors? I can't download from any of the links provided.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] gregfink:
https://files.persona.cc/zefie/files/cell/LGUS997/recovery/
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Strange. Is this common? I haven't run into this, but if its common, I will add an option to wipe misc from the gui in a future build.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
Been an issue with LG devices for a while. Back to the G2. Autoprime I think was the one who found the minimal clearing (first 256 bytes).

Often people wipe the whole partition which causes problems, like loosing MAC addresses.

A link to his posts from the G3 or G4 period was linked a month or so back in the G5 threads.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I read about the MAC addresses once and made a backup of my misc.

So I'm assuming that the "stuck in recovery" issue only happens to those who wiped misc before? Because I haven't and never got stuck in recovery.

If that's the case there isn't really anything I can do to fix it properly.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ST Dog:
No. Something else happens to get stuck.

Nobody ever figured out what.

Doesn't happen to everyone.

Clearing that part of misc fixes it.

Wiping all of misc causes problems though, so a backup is good to have. Backup of all the other partitions are worth having.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
So, should I offer an option to wipe the first 256 bytes of misc in a future build?

Edit: from my experience with older devices, without even looking up the LG issue, usually those first bytes of misc are a bootloader command, used by OTA to tell the bootloader to boot recovery in OTA mode. I recall a few devices getting stuck in recovery because its expecting their recovery to unset it and TWRP does not. Actually, come to think of it, I think it was an LG device too.. LG Optimus S.