[MOD][GUIDE]Partition your internal SD for better App management 16GB & 32GB Models!

Which model do you own?


  • Total voters
    866

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,088
0
Cookley
We really appreciate your contribution . but i would have really loved a 2 gb system and 4 gb data . or a 2gb system and 3 gb data . At present i use the 4 gb data partition table and i don't even consume 75 % of that partition . perhaps people didn't download that table becausez they too are just like me .
The thread is very useful. Saved many people from messages that you don't have enough space to install. Very good work. Along with ROM and Kernel support this thread is must stay in its place its not less important than ROM and Kernel support. If its doable we can add 3gb pit file since many of us using 4gb pit and its too much for many of us.

GT-N7000...
Thanks those who passed on their thanks, for that I have made on final extra pit file, as you requested, 2gb System, 3gb Data.

Enjoy and I hope this helps you get more value and life out of your device, this was my aim with these threads.

Chris
 
1

12011012

Guest
Thanks those who passed on their thanks, for that I have made on final extra pit file, as you requested, 2gb System, 3gb Data.

Enjoy and I hope this helps you get more value and life out of your device, this was my aim with these threads.

Chris
Thanks Chris. I see that the 4gb pit file I'm using is shows system 839 mb and system is 2gb in this file so there will be no gain in USB storage even it will decrease in size if flash this pit.
Data+system = 4839 ( 4gb pit )
Data+system = 5000 ( 3gb pit )

Is it possible to make 3 GB data and default system partition so we gain 1.2 GB to USB storage part.



GT-N7000...
 

Attachments

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,088
0
Cookley
Thanks Chris. I see that the 4gb pit file I'm using is shows system 839 mb and system is 2gb in this file so there will be no gain in USB storage even it will decrease in size if flash this pit.
Data+system = 4839 ( 4gb pit )
Data+system = 5000 ( 3gb pit )

Is it possible to make 3 GB data and default system partition so we gain 1.2 GB to USB storage part.



GT-N7000...
That's odd, you should have ended up with 2gb system partition, 4gb storage and the rest as internal sd, is anyone else getting the same results as this?

I can look at another pit file, but I could do with knowing if others are seeing the system partition being incorrect?
 
1

12011012

Guest
That's odd, you should have ended up with 2gb system partition, 4gb storage and the rest as internal sd, is anyone else getting the same results as this?

I can look at another pit file, but I could do with knowing if others are seeing the system partition being incorrect?
I used the one in the first post for stock tw roms. Actually default system partition (839 mb) is ok for me . 2 GB system is really big for most of us. I really do appreciate if we have 3gb data and default system or 1gb max.

GT-N7000...
 

TenzoNakami~

Member
Feb 5, 2015
32
6
0
Special Lollipop Update as per user request!

This file is untested (I own a LG G3) so use at your own risk!


Requested details are:

System - 2gb
Data - 6gb
Preload - 512mb

Enjoy and please at least say thank you, I really had to think about this one, it has been a long time since I owned a device that used this structure! :)

NB: This is the last Pit file I produce, it has been way more hassle than rewarding to provide this service for people. The information is out there on XDA on how to do this, so do not worry, if you want it enough it can be done! :) :highfive:
six downloads, no thanks, I wonder why I am despondent in providing the service for people?



Sent from my LG-D855 using XDA Free mobile app
Hi Chris, and thanks alot for your help.
I'm sorry i couldn't go to XDA earlier that i couldn't be the first one to say thanks for the PIT i requested.
Yes, everyone may know that i was the one bothering Chris for this PIT. (Sorry for that, Chris!)
Now i've logged on, was still thinking that you will preferably gone very busy again, so i just checked out my Messages
and boom! You made it! I haven't Flashed it in ODIN yet, and well, thanks for your help all this time.
Should've learned about those PIT from you, so i could continue on helping people on this thread.
Anyway, will report back soon, and notice about that Thanks Meter, that should has just increased by 1 now ^^

Cheers!

---------- Post added at 06:10 PM ---------- Previous post was at 05:57 PM ----------

