yashsingh1/xdaforums huggingface dataset:
[G2 General] dlcsboop:
Hi,

My phone is in completely dead after issuing these commands.

[root@oc8387211648 boobam]# gdisk -l /dev/sdc

GPT fdisk (gdisk) version 0.8.10

Partition table scan:

MBR: protective

BSD: not present

APM: not present

GPT: present

Found valid GPT with protective MBR; using GPT.

Disk /dev/sdc: 61071360 sectors, 29.1 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20

Partition table holds up to 40 entries

First usable sector is 34, last usable sector is 61071326

Partitions will be aligned on 2-sector boundaries

Total free space is 237512 sectors (116.0 MiB)

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

1 32768 163839 64.0 MiB 0700 modem

2 163840 165887 1024.0 KiB FFFF sbl1

3 165888 166911 512.0 KiB FFFF dbi

4 196608 197631 512.0 KiB FFFF DDR

5 229376 231423 1024.0 KiB FFFF aboot

6 231424 233471 1024.0 KiB FFFF rpm

7 262144 294911 16.0 MiB FFFF boot

8 294912 296959 1024.0 KiB FFFF tz

9 296960 296961 1024 bytes 0700 pad

10 327680 333823 3.0 MiB FFFF modemst1

11 333824 339967 3.0 MiB FFFF modemst2

12 339968 339969 1024 bytes FFFF pad1

13 360448 393215 16.0 MiB FFFF misc

14 393216 458751 32.0 MiB 0700 persist

15 458752 491519 16.0 MiB FFFF recovery

16 491520 497663 3.0 MiB FFFF fsg

17 524288 525311 512.0 KiB FFFF fsc

18 525312 526335 512.0 KiB FFFF ssd

19 526336 526337 1024 bytes FFFF pad2

20 526338 527361 512.0 KiB FFFF encrypt

21 557056 573439 8.0 MiB 0700 drm

22 573440 589823 8.0 MiB 0700 sns

23 589824 622591 16.0 MiB 0700 ve

24 622592 688127 32.0 MiB FFFF laf

25 688128 753663 32.0 MiB FFFF fota

26 753664 819199 32.0 MiB 0700 mpt

27 819200 884735 32.0 MiB 0700 carrier

28 884736 901119 8.0 MiB 0700 eri

29 901120 905215 2.0 MiB FFFF blus

30 905216 906239 512.0 KiB FFFF dbibak

31 906240 908287 1024.0 KiB FFFF rpmbak

32 908288 910335 1024.0 KiB FFFF tzbak

33 910336 910351 8.0 KiB FFFF rct

34 917504 7733247 3.2 GiB 0700 system

35 7733248 9371647 800.0 MiB 0700 cache

36 9371648 9535487 80.0 MiB 0700 tombstones

37 9535488 9568255 16.0 MiB 0700 spare

38 9568256 61046783 24.5 GiB 0700 userdata

39 61046784 61071326 12.0 MiB 0700 grow

[root@oc8387211648 boobam]# dd if=/home/boobam/g2/sbl1.img of=/dev/sdc2

1024+0 records in

1024+0 records out

524288 bytes (524 kB) copied, 0.192117 s, 2.7 MB/s

[root@oc8387211648 boobam]# dd if=/home/boobam/g2/aboot.img of=/dev/sdc5

2048+0 records in

2048+0 records out

1048576 bytes (1.0 MB) copied, 0.27237 s, 3.8 MB/s

[root@oc8387211648 boobam]# dd if=/home/boobam/g2/rpm.img of=/dev/sdc6

1024+0 records in

1024+0 records out

524288 bytes (524 kB) copied, 0.195755 s, 2.7 MB/s

[root@oc8387211648 boobam]# dd if=/home/boobam/g2/tz.img of=/dev/sdc8

1024+0 records in

1024+0 records out

524288 bytes (524 kB) copied, 0.190762 s, 2.7 MB/s

[root@oc8387211648 boobam]# dd if=/home/boobam/g2/recovery.img of=/dev/sdc15

22528+0 records in

22528+0 records out

11534336 bytes (12 MB) copied, 1.7426 s, 6.6 MB/s

