[AT&T Samsung Galaxy S II SGH-I777] factoreal:
Rough Ride but Finally Got Job Done!

Has had similar issues when repartitiong internal storage. Had no issues from step 1 to step 7.

In step 8, I opted for Odin for PC as I didn't know of how to flash the pit file on mobile Odin (Odin for PC interface allows for selecting a PIT file, and in Mobile Odin

interface there is mention of "PIT, IBL/PBL, SBL, EFS - Mobile ODIN does not flash these!", would appreciate if OP or anyone who

has had success in flashing PIT file via MobileODIN elaborate more on how this was done.) Would like to suggest OP to add more

specific steps for flashing via ODIN for PC such as:

- Put phone into download mode

- In ODIN for PC, select the required PIT file by clicking on PIT.

- Which options to tick before flashing (Re-Partition, Auto Reboot, F.Reset Time, Flash Lock)

- Start flashing!

Note: For the options, I used the default ones (Auto Reboot and F.Reset Time) for flashing the PIT file.

The issues started in step 9, could not format internal storage (format/wipe partitions of system, data, cache, dalvik worked fine).

Proceeded to follow step 10 by connecting phone to PC in Recovery Mode. PC could detect that phone is connected and 2 drives (perhaps this refers to the supposed internal storage and external SD card drive) of the phone appeared on My Computer but no storage size is displayed. Upon clicking on each of the drive the PC requested to insert a disk. In recovery mode, I then chose mount internal storage but it gave an error message. Therefore I could not complete step 10. Would appreciate if someone could provide a more accurate description of what is meant by mounting storage on PC as mentioned in step 10.

From where I left, I repeated step 1-3 and got a failed message. Tried entering Recovery mode this time but to no avail. This is when I thought the phone was totally screwed/bricked until I attempted unbrick with I777UCKH7-OCD-Root-No-BL.7z (I777 UCKH7 Return/Unbrick to Stock (or Root) Odin3 One-Click Downloaders - http://xdaforums.com/showpost.php?p=20229527). As the One-Click flash comes with Root, I repeated step 6-7 and then installed a custom ROM+Gapps+kernel. The phone finally boots up!

The surprising part is that the data storage and internal storage size were each displayed as 3.94GB and 9.48GB. Guess that the PIT file was flashed successfully but something was messed up as that makes the phone internal storage unable to be formatted and the PC ODIN flash of the full Samsung UCMD8 release (Already has pit file) could not be completed. Previously thought of flashing the full Samsung UCMD8 release would reset the phone to it's initial internal storage partition sizes as it's mentioned that a PIT file was included in the package. The phone signals were working fine without the need to flash modem for AOSP roms as mentioned in step 11. Didn't attempt recovery to original partition sizes using PC ODIN with the full Samsung UCMD8 release as I was quite pleased with the internal storage partitioning result.

Here are few suggestions/questions for OP for this guide:

- Include more PIT files for different data storage-internal storage such as 5-9, 6-8 and 7-7?

- Include the download section to include modem for AOSP roms, zImage, Mobile ODIN+flashkernel, ODIN for PC with the right working versions as a measure to lower the risk of following this guide for the other noobies.

- Could someone test out if the internal storage repartitioning works with the I777UCKH7 release instead of full Samsung UCMD8 release?

- Could someone test out the other methods for restoring the internal storage partition to be original state? (as I could not flash the UCMDB release to the original state as mentioned above)

Am happy that this finally works but never expected the journey to be that rough. Sorry for my noobie suggestions and questions. Thanks go out to the xda community for such a great guide and resources!