The phone thinks my 32gb G2 is 16 GB

Ferdix85

New member
Jan 2, 2014
3
0
0
plus.google.com
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
On my screen appear this:



C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
[email protected]:/ $ su
su
[email protected]:/ # cd /system
cd /system
[email protected]:/system # dd if=/system/bin/sgpt32g.img of=/dev/block/mmcblk0 bs=5
12 seek=61071327 conv=notrunc
dd if=/system/bin/pgpt32g.img of=/dev/block/mmcblk0 bs=512 seek=0 conv=notruncdd
mg of=/dev/block/mmcblk0 bs=512 seek=61071327 conv=notrunc <
33+0 records in
33+0 records out
16896 bytes (16.5KB) copied, 0.003587 seconds, 4.5MB/s
[email protected]:/system #


The records are 33 and not 34...why?
Thx
 

vussen

Member
Nov 24, 2010
17
1
0
With Total Commander, I get a error, "cannot copy or move file!" when tried to copy the files to system/bin. I am rooted and got supersu granted.
 
Last edited:

kapa75

Senior Member
Sep 6, 2011
102
17
0
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
here.

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

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

I have problems to put the screenshots here, all are here: https://www.dropbox.com/sh/3pqceuaqsji0dqn/nvR20mLqMF

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|[email protected]:/ # 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.

Hi.
I have done everything you have said but it's still showing 16 GB...
I'm lost i dont know how to fix it.
 

kapa75

Senior Member
Sep 6, 2011
102
17
0
You don't need the quote entire description. Did you performed a hard reset?
I'm sorry.
Yes I did.
I followed all your steps everything seemed to be fine but still my device only shows 16 gb.
Maybe I flashed the wrong .kdz file. Which one is it?
 
Last edited:

Kickoff

Senior Member
Jun 1, 2007
1,933
3,591
0
Budapest
I'm sorry.

Yes I did.

I followed all your steps everything seemed to be fine but still my device only shows 16 gb.

Maybe I flashed the wrong .kdz file. Which one is it?


What response do you get on "parted /dev/block/mmcblk0"? What is the size of the partition 35 (userdata)?
 
Last edited:

redkib

Senior Member
Mar 30, 2014
130
6
0
Oslo City
Complicated

Have you tried the above method worked for me? Where do you have a problem?
Can you please please please simplify the intractions, it is just too hard to understand. Wating for a more easier instruction.

---------- Post added at 03:27 PM ---------- Previous post was at 03:20 PM ----------

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


[email protected]:/ # 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...
Please simplify. i am a noob. specially the first steps
 

Kickoff

Senior Member
Jun 1, 2007
1,933
3,591
0
Budapest
It is really simply and written for noobs. Do you have problems with copying some files to your phone to a specific folder and change the permission? Have you checked the screenshots I made?
 

Kickoff

Senior Member
Jun 1, 2007
1,933
3,591
0
Budapest
This thread helped many people who were always free to ask questions that were always answered when I could help. I can't simply adb commands, I can't simplify permission change. These are requirements to do anything with an Android phone. You haven't asked any particular question only repeated your simplifying request what this always means. And now after being cynical you still expect some help. Ask a question if you have but don't be arrogant. Please.
 
Last edited:

Kickoff

Senior Member
Jun 1, 2007
1,933
3,591
0
Budapest
How to enter the situation adb in Mobile,then How to Enter the code, which is composed of several lines
Sorry for the language I used Google translation from Arabic thanks
Ups this will be very difficult if you do not understand the description. Have you downloaded the necessary files an copied to your phone and set the permissions as it is explained with the screenshots? Do you have adb connection to your phone?
 

alsaidhakeem

Member
Jan 1, 2013
17
2
0
Ups this will be very difficult if you do not understand the description. Have you downloaded the necessary files an copied to your phone and set the permissions as it is explained with the screenshots? Do you have adb connection to your phone?
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