I initially used recovery.img from the original system and tried to reboot nothing happens. Then tired with TWRP recovery image still not able to reboot. Can some one help me
[G2 General] bender_007:
You should have flashed the laf.img
[G2 General] cadavar:
FINALLY GOT IT TO WORK!!!!

Hopefully this helps someone else too. I am using 32GB AT&T model (D800)

Whenever I connected the phone in Ubuntu, it would mount and dismount repeatedly and reboot as well, so I decided to use Fedora in VMWare instead. Since my partition table was completely screwed up, it was only listing /sdb not the other partitions (sdb1, sdb2, etc...) so I decided to use the file 0-PrimaryGPT.img to build the partition table for the rest of the partitions (ex: dd if=/home/user/Desktop/0-PrimaryGPT.img of=/dev/sdb ), note that there is no # at the end of "sdb" since this is the partition layout table of the whole disk.

Then I proceeded to image every single partition (every one which had a image file on that website), and rebooted. I restarted the phone and held the Vol up + Pwr and it took me into download mode. From there I used the LG flash tool to flash the stock .tot ROM on the device and I am now in business.

This will work for anyone who has at least some signs of life in their G2. As long the phone boots and there is no hardware damage and you can see the LG logo, I believe there is hope, so do not give up.

THANK YOU to OP and everyone who posted their results!!!
[G2 General] pazuzu91:
.

Did your G2 give ant sings of life wnah you put it on pc.. Mine dont. It just show lg logo and reboot's it. Pc wint recognize it. Like nothing attached.
[G2 General] cadavar:
When you plug it into Windows, which driver does it load in device manager? Are you getting the multiple drives being popped up when plugged in?

Are you using a Linux distro? In Windows, it would constantly reboot but on Linux it remained stable enough to accept commands. Also make sure you unplug the USB then turn the power off by holding down the power button for 5 secs. Then hold the Vol up key and plug the USB back in. Even though the recovery partition may be wiped out, it will still try to look for that partition and go into that mode.
[G2 General] 82bmickelson:
LG G2 Savior

Thanks for the thread, works great! :good: Saved my LG G2 from extinction.
[G2 General] Caj31:
Need Help

I have a Verizon LG G2 VS980 and I am having all the issues list above with my device. I am not familiar with using linux. I really need some help with this. My phone has been bricked since April Please!!! Help!!!
[G2 General] mertumur:
thak you bro. Does this method of laying a warranty :confused:
[G2 General] bloodhawk521:
Can you help me?

hi,my phone is f320k,i have the same problem with your's.I try to fix it in ubuntu,but it does'nt work.PS:I push sbl1.bin to sdb2.can bin to used?

root@ubuntu:~# gdisk -l /dev/sdb

GPT fdisk (gdisk) version 0.8.8

Warning! Disk size is smaller than the main header indicates! Loading

secondary header from the last sector of the disk! You should use 'v' to

verify disk integrity, and perhaps options on the experts' menu to repair

the disk.

Caution: invalid backup GPT header, but valid main header; regenerating

backup header from main header.

Warning! Error 25 reading partition table for CRC check!

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:

MBR: protective

BSD: not present

APM: not present

GPT: damaged

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

Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk

verification and recovery are STRONGLY recommended.

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

Disk /dev/sdb: 1024 sectors, 512.0 KiB

Logical sector size: 512 bytes

Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20

Partition table holds up to 40 entries

First usable sector is 34, last usable sector is 61071326

Partitions will be aligned on 2-sector boundaries

Total free space is 237512 sectors (116.0 MiB)

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

1 32768 163839 64.0 MiB 0700 modem

2 163840 165887 1024.0 KiB FFFF sbl1

3 165888 166911 512.0 KiB FFFF dbi

4 196608 197631 512.0 KiB FFFF DDR

5 229376 231423 1024.0 KiB FFFF aboot

6 231424 233471 1024.0 KiB FFFF rpm

7 262144 294911 16.0 MiB FFFF boot

8 294912 296959 1024.0 KiB FFFF tz

9 296960 296961 1024 bytes 0700 pad

10 327680 333823 3.0 MiB FFFF modemst1

11 333824 339967 3.0 MiB FFFF modemst2

