yashsingh1/xdaforums huggingface dataset:
[G2 General] GreenTuxer:
Didn't work. File copy went ok, but after reboot, nothing changes, I can access default recovery, but no download or TWRP... I have no Android installed, I Factory hard resetted it with the default recovery, I think...

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=aboot.img of=/dev/sdb5

2048+0 records in

2048+0 records out

1048576 bytes (1,0 MB) copied, 0,00505756 s, 207 MB/s

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=boot.img of=/dev/sdb7

21504+0 records in

21504+0 records out

11010048 bytes (11 MB) copied, 0,0252948 s, 435 MB/s

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=laf.img of=/dev/sdb23

31744+0 records in

31744+0 records out

16252928 bytes (16 MB) copied, 0,0486013 s, 334 MB/s

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=openrecovery-twrp-2.6.3.2-g2d802.img of=/dev/sdb15

22112+0 records in

22112+0 records out

11321344 bytes (11 MB) copied, 0,0270053 s, 419 MB/s

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G#

I'm in Portugal, the ROM I had was Portugal TMN Open 16GB. Could it be something related to it? I wanted to flash the EUR.
[G2 General] bender_007:
I mean you need only the 3 images. No tz or sbl1. How did you brick it? By flashing kdz? 4.4.2 flashing or 4.2.2?
[G2 General] GreenTuxer:
I had an OTA for the knock code. I had 4.4.2, official LG G2 ROM for Portugal TMN.

First I tried to installed it but it was rejected as I had TWRP, so I flashed the original recovery with Flashify (I had a backup). After that I checked that I had the stock recovery, I rebooted and tried the OTA install again. After reboot, this happened...
[G2 General] bender_007:
Oh. Then push /dev/zero to misc and fota partition
[G2 General] GreenTuxer:
First of all, thank you so much for all your help and your time spent with this issue.

Related to pushing /dev/zero to misc and fota, that was really well remembered, but unfortunately I get "no space left on device", on both cases:

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=/dev/zero of=/dev/sdb13

dd: writing to ‘/dev/sdb13’: No space left on device

7900449+0 records in

7900448+0 records out

4045029376 bytes (4,0 GB) copied, 6,4653 s, 626 MB/s

root@pt-lnabais:/home/lnabais/Downloads/Android/G2/10b_16G# dd if=/dev/zero of=/dev/sdb24

dd: writing to ‘/dev/sdb24’: No space left on device

1+0 records in

0+0 records out

13 360448 393215 16.0 MiB FFFF misc

24 655360 720895 32.0 MiB FFFF fota

EDIT: If I'm not wrong, after a bit of thought on this, the error was supposed to appear, as this filled the partitions with zeros.

After that, I flashed boot, aboot, laf and recovery (twrp) img files, with dd, but the same thing happens.

It's like it's protected, read only, something like this. This is very strange.
[G2 General] 6ril1:
Yes (OT)
[G2 General] LiamAtkins90:
It should but it depends, you can mount USB storage in TWRP but whether the device there will be recognized.

Do you have a USB flash drive you can plug to the device, you also need a USB On-The-Go cable to plug into your phones USB port then the Flash Drive plugs into the other end.

But to be honest the device you've linked to above, should deffinatly work.

Sent From V500

Using XDA App
[G2 General] idonttakedrugs:
Is there a fix if i had bricked it when returning back stock and the computer crashing?
[G2 General] GreenTuxer:
I tried the same process (the 3 files and the recovery) from a different computer and it worked at the first time. Maybe it was some kind of conflict between the USB ports, but as I said, it seemed as nothing was writting on the phone, regardless of the messages saying copies went ok.

My advice is to download a bootable Linux and try the process on a different computer.

Thank you all for your help, I am already downloading an Android ROM for this, no more default LG ROMS and it's vicious recovery systems, I'll manage everything myself.
[G2 General] dr jam:
root@martin-VirtualBox:~# ls /dev/sd*

/dev/sda /dev/sda1 /dev/sda2 /dev/sda5

root@martin-VirtualBox:~# gdisk -l /dev/sda

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.

************************************************** *************

Disk /dev/sda: 16777216 sectors, 8.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 88BCE2BE-E647-4B1E-990A-153C9134D395

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 16777182

Partitions will be aligned on 2048-sector boundaries

