I don't know what will format the Rom space and what will only replace system files.
1, Will Odin re-partition format the Rom space?
2, Will 512pit format the Rom?
When should we use 512pit and When should we check re-partition?
I only know, if we only update rom, do not check re-partition but need to use 512pit.
no one knows? A big question for me...
i'm interested in this as well, but i don't know the answer.
Moved to Q&A
Will flashing a single tar file containing all three PHONE PDA CSC reformat (mkfs but not re-partition) the handset?
And if not, then will re-partitioning a handset with a PIT file recreate all the file systems ( I presume yes).
It's a bit long since I had done some research and tries on it ...
Background:
I found that the /data partition (thus /dev/block/mmcblk0p10) is set to 2GB originally, but I want it enlarged to 5GB for some personal reason.
Tries:
First, I did some research on PIT file supplied when flashing ROMs via Odin, the "u1_02_20110310_emmc_EXT4.pit" contains the following entries:
DATAFS 02 0B 01 154000 400000 data.img
UMS 02 0C 02 554000 1704000
where the start sector position and partition length in sectors of corresponding partition are recorded, so I made a custom PIT with the following entries:
DATAFS 02 0B 01 154000 A00000 data.img
UMS 02 0C 02 B54000 1104000
there is only difference on the size of /data partition and the start position of the /sdcard partition, thus, a trade between those two partitions, it won't affect other partitions.
I can use the custom PIT file flashing ROMs via Odin without errors, but the /data partition remains 2GB after I check it in an adb terminal, so, I think the PIT file is just a mapping info file for Odin and other flashing to retrieve the correct position where kernel or modem or boot should be flash to, Odin did not really partition the internal mmc storage according to the PIT file.
So further, I tried to use "parted" to modify the internal mmc's partition table (it's of GPT format, so "fdisk" would not work), I'm managed to delete the old DATAFS and UMS partition and create new ones in the recovery mode, then I use /system/bin/make_ext4fs to create ext4 filesystem on new DATAFS, it is really 5GB now, and I think I succeed!
When I reboot into normal mode, no error reported, and I'm glad to see the /data partition is indeed enlarged to 5GB. So, I decided to flash a new ROM via Odin.
I use the custom PIT file with exactly the correct mapping according to the modified partition table in Odin when I flashed a new ROM, the flash progress is successful, but after the device rebooted, it issues an error message on "could not mount /data partition" and refused to complete the ROM install progress.
Then I enter the recovery mode again and do wipe to the /data partition, after that, I found the /data partition goes back to 2GB ...
Now, can anyone help me on this? or is there a more stable method to enlarge the /data partition on i9100?
Thanks,
ecore
ecore said:
It's a bit long since I had done some research and tries on it ...
Background:
I found that the /data partition (thus /dev/block/mmcblk0p10) is set to 2GB originally, but I want it enlarged to 5GB for some personal reason.
Tries:
First, I did some research on PIT file supplied when flashing ROMs via Odin, the "u1_02_20110310_emmc_EXT4.pit" contains the following entries:
DATAFS 02 0B 01 154000 400000 data.img
UMS 02 0C 02 554000 1704000
where the start sector position and partition length in sectors of corresponding partition are recorded, so I made a custom PIT with the following entries:
DATAFS 02 0B 01 154000 A00000 data.img
UMS 02 0C 02 B54000 1104000
there is only difference on the size of /data partition and the start position of the /sdcard partition, thus, a trade between those two partitions, it won't affect other partitions.
I can use the custom PIT file flashing ROMs via Odin without errors, but the /data partition remains 2GB after I check it in an adb terminal, so, I think the PIT file is just a mapping info file for Odin and other flashing to retrieve the correct position where kernel or modem or boot should be flash to, Odin did not really partition the internal mmc storage according to the PIT file.
So further, I tried to use "parted" to modify the internal mmc's partition table (it's of GPT format, so "fdisk" would not work), I'm managed to delete the old DATAFS and UMS partition and create new ones in the recovery mode, then I use /system/bin/make_ext4fs to create ext4 filesystem on new DATAFS, it is really 5GB now, and I think I succeed!
When I reboot into normal mode, no error reported, and I'm glad to see the /data partition is indeed enlarged to 5GB. So, I decided to flash a new ROM via Odin.
I use the custom PIT file with exactly the correct mapping according to the modified partition table in Odin when I flashed a new ROM, the flash progress is successful, but after the device rebooted, it issues an error message on "could not mount /data partition" and refused to complete the ROM install progress.
Then I enter the recovery mode again and do wipe to the /data partition, after that, I found the /data partition goes back to 2GB ...
Now, can anyone help me on this? or is there a more stable method to enlarge the /data partition on i9100?
Thanks,
ecore
Click to expand...
Click to collapse
Are you sure Odin uses the pit file during flash? It seems to be able to flash without pit files, so I'm not sure it really uses it...
Did you try to flash a custom or a stock ROM? Maybe some ROMs are built in order to only accept 2GB /data partition (or there are some inherent size limit due to the filesystem?).
Have you tried flashing via Heimdall (after creating the /data you want and using your custom pit file)? Heimdall can also download the pit file from your device so maybe you can get a "proper" custom pit file after your various re-partitioning...
Link to Heimdall:
http://forum.xda-developers.com/showthread.php?t=755265
Note that we know for a fact that Heimdall indeed uses the pit file (even when not repartioning). So if your custom pit file does not correspond to the partition of the your device after your modification of /data, I think you'll have some kind of message, hopefully with some detailed information.
I've been trying to repartition my i777 since yesterday using my own .pit file which I got through Heimdall, I edited it so the internal partition will have more space for apps but it keeps getting an error when I try to flash it. Anyone has a .pit file pre-edited or can help me with the issue?
Hello all
Can you give me a download to a pit file for odin (my device running stock 4.1.2)?
Does this pit file would fix my phone? (im in kind of a brick)
Thanks
Hi
What have you done before the brick? If it is a MMC Erase Brick because a Wipe Factory Reset in a suceptible kernel, maybe I can help you. But in this case you need to run two tools in CWM Recovery to find out where exactly the internal SD was damaged, and then, use a modified .pit to create the partitions in a whay that the damaged part is 'jumped'
Until there, I uploaded the stock .pit for a 4.1.2 for an internal SD card of 16 gb
http://www.4shared.com/file/LOkivHesba/i9100_16GB_u1_02_20110310_emmc.html