12 339968 339969 1024 bytes FFFF pad1

13 360448 393215 16.0 MiB FFFF misc

14 393216 458751 32.0 MiB 0700 persist

15 458752 491519 16.0 MiB FFFF recovery

16 491520 497663 3.0 MiB FFFF fsg

17 524288 525311 512.0 KiB FFFF fsc

18 525312 526335 512.0 KiB FFFF ssd

19 526336 526337 1024 bytes FFFF pad2

20 526338 527361 512.0 KiB FFFF encrypt

21 557056 573439 8.0 MiB 0700 drm

22 573440 589823 8.0 MiB 0700 sns

23 589824 622591 16.0 MiB 0700 ve

24 622592 688127 32.0 MiB FFFF laf

25 688128 753663 32.0 MiB FFFF fota

26 753664 819199 32.0 MiB 0700 mpt

27 819200 884735 32.0 MiB 0700 carrier

28 884736 901119 8.0 MiB 0700 eri

29 901120 905215 2.0 MiB FFFF blus

30 905216 906239 512.0 KiB FFFF dbibak

31 906240 908287 1024.0 KiB FFFF rpmbak

32 908288 910335 1024.0 KiB FFFF tzbak

33 910336 910351 8.0 KiB FFFF rct

34 917504 7733247 3.2 GiB 0700 system

35 7733248 9371647 800.0 MiB 0700 cache

36 9371648 9535487 80.0 MiB 0700 tombstones

37 9535488 9568255 16.0 MiB 0700 spare

38 9568256 61046783 24.5 GiB 0700 userdata

39 61046784 61071326 12.0 MiB 0700 grow
[G2 General] Sun_M:
I have followed your instruction and it's worked great. I'm in TWRP now, but I have a problem. Do I flash a new ROM or follow the instructions in the post you stuck to the end of your post?

My computer says my phones drivers are installed, but it does not show up on my computer as a disk drive, meaning I cannot put files onto it. What do I do?
[G2 General] bender_007:
Adb push will solve the issues. Or usb otg.
[G2 General] Sun_M:
How do I do this? Can you link me to a thread?
[G2 General] bender_007:
Basically what I would do in your place.

1. download ioroot25 (just because of adb inside)

2. download a rom, put it into ioroot25 folder (rename it to rom.zip)

3. while in ioroot25 folder HOLD SHIFT and right click anywhere (inside the folder) but on the files... Click on open command window here.

4. while in command prompt type: "adb push rom.zip /sdcard/rom.zip"

it will take some time

(you have to be in recovery TWRP - and the cable has to be connected - and obviously the drivers installed, please check device manager )
[G2 General] Darksword:
First of all , Thx alot for your effort

But i need your help , i had the same issue you mentioned in ur post

No Recovery, No download Mode , just LG logo .. then darkness

My Linux read it as lot of partitions as you mentioned and had the exact sdb36 since i had D802 as well

However, i got my problem not from OTA update .. got it from flashing accidently 32GB stock on My 16GB d802

I should have asked first if there is any more thing that i should add during working on linux .. and i hope its not late

After going through all your post and restarting the phone it doesnt go to recovery .. it just stuck at LG Logo now :-\

No recovery , No download mode

Maybe i should have flash LAF.img or something like that

Any ideas ? Please
[G2 General] Sun_M:
That's ingenious! Thanks a lot, I shall try that now. When the ROM is installed, do I follow these instructions? http://xdaforums.com/showthread.php?t=2451696

So I have placed the ROM inside the ioroot25 folder and have opened the command window as you instructed. I renamed the zip to rom.zip and have written exactly what you have and it comes back with "cannot stat 'rom.zip': No such file or directory". Have I done something wrong?
[G2 General] bender_007:
Yeah, seems to me you have moer instances of adb.

just grab the rom.zip, put it straight on c:\

so you can type:

adb push c:\rom.zip /sdcard/rom.zip
[G2 General] athhar96:
In my situation, the phone is not booting at all! No notification LED nor Charging screen. But it is detected under windows as qhusb device. Is there any hope??
[G2 General] bender_007:
Yes.