Total free space is 6077 sectors (3.0 MiB)

Number Start (sector) End (sector) Size Code Name

1 2048 14680063 7.0 GiB 8300 Linux filesystem

5 14682112 16775167 1022.0 MiB 8200 Linux swap

root@martin-VirtualBox:~#

What can i do in this case?
[G2 General] bender_007:
Glad it workd ;)
[G2 General] GreenTuxer:
Unfortunately I still need some help. I flashed a ROM in my D802, but after reboot, the only thing that opens is the recovery. This has something to do with the flashed img files, doesn't it? Do you know what is causing this?

Thanks
[G2 General] bender_007:
I advise you rather flash the rom via download mode m8.
[G2 General] GreenTuxer:
I tried to open download mode (hold vol (without pressing power) + and connect usb cable, but the recovery (twrp) opened again...
[G2 General] bender_007:
What rom did you flash ?

If it's stock(like) 4.4.2 then just install autorec_d802 and flash it
[G2 General] GreenTuxer:
I flashed CloudyG3, but I can't pass TWRP, that's what always opens (even if I force download mode or just turn on phone with power, normally), so I can't boot Android and I can't install autorec...

I think I dd'd something wrong. I just dd'd boot, aboot, laf and TWRP, of course.

EDIT:

YEEEEEEEESSS. It's working now. I followed this: http://xdaforums.com/showthread.php?t=2451696

Thanks a lot for everything guys! You really are the best. I'll never forget this day, thank you so much!
[G2 General] tflint:
Bricked

Hi,

Would anyone be able to sit down and walk me through a how to fix my no recovery, no download mode recovery from my bootcamp partition on my mac. I have tried to fix the phone following these directions but it isn't working.

Thank you,

Toby
[G2 General] savior02:
Just tried it and the drive doesn't show up under TWRP. I try to mount it and it doesn't show up either. The only thing I have left is to try to use the TWRP itself but the screen is way off. I can't even slide to operate. I tried connecting a keyboard but doesn't work. I'm running out of options here any more ideas?
[G2 General] bender_007:
Format the flash drive via windows and try again.
[G2 General] 6ril1:
You can try to force these usb drivers, they work in recovery:

http://koush.com/post/universal-adb-driver

and use adb push
[G2 General] savior02:
I did. I formatted twice even changed the methods. Also used different USB keys still not showing up! I'm about to throw in the towel on this thing
[G2 General] bender_007:
Ok. When I'm home I try to assist you.
[G2 General] marvinjc:
Bender_007 fixed my lg g2 he assisted me step by step im glad my phone is finally back
[G2 General] savior02:
I have installed these drivers but when I do anything with adb it doesn't work because my phone wont connect

---------- Post added at 12:09 PM ---------- Previous post was at 12:07 PM ----------

I have tried everything. My main probem is connecting it to the pc with windows 8.1 windows 7 and ubuntu
[G2 General] theghostbh:
not work with me i use win8.1 64bit

my mobile : vs98012b

its not work any other way to install it ??

and where i put file .img ( recover and the other file to work mybe if i copy it to the file must be in will work fine )

please help me
[G2 General] 6ril1:
Perfect. Now you can use adb push ; -)
[G2 General] savior02:
I keep pushing roms to it but when I look at the phone files after rebooting there is nothing there. I think my twrp is corrutped. Can I reflash it with adb?
[G2 General] 6ril1:
And adb sideload ?
[G2 General] Animor:
Hi,

I've followed the guide and pushed all files to my LG G2.

My phone is dead now - no logo, no led, nothing.

I've searched the topic and realized that I have downloaded the links instead of the real files. The name is .img, but it's an html file, not the real file. I right clicked the link and downloaded it instead of clicking it.

Is there anything I can do now? Can it be fixed with JTAG in a laboratory?

btw, since I'm not the first one to download html instead of the img, I suggest to clarify it on the first post. So others won't fall for it.
[G2 General] savior02:
The thing is with adb sideload I have to swipe start slideload and my touch screen is misaligned so I cant get the slider to slide all the way to the right. Any way around it?
[G2 General] 6ril1:
So you can try dd command for writing new recovery
[G2 General] savior02:
How do I do that the only thing I found was this when it comes to dd command. I also have the newest twrp what do I do?

---------- Post added at 04:27 PM ---------- Previous post was at 04:09 PM ----------

Ok now after trying this it doesn't boot into recovery anymore it now boots into fastboot
[G2 General] 6ril1:
Use fastboot for restore laf (download mode) :

http://xdaforums.com/showthread.php?t=2477595
[G2 General] savior02:
And I lost ADB connection omg Im about to throw this phone into the bottom of a river!!!
[G2 General] dr jam:
nemder_007

bender_00 bro why u not replying.................need u to guide me plzzzzzzzzzzzzzz.

root@martin-VirtualBox:~# ls /dev/sd*

/dev/sda /dev/sda1 /dev/sda2 /dev/sda5

root@martin-VirtualBox:~# gdisk -l /dev/sda

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.

************************************************** *************

Disk /dev/sda: 16777216 sectors, 8.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 88BCE2BE-E647-4B1E-990A-153C9134D395

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 16777182

Partitions will be aligned on 2048-sector boundaries

Total free space is 6077 sectors (3.0 MiB)

Number Start (sector) End (sector) Size Code Name

1 2048 14680063 7.0 GiB 8300 Linux filesystem

5 14682112 16775167 1022.0 MiB 8200 Linux swap

root@martin-VirtualBox:~#

What can i do in this case?
[G2 General] bender_007:
^need to see this tomorrow. Because I work almost every day, including tomorrow - sunday. Install teamviewer for tomorrow :)
[G2 General] savior02:
Ok now my phone goes into fastboot when trying to get into recovery. It also goes to fastboot when I go into download mode. Seems like I'm getting somewhere. How do i know flash twrp again?
[G2 General] bender_007:
don't flash twrp...

flash aboot, boot, laf...disconnect, power off, hold volume up and connect to pc..and flash kdz
[G2 General] savior02:
I finally fixed it!!!!!

---------- Post added at 08:22 PM ---------- Previous post was at 08:17 PM ----------

I finally fixed it!!!!!! I realized where I went wrong!!! The recovery twrp I flashed was for a D802 and mines is a D800!!! I flashed aboot boot laf recovery rpm tz sbl1 with fastboot and finally finally finally I got my download mode back!!! WOW unbelievable! Thanks to all who were helping me!!
[G2 General] deathsquad737:
Try a otg cable if you can access twrp

Nevermind you got it congrats

WHATSAMATTA U ALUMNI
[G2 General] dumbodroid:
Bricked (??) LG D802 (nordic, 32 gb), what files to use?

Hi guys, my phone was not working well at all so i had to do a factory reset and decided to install the optimus g3 rom. Well, that didnt work and ever since i have been making everything worse.

So i rooted, wiped everything and tried to sideload the rom and it didnt work. Then i installed autorec and lost my knock on ability and could still not sideload using team win recovery (like i wasnt able to mount usb otg); so i changed to CM recovery and i still couldnt adb sideload (same couldnt mount usb otg). So i figured i just flash back to stock with this flash to stock guide but i was not in download mode when i started so that didnt work (and i panicked and didnt take any screenshots of the error messages). I saw my phone and it was stuck in a firmware update screen at 9% and a warning to not remove the usb cable. So i powered it off thinking i could try again from download mode.

But now i just get LG logo with no error message. I cant go into download or recovery mode. Just that logo.

I found this thread, but i notice that the OP has files for a 16GB version. Is it the same for 32 GB north europe? I dont want to make things worse. Where can i get the right files for my system? I browsed the directory but i can't find those image files for 32 gb north europe build.

EDIT#2: So i tried with the files anyways. It didn't work. I used a bootable ubuntu usb stick and when i did the -ls /dev/sd* command i didn't get a long list of possible drives. I guess my phone isnt being recognized at all.

Please help