Hello,
I am beginner for use "pit" (and i am not good in english :rolleyes:)
I have this ROM : Android 5.0.2NightOwl BETA 8.0.3.
What is the process for use this PIT ? (or other) : n7000 16gb variant - 2gb System - 6gb data - 512mb Preload.zip
Thank for your help.
Hi Voxel and welcome to the N7000 Community!
You might have trouble time after time if you haven't got the problem fixed or you haven't find out a way to do this and that.
Let me tutor you abit, you can use GOOGLE TRANSLATE to Translate my writing, if you can't read English properly.
FIRST OF ALL, READ THIS:

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
 */
1. You might want to know that NightOwl UNOFFICIAL CM12 are based heavily on /preload, which means you will need to download PIT's that still left atleast 256mb of /preload, or to be safe use my specialy requested PITs with 512mb of /preload that you can find the download link later.
2. Also you might want to know by playing with PITs and ODINs there is a big chance on bricking your device, don't get nervous just yet, it's just gotten lower if you follow my step carefully.
3. Download everything you need, the ROM (in this case you said you want to use NightOwl), the Gapps (you can choose to use NightOwl's stock or PA's, i prefer PA's), the Samsung Official Firmware (Believe me or not, you will have to download this, or else 100% chance on soft-bricking your device.) the ODIN and the Kernel. (There is two kernel, one for ODIN and another for Recovery Flash, you will need both so download both.)
4. After you have downloaded everything BACK-UP your data first, I AM NOT RESPONSIBLE FOR ANY DATA LOSS. And then copy the ROM, the Gapps and the Raw Kernel to your MicroSD.
5. Assuming you already know how to use ODIN (If you don't, GOOGLE or XDA is your best friend.) Push your device to Download Mode and open the ODIN, after that hook up your device using the Data Cable you have.
6. Flash the PIT and the Samsung Official Firmware that you have downloaded earlier and let your phone boot to Samsung Official Firmware.
7. Now, assuming you already know how to operate Kernel in Recovery (Again, XDA and GOOGLE is your best friend.) Push your device to Recovery Mode and install the Raw Kernel we copied earlier to the MicroSD.
8. Reboot back to Recovery and you should see the new kernel. Now install the NightOwl alongside the Gapps and enjoy!

Download:
My Special PIT that was created by metalgearhathaway (Be sure to Thanks him!!) - http://forum.xda-developers.com/showpost.php?p=59164692&postcount=314
Samsung Official Firmware - http://www.sammobile.com/firmwares/
NightOwl's ROM and GApps - http://forum.xda-developers.com/galaxy-note/development/rom-t2938649
PA's GApps - http://forum.xda-developers.com/par...apps-official-to-date-pa-google-apps-t2943900
Raw Kernel (Go find The Latest Kernel that is ready for CM12) - http://forum.xda-developers.com/showthread.php?t=2397000
ODIN Kernel (Go find The Kernel made for ODIN or are in .tar.md5 format) - http://forum.xda-developers.com/showthread.php?t=1901191
And for the ODIN itself (If you don't have it yet.) - Find them in Attachments.

Notes:
In order to use the PA's GApps you will need to use my Special PIT else it won't install.
If you want to go with bauner's NightOwl GApps then just go with any PITs with atleast 256mb of /preload.
 

Attachments

Last edited:

regandsilva

Member
Jan 2, 2015
32
10
8
Thanks those who passed on their thanks, for that I have made on final extra pit file, as you requested, 2gb System, 3gb Data.

Enjoy and I hope this helps you get more value and life out of your device, this was my aim with these threads.

Chris
Thank u so much sir . i really really appreciate this .

---------- Post added at 11:38 AM ---------- Previous post was at 11:32 AM ----------

Thanks Chris. I see that the 4gb pit file I'm using is shows system 839 mb and system is 2gb in this file so there will be no gain in USB storage even it will decrease in size if flash this pit.
Data+system = 4839 ( 4gb pit )
Data+system = 5000 ( 3gb pit )

Is it possible to make 3 GB data and default system partition so we gain 1.2 GB to USB storage part.



GT-N7000...
i had requested the 2 GB system for the lollipop builds and pa gapps which consume system storage over 1 gigs .

---------- Post added at 11:56 AM ---------- Previous post was at 11:38 AM ----------

Thanks Chris. I see that the 4gb pit file I'm using is shows system 839 mb and system is 2gb in this file so there will be no gain in USB storage even it will decrease in size if flash this pit.
Data+system = 4839 ( 4gb pit )
Data+system = 5000 ( 3gb pit )

Is it possible to make 3 GB data and default system partition so we gain 1.2 GB to USB storage part.



GT-N7000...
i had requested the 2 GB system for the lollipop builds and pa gapps which consume system storage over 1 gigs .
 

TenzoNakami~

Member
Feb 5, 2015
32
6
0
Thank u so much sir . i really really appreciate this .

---------- Post added at 11:38 AM ---------- Previous post was at 11:32 AM ----------



i had requested the 2 GB system for the lollipop builds and pa gapps which consume system storage over 1 gigs .

---------- Post added at 11:56 AM ---------- Previous post was at 11:38 AM ----------



i had requested the 2 GB system for the lollipop builds and pa gapps which consume system storage over 1 gigs .
Please don't go spamming all over else the threads will be closed.
If you are going to request a PITs please create a new post and don't quote to anyone, and be patient.
Patience makes up for everything.
If you're still going to request for a new PITs please atleast detail it to every inches so it will make the creation process easier.
 

regandsilva

Member
Jan 2, 2015
32
10
8
Please don't go spamming all over else the threads will be closed.
If you are going to request a PITs please create a new post and don't quote to anyone, and be patient.
Patience makes up for everything.
If you're still going to request for a new PITs please atleast detail it to every inches so it will make the creation process easier.
Sorry i didn't see that it was posted twice .
 
N

notauseranymore

Guest
Thanks for the guide, after I partitioned a 6GB space I installed the stock rom and encountered problems with recovery. Didn't know I had to flash a raw kernel before moving to a custom rom until I did in-depth reading XD
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,088
0
Cookley
How to make your own custom PIT File

@TenzoNakami~ and all users wanting to continue this work for themselves and others :)

It is really easy, you simply have to be able to use a calculator and make sure you don't make an error putting the numbers in!

Download PitMagic from here: http://forum.xda-developers.com/showthread.php?t=1916936



You are warned, if you do not feel comfortable doing this, please do not even try! It is only basic mathematics and everyone has access to a calculator, so no excuses and no contacting me if you make horrible mistakes! I am not being cruel here, if you get it wrong, then it means that you did something wrong, plain and simple, so be careful, triple check your sums! Even sleep on it and check the next day to be sure after a good nights sleep :)



How to make a custom PIT File


To work out your new values the following applies:

1) 1GB = 2,097,152 blocks (512mb is half that value etc.)


2) The Block Size and Block Count of the previous section equals the value you enter for the next sections Block Size Value


3) The Block Count is the amount of space you are allocating to that section


4) The partitions you may want to work with are:

a) FactoryFS - This is the system partition where your rom installs to

b) DATAFS - This is the application partition where all your user installed apps will install to

c) UMS - This is the partition that will be your internal SD card space, i.e. where you might place photos and music

d) HIDDEN - This is the partition that some roms will use as preload, some roms use lots, some a little and some not at all!

e) All other sections should remain untouched!


5) You MUST make sure that your values all add up to the total available space available, that value is the Block Size & Block Count added together from the Hidden partition entry towards the bottom of the pit file!


6) Take a look at the example below and you will now see that as you go down the partitions the block size and block count of a section equals the next sections block count value, everything adds up as you work down the list! By now you should be either understanding how this works, if you are not then my advice is go and do something fun instead and forget you read this :)


EXAMPLE:

This my n7000 pit file that has 2gb System (Factoryfs), 3gb data (DATAFS) and 512mb preload (HIDDEN) Ignore all that is shown in RED and only play with stuff coloured in GREEN!

----------------------------------------------------------
PIT Magic v1.3.10 Copyright © Gaz 2012.
----------------------------------------------------------
Analysis for: n7000 16gb variant - 2gb System - 3gb data - 512mb Preload.pit
----------------------------------------------------------


----------------------------------------------------------
<<< Pit File Start >>>
----------------------------------------------------------


----------------------------------------------------------
<<< PIT File Header Information >>>
----------------------------------------------------------

Header Magic: 0x12349876 (4 Bytes)
Entry Count: 15 (4 Bytes)

----------------------------------------------------------
Dummy Data #1 (In String and Hexadecimal Format):
----------------------------------------------------------
String:
Hexadecimal: 00000000

----------------------------------------------------------
Dummy Data #2 (In String and Hexadecimal Format):
----------------------------------------------------------
String:
Hexadecimal: 00000000

----------------------------------------------------------
Dummy Data #3 (In String and Hexadecimal Format):
----------------------------------------------------------
String:
Hexadecimal: 00000000

----------------------------------------------------------
Dummy Data #4 (In String and Hexadecimal Format):
----------------------------------------------------------
String:
Hexadecimal: 00000000

----------------------------------------------------------
Dummy Data #5 (In String and Hexadecimal Format):
----------------------------------------------------------
String:
Hexadecimal: 00000000

----------------------------------------------------------
Dummy Data Length: (4 Bytes Per Block, 20 Bytes In Total.)
----------------------------------------------------------

Header Size: (28 Bytes)


----------------------------------------------------------
<<< PIT File Entries >>>
----------------------------------------------------------


----------------------------------------------------------
Entry Memory Address: 0x1C
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 0
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size:
Block Count:
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: GANG
Flash FileName: emmc.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0xA0
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 1
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size:
Block Count:
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: BOOT
Flash FileName: boot.bin
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x124
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 4
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)
Block Size: 8,192
Block Count: 40,960
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: EFS
Flash FileName: efs.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x1A8
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 2
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 49,152
Block Count: 2,560
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: SBL1
Flash FileName: Sbl.bin
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x22C
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 3
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 53,248
Block Count: 2,560
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: SBL2
Flash FileName:
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x2B0
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 5
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 57,344
Block Count: 16,384
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: PARAM
Flash FileName: param.lfs
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x334
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 6
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 73,728
Block Count: 16,384
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: KERNEL
Flash FileName: zImage
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x3B8
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 7
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 90,112
Block Count: 16,384
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: RECOVERY
Flash FileName:
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x43C
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 8
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)
Block Size: 106,496
Block Count: 409,600
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: CACHE
Flash FileName: cache.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x4C0
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 9
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size: 516,096
Block Count: 32,768
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: MODEM
Flash FileName: modem.bin
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x544
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 10
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)

Block Size: 548,864
Block Count: 4,194,304
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: FACTORYFS
Flash FileName: factoryfs.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x5C8
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 11
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)
Block Size:
4,743,168
Block Count: 6,291,456
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: DATAFS
Flash FileName: data.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x64C
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 12
Attribute: 2 (STL)
Update Attribute: 0 (UNKNOWN)
Block Size:
11,034,624
Block Count: 18,685,952
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: UMS
Flash FileName: ums.rfs
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x6D0
----------------------------------------------------------

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 13
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)
Block Size:
29,720,576
Block Count: 1,048,576
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: HIDDEN
Flash FileName: hidden.img
FOTA FileName:


----------------------------------------------------------
Entry Memory Address: 0x754
----------------------------------------------------------

Binary Type: 1 (COM. PROCESSOR)
Device Type: 1 (FILE / FAT)
Identifier: 9
Attribute: 0 (READ ONLY)
Update Attribute: 0 (UNKNOWN)
Block Size:
Block Count:
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name:
Flash FileName:
FOTA FileName:


----------------------------------------------------------
<<< Pit File End >>>
----------------------------------------------------------

Generated on: 02/03/2015 19:52:47




Next,how to input your values


1) First run pitmagic:





2) Click the PIT File Analysis tab and open one of my pit files and export to file and this will export a text file to the root of your pitmagic directory, open the document and make amendments and your calculation in there and double check you make no mistakes, you can then refer to that to enter the details into the main pit file editor tab!


3) Now that you have done that, on the pit file editor tab click open and select my pit file you are using as a base profile and then click save as and save it with a name of your own, now you are ready to start entering your values.


4) Navigate to the PIT Entry List pull down box to select the PIT Entry list address field you are going to alter.


5) Then enter the value for Block Size (which is the running total of memory allocated so far) and the Block Count (which is the value you are applying to the section.


6) Click save after each amendment!


7) Once you are done, go back to the pit file analysis tab and open you pit and export and check that the values were save correctly!


8) If you are happy, now try using your newly created pit file! :)


You are warned, if you do not feel comfortable doing this, please do not even try! It is only basic mathematics and everyone has access to a calculator, so no excuses and no contacting me if you make horrible mistakes! I am not being cruel here, if you get it wrong, then it means that you did something wrong, plain and simple, so be careful, triple check your sums! Even sleep on it and check the next day to be sure after a good nights sleep :)
 
Last edited:

regandsilva

Member
Jan 2, 2015
32
10
8
Thank u sir for this information . I was just about to request you for this info on how to use pit files but u already posted it :D . Thanks to you i have already created a 1.5gb system and 3 gb data . I am now fully satisfied with my memory allocation :p .
 
Last edited:
  • Like
Reactions: metalgearhathaway

TenzoNakami~

Member
Feb 5, 2015
32
6
0
@TenzoNakami~ and all users wanting to continue this work for themselves and others :)
It is really easy, you simply have to be able to use a calculator and make sure you don't make an error putting the numbers in!
You are warned, if you do not feel comfortable doing this, please do not even try! It is only basic mathematics and everyone has access to a calculator, so no excuses and no contacting me if you make horrible mistakes! I am not being cruel here, if you get it wrong, then it means that you did something wrong, plain and simple, so be careful, triple check your sums! Even sleep on it and check the next day to be sure after a good nights sleep :)
Grr! I couldn't manage to read them at first (Yes, like I told you it's midnight and I'm tired and sleepy).
But later on after a few research on XDA i managed to read it!
Thanks to you Chris, I'll try to make my own PITs for my own N7000 first!

Thank u sir for this information . I was just about to request you for this info on how to use pit files but u already posted it :D . Thanks to you i have already created a 1.5gb system and 3 gb data . I am now fully satisfied with my memory allocation :p .
Please do not quote a whole POST if it's that huge. Please only quote some part of it, else you will annoy the hell out of other people by forcing them to scroll down a whole huge words before they could actually see your reply or your writing. Please edit the quotes for people's sake! ^^
 

regandsilva

Member
Jan 2, 2015
32
10
8
1.5 gb system,3 gb data,512 mb preload and 9.4 gb storage pit

This is a 1.5 gb system and 3 gb data pit file for the new lollipop roms . i m sharing this because some people requested me . this pit is tested on my galaxy note and is working .

Last but not the least please thank @metalgearhathaway for sharing the information on creating a pit file :)
 

Attachments

Last edited:
1

12011012

Guest
This is a 1.5 gb system and 3 gb data pit file for the new lollipop roms . i m sharing this because some people requested me . this pit is tested on my galaxy note and is working .

Last but not the least please thank @metalgearhathaway for sharing the information on creating a pit file :)
Is it possible that you make stock system, 3gb data , 512 mb preload for tw ROM.
I don't want to mess up its very risky if I make some count mistakes.
I attached my current configuration and pit file I'm used.

Thanks in advance.
 

Attachments

Last edited:
1

12011012

Guest
I'll test it tonight if the God wills and inform whether it works or not. Thanks for your work.

GT-N7000...