[Q] How to fix GPT on GT-I9505
Some days ago, I've restored my Samsung SGS4 GT-I9505 from "hard-brick" with JTAG. But my phone virtualy became 16Gb model instead of 32Gb. I found that it's partitioned as 16Gb while second half of flash is still there of course
. Flashing PIT with repartitioning is useless because PIT is unique for different capacity variants of the model, it just declares that "userdata" (last partition on flash) lasts from 5791MB to the end of disk space . I tried to run
parted /dev/block/mmcblk0 print
from CWM-recovery, it found that backup GPT table isn't at the end of disk and suggested to fix this. But it does nothing, on next run and even after reboot it shows the same problem and suggest to fix it again.
~ # parted /dev/block/mmcblk0 print
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)?
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?
I've tried to fix it with gdisk (gpt fdisk) found in thread http://forum.xda-developers.com/show....php?t=1605535
but it only hangs adb shell on writing changes to disk.
Are this tools obsolete or are there hidden locks in device that prevent from changing GPT? How could I resize my "userdata" partition?