[Q] PIT Repartition vs EFS (nothing bricked just asking) - Galaxy S II Q&A, Help & Troubleshooting

Hi!
I know that I'm asking about forbidden subjects but I have no intention of doing something stupid just want to understand some things about S2.
That's what I think I understand:
- PIT is a file that contains partition layout on our device, that partitions are later flashed with files from rom package (files are partition images in fact)
- Normally we do not need to re-partition because there is only one partition description available on S2 - so all ROM share it (also it's not recommented coz if sth goes wrong we have big problem - device without partitions)
- EFS is one of the partitions and it shouldn't be touched (contains IMEI etc)
Here is my question:
Some people flash ROM with PIT and repartition and still have working device - how is it possible ?? - re-partition should wipe everything including EFS.
EDIT:
One more thing - when exploring XXKP8 rom package from sammobile.com noticed that there is PIT file and some file named
I9100_EFS_I9100XXKP8_CL42141_REV02_user_low_ship.tar.md5
that contains efs.img file I wonder what is this file for. Some generic EFS image ??
Regards
Slig

The pit is used for partition mapping, basically telling the program which block device is which partition. You dont need to use the pit as Odin can pull it from the phone, this also prevents people from using i9000 pits (sgs1, and yes this has happened)
Efs has both generic files and device specific files, I think.
Sent from my GT-I9100 using Tapatalk

Thanks for response !
veyka said:
this also prevents people from using i9000 pits (sgs1, and yes this has happened)
Click to expand...
Click to collapse
Yeah I read about that epic failure. That is why I'm asking - want to know everything before doing anything.
Regards
Slig

slig said:
Hi!
Here is my question:
Some people flash ROM with PIT and repartition and still have working device - how is it possible ?? - re-partition should wipe everything including EFS.
The recommendation is not to flash PIT file or repartition unless you know what you are doing .
PIT does not wipe EFS .
Their is a PIT file description post on the forum .
jje
jje
Click to expand...
Click to collapse

Hi ! Thank You for Your response.
JJEgan said:
The recommendation is not to flash PIT file or repartition unless you know what you are doing .
Click to expand...
Click to collapse
Yes, I'm fully aware of that. I'm just the kind of person that like to know why so I decided to investigate this subject deeper. Another thing is that I'll probably try to use heimdall and that program requires better understanding than "use PDA field in Odin".

You can just flash a .pit file and check repartition. You just have to make sure your flash won't fail. If you have faulty drivers or a damaged usb cable, then it will brick your phone.
If you want to try it, make a flash without .pit and repartition and if it works you can use them. Its just something unexperienced users should not use.

Unless something changes, we don't need to repartition, (one case might be if android plus tw is bigger than 500 ish megs Samsung would need to make the system partition bigger) so we just don't need to use it, and making the risks sound worse it keeps newbies away.
Sent from my GT-I9100 using Tapatalk

I've found Odia's thread GT-9100 PIT v Flash analysis
http://forum.xda-developers.com/showthread.php?t=1104139
Very interesting informations that answers many of my questions.

Related

[Q] Odin Pit s1_odin_20100513.pit & s1_odin_20100512.pit

ok yeaaa i read this
27.What is the .pit file? Why are there different versions?
The .pit file contains information regarding the partitioning of the internal ROM (note, that this is NOT the internal SD card! They are different memory chips!) and it is used during the flashing procedure. There are currently two version of the .pit file, respectively ending on 512.pit and 513.pit. They differ in that they have different partition sizes stored for each of the partitions that is created on the ROM. As of now, all ROMs seem to be functioning without any problems when the 512.pit file is used, whereas ROMs from version XWJG5 on do not work when the 513.pit file is used.
Not that these describe the partition of the ROM, however, they only actually change the sizes of the partitions if the 'repartition' option is checked in Odin3 during flash. You can flash providing the 513.pit file while your device is formatted according to the 512.pit file, however, this can cause unforeseen complications and it is advised to either use the .pit file according to which your phone is partitioned or alternatively select the 'repartition' option during flash.
now, i have Odin from 2 diffrent places 1 from Akaskrilla's website then the one from XDA in a post here(got this one first) but they both have diffrent .pit files 1 being "s1_odin_20100512.pit(came with the odin i got from xda)" other being "s1_odin_20100513.pit(akaskrilla)", i dont wanna use the wrong .pit as far as i can tell that seems very important that you dont get this wrong so i had to ask so ask me what u need to ask so i can keep the rite one. thx for the help in advance cause i wanna flash some roms!!!!
RanT476 said:
ok yeaaa i read this
27.What is the .pit file? Why are there different versions?
The .pit file contains information regarding the partitioning of the internal ROM (note, that this is NOT the internal SD card! They are different memory chips!) and it is used during the flashing procedure. There are currently two version of the .pit file, respectively ending on 512.pit and 513.pit. They differ in that they have different partition sizes stored for each of the partitions that is created on the ROM. As of now, all ROMs seem to be functioning without any problems when the 512.pit file is used, whereas ROMs from version XWJG5 on do not work when the 513.pit file is used.
Not that these describe the partition of the ROM, however, they only actually change the sizes of the partitions if the 'repartition' option is checked in Odin3 during flash. You can flash providing the 513.pit file while your device is formatted according to the 512.pit file, however, this can cause unforeseen complications and it is advised to either use the .pit file according to which your phone is partitioned or alternatively select the 'repartition' option during flash.
now, i have Odin from 2 diffrent places 1 from Akaskrilla's website then the one from XDA in a post here(got this one first) but they both have diffrent .pit files 1 being "s1_odin_20100512.pit(came with the odin i got from xda)" other being "s1_odin_20100513.pit(akaskrilla)", i dont wanna use the wrong .pit as far as i can tell that seems very important that you dont get this wrong so i had to ask so ask me what u need to ask so i can keep the rite one. thx for the help in advance cause i wanna flash some roms!!!!
Click to expand...
Click to collapse
Actually, it's less important than you'd think unless you plan to repartition (in most cases I'd say you shouldn't). In fact, don't even bother including the .pit at all, as it will automatically check repartition if you do. This will make you unhappy if you forget to uncheck it .
As for the differences between the pits.....it seems that it's basically a matter of what amount of space it allocates to each of the mounts. What's better for what rom? Not sure anyone can tell you for sure, but it's not going to brick your phone if you pick the "wrong" one or anything. I think most people feel the 512 is best suited for 2.1 roms, whereas the 513/813 ones are for froyo, and the 831 is possibly meant for 2.2.1 or 2.3 roms (it's been reported to be reserved for the Vibrant 4G atm, no idea how accurate that is).
Hope that helps.
MWBehr said:
Actually, it's less important than you'd think unless you plan to repartition (in most cases I'd say you shouldn't). In fact, don't even bother including the .pit at all, as it will automatically check repartition if you do. This will make you unhappy if you forget to uncheck it .
As for the differences between the pits.....it seems that it's basically a matter of what amount of space it allocates to each of the mounts. What's better for what rom? Not sure anyone can tell you for sure, but it's not going to brick your phone if you pick the "wrong" one or anything. I think most people feel the 512 is best suited for 2.1 roms, whereas the 513/813 ones are for froyo, and the 831 is possibly meant for 2.2.1 or 2.3 roms (it's been reported to be reserved for the Vibrant 4G atm, no idea how accurate that is).
Hope that helps.
Click to expand...
Click to collapse
+1 I have used the 512 and 513 not sure of the difference looked like i got a little more ram 513 but I just stick with the 512 and the now the 831 (when I need). It will not hurt if you are using Odin to experiment, then you can evaluate the results for yourself....... good explaining MWBehr
MWBehr said:
Actually, it's less important than you'd think unless you plan to repartition (in most cases I'd say you shouldn't). In fact, don't even bother including the .pit at all, as it will automatically check repartition if you do. This will make you unhappy if you forget to uncheck it .
As for the differences between the pits.....it seems that it's basically a matter of what amount of space it allocates to each of the mounts. What's better for what rom? Not sure anyone can tell you for sure, but it's not going to brick your phone if you pick the "wrong" one or anything. I think most people feel the 512 is best suited for 2.1 roms, whereas the 513/813 ones are for froyo, and the 831 is possibly meant for 2.2.1 or 2.3 roms (it's been reported to be reserved for the Vibrant 4G atm, no idea how accurate that is).
Hope that helps.
Click to expand...
Click to collapse
that definatelly helps man thx, and i was talking about the whole flashing back to stock but i it seems that your telling me, jus use 512.pit for 2.1 but what if i wanna flash a 2.2 rom? use the 513.pit? or no pit at all? or just use the CWM to flash them. I wanna kno how to do it in case i have to odin back to stock(T959UVJFD) if something goes wrong but i alrdy kno you dont need a .pit to flash a kernel(if im not mistaken) so thats all i need answered then i can have fun.
and yes thx for helping me you helped out alot, now everything is straight : ).