download unetbootin - download ubuntu iso, flash it to "usb flash disk", boot from the usb flash drive and follow the manual. It's basically written but I can give you a hand with it.
[G2 General] athhar96:
I am new to linux..im using Ubuntu 10.10-desktop-i386 via vm vare. but when i connect the phone to the pc and enter the first command in terminal it only displays up to sda5, and later i wrote the same command without connecting phone and the result is same and the device is not detected in ubuntu. Is there any drivers to be installed on ubuntu?
[G2 General] bender_007:
You can try new version but it should work on the old one also.

Try entering recovery mode - when it fails just keep it connected to pc while in ubuntu.

Does it pop up mounting errors ?
[G2 General] athhar96:
no. The screen does not even turn on. only detected as qualcomm qhusb_bulk. No lg logo.
[G2 General] bender_007:
oh..you killed the battery ? then..well you know, the battery has to have some juice m8.
[G2 General] Fuzedmind732:
I'm beginning to lose hope. I've tried both 11A and 10B versions, as well as versions 2.6.3.3. and 2.6.3.2. of recovery to no avail. I am still getting all the problems described in the OP.
[G2 General] Wasupman2:
Alright guys. So I've finally fixed the phone. After doing the steps on this guide which I installed the wrong files, I followed http://xdaforums.com/showthread.php?t=2477595 to flash the files in fastboot mode. Keep in mind, I have an ATT D800 model.

I followed the guide, in which I have deleted the recovery part of my phone. Since my phone is working normally now, I'm not sure if I have a recovery mode. I'll check it out when I need to. However, the following steps below won't touch anything with the recovery.

These are the steps I've taken to get the phone to boot back to normal:

Download files laf.img, sbl1.img, aboot.img, rpm.img, and tz.img from http://downloads.codefi.re/autoprime/LG/LG_G2/D800/Stock_Firmware/10o_partitions to a location you can get to on the command prompt (C:/ or D:/. These are files for the ATT variant D800. If your device is different, click on (back) next to the title on the page and look for your phone.

Connect the phone to the computer and you will get the fastboot mode prompt starting with something like "processing commands".

Open a command prompt (Windows key + r -> cmd -> hit enter) and go to the directory with the downloaded files in step 1.

Type the command

fastboot flash sbl1 2-sbl1.img
fastboot flash aboot 4-aboot.img
fastboot flash rpm 5-rpm.img
fastboot flash tz 7-tz.img
fastboot flash laf 11-laf.img
fastboot reboot

After these commands, the phone should now be back to normal boot procedures and hopefully you'll see the home screen.
[G2 General] skypang:
First thanks for your reply .Yes, I am using virtual machine. When I Plug it into windows xp .It first time detect to qhsusb_bulk? then I install driver it in xp it change to qhsusb dload . I open ubuntu in vm, it detect to Qualcomm, Inc. Gobi Wireless Modem (QDL mode). It never detected to be First thanks for your reply .Yes, I am using virtual machine. When I Plug it into windows xp .It first time detect to qhsusb_bulk? then I install driver it in xp it change to qhsusb dload . I open ubuntu in vm, it detect to Qualcomm, Inc. Gobi Wireless Modem (QDL mode). It never detected to be a partition. How can I do ?a partition. How can I do it.
[G2 General] Fuzedmind732:
This is assuming of course you can get to download mode....most people here cannot even do that.
[G2 General] Wasupman2:
No, these steps are done through fastboot mode in order to get download mode working.
[G2 General] Partager.info:
When you plug your phone to windows, does it give you bunch of error messages asking you to format some drives?

If it is the case then, when you boot ubuntu you should open vwmare in full screen, after that plug your phone.

If no new partitions are detected just unplug it and plug it again. keep trying untill you get sdb partitions.

by the way unplug any other usb device, keep just mouse and keyboard.

Try to download this driver: qualcomm hs-usb diagnostics 9006 drivers, then update the driver in the device manager with the new one

your device must be detected as qualcomm hs-usb diagnostics 9006.
[G2 General] pw1nce:
i had the same situations , i used to get the lg logo and then dark screen but screen wud be still on , eventually i formatted some of those drives , after that my lcd is always dark , i mean before it used to get the lg logo n dark screen wd dim light but nw it never turns on but my pc detects my phone as ''qhsusb_bulk'' , is my lcd dead or it can be recovered? thnx
[G2 General] Fuzedmind732:
I finally fixed my phone!

