[Samsung Epic 4G Touch] beluczywo:
Currently running JellyVerse 3.0

Tired of getting Insufficient Storage Space message on my E4GT.

Data mount has approx. 2GB. Seems to be what every PIT file around allocates out of the 16GB internal mmc.

Have been reading up on PIT Magic with goal of making at least a 5GB Data partition on the internal mmc -- want more space for Data/App/Dalvik and less for my photos and mp3 files.

Can anyone give step-by-step how to build a new PIT with PIT Magic?

I assume if I had a different PIT, I could either use a TAR or ZIP rooted ROM or JellyVerse Custom like I am now and use either Heimdall or Odin to repartition with the new PIT and flash each of the pieces of whosever ROM I'm using -- if you want to go step by step on grabbing the right things out of the ZIP, TAR, or OneClick, that would really be nice, but I can probably fumble my way through it -- I'm not a N00B but others might risk having problems if we don't get a good 'how-to' in answer. I've seen lots of questions on this, little real help or instructions.

Here is what I tried first:

Tried to avoid doing this the hard way and so I experimented with Link2SD with a 4GB ext2 or FAT32 partition on my 32GB external card (tried twice). Was able to run Link2SD, find partition, and start linking apps (experimented with Angry Birds), but device would never boot after linking apps. Booted after first running Link2SD and building scripts, but not after apps existed in the linked partition. Would hang at splash screen unless external sd was ejected, then would boot, could reinsert external sd, but Link2SD had missed its' chance to mount and so could never get Link2SD to work as intended. Also, even moving (linking) app, dalvik, and supposedly data, Link2SD didn't really seem to delete the data portion off of the internal mmc so I never really recovered much space.

So I started reading up on PIT files and what's bothering me is this:

The existing PIT (downloaded from device with Heimdall off my Jellyverse install and which matches the "Epic 4G Touch PIT" that is floating around out there shows the following for the Data partition:

Entry 11

Block Size 1,802,240 KB

Block Count 4,194,304 KB

Overall the information in the PIT doesn't make a lot of sense. I'm a bit confused by the nomenclature -- if you scroll through PIT magic, each new entry's Block Size is basically the ending sector of the prior stuff (with a few weird exceptions that I assume have to do with sector alignment). What the author is calling 'Count' is, in theory, the size of the mount, but nothing adds up with what is really going on in the device.

I'm comparting to what busybox df -h says. It shows that there is a 16GB internal memory (that matches Sprint's specs). And the major partitions are as follows (I'm showing the comparison between what unix says and what the PIT file should have created prior to restoring the device image.

Partition df PIT

System 528M 1048M

Cache 309M 614M

Efs 20M 41M

Preload 322M 638M (hidden)

Data 2113M 4194M

Sdcard0 12353M 24133M

Total 15647M 30118M

This totals 15,647 MB and I've read that df uses 1024*1024*1024 for bytes (MiB) whereas flash manufacturers use 1000*1000*1000 so this is basically just a bit shy of the 16,000 that should be in the device, but I'm missing the modem and secondary boot loaders that are small and take up the remaining 400M.

In other words, the device makes sense and I trust what the unix command df is telling me.

But none of this matches the PIT.

I don't want to brick my device with a messed up PIT. It seems like the 'preload' is missing from the PIT (it wasn't in the original Gingerbread ROM).