OGIN - repartition

Hi all,
I am just wondering if anyone has information on what repartition does in the ODIN interface. When do we use it?
I am a complete newbie and any guidance is much appreciated.
Thank you
ardabelati said:
Hi all,
I am just wondering if anyone has information on what repartition does in the ODIN interface. When do we use it?
I am a complete newbie and any guidance is much appreciated.
Thank you
Click to expand...
Click to collapse
what i know about it is that dont ever use it while flashing mate every tutorial is advising to dont use it in order to keep your phone alive
ardabelati said:
Hi all,
I am just wondering if anyone has information on what repartition does in the ODIN interface. When do we use it?
I am a complete newbie and any guidance is much appreciated.
Thank you
Click to expand...
Click to collapse
It repartitions.
Repartition does exactly what it means, it repartitions.
Your ROM is xx amount of size big, it is continuous, you partition it to seperate it.
Here's a random example.
16GB = 1GB BOOT, 1GB CACHE, 2GB SYSTEM ROM, 2GB USERDATA, 10GB STORAGE.
Now instead of 1 whole chunk of 16GB, you have 5 partitions which adds up to 16gb.
Im using repartition and Pit file on every reflash so far and having no problems.
Its only going to allot the partition sizes as mentioned in the pit file and nothing more.
bala_gamer said:
Im using repartition and Pit file on every reflash so far and having no problems.
Its only going to allot the partition sizes as mentioned in the pit file and nothing more.
Click to expand...
Click to collapse
The problem is not the repartitioning, the problem is the pit file, some people don't have the correct pit file.
The other problem is bootloader and where it is placed. Just imagine if the bootloader is placed in a partition, and your pit file is not for the SGS2, and does not create a partition for the bootloader. No bootloader, no boot, no download mode. That would be a pretty fun situation.