I did exactly what was described in the OP, then found I couldn't boot into the recovery. I left my phone on the charger all night and this morning, I powered the phone on using power and volume -. It booted into factory reset. I did it, then got booted into TWRP!. I'm guessing my phone needed to be charged to 100% in order for it to work. Just a tip for some people who are having trouble.
[G2 General] RedMist:
Thank you very much for this post!!!!!!!!!!!!!!!!!!!!!!!!!!! OMG thanks so much!!!!!
[G2 General] Partager.info:
We can't say your LCD is dead. Just follow the process described in the op you can recover your phone.
[G2 General] skypang:
Try to download this driver: qualcomm hs-usb diagnostics 9006 drivers, then update the driver in the device manager with the new one

your device must be detected as qualcomm hs-usb diagnostics 9006.[/QUOTE]

I tried 1(change are few driver) 2(plug in plug out the usb)3(open vwmare in full screen)4(unplug any other usb device, keep just mouse and keyboard) but the phone also not detected as qualcomm hs-usb diagnostics 9006 and get sdb partitions. Now in windows display Qualcomm HS-USB QDLoader 9008 (com16),in vmware detect to Qualcomm, Inc. Gobi Wireless Modem (QDL mode). I search Qualcomm, Inc. Gobi Wireless Modem (QDL mode) in internet, it look like no one can solve this problem ,but in a chinese link bbs.gfan.com/forum.php?mod=viewthread&tid=6269182&extra=page%3D1%26filter%3Dtypeid%26typeid%3D6877%26typeid%3D6877 he use qpst can solve .Unfortunately I have not those files g_emmc.img MPRG8974.hex and 8974_msimage.mbn for G2. thank you again for your reply
[G2 General] viper_79:
Did everything as described in the first post, and everything went through as well... but it still just boots up and shows the black screen with the error on the top left corner.

