FORUMS
Remove All Ads from XDA

[REPARTITION][CWM-ZIP] Get 1.9 GB extra for user data on N7100!

243 posts
Thanks Meter: 131
 
By ninekaw9, Senior Member on 28th May 2014, 07:20 PM
Post Reply Email Thread
Hello everyone

This is CWM-Zip script to repartition our N7100 to gain 1.9 GB more for user data partition.

This script is originally from http://forum.xda-developers.com/gala...-data-t2762594 It’s for GT-i9300. Made by @forumber2 . Thanks to him, without his easy simple script, I wouldn’t be able to port this script.

This is how Samsung partitioned N7100



After running the script



Please note that this script is not suitable to ROMs that require storing big files in CACHE and PRELOAD or HIDDEN, notably Official ROMs, as you can see that CACHE and PRELOAD got shrank.

I’m not sure if there are some custom ROMs that store files in CACHE and PRELOAD, so check the ROMs installation zip first before using this repartition script. Check by reading update-binary in META-INF and observing folder structure inside the zip file.

I’m using DN3 v5+ and it doesn’t store any files.
I checked Omega v29, it doesn't use PRELOAD to store files, even wiping it before install.
X-Treme v2.1 is safe to install, even wiping PRELOAD before install.


BIG UPDATE 1
For some ROMs like Phoenix ROM requires storing data to PRELOAD, but not CACHE.
Use partition script "Repartition_N7100_16GB_PreloadStockSize587MB. zip" instead of "Repartition_N7100_16GB.zip"
It will partition PRELOAD to size of Stock 587 MBs.
CACHE remains 100 MBs, and SYSTEM remains around 2 GBs. GAINED USERDATA FREE SPACE IS AROUND 1328 MBs.
If your ROM .zip installer doesn't store files in PRELOAD, use "Repartition_N7100_16GB.zip" instead.


FYI, Big CACHE partition is used to store official Samsung OTA updates file, if you are on custom ROMs, then you can’t use Samsung OTA updates anyway. Big cache partition is practically waste of free space, but it is still required for Google Play APK downloads. (Max Google Play APK size is 50 MBs) In fact, Google Play apk downloads are stored in /data/com.android.providers.downloads/files/, cache partition is used to store apk downloads in old Android version. This script will partition CACHE with size of 100 MBs. For any Google Play apps that are bigger than 50 MB, they will use expansion files called .obb to help, those obb are stored in "Internal SD Card/Android/obb".
Samsung Apps APK downloads sometimes can be seen large to something like 300 MBs, but these APK downloads are stored in "/data/data/com.sec.android.app.samsungapps/files" So it won't break Samsung Apps downloads.

PRELOAD or HIDDEN is used to store Samsung crap stuffs like ringtones, Wonders of Nature video, starter beautiful images, VODB folder that is used for S-Pen stroke recognition. When user make a factory reset, all data in internal sd card gets deleted, then stuffs in PRELOAD gets copy to internal sd card. That’s why after factory reset Wonder of Nature video comes back.

ALL USERDATA AND INSTALLED OS ARE GOING TO BE REMOVED, SO BACKUP FIRST!

So let’s get started. You will use "Repartition_N7100_16GB.zip OR Repartition_N7100_16GB_PreloadStockSize587MB.zip OR in the attachment

1.Backup of course, if you don’t do System Nandroid backup, be sure to have ROM installer zip ready in external sd card, if you do Nandroid backup or Titanium Backup, make sure to back up to external sd card because this process will erase internal sd card too.You may backup your internal sd card to external sd card, USB-OTG, or Windows PC.

2.You need to use PhilZ Recovery, it doesn’t work with TWRP, TWRP lacks of “parted” binary required for repartitioning.

I personally used PhilZ Touch 6.25.0 on my N7100. 6.41.6 reported to work as well.

3.Install the ZIP and the script will run, after it finished, it will reboot recovery again.
4.We are not done yet, this script still has some bug that formatted partition can’t be mounted. You can see that you can’t mount some partitions or maybe all, weird.
5.We need to fix mount problem manually by go to Mounts and Storage, then format System, Data, Cache, Preload or Hidden one by one, then go to Power Option and reboot recovery once. DO NOT FORMAT BOOT, MODEM, STORAGE/SDCARD1 (external sd card).
6.We have repartition successfully. Now restore data, install ROMs.