[Q] Mobile ODIN pro 2.36 - compatible ? with Samsung GT-I9100P

Hello
I have installed Mobile ODIN pro 2.36 .
It tells me that is not compatible with my Samsung GT-I9100P.
In Chainfire's thread "Getting your device supported"
- I cannot find the .PIT or .OPS file for your device, please attach it !
Any idea where these files are located ?
Thanks
Why do you want to mess with the very dangerous PIT file easy way to brick a phone .
PIT will be with the stock firmware on sammobile.com
jje
JJEgan said:
Why do you want to mess with the very dangerous PIT file easy way to brick a phone .
PIT will be with the stock firmware on sammobile.com
jje
Click to expand...
Click to collapse
According to chainfire this is how to get your device supported
The list of devices currently supported by Mobile ODIN is rather short. Not all devices are created equal, and devices need some work to be supported. Currently I am only considering Samsung devices for future support.
At the minimum, I will need some information from you about your device to figure out the partitions, their layout, and how to flash them. You can gather this information by downloading and installing the app. If your device is not supported, it will offer to make a dump file for you. This will take a while. Post the dump file in this thread.
If you can find a .PIT or .OPS file for your device, please attach it !
After that, I will also need a kernel for this device running preferably CWM5, but if unavailable, CWM4 or CWM3 may also do.
If you are lucky, this will allow me to make your device compatible. It may be required that you do some rather lengthy and extensive testing for me.
Click to expand...
Click to collapse
The OP needs the .pit for his device in order to send to chainfire and get his device supported.
Sent from my GT-I9100 using xda premium
Open root explorer.
Navigate to system.
Change to R/W
Long press build.prop.
Change,
ro.product.model=GT-I9100p to
ro.product.model=GT-I9100
Save and exit.
Reboot phone.
Mobile Odin will now work.
[EDIT]...PS So will ktool so you can backup your EFS Folder.
Mobile Odin I9100P support
Dear bored_stupid.
Your solution works perfectly.
Thank you for your suggestion.
Great....
bored_stupid said:
Open root explorer.
Navigate to system.
Change to R/W
Long press build.prop.
Change,
ro.product.model=GT-I9100p to
ro.product.model=GT-I9100
Save and exit.
Reboot phone.
Mobile Odin will now work.
[EDIT]...PS So will ktool so you can backup your EFS Folder.
Click to expand...
Click to collapse
Thank you - U R A diamond!