Its just a two day old G2 [D802] ... pls help :(
[G2 General] bbb207:
In Ubuntu

When I plug in the phone and type ls /dev/sd* the response i get is /dev/sda

Can someone tell me what i need to do to see the sdb or sdc?

I do see LG.Electronics Inc. QHSUSB_BULK as a USB option but when I select it, I get the multiple drives popping up to format. Help....
[G2 General] 3S0PHAGOOS:
My windows detects my G2 as Qualcom etc..

even on ubuntu but it can't detect as partition..

i only got /dev/sda on my vm and that is my vm machine.

same with live ubuntu on usb, it just detects my other harddrives
[G2 General] tornamac04:
Any chance that this could be of use for those of use who are QDLoader 9008

http://ac100.grandou.net/abootimg
[G2 General] CapitanFantasma:
I did all the steps but my phone still gives the same error I copy everything ;(
[G2 General] Partager.info:
yes it can be used for that.
[G2 General] Partager.info:
Keep holding power button and vol- while pluging your phone until it restarts then release them. if it does not detect your partitions keep trying several times. it should work.
[G2 General] SolixTanaka:
Stuck

Hey guys, still working on getting my little brother's Verizon OTA mishap fixed. Following the directions so far, I managed to get to:

ls /dev/sd*

After plugging that in, the highest numbered SDB on my list was 39, so, correct me if I'm wrong, but I plugged that number into

gdisk -l /dev/sdb

to create

gdisk -l /dev/sdb39

That's where my progress so far has come to a stop, as I don't get the large table shown in the OP. I attached a picture of it and the result for reference. Can anyone pin where I went wrong? Maybe my SDB# was wrong? Any input is much appreciated, as I've spent close to 6 hrs a day for the last three days trying to undo this mess. Thanks!
[G2 General] duckmangga:
i want qhusb_bulk

Can someone tell me how to get "5- LG detected as qhsusb_bulk in device manager"? I only have ADB to work with right now and I don't have permissions to push, remount etc...
[G2 General] adrianttt:
help i did all these things and now my phone don't boot. not even show the logo
[G2 General] ifaaf3416:
Lg g2

Yes u can call me no. +9609693750 :good:

---------- Post added at 10:35 AM ---------- Previous post was at 10:30 AM ----------

Yes just call me +9609762036 or+9609693750

It would be fun:laugh:
[G2 General] bender_007:
Can you enter download mode? Is the battery operative or dead?
[G2 General] 2strokenut:
T-mobile Files d801 20a or 10a

I lost download mode on my d801 and looking through the files I see 10a and 20a files, since I cannot boot up I have no idea what to choose. I guess I have a 50/50 shot?

Will I permanently brick the phone if I choose the wrong one?
[G2 General] bender_007:
I guess 10 should be jb and 20 is kitkat. So go for 20. "laf.img"
[G2 General] adrianttt:
the battery is alivie, i think.

i can't boot in to download mode
[G2 General] techxxme:
Where did you get the stock recovery?

never mind I found it.. again
[G2 General] comabanana:
i need a little help from you,

so flashed stock kdz of 4.4.2 and then i try to root it with "ioroot10.zip" but it did't do the job done completely, so then i made stupid thing and anyway try to flash "D802-cwm-recovery-6.0.4.4.rar" with .bat file i was booted into recovery mode and the problem is that recovery doesn't working it's all messed with fails and errors - what can i do? re-flash the kdz.? :fingers-crossed:
[G2 General] thezman765:
Inquiry

When I do the ls /dev/sd* I do not see any sdb or sdc. Why isn't my phone being detected?
[G2 General] xtremepowered:
hey bro,

just tried all the guides but the prolelm is i cant get linux to recognize my lg g2 in the first place, it is recognizable in windows and is living in this condition- no download mode, no recovery and no fast boot. you see i messed up my phone firstly by installing d802 stock rom on my d801 t-mobile(big mistake) and then when i was in fast boot i pushed the wrong img files using adb(another big mistake)

so now i am stuck at LG logo screen whenever i boot up and cant get to download mode. when i tried using linux like you suggested, i cant see it on linux using the gdisk command it only shows me the directory for the harddisk and not my g2. so please how can i get my phone to work bro?
[G2 General] emos71:
You are simply the best.
[G2 General] dlcsboop:
I tried flasing laf.img in the same way but still nothing happens. So is it completely bricked ?. Please some one help me to fix my phone Initally in my linux machine it detects the system partion, boot partion etc but after flashing the laf.img now only one 32 gb non accessible disk is been detected once i connect my phone with the linux machine.
[G2 General] samuelv___:
When I put in the second code nothing, happens what do I do
[G2 General] gkg2k:
An incredible story

This thread is fantastic and I thank the original poster but what I did is...incredible. Please don't laugh too much. My G2 D802 was stuck at LG Logo with Secure Booting Error because of an OTA on my rooted 24h-old G2. I followed this guide using KNOPPIX 7.2.0 Live Linux DVD in place of Live Ubuntu that was giving me problems. KNOPPIX worked like a charm, the G2 was recognized and I loaded the files sbl1.img, aboot.img, rpm.img, tz.img and openrecovery-twrp-2.6.3.2-g2d802 in the right phone partitions. I was happy but I did a terrible mistake : instead of downloading the real sbl1.img, aboot.img, rpm.img and tz.img image files I downloaded the HTML files of this damned page by right-clicking on each file and choosing Save Link As... The resulting file was saved on my PC with .img extension and I did NOT understand it was NOT the right image file but an HTML code with the wrong (.img) extension! So I LOADED 5Kb HTML files named sbl1.img, aboot.img, rpm.img and tz.img to my G2 and my phone is now TOTALLY DEAD. No response at all by pressing any of the volume/power buttons. Nothing! The only right file I loaded is the TWRP Recovery. I feel my phone is totally bricked, isn't it? I understand I can't do anything to solve that because I can't switch the phone on and no PC can connect to its internal sd-card. I can throw away this brand new G2, right?

SO, CAUTION : when downloading sbl1.img, aboot.img, rpm.img and tz.img from this page left-click on the file name to download it AND DO NOT USE the right-click Save Link As... function of the browser like I did.

Thank you!

gkg2k