[G2 Q&A, Help & Troubleshooting] atlan2023:
Good day. This procedure should also work.

flash D80230d 32GB

root it. OneClick_ROOT_RECOVERY.bat

- connect your phone to computer via USB cable.

From TWRP recovery, go to Install > twrp-3.3.1-0-d802-bump*.zip and Swipe to Flash.

Go to Settings > General (first tab).

Make sure 3rd option "Use rm -rf instead of formatting" is UNCHECKED.

Go back to Home menu > Reboot > Recovery

Your 32GB LG G2 Shows only 16GB Storage Space? Here’s the Fix! - DroidViews

Most smartphone manufacturers release their phones in different variants depending on localizations, network connectivity and storage capabilities. Obviously, the user has to pay greater amount of money to buy a smartphone with more storage capacity. The LG G2 was released back in August 2013 in...

www.droidviews.com

Extract sdparted-recovery-all-files.zip file. You’ll find 9 files inside the extracted folder. Copy this folder to your device.

in twrp recovery copying/moving the 9 files to /system/ bin/ folder, fix the permissions for each file to 0755 as shown above.

Install minimal_adb_fastboot_v1.1.3_setup.exe on your computer.

Launch Minimal ADB Fastboot tool and type the following command: adb shell

cd /system

parted /dev/block/mmcblk0

Hit Enter key.

In case you see the following error message, Error: The backup GPT table is not at the end of the disk, as it should be.

This might mean that another operating system believes the disk is smaller.

Fix, by moving the backup to the end (and removing the old backup)?

Fix/Ignore/Cancel? Fix

Warning: Not all of the space available to /dev/block/mmcblk0 appears to be

used, you can fix the GPT to use all of the space (an extra 30294016 blocks) or

continue with the current setting?

Fix/Ignore?Fix

The line 36 on the partition table should look like this: 36 15.7GB 15.8GB 37.7MB grow

Now exit the partition detail screen by typing quit command.

Then type or copy/paste these lines in the command window and hit Enter key. adb shell

cd /system

dd if=/system/bin/sgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=61071327 conv=notrunc

dd if=/system/bin/pgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc

You should see something like this- root@android:/ # cd /system

f=/sdcard/pgpt16G.img bs=512 count=34 <

34+0 records in

34+0 records out

17408 bytes (17.0KB) copied, 0.014294 seconds, 1.2MB/s

of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc <

34+0 records in

34+0 records out

17408 bytes (17.0KB) copied, 0.008996 seconds, 1.8MB/s

Go to Settings > General (first tab).

Make sure 3rd option "Use rm -rf instead of formatting" is UNCHECKED.

Go back to Home menu > Reboot > Recovery

Now go to Wipe > Advanced Wipe.

Select Dalvik / ART Cache, System, Data, Internal Storage and Cache and Swipe to Wipe.

Go to Wipe > Format Data.

Type: yes and confirm with bottom right icon.

Tap on Home button > Reboot > Recovery > Swipe to Reboot.

### Always uncheck "Install TWRP app" options.

go to in TWRP recovery mount an check space, 25GB. or check in windows THIS PC- D802

All done, copy and instal lineage 18.1.....

https://xdaforums.com/t/guide-tutorial-howto-lg-g2-d802-stock-to-android-11.4339221/