How to restore original stock partition table.
You will need to do this if you want to install stock official firmware.
1 - Download "Odin3_v3.07_with_PIT_16GB_GT-N7100.zip" and extract it somewhere
2 - Download any stock ROM from sammobile.com or samsung-updates.com and unzip it.
2 - Open Odin, click "PIT" button and select " PIT_N7100_16GB_20121102.pit"
3 - Click "PDA" and select official ROM that you've downloaded
4 - Click "Start"
5 - After installation, phone will be stuck at bootanimation, don't panic.
6 - Pull out battery, boot to recovery (you can see some mount errors, don't worry)
7 - Select "wipe data/factory reset" in recovery menu
8 - Select "reboot system now"

I recently update 4.3 MJ5 to 4.4.2 ND3 bootloader via odin successfully, just to inform that after repartition, bootloader update still works. If it fails, make sure to try new usb cable. Mine failed first time because of bad usb cable.
See ND 4.4.2 bootloader here http://forum.xda-developers.com/show....php?t=2472270 CTRL+F in the thread and find bootloader.

For some people who curious how to output partition table in Terminal.
First you need to install "parted" binary to /system/bin/
parted binary is in attachment,
then use these command in terminal

su
parted /dev/block/mmcblk0
print

Also programs to show partition tables in Google Play can't show partitions offsets, but this command could.

UPDATE 15/10/2014
I found out that in fact, Google Play apk downloads are stored in /data/com.android.providers.downloads/files/, cache partition is used to store apk downloads in old Android version.

UPDATE 24/10/2015
I also uploaded a new partition script cwm-zip file for AOSP users that will repartition system to size of 1 GB, preload 15 mb, cache 100 mb.
This will gain 3 GB of more userdata space.
Please note that once you have repartition with Repartition AOSP N7100 System 1 GB.zip
You will not be able to install Touchwiz based ROM
, Touchwiz based ROMs are bigger than 1 GB.
You will have to repartition again with Repartition_N7100_16GB.zip OR Repartition_N7100_16GB_PreloadStockSize587MB.zip, note that all userdata will be deleted.
Note that I personally don't use Note 2 anymore, but this script should work. It's just simple script editing from previous files.


1 GB system partitioning for AOSP/CM is not working as
psndna88, AGNI kernel maker, tests
"it seems we cannot change SYSTEM size, else the bootloader boots only into download mode"
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-05-27-13-07-10 (resized).jpg
Views:	45580
Size:	47.8 KB
ID:	2767862   Click image for larger version

Name:	Screenshot_2014-05-27-13-20-27 (resized).jpg
Views:	45377
Size:	52.4 KB
ID:	2767863   Click image for larger version

Name:	Screenshot_2014-05-27-20-23-54 (resized).jpg
Views:	45358
Size:	47.4 KB
ID:	2767864   Click image for larger version

Name:	Screenshot_2014-05-27-19-17-15 (resized).jpg
Views:	45027
Size:	49.3 KB
ID:	2767865  
Attached Files
File Type: zip Repartition_N7100_16GB.zip - [Click for QR Code] (7.5 KB, 4814 views)
File Type: zip Odin3_v3.07_with_PIT_16GB_GT-N7100.zip - [Click for QR Code] (454.2 KB, 4227 views)
File Type: zip philz_touch_6.25.0-n7100.zip - [Click for QR Code] (6.76 MB, 3643 views)
File Type: zip Repartition_N7100_16GB_PreloadStockSize587MB.zip - [Click for QR Code] (8.4 KB, 3228 views)
File Type: rar parted.rar - [Click for QR Code] (155.0 KB, 2352 views)
The Following 47 Users Say Thank You to ninekaw9 For This Useful Post: [ View ] Gift ninekaw9 Ad-Free
 
 
28th May 2014, 08:16 PM |#2  
Senior Member
Flag İstanbul
Thanks Meter: 53
 
More
Thanks a lot. I will try it later.
28th May 2014, 10:01 PM |#3  
Member
Flag Moscow
Thanks Meter: 14
 
More
I did repartition my device about a year ago, but I did it manually and used parted program that comes with cwm recovery. The process is fairly simple if you are familiar with unixlike OS'es. The advantage of parted us that you can resize /system partition too (CM11 requires just 400 mb on /system, and default is 1800mb).
28th May 2014, 10:10 PM |#4  
steff195's Avatar
Senior Member
Flag Severin
Thanks Meter: 167
 
More
I just tried it. It all went fine. Thanks!

My question is, can we have more space, or this is the max we can have?
I guess some space must be reserved though, so the phone can work properly.
29th May 2014, 03:32 AM |#5  
OP Senior Member
Thanks Meter: 131
 
More
Quote:
Originally Posted by steff195

I just tried it. It all went fine. Thanks!

My question is, can we have more space, or this is the max we can have?
I guess some space must be reserved though, so the phone can work properly.

Yes we can have just a little bit more space. You may try to shrink cache partition to 60 mbs, shrink preload to 4 mb. That would gain 54 mbs only. I configured cache and preload to be bigger than this for safety purpose. Maybe it will be use to store small files in the future. We also need to keep the number of partitions to be the same as stock one, else everything will malfunction. I still have no ideas what does OTA and TOMBSTONES do.



Sent from my GT-N7100 using XDA Free mobile app
The Following 2 Users Say Thank You to ninekaw9 For This Useful Post: [ View ] Gift ninekaw9 Ad-Free
29th May 2014, 03:48 AM |#6  
rraaka's Avatar
Senior Member
Thanks Meter: 681
 
More
great guide, will try

reminds me of the htc days when we could s off and flash various hboots to increase/decrease various partitions

so, this will accomodate all current custom roms ? edit - just read your warning to check : thanks:
The Following User Says Thank You to rraaka For This Useful Post: [ View ] Gift rraaka Ad-Free
29th May 2014, 05:38 AM |#7  
steff195's Avatar
Senior Member
Flag Severin
Thanks Meter: 167
 
More
Quote:
Originally Posted by ninekaw9

Yes we can have just a little bit more space. You may try to shrink cache partition to 60 mbs, shrink preload to 4 mb. That would gain 54 mbs only. I configured cache and preload to be bigger than this for safety purpose. Maybe it will be use to store small files in the future. We also need to keep the number of partitions to be the same as stock one, else everything will malfunction. I still have no ideas what does OTA and TOMBSTONES do.



Sent from my GT-N7100 using XDA Free mobile app

Then I'll just leave it this way. Don't want my phone to malfunction if I push this to the extreme.
Thanks again!
29th May 2014, 08:32 AM |#8  
Senior Member
Flag Taranto
Thanks Meter: 67
 
More
Quote:
Originally Posted by steff195

Then I'll just leave it this way. Don't want my phone to malfunction if I push this to the extreme.
Thanks again!

only a small problem, it does not format anything and says that there is no sim inside, I sincerely hope that you manage to solve the problem ....
also the modem is not installed ...
29th May 2014, 09:11 AM |#9  
Rickav's Avatar
Senior Member
Flag Sco'land
Thanks Meter: 379
 
More
I saw your post on the DN3 V5+ thread which led me... Seems to be a great concept, especially considering that one of the first things I do upon flashing a stock-based rom is to delete most Sammy things on it.

I understand that you need Philz to flash this; will the latest V6.41.4 do?
Also, do you know of anyway to save all system settings so as to restore them later? I can backup apps and their data but not the stock system settings themselves.
29th May 2014, 09:20 AM |#10  
MBariya's Avatar
Senior Member
Flag Jamnagar
Thanks Meter: 423
 
Donate to Me
More
Can we increase system partition???
I need more space in system......
29th May 2014, 09:39 AM |#11  
steff195's Avatar
Senior Member
Flag Severin
Thanks Meter: 167
 
More
Quote:
Originally Posted by ulkika

only a small problem, it does not format anything and says that there is no sim inside, I sincerely hope that you manage to solve the problem ....
also the modem is not installed ...

Man, I tried via Philz 6.41.6, since it was recommended in OP. I usually use TWRP, had a nandroid backup of everything including Modem made with TWRP which I placed on external card.
Had the mounting problem after flashing script and rebooting recovery, but I manually solved them, as described in 1st post. Then reflashed TWRP and restored my nandroid from external card. Then also restored my internal sd files (music, games obb, etc) which I saved on pc.
I have no error, I have ND3 modem present, all fine, phone works as before. And 12.1gb total space instead of 10.4 which I had before.

Thanks again!
The Following User Says Thank You to steff195 For This Useful Post: [ View ] Gift steff195 Ad-Free
Post Reply Subscribe to Thread

Tags
n7100, note2, partition, repartition

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes