The phone thinks my 32gb G2 is 16 GB

Search This thread

Kickoff

Senior Member
Jun 1, 2007
1,932
3,589
Budapest
I download nine files and could not introduced into the system files as described in thread but using an application system explorer and the validity of the root system My question Is that adb connection means sideload adb in recovery?If so, I could not type the code once and at the source code for the fragmentation of no consequence in the black screen of a computer error occurs

In case you have a working OS simply restart the phone and copy the files into the right place with windows explorer. Then set the right permission. In this case you don't need to use sideload.

Your English is very strange, I do not understand the last sentence.
 
  • Like
Reactions: @LI™

alsaidhakeem

Member
Jan 1, 2013
17
2
In case you have a working OS simply restart the phone and copy the files into the right place with windows explorer. Then set the right permission. In this case you don't need to use sideload.

Your English is very strange, I do not understand the last sentence.


Please kindly add a video clip to solve the problem
 

@LI™

Senior Member
Jul 11, 2011
118
18
i copied the files to system/bin ! where can i type this codes ?? what is ADB? im amateur :) please help me !!
when i go to slideload " recovery " its stay at loading and never do any thing !!
 

Kickoff

Senior Member
Jun 1, 2007
1,932
3,589
Budapest
The basics again.

i copied the files to system/bin ! where can i type this codes ?? what is ADB? im amateur :) please help me !!
when i go to slideload " recovery " its stay at loading and never do any thing !!

I hope you have copied all files to your phones: the 6 file withon the sparted folder and "dd" and both img-files as well. Then you should have made them useable by changing the permission to 0755 on each.


Fort he ADB connection I recommend Minimal ADB: http://xdaforums.com/showthread.php?t=2317790

Install it and connect the phone. Test the connection with the command "adb devices" you should see the list of the devices (one device with a name consisting of numbers). Minimal ADB should be ran as administrator.

After this preparation you can start with the adb commands int he Minimal ADB windows.


Code:
adb shell
su
cd /system
./parted /dev/block/mmcblk0

For further commands see my original post http://xdaforums.com/showpost.php?p=47687169&postcount=26
 

@LI™

Senior Member
Jul 11, 2011
118
18
yeh copied these file and change to 755 !
but i dont know how i can put the code in ??
 

alsaidhakeem

Member
Jan 1, 2013
17
2

Attachments

  • 1.jpg
    1.jpg
    97.4 KB · Views: 910
  • Like
Reactions: @LI™

@LI™

Senior Member
Jul 11, 2011
118
18
./dd if=/system/sgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=61071327 conv=notrunc
./dd if=/system/pgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc


after type this code nothing happened !
i did the first section completely !
 

Attachments

  • adb.jpg
    adb.jpg
    68.6 KB · Views: 581
Last edited:
  • Like
Reactions: lovelybia2

Kickoff

Senior Member
Jun 1, 2007
1,932
3,589
Budapest
./dd if=/system/sgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=61071327 conv=notrunc
./dd if=/system/pgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc


after type this code nothing happened !
i did the first section completely !


you did not set the right permission and parted did not start, I assume
try to run simply parted and see what you get
if it works follow the entire guide word to word
but check the revised guide here because the 6 files must be copied to system/bin
 
Last edited:
  • Like
Reactions: @LI™

@LI™

Senior Member
Jul 11, 2011
118
18
you did not set the right permission and parted did not start, I assume
try to run simply parted and see what you get
if it works follow the entire guide word to word
but check the revised guide here because the 6 files must be copied to system/bin

did this code just flashing and i wish to get ready to use !!
its done !!! storage is now 25 GB !!!
thx bro !!
 
Last edited:
  • Like
Reactions: comk4ver

alsaidhakeem

Member
Jan 1, 2013
17
2
Several problems occur when I try to steps have been applying the solution and the main problem is in the process of replacing the files inside the system which shows me the pictures attached when using total-commander

Please help me with thanks
 

Attachments

  • Screenshot_2014-06-28-21-38-32.jpg
    Screenshot_2014-06-28-21-38-32.jpg
    125.2 KB · Views: 561
  • 2.jpg
    2.jpg
    117.8 KB · Views: 577