[Q] Need PIT file for G925F 32GB

As the title says i need the PIT file for a S6 edge G925F with 32GB. Maybe someone can pull it from his device.
m3dd0g said:
As the title says i need the PIT file for a S6 edge G925F with 32GB. Maybe someone can pull it from his device.
Click to expand...
Click to collapse
Did you find one if so can you link need it for jodin
Thanks mate
jaythenut said:
Did you find one if so can you link need it for jodin
Thanks mate
Click to expand...
Click to collapse
No sorry im still searching.
Sent from my SM-G925F using XDA Free mobile app
m3dd0g said:
No sorry im still searching.
Sent from my SM-G925F using XDA Free mobile app
Click to expand...
Click to collapse
Ok thanks mate
W?
Can somebody upload this file pls? Big community but nobody is willing to upload a single file?
Just delete the hidden ImG..from the firmware and you are done...
Alex-V said:
Just delete the hidden ImG..from the firmware and you are done...
Click to expand...
Click to collapse
Are you sure? I want it to debrand.
How is it possible to delete the hidden.img from the firmware?
chik0 said:
Are you sure? I want it to debrand.
How is it possible to delete the hidden.img from the firmware?
Click to expand...
Click to collapse
Yes.. Delete the .md5 from the firmware file..now extract it using winrar...now delete the hidden.img now use this toolkit http://forum.xda-developers.com/showthread.php?t=3101195
To make your own firmware and flash it with Odin..
Chik0 please give Feedback if you Can Flash without FAIL.
I tried already with deleting the hidden.img . I deleted the hidden.img with PowerArchiver from the .tar file. It didn't work.
€dit: It worked.
What I did:
1.) Downloaded an unbranded Firmware from sammobile.
2.) Installed PowerArchiver and opened the .tar file with it (removed .md5 before) and deleted the hidden.img
3.) Used this toolkit to flash with odin: http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0
3.1.) Just follow the instructions from the toolkit.
4.) Done
chik0 said:
I tried already with deleting the hidden.img . I deleted the hidden.img with PowerArchiver from the .tar file. It didn't work.
€dit: It worked.
What I did:
1.) Downloaded an unbranded Firmware from sammobile.
2.) Installed PowerArchiver and opened the .tar file with it (removed .md5 before) and deleted the hidden.img
3.) Used this toolkit to flash with odin: http://www.skipsoft.net/?wpdmpro=unified-android-toolkit-v1-4-0
3.1.) Just follow the instructions from the toolkit.
4.) Done
Click to expand...
Click to collapse
But I still have a 4 GB /hidden partition on my device. I want to reduce /hidden and enlarge /data => therefor a pit file is needed, not only to delete hidden.img from the tar file ...
mielletseed said:
But I still have a 4 GB /hidden partition on my device. I want to reduce /hidden and enlarge /data => therefor a pit file is needed, not only to delete hidden.img from the tar file ...
Click to expand...
Click to collapse
i dont think it will be as easy as it sounds...in the past you needed to be s-off + have a different patition layout to flash
are there such differences in hidden partition ..i mean that it could only 2gb or so..? and rest to data
Alex-V said:
i dont think it will be as easy as it sounds...in the past you needed to be s-off + have a different patition layout to flash
are there such differences in hidden partition ..i mean that it could only 2gb or so..? and rest to data
Click to expand...
Click to collapse
What do you mean with "to be s-off"? The "different partition layout to flash" is the pit file the OP is looking for
Yes there are differences. I found an article about the new S6 devices and there were screen shots with less data used by the system. There was more data "free" than the whole actual size of my /data partition.
So I inspected my partition layout and found that the biggest partitions of my device are /data (~20 GB) /system (~4 GB) and /hidden (~4 GB).
So I'm looking for a different pit file to minimize /hidden and maximize /data
mielletseed said:
What do you mean with "to be s-off"? The "different partition layout to flash" is the pit file the OP is looking for
Yes there are differences. I found an article about the new S6 devices and there were screen shots with less data used by the system. There was more data "free" than the whole actual size of my /data partition.
So I inspected my partition layout and found that the biggest partitions of my device are /data (~20 GB) /system (~4 GB) and /hidden (~4 GB).
So I'm looking for a different pit file to minimize /hidden and maximize /data
Click to expand...
Click to collapse
ah sorry for misunderstanding..if I say in the past...I mean HTC times..I forget to say that sometimes..and on HTC phones you must have security off..while the phones come with and boatloader looked..boatloader can be official unlocked for root and such things but to flash different and selfmade partitions you must have S-off..
anyway so you needs an pit.. I saw the best way is if you are rooted and you needs it for the 32GB model..so I can't help..mine is 128GB..
that's the thing I don't know..is there any possibility to change the sizes of the partitions from the extracted pit from the phone...
and if there is such a thing
(if you don't) root it..so you can extract the pit from the phone...
Alex-V said:
ah sorry for misunderstanding..if I say in the past...I mean HTC times..I forget to say that sometimes..and on HTC phones you must have security off..while the phones come with and boatloader looked..boatloader can be official unlocked for root and such things but to flash different and selfmade partitions you must have S-off..
anyway so you needs an pit.. I saw the best way is if you are rooted and you needs it for the 32GB model..so I can't help..mine is 128GB..
that's the thing I don't know..is there any possibility to change the sizes of the partitions from the extracted pit from the phone...
and if there is such a thing
(if you don't) root it..so you can extract the pit from the phone...
Click to expand...
Click to collapse
Dears
I have same problem in my S6 edge (Model G925F), I used CF-Auto-Root-zerolte-zeroltexx-smg925f.tar.md5 to root my device then my device hang with error
Recovery Is not Seandroid Enforcing
I download TWRP recovery and wipe everything and make return to factory settings but no luck same error appear
I download XSG-G925FXXU1AOD4-20150409145130.zip stock ROM but it gave me error NAND write error
I did what mentioned in this thread to delete hidden.img and use SkipSoft ToolKit to generate the ROM without hidden.img
now it pass NAND write error but give me failed after cm.img.
Please advice
tabulnaga said:
Dears
I have same problem in my S6 edge (Model G925F), I used CF-Auto-Root-zerolte-zeroltexx-smg925f.tar.md5 to root my device then my device hang with error
Recovery Is not Seandroid Enforcing
I download TWRP recovery and wipe everything and make return to factory settings but no luck same error appear
I download XSG-G925FXXU1AOD4-20150409145130.zip stock ROM but it gave me error NAND write error
I did what mentioned in this thread to delete hidden.img and use SkipSoft ToolKit to generate the ROM without hidden.img
now it pass NAND write error but give me failed after cm.img.
Please advice
Click to expand...
Click to collapse
i am also stuck at the same stage and process as you
did u find out how to fix it?
Find all the PIT files you need here http://forum.xda-developers.com/showthread.php?t=3171636
Enjoy!
just use smart switch to flash official rom

PIT File for XXU Firmware for G925F

Hi to all.
I would like to ask a few questions, that i haven't been able to find the answer to,
even after extensive search.
I have a G925F with the G925FXXS5EQI7 Firmware.
As I have seen at sammobile.com, the newest and more common Firmware updates come with XXU Firmwares.
https://www.sammobile.com/firmwares/galaxy-s6-edge/SM-G925F/
The attempts to install a XXU Firmware over the XXS have failed,
with the error in Odin which I assume is because of the wrong hidden partition size and/or PIT file.
The /proc/partitions file in the XXS firmware has this in the partition table:
259 1 204800 sda17
so I assume it's the 200M partition size, correct?
I have seen this pages regarding the PIT files.
https://forum.xda-developers.com/ga...g925-pit-files-multi-thread-download-t3171636
https://www.sammobile.com/forum/showthread.php?t=30136
The first one here at XDA has nothing but dead links,
while the second has every PIT file from the first one except the HIDDEN300M pit,
and a additional HIDDEN250M pit file not present in the first link.
So the questions I would like to ask are:
1. Could you please inform me on what is the correct PIT File to download,
in order to install the XXU Firmware? Any download link if possible?
2. I have read somewhere here in the forums that if I install the largest (so the HIDDEN250M, or 300M)
PIT file will allow me to install any firmware, but will eat away some MBs of storage, is that correct?
3. Should I install the PIT file alone, in the PIT options without any firmware, or along with a firmware?
4. Is data/cache wipe necessary, or could I just update from the XXS firmware without data loss?
5. With the correct (largest?) PIT file I will be able to install either XXU or XXS firmware, right?
I would really appreciate your input on this.
Thank you in advance.
McClane13 said:
Hi to all.
I would like to ask a few questions, that i haven't been able to find the answer to,
even after extensive search.
I have a G925F with the G925FXXS5EQI7 Firmware.
As I have seen at sammobile.com, the newest and more common Firmware updates come with XXU Firmwares.
https://www.sammobile.com/firmwares/galaxy-s6-edge/SM-G925F/
The attempts to install a XXU Firmware over the XXS have failed,
with the error in Odin which I assume is because of the wrong hidden partition size and/or PIT file.
The /proc/partitions file in the XXS firmware has this in the partition table:
259 1 204800 sda17
so I assume it's the 200M partition size, correct?
I have seen this pages regarding the PIT files.
https://forum.xda-developers.com/ga...g925-pit-files-multi-thread-download-t3171636
https://www.sammobile.com/forum/showthread.php?t=30136
The first one here at XDA has nothing but dead links,
while the second has every PIT file from the first one except the HIDDEN300M pit,
and a additional HIDDEN250M pit file not present in the first link.
So the questions I would like to ask are:
1. Could you please inform me on what is the correct PIT File to download,
in order to install the XXU Firmware? Any download link if possible?
2. I have read somewhere here in the forums that if I install the largest (so the HIDDEN250M, or 300M)
PIT file will allow me to install any firmware, but will eat away some MBs of storage, is that correct?
3. Should I install the PIT file alone, in the PIT options without any firmware, or along with a firmware?
4. Is data/cache wipe necessary, or could I just update from the XXS firmware without data loss?
5. With the correct (largest?) PIT file I will be able to install either XXU or XXS firmware, right?
I would really appreciate your input on this.
Thank you in advance.
Click to expand...
Click to collapse
Any thoughts...???
Thanks in advance.
BUMP
Caligula36 said:
BUMP
Click to expand...
Click to collapse
Google. There are loads of links. Which pit you need?
It's quite easy.
Use samfirm tool in manual mode (enter which FW you want to have) and tick binary nature. It'll download the latest multi part factory image which contains the right pit file in the CSC part.
If odin detects it there it uses it.

Categories

Resources