P.S: sorry about the long post, i needed to vent.
[G2 General] idonttakedrugs:
will somebody please answer me :( will this work if my phone was bricked going back to stock and the programmed being shut down? no download mode no anything except loads of drives come up on pc when connected
[G2 General] mss1988:
I think I know the way how to get out of this successfully (and avoid bricking, like I did with my device). I just need more experienced devs to confirm that and to provide patched kernel and bootloader so the users can flash them.
[G2 General] briankariu:
The road so far

Bricked my LG G2 LS980, so this is what I have tried and worked so far:

First, if your device is detected as unknown USB device, hold down the power button for about 10 seconds, release and plug it back via USB. You should now see QHUSB_BULK in device manager

ls does not see partitions? Am also stuck there. lsusb does see the device attached. I think what happened was I ran down the battery. The phone is now unable to get into download mode, or any other of the three recovery modes. And it cant charge too. Am looking for a solution to this in other forums and iirc. Hope I will get something soon.

p.s I have read all the 135 pages of comments (*Achievement unlocked: Lurker)
[G2 General] bender_007:
Try another computer or even linux distro. Sounds funny and trollish but try knoppix.(unetbootin or vmware or from cd/dvd)
[G2 General] spartydroid51:
I'm getting a weird "segmentation failure" message after typing gdisk -1 /dev/sdb. Does anyone kno what the deal is with that?
[G2 General] johnson:
I am also stuck at this point! (no recovery, no download mode, just the LG logo)

Did anyone come up with a solution yet?
[G2 General] spartydroid51:
If u figure out a way to move past this point please let me know
[G2 General] Zulake:
I send it in after all and it got a new motherboard.

Funny enough I won an HTC One (M8) 1 day afterwards so I sold the 'new' G2 immediately.

Sent from my HTC One_M8.
[G2 General] bender_007:
it's not "1" -- its l (== lowercase L)
[G2 General] spartydroid51:
O interesting. I'll give that a shot. Thanks
[G2 General] dr jam:
knoppix

using VMware and knoppix is kind of weirdo...................I installed VMware workstatin 10....now on installing knoppix 7.2 ...I clicked FILE>NEW VIRUAL MACHINE>TYPICAL...

Now the issue begins..........

it says Install from:

1)installer disk

2)intaller disk image

and also says that ...I will install the operating system later...

now I choose option 2..as my file is in iso...and also that I will install the operating system later...

but in the next windows there are lots of options reading operating system....now which should I choose...plz help

and also I am already running windows 8 32 bits as my main operating system....

guide this nobe plz
[G2 General] CoyotesFan4Evr:
OK, So it took some time but I got Ubuntu to actually install. However after that and a couple command prompts I'm stuck. When I try the command line dd if=/home/sean/Desktop/sbl1.img of=/dev/sdb2. I then get this EXACT error. opening `/home/sean/Desktop/sbl1.img': No such file or directory. Also before that when I try the second command I get this EXACT error. The program 'gdisk' is currently not installed. You can install it by typing:

sudo apt-get install gdisk. From there I get this error. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Ok so I don't get any of the messages I mentioned before except the very first one I mentioned.

So how is it that I'm getting these errors?? Once I figured out how to open a terminal I thought it would all go really smooth. But it hasn't.
[G2 General] dr jam:
dd if= NOT WORKINg

hi bro I jumped 1 step ahead..................now I am stucked at the last step.....

dd if= command not working/.......................pic is attached...

although my files are present on desktop and the path is also right........now what to do
[G2 General] spartydroid51:
Random thought. Will the. Img and the 5 files I need that I can download work for my D800 or are those specific to the D802??
[G2 General] dr jam:
dd command worked but still g is as it was

hi bro....though I solved all the steps but again I ended up from where I started....

I used dd command as shown in the thread...pic is attached....and then when I rebooted my g2 it was the same as before...just lg logo and at left topt that twrp certification error as was bofore.......

now I don't know what wrong did I make even the dd command worked................as shown in pic........

now don't know what to do..........
[G2 General] spartydroid51:
I just typed it in with lowercase l and not 1 and I got a weird message that says:

"unable to open binary database /usr/share/command-not-found/programs.d/amd64-main.db: [Errno 5] Input/output error" and it says that like 4 times and then it says.......

"gdbm fatal: read error

Bus error (core dumped)"

I have no idea what that means. I tried all sorts of variations of the gdisk command in terms of spaces and such. When I do the ls /dev/sd* command it gives me three options, they are all /dev/sda and it goes from sda up to sda3.

Any ideas? Please help shed some insight onto whats going on with this craziness.
[G2 General] dr jam:
finally my lg g2 is ALIVE again

thanks to this community................simply u guys are rocking.....just perfect.............thanks to u all...........

and special thanks to the one and only my brother from another mother mr bender who helped me nd guide me through every step..............

thanks again bro it all possible bcoz of u.............
[G2 General] CoyotesFan4Evr:
Well I got it all to work, and it finally took the command lines. However, I'm not sure if my phone died during the process or what but it won't boot up at all. I entered everything in right to the letter. I have my phone plugged up hoping it will charge. But it's not looking good considering the light isn't on, on it. I suppose I'll just wait and see. I'm really rather bummed at the moment. I suppose I should get in touch with Verizon again and force them to respond as I haven't heard from them yet.
[G2 General] megatooth:
edited
[G2 General] naxol:
None of this happens :( I never see any errors, it just shows the LG logo then goes to a black screen with the LED flashing green and blue.

When I connect it, I don't really know what it is seen as in device manager, but windows says it's looking for drivers for MTP USB Device...

and in VMWare it is seen as "LGE Android Phone", when I connect or disconnect it, that doesn't make a difference in the list that I get from typing in the ls /dev/sd* command, which is "/dev/sda /dev/sda1 /dev/sda2 /dev/sda5".

My phone was on android 4.2.2 and was bricked as a result of: using towelroot then installing TWRP using AutoRec, and after booting into TWRP installing SuperSU.

Any ideas? :(

Edit: Phone can go into download mode. But I have nothing to 'download' on it, what do I do now?
[G2 General] spartydroid51:
I'm in the same exact boat so if anyone could help it would be a huge help

Sent from my SAMSUNG-SGH-I747
[G2 General] naxol:
I think you and I can start working from this thread: http://xdaforums.com/showthread.php?t=2432476

If your TWRP and download mode works (they do for me) I believe you can start from that thread instead of the OP. And I accessed TWRP like this: https://www.youtube.com/watch?v=eXrI1z7WI70

I was stuck at finding out what sort of firmware I need for my phone, since as far as I could tell it was just a 32gb D802 without any carrier, and my country wasn't listed...

so after hours of searching for the imei/serial and parts of them, I went to this site: www.sndeep.info/en

picked LG, wrote in my IMEI number and it gave me the correct serial which was on the box, along with other information about my device

most importantly the COUNTRY!!! It said Made for: United Arab Emirates

and I am now downloading the corresponding firmware for it.

Hope this helps you in any way.
[G2 General] jo3ji:
So i tried to update my phone OTA the other day i realized i had twrp installed and it failed to install the update so it restarded and bricked my phone Verizon Lg g2. All it does it boots up and gives me Error: boot certification verified and then goes to a black screen after the lg logo and stays there. So i tried this guide installed ubuntu and booted into it hoping this wold work to try and get my back up and running but when i connected my device after i turned it of and it booted back up all kinds of pop up screens come on and give me nothing but mounting errors is there any way to fix this so i can continue with the guide? Also when i get those mounting errors my screen flickers off and on but stays at the black screen and doesn't reboot to the lg logo it just continues to make more pop ups come on and keeps giving me errors. Please help guys.
[G2 General] bender_007:
Can you boot into the twrp?
[G2 General] jo3ji:
nope i cant boot into twrp or download mode every time i try it just reboots to the lg logo. But i can boot into factory data reset and it says I'm rooted but when i run it nothing happens. Its just when i plug it into ubuntu it recognizes the phone tries to mount the partitions but it wont mount just gives me dev mounting errors non stop. I tried unplugging it, plugging it back in, turning it off but still gives me those mounting error pop ups.
[G2 General] xolum:
I have exactly the same issue.

How to solve?
[G2 General] bender_007:
The first post will helo you. But only aboot.img, boot.img and laf.img. then you will have download mode. Male sure you download the proper varian Fileš.
[G2 General] sas007:
Hi when i carry out first step root@ubuntu:~# ls /dev/sd*

all i get is this

/dev/sda /dev/sda1 /dev/sda2 /dev/sdb /dev/sdb1 /dev/sdc

i only get these 5 so im stuck..can anyone point me in right direction please.

many thanks.
[G2 General] bender_007:
This is native ubuntu?
[G2 General] sas007:
Hi yes running Ubuntu on a live usb on a window computer

Many thanks.
[G2 General] bender_007:
Let me see, it would be nice to make a list:

- the possible caus of bricking ?

- tried download mode ?

- recovery mode ?

- what does windows say ?

- what does linux say ?

- what is on the screen (phone) ?