[G2 General] sdspieg:
I'm trying to install twrp on a rooted LG-D802. I tried using the instructions for that, but when I try to go into recovery I get the boot certification error. I made a bootable Ubuntu usb-stick and am able to boot in it. Here are my devices:

root@it:~# ls /dev/sd*
/dev/sda /dev/sda3 /dev/sdb2 /dev/sdc /dev/sde
/dev/sda1 /dev/sdb /dev/sdb3 /dev/sdd /dev/sde1
/dev/sda2 /dev/sdb1 /dev/sdb4 /dev/sdd1 /dev/sdf
root@it:~#

Here is what I think is the relevant part of the dmesg output

[ 71.999036] usb 1-4: new high-speed USB device number 2 using ehci-pci
[ 72.131996] usb 1-4: New USB device found, idVendor=1004, idProduct=61f9
[ 72.131999] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 72.132001] usb 1-4: Product: LGE Android Phone
[ 72.132003] usb 1-4: Manufacturer: LG Electronics Inc.
[ 72.132004] usb 1-4: SerialNumber: 0492bb4218cc01cd
[ 73.403399] systemd-hostnamed[5949]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 130.709254] usb 1-4: USB disconnect, device number 2
[ 149.111759] usb 1-4: new high-speed USB device number 3 using ehci-pci
[ 149.244991] usb 1-4: New USB device found, idVendor=1004, idProduct=61f9
[ 149.244998] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 149.245002] usb 1-4: Product: LGE Android Phone
[ 149.245006] usb 1-4: Manufacturer: LG Electronics Inc.
[ 149.245010] usb 1-4: SerialNumber: 0492bb4218cc01cd
[ 736.373623] usb 1-4: USB disconnect, device number 3
[ 736.711354] usb 1-4: new high-speed USB device number 4 using ehci-pci
[ 736.844443] usb 1-4: New USB device found, idVendor=1004, idProduct=632c
[ 736.844450] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 736.844455] usb 1-4: Product: LGE Android Phone
[ 736.844459] usb 1-4: Manufacturer: LG Electronics Inc.
[ 736.844462] usb 1-4: SerialNumber: 0492bb4218cc01cd
[ 736.845124] usb-storage 1-4:1.0: USB Mass Storage device detected
[ 736.845312] scsi8 : usb-storage 1-4:1.0
[ 737.844017] scsi 8:0:0:0: CD-ROM LGE Android Platform 0000 PQ: 0 ANSI: 2
[ 737.846274] sr0: scsi-1 drive
[ 737.846277] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 737.846406] sr 8:0:0:0: Attached scsi CD-ROM sr0
[ 737.846475] sr 8:0:0:0: Attached scsi generic sg6 type 5
[ 738.037893] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 738.054248] ISO 9660 Extensions: RRIP_1991A
[ 738.580567] usb 1-4: USB disconnect, device number 4
[ 738.951432] usb 1-4: new high-speed USB device number 5 using ehci-pci
[ 739.084405] usb 1-4: New USB device found, idVendor=1004, idProduct=61f9
[ 739.084412] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 739.084417] usb 1-4: Product: LGE Android Phone
[ 739.084421] usb 1-4: Manufacturer: LG Electronics Inc.
[ 739.084424] usb 1-4: SerialNumber: 0492bb4218cc01cd
[ 740.481509] systemd-hostnamed[6370]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
[ 742.244788] usb 1-4: USB disconnect, device number 5
[ 742.583711] usb 1-4: new high-speed USB device number 6 using ehci-pci
[ 742.716639] usb 1-4: New USB device found, idVendor=1004, idProduct=631f
[ 742.716647] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 742.716651] usb 1-4: Product: LGE Android Phone
[ 742.716655] usb 1-4: Manufacturer: LG Electronics Inc.
[ 742.716658] usb 1-4: SerialNumber: 0492bb4218cc01cd
[ 759.123943] usb 1-4: USB disconnect, device number 6
[ 759.488733] usb 1-4: new high-speed USB device number 7 using ehci-pci
[ 759.621657] usb 1-4: New USB device found, idVendor=1004, idProduct=61f9
[ 759.621664] usb 1-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 759.621669] usb 1-4: Product: LGE Android Phone
[ 759.621673] usb 1-4: Manufacturer: LG Electronics Inc.
[ 759.621676] usb 1-4: SerialNumber: 0492bb4218cc01cd

I've tried gdisk -l with all of the devices is saw with the ls command, but all of them give sthg like this:

root@it:~# gdisk -l /dev/sdb4
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************

Exact type match not found for type code 7200; assigning type code for
'Linux filesystem'
Exact type match not found for type code 6C00; assigning type code for
'Linux filesystem'

Warning! Secondary partition table overlaps the last partition by
3390645173 blocks!
You will need to delete this partition or resize it in another utility.
Disk /dev/sdb4: 499036160 sectors, 238.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5993D3F2-2A66-43BE-863D-0B7A3C4645B4
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 499036126
Partitions will be aligned on 32-sector boundaries
Total free space is 499036093 sectors (238.0 GiB)

Number Start (sector) End (sector) Size Code Name
1 1920221984 3736432267 866.0 GiB 8300 Linux filesystem
2 1936028192 3889681299 931.6 GiB 8300 Linux filesystem
root@it:~#

Does anybody have any idea about how to find out WHICH device is the LG? Also, what mode should the phone be in? I have usb debugging on, and have the usb connection on MTP (but I've also tried with some others).

Thanks!

---------- Post added at 01:07 AM ---------- Previous post was at 12:32 AM ----------

Following up on my own post. I tried the autorec app and that fixed everything in under a minute. Twrp now installed, I can boot into it, and I'm installing cm11 as we speak. Thanks to the developpers for making this possible!