trongnghia2411

Senior Member
Apr 16, 2012
284
70
GUYS, If Backup&Reset -> Factory Reset doesn't work, try FACTORY RESET using pressing down + power button combination from phone off! And it worked!
 
Last edited:

timworld

New member
May 21, 2013
4
0
I have the same issue, and stopped at
After finished manually turn off the phone and use the key combination to enter Download Mode. Flash the tight KDZ file or make a recovery via LGMobileSupportTool.

After the first boot you will see that the SDCARD has only 10,7GB only. Make a hard reset Settings/Backup and reset/Factory data reset.

After resetting the phone you will have a 25GB SD Card.

what if i'm using CMW recovery with custom rom (in my case CloudyFlex 2.1)

sould I just go ahead and flash with stock KDZ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    Revised quide

    Kickoff can I ask you to publish the guide you posted with the changes you made, making it more accessible to those that it is difficult to follow. Thanks

    Ok, I'll try to provide a more comprehensive explanation. I assume that you have a fully working phone, the hardware is 32 GB but you can use only 16 GB (10,7 GB). The files we will use are
    https://www.dropbox.com/sh/s19w3acg2i4y1jh/AADlrbamYu51KZysutnYj9FMa?dl=0.

    Let's start with downloading the necessary files to your SDCard.

    You have to be on KitKat, this solution does not work on Lollipop, so downgrade first if necessary.

    On the phone use Total Commander to copy the files to /system/xbin and change the permission to 755 on each. Then reboot the phone.

    Then type via adb:

    Code:
    adb shell
    su
    cd /system
    parted /dev/block/mmcblk0

    Many users reported not to get the following Error messages here:

    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


    No problem, check your partitions with "print"

    Code:
    1|root@android:/ # parted /dev/block/mmcblk0
    parted /dev/block/mmcblk0
    GNU Parted 1.8.8.1.179-aef3
    Using /dev/block/mmcblk0
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print
    print
    print
    Model: MMC 032G96 (sd/mmc)
    Disk /dev/block/mmcblk0: 31.3GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name        Flags
     1      16.8MB  83.9MB  67.1MB  fat16        modem
     2      83.9MB  84.9MB  1049kB               sbl1
     3      84.9MB  85.5MB  524kB                dbi
     4      101MB   101MB   524kB                DDR
     5      117MB   118MB   1049kB               aboot
     6      118MB   120MB   1049kB               rpm
     7      134MB   151MB   16.8MB               boot
     8      151MB   152MB   1049kB               tz
     9      152MB   152MB   1024B                pad
    10      168MB   171MB   3146kB               modemst1
    11      171MB   174MB   3146kB               modemst2
    12      174MB   174MB   1024B                pad1
    13      185MB   201MB   16.8MB               misc
    14      201MB   235MB   33.6MB  ext4         persist
    15      235MB   252MB   16.8MB               recovery
    16      252MB   255MB   3146kB               fsg
    17      268MB   269MB   524kB                fsc
    18      269MB   269MB   524kB                ssd
    19      269MB   269MB   1024B                pad2
    20      269MB   270MB   524kB                encrypt
    21      285MB   294MB   8389kB  ext4         drm
    22      294MB   302MB   8389kB  ext4         sns
    23      302MB   336MB   33.6MB               laf
    24      336MB   369MB   33.6MB               fota
    25      369MB   403MB   33.6MB  ext4         mpt
    26      403MB   403MB   524kB                dbibak
    27      403MB   404MB   1049kB               rpmbak
    28      404MB   405MB   1049kB               tzbak
    29      405MB   405MB   8192B                rct
    30      419MB   3322MB  2902MB  ext4         system
    31      3322MB  3959MB  638MB   ext4         cache
    32      3959MB  4043MB  83.9MB               tombstones
    33      4043MB  4060MB  16.8MB               spare
    34      4060MB  4110MB  50.3MB  ext4       cust
    35      4110MB  31.2GB  27.1GB  ext4        userdata
    36      31.2GB  31.3GB  62.9MB                 grow

    This is what I see if the phone is OK. In your case line 36 should look like:

    36 15.7GB 15.8GB 37.7MB grow


    Quit parted with

    Code:
    quit

    And from here follow the original description:

    Code:
    adb shell
    su
    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

    After finished manually turn off the phone and use the key combination to enter Download Mode. Flash the tight KDZ file or make a recovery via LGMobileSupportTool.

    After the first boot you will see that the SDCARD has only 10,7GB only. Make a hard reset Settings/Backup and reset/Factory data reset.

    After resetting the phone you will have a 25GB SD Card.
    22
    SOLVED!

    How to solve 16GB only on 32GB phones problem?

    Disclaimer: I am really a noob, no liability for the below description. However, it worked well for me.

    I faced with the the problem of loosing 16GB on my phone after hard resetting to solve the strange security code question after using the flashtool.

    User DENWER9008 provided me with the following link.

    Then I figured out that the same issue was already discussed in other forums.

    http://www.2gcn.com/html/LG_G2//201311035358.html

    http://forum.cyanogenmod.com/topic/6433-solved-messed-up-partitions-on-internal-storage/page__st__20#entry67870

    The necessary files can be downloaded here.

    Use minimal adb fastboot as terminal.

    Grab parted from the link above. Now you need to extract the individual binaries from the .zip (the 6 files in the sdparted folder within the zip. Copy all 6 files to /system/). Copy dd and both img-files there as well. Then make them useable, and change to the permission to 0755 on each.

    1.
    adb shell
    su
    cd /system
    ./parted /dev/block/mmcblk0


    Then you should see this:

    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

    ./parted /dev/block/mmcblk0
    GNU Parted 1.8.8.1.179-aef3
    Using /dev/block/mmcblk0
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted)

    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
    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
    fix
    Model: MMC 032G96 (sd/mmc)
    Disk /dev/block/mmcblk0: 31.3GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt

    Number Start End Size File system Name Flags
    1 16.8MB 83.9MB 67.1MB fat16 modem
    2 83.9MB 84.9MB 1049kB sbl1
    3 84.9MB 85.5MB 524kB dbi
    4 101MB 101MB 524kB DDR
    5 117MB 118MB 1049kB aboot
    6 118MB 120MB 1049kB rpm
    7 134MB 151MB 16.8MB boot
    8 151MB 152MB 1049kB tz
    9 152MB 152MB 1024B pad
    10 168MB 171MB 3146kB modemst1
    11 171MB 174MB 3146kB modemst2
    12 174MB 174MB 1024B pad1
    13 185MB 201MB 16.8MB misc
    14 201MB 235MB 33.6MB ext4 persist
    15 235MB 252MB 16.8MB recovery
    16 252MB 255MB 3146kB fsg
    17 268MB 269MB 524kB fsc
    18 269MB 269MB 524kB ssd
    19 269MB 269MB 1024B pad2
    20 269MB 270MB 524kB encrypt
    21 285MB 294MB 8389kB ext4 drm
    22 294MB 302MB 8389kB ext4 sns
    23 302MB 336MB 33.6MB laf
    24 336MB 369MB 33.6MB fota
    25 369MB 403MB 33.6MB ext4 mpt
    26 403MB 403MB 524kB dbibak
    27 403MB 404MB 1049kB rpmbak
    28 404MB 405MB 1049kB tzbak
    29 405MB 405MB 8192B rct
    30 419MB 3322MB 2902MB ext4 system
    31 3322MB 3959MB 638MB ext4 cache
    32 3959MB 4043MB 83.9MB tombstones
    33 4043MB 4060MB 16.8MB spare
    34 4060MB 4110MB 50.3MB ext4 cust
    35 4110MB 15.7GB 11.6GB ext4 userdata
    36 15.7GB 15.8GB 37.7MB grow

    (parted)

    2.
    adb shell
    su
    cd /system
    ./dd if=/system/sgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=61071327 conv=notrunc
    ./dd if=/system/pgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notrunc


    Then you should see 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


    3. Reboot the phone into download mode and flash the required kdz-file. I made a recovery via LGMobileSupportTool.

    4. After the first boot you will see that the SDCARD has only 10,7GB only. Make a hard reset Settings/Backup and reset/Factory data reset.

    5. After resetting the phone you will have a 25GB SD Card.

    OMG...
    5
    Guide a little more explained.

    How to solve 16GB only on 32GB phones problem?
    Original guide

    Ok, I'll try to provide a more comprehensive explanation. I assume that you have a fully working phone, the hardware is 32 GB but you can use only 16 GB (10,7 GB). The files we will use are
    https://www.dropbox.com/sh/rffyqlmc0f357iv/AACBsJmHZNNPvtgmTiNsHzpxa?dl=0.
    Let's start with downloading the necessary files to your SDCard. ....
    ....
    After resetting the phone you will have a 25GB SD Card.
    Revised guide

    Thank you very much Kickoff! All your input and effort to explain the steps are very appreciated!
    I could get my G2's storage right again and get back to the process of flashing Cloudyfa's great Cloudy G2 2.2 ROM :laugh:
    (If anyone wants to know how I get it wrong, please just ask)

    Just to give some more input about the steps:

    - The G2 must be on KitKat (4.4.2 is very easy to root with Towelroot)
    - USB Debugging must be enabled (Enable it in Developer options)
    - Proper drivers must be installed. A quick search for "LG Drivers".
    - Connect USB cable and use MTP mode.
    - Check the display of your device for a promt asking USB Debugging permission upon connection of the USB cable.
    - The necessary files from Kickoff's Dropbox folder should go in
    Code:
    /system/xbin
    (check if supersu file is there, otherwise it's in
    Code:
    /system/bin
    If so then put the 9 files there)

    - Set the right Permissions. This is easier with Root Explorer: Select the 9 files and set the Permissions to 0755 (755 is the same). There's an option which reads "Enter Octal" Enter 755 there.
    Aditional tip:
    If in some step you get the result "Permission denied" Go to your device and using Root Explorer (or similar app) set the permissions for the 9 files right (0755) or, set them again.
    There's a chance they rolled back to other settings and this is causing the "Permission denied" problem.

    - Then you need ADB installed in your PC. I found it in this thread and it's working and it's very easy to get it installed: (I used version 1.3)
    15 seconds ADB Installer ADB, Fastboot and Drivers

    - To use ADB commands you need to open the CMD.exe application on your PC. Just press Windows + R and a box will appear. Type CMD.exe there.
    - Once there type:
    Code:
    adb devices
    This is to check if your device is "online" and connected to the PC. You'll see a number and letters name below if it is.
    - Then follow the instructions:
    Code:
    1. Type: adb shell (Enter)
    Type: su (Enter)
    Type: cd /system (Enter)
    Type: /parted /dev/block/mmcblk0 (Enter)
    - Follow the instrucctions in the original guides.

    - Once you get to the Print command results i.e Line 36 reads "36 15.7GB 15.8GB 37.7MB grow" Quit it by typing: quit (Enter)
    Then:
    Code:
    Type: adb shell (Enter)
    Type: su (Enter)
    Type: cd /system (Enter)
    Here paste all of these 2 following lines at once, but before pay attention to the /system/bin part:
    If you pasted the 9 files into /xbin then rewrite this part to /xbin. (If not you will get answer: File not found)

    Code:
    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

    Once pasted this you are almost done. A result will appear, hit enter once more.
    The mentioned result looks similar to this:

    Code:
    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

    If you get to this you are almost done again.
    You can type command Exit (twice if needed) to exit the ADB commands connection and follow the original guides instructions.

    Thank you everyone Kickoff and all who make this interesting "flashing and tweaking world" possible :laugh:

    - L.

    Pd: Please feedback if I forgot something. Thanks.
    4
    Thank you for the info, I have already corrected the guide. I am happy for you.

    Tapatalk-kal küldve az én LG-D802-el
    3
    I solved my problem, flashing Kitkat and doing factory reset did the trick. Apparently, factory reset in Lollipop doesn't erase the filesystem in "/data" so it remains the wrong size.
    @Kickoff
    Big thanks for the guide, you can update it to include a note that the last step must be done with Kitkat.