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

Which model do you own?


  • Total voters
    884
Search This thread

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
[MOD][GUIDE]Partition your internal SD for better App management 16GB & 32GB Models!

***************************************************************************************************************
UPDATE 19th July

I have added my donation details to my profile, following a request from @A-S who wished to donate and request a build.

I will always build for people, but he really wanted to donate so I set up the link!

You may thank him for the new versions he requested if they suit you! 10gb & 12gb now available!




32gb Model now supported! First tested and verified 6gb Data version attached, ask if you wish for different partition sizes! :) !



Beware #1 - Preload moddified version are NOT suitable for Samsung Stock Roms!


Beware #2 - Pre-Load moddified versions are for custom roms that do not use pre-load area! Please post on the respective thread for your rom and ask the author the question prior to using these versions if you are unsure! (I can tell you that SlimRoms & Cyanfox do not use preload, at present at least)


Beware #3 - If you want to go back to stock rom, you just need to flash my standard edition pit files, easy!




***************************************************************************************************************



Increase your data application partition and set your device free!



Are you bored of having to move apps to SD?

Bored of facing a stock issue of not even being able to move apps to your internal SD?

This thread will help you, currently only for n7000 16gb Model only.
[/COLOR]




GUIDE - The usual rules apply, You will:



IMPORTANT: Please backup all your photos, videos and other important stuff on your PC, in the cloud or somewhere else where it is safe, as all your stuff on your internal SD card will be deleted!



1) Run compatible version of Odin, put your phone in to download mode (vol down/home/power button) and connect to PC via USB





2) Tick re-partition box


3) Click PIT button and select the pit file of your desired app partition size.


4a) Click PDA and select your stock official samsung jellybean rom - Edit- please remember if you use a rom that is not native to your region, it would be wise to flash the appropriate radio modem afterwards to ensure you get the signal strength you'd expect :)


4b) OR Flash your persnonal choice of kernel in *.tar format and pit file, reboot to CWM ( power button/vol up/home button) and install new rom or restore nandroid and boot as normal and skip to number 9 in this guide


5) Flash and wait for reboot


6) Let the phone reboot and wait until the android chap finishes his spinny wire ball belly animation and then remove the battery and do a factory reset using the usual power/vol up/ home trick.


7) Let it boot so you can check that you are happy with the result. ( I didn't, but you might want to)


8) Now flash your chosen rooted kernel and either stick with stock rom or enter CWM and flash your own custom rom.


9) When your phone boots, you may get a notification to format usb storage, say yes if prompted! If it that fails, connect you phone to your PC and format the the internal sd card manually.


10) Remember that Android likes automatically deciding where apps go, so sometime it tries to put stuff to SD itself (app requests it), it is worthwhile checking your installed apps to makes sure they went to internal app partition, you can tell this by either:


a) Look in Titanium back up, go to the move/integrate section and see if any apps show as moveable from SD to internal, if so run the batch process to put them on your nice new app partition, otherwise you may have issues running those apps.


b) If you don't have Titanium (why not?) then check the harder way by looking at app manager and swipe to the right to look at SD app, sort by size and then individually move ones back to internal storage.


11) That easy! Here is a shot of my resulting app manager






Files attached to post including original pit in case you want it back to stock values!

Enjoy!

*****************************************************************

Thanks to @RivakDebbie for testing this pit file on his own N7000 :good:
 
Last edited:

AA1973

Senior Member
Welcome to the N7000 @metalgearhathaway
Just as a matter of caution, an idea. Would you mind considering to add something like "please backup all your photos, videos and other important stuff on your PC, in the cloud or somewhere else where it is safe, as all your stuff on your internal SD card will be deleted!"
Thanks again for your contribution ?

Sent via GALAXY NOTE N7000 // KitKat
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
Welcome to the N7000 @metalgearhathaway
Just as a matter of caution, an idea. Would you mind considering to add something like "please backup all your photos, videos and other important stuff on your PC, in the cloud or somewhere else where it is safe, as all your stuff on your internal SD card will be deleted!"
Thanks again for your contribution ?

Sent via GALAXY NOTE N7000 // KitKat
Done, would thank you, but only 8 allowed, needs extending a little I reckon :good:
 

Pandur

Senior Member
Mar 9, 2006
86
13
Works like a charme! Thank you, been waiting for this since I have my Note! You made my Day!
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
BUT your Instruction 4b dosnt work for me, CM11 told me some thing like Device Auto is not supported... after flashing a complete Sammy-ROM as instructed in 4a evrything works fine!
Cheers for letting me know this.

To check, did you then follow 4a and get stock rom on and then upgrade to cm11 afterwards and all worked? I assume so?

Please confirm that and I'll update OP for CM/KK users :)
 
  • Like
Reactions: XxPixX

XxPixX

Senior Member
Dec 19, 2012
678
526
26
Warsaw
Wow, thanks a lot for this!

Is there a chance though that you could remove (or decrease the size) of the preload partition? A lot of us use AOSP and that doesn't even use preload so that space is wasted.

Also, I understand if I want to go back to the default partition layout I need only flash the stock pit file? just to be sure ;)
 
  • Like
Reactions: YLNdroid and Kamy

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
Wow, thanks a lot for this!

Is there a chance though that you could remove (or decrease the size) of the preload partition? A lot of us use AOSP and that doesn't even use preload so that space is wasted.

Also, I understand if I want to go back to the default partition layout I need only flash the stock pit file? just to be sure ;)
Yes, that should be the case by flashing stock or one of my standard modded ones.

I could decrease the preload, where would you want the regained space placing?

Only thing is, it is tested at your risk, I've never played with the preload, so anything may happen, it will be out of my control.

Let me know more and confirm you are happy with the risk.
 

XxPixX

Senior Member
Dec 19, 2012
678
526
26
Warsaw
Yes, that should be the case by flashing stock or one of my standard modded ones.

I could decrease the preload, where would you want the regained space placing?

Only thing is, it is tested at your risk, I've never played with the preload, so anything may happen, it will be out of my control.

Let me know more and confirm you are happy with the risk.

Hmmm, perhaps in the future then? Since I started flashing ROMs over a year ago I have never been able to stay on one for more than a week, but I have been running this last one for a month now so I am rather resentful to re-partitioning the device.

I also found this:

if you're running an AOSP flavor of android you can get rid of the UMS partition and the HIDDEN one (/preload). Keep in mind the sum of block size and block count of the #12 UMS partition must be exactly the number in the block size of the #13 HIDDEN partition (or the DATAFS must end on the last block of the HIDDEN partition if you're getting rid of the last two partitions).
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
Hmmm, perhaps in the future then? Since I started flashing ROMs over a year ago I have never been able to stay on one for more than a week, but I have been running this last one for a month now so I am rather resentful to re-partitioning the device.

I also found this:
Yup, I know about the blockcount and being careful with my sums. It's surprisingly simple to mod the the pit file using pitmagic. I think the only reason people have took to my pit files, is because I can count pretty well and use a calculator :)

So I can do one for you and submit the code for you to read, its pretty straight forward to read, you can then choose if you fancy trying it out.

Here is my output the pit file current hosted for n7000 users, I have highlight in red those that are changed for the hosted version, and in green I have highlighted FACTORYFS (about 800mb) which I think is your preload area, I need clarification however on that:


----------------------------------------------------------
PIT Magic v1.3.10 Copyright © Gaz 2012.
----------------------------------------------------------
Analysis for: Q1_20110914_16GB.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: 1,744,896
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: 2,293,760
Block Count: 8,388,608
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: 10,682,368
Block Count: 19,038,208

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 >>>
----------------------------------------------------------
 
Last edited:
  • Like
Reactions: XxPixX

XxPixX

Senior Member
Dec 19, 2012
678
526
26
Warsaw
Ok, may I request then a pit file with an increased (so that there is say ~20MB in the /preload partition AND about a 2 gig decrease in the sdcard size) data partition please? I will flash it hopefully on Saturday (I will have to make some backups and recompile Omni for myself and I haven't got much time until Saturday) and report back on how it goes ;)

To make it clear:
/preload total size about 20MB (just in case - it's currently using 8.4MB for an unknown reason)
/storage/sdcard0 decreased by about 2GB
/data increase by 2068MB (about)

Also, I checked with "partition table" and it says the /preload partition is 503.9MB in size whereas the /system is 838.6 MB

Screenshot_2014_02_10_20_00_57.png


Thanks a lot!
 

maktama

Senior Member
Mar 12, 2011
76
17
Pit file in OP works perfectly:) thanks

GT-N7000 cihazımdan Tapatalk 2 ile gönderildi
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
Ok, may I request then a pit file with an increased (so that there is say ~20MB in the /preload partition AND about a 2 gig decrease in the sdcard size) data partition please? I will flash it hopefully on Saturday (I will have to make some backups and recompile Omni for myself and I haven't got much time until Saturday) and report back on how it goes ;)

To make it clear:
/preload total size about 20MB (just in case - it's currently using 8.4MB for an unknown reason)
/storage/sdcard0 decreased by about 2GB
/data increase by 2068MB (about)

Also, I checked with "partition table" and it says the /preload partition is 503.9MB in size whereas the /system is 838.6 MB

Screenshot_2014_02_10_20_00_57.png


Thanks a lot!
Here you go then, I have made the following changes labelled and explain in RED:

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

Binary Type: 0 (UNKNOWN)
Device Type: 2 (MMC)
Identifier: 11
Attribute: 1 (READ / WRITE)
Update Attribute: 0 (UNKNOWN)
Block Size: 1,392,640
Block Count: 8,388,608 - 4GB DATA PARTITION (CHANGED FROM 2GB)
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: 9,781,248
Block Count: 20,946,944 - 10.5GB(ISH) INTERNAL SD CARD PARTITION

File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: UMS
Flash FileName:
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: 30,728,192
Block Count: 40,960 - 20MB PRELOAD AREA

File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: HIDDEN
Flash FileName: hidden.img
FOTA FileName:


You are taking the risk by flashing, as explained, but if it works I will add thanks and credits for your bold testing and offer the community the option to claim half a gig of space back if they have no desire to use dual boot, or indeed that they understand the need to go back to stock based preload pit files should they ever want to return to official samung firmwares :)


EDIT: Tested it myself, does not work! It ignores the alterations to hidden image, so maybe something blocks me changing certain area's :(
 
Last edited:

XxPixX

Senior Member
Dec 19, 2012
678
526
26
Warsaw
Thanks very much! I will test it on Saturday.
I double checked the numbers and they seem to be alright, but I have a question about the name of the file:

I9100_4GB data - 20mb preload - 10.5 internal sd - UNTESTED.zip

Was that just a mistype or did you accidentally base it on the i9100 pit file?
 

metalgearhathaway

Senior Member
Oct 6, 2009
2,896
3,092
Cookley
Thanks very much! I will test it on Saturday.
I double checked the numbers and they seem to be alright, but I have a question about the name of the file:



Was that just a mistype or did you accidentally base it on the i9100 pit file?
Sorry, I deleted the file, yes it was i9100!

Plus i tested it out on my i9100, the preload area's appears to be untouchable, so I reckon its blocked from alteration sadly :(

EDIT: I might be wrong, I think I have sorted it, on i9100 atleast, let me test it out a bit longer and I'll report back with a file for you to use in the next couple of days!

EDIT 2: Here is a shot of the result on my i9100, so I will try for you on n7000 now! :)

 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 159
    [MOD][GUIDE]Partition your internal SD for better App management 16GB & 32GB Models!

    ***************************************************************************************************************
    UPDATE 19th July

    I have added my donation details to my profile, following a request from @A-S who wished to donate and request a build.

    I will always build for people, but he really wanted to donate so I set up the link!

    You may thank him for the new versions he requested if they suit you! 10gb & 12gb now available!




    32gb Model now supported! First tested and verified 6gb Data version attached, ask if you wish for different partition sizes! :) !



    Beware #1 - Preload moddified version are NOT suitable for Samsung Stock Roms!


    Beware #2 - Pre-Load moddified versions are for custom roms that do not use pre-load area! Please post on the respective thread for your rom and ask the author the question prior to using these versions if you are unsure! (I can tell you that SlimRoms & Cyanfox do not use preload, at present at least)


    Beware #3 - If you want to go back to stock rom, you just need to flash my standard edition pit files, easy!




    ***************************************************************************************************************



    Increase your data application partition and set your device free!



    Are you bored of having to move apps to SD?

    Bored of facing a stock issue of not even being able to move apps to your internal SD?

    This thread will help you, currently only for n7000 16gb Model only.
    [/COLOR]




    GUIDE - The usual rules apply, You will:



    IMPORTANT: Please backup all your photos, videos and other important stuff on your PC, in the cloud or somewhere else where it is safe, as all your stuff on your internal SD card will be deleted!



    1) Run compatible version of Odin, put your phone in to download mode (vol down/home/power button) and connect to PC via USB





    2) Tick re-partition box


    3) Click PIT button and select the pit file of your desired app partition size.


    4a) Click PDA and select your stock official samsung jellybean rom - Edit- please remember if you use a rom that is not native to your region, it would be wise to flash the appropriate radio modem afterwards to ensure you get the signal strength you'd expect :)


    4b) OR Flash your persnonal choice of kernel in *.tar format and pit file, reboot to CWM ( power button/vol up/home button) and install new rom or restore nandroid and boot as normal and skip to number 9 in this guide


    5) Flash and wait for reboot


    6) Let the phone reboot and wait until the android chap finishes his spinny wire ball belly animation and then remove the battery and do a factory reset using the usual power/vol up/ home trick.


    7) Let it boot so you can check that you are happy with the result. ( I didn't, but you might want to)


    8) Now flash your chosen rooted kernel and either stick with stock rom or enter CWM and flash your own custom rom.


    9) When your phone boots, you may get a notification to format usb storage, say yes if prompted! If it that fails, connect you phone to your PC and format the the internal sd card manually.


    10) Remember that Android likes automatically deciding where apps go, so sometime it tries to put stuff to SD itself (app requests it), it is worthwhile checking your installed apps to makes sure they went to internal app partition, you can tell this by either:


    a) Look in Titanium back up, go to the move/integrate section and see if any apps show as moveable from SD to internal, if so run the batch process to put them on your nice new app partition, otherwise you may have issues running those apps.


    b) If you don't have Titanium (why not?) then check the harder way by looking at app manager and swipe to the right to look at SD app, sort by size and then individually move ones back to internal storage.


    11) That easy! Here is a shot of my resulting app manager






    Files attached to post including original pit in case you want it back to stock values!

    Enjoy!

    *****************************************************************

    Thanks to @RivakDebbie for testing this pit file on his own N7000 :good:
    14
    OP UPDATED! NEW PITS ONLINE!



    New PIT's up! 4gb, 6gb and 8gb now supported. I have also created special versions freeing up 450mb from preload, this is added to the internal SD card partition.


    Please note - The preload modified version not suitable for Samsung Stock roms, it will work with many custom roms, but you need to check with the author of your custom rom first, as some do use preload, not many, but you are best to check first! I can tell you that Slim Roms and Cyanfox do not use preload.....



    Enjoy!
    10
    Welcome to the N7000 @metalgearhathaway
    Just as a matter of caution, an idea. Would you mind considering to add something like "please backup all your photos, videos and other important stuff on your PC, in the cloud or somewhere else where it is safe, as all your stuff on your internal SD card will be deleted!"
    Thanks again for your contribution ?

    Sent via GALAXY NOTE N7000 // KitKat
    Done, would thank you, but only 8 allowed, needs extending a little I reckon :good:
    9
    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 :)
    9
    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: