yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] eric93se:
Do you have a link to the f2fs twrp ?? :)
[T-Mobile Samsung Galaxy S II SGH-T989] raptor170:
I believe this is it, don't think there were any other updated ones, but I'm on the 2.8.1.0

http://uber.oceighty.co/HERCULES/TWRP/
[T-Mobile Samsung Galaxy S II SGH-T989] microskillz:
Thanks for this!

I'm running Oldecrow's OC PIT (1.2 gb /system) and Validus Rom and it seems to optimize app every reboot which takes a loooong time. Then all my settings are gone (homescreens etc...). Is this normal?
[T-Mobile Samsung Galaxy S II SGH-T989] celldweller97:
Might be a rom issue
[T-Mobile Samsung Galaxy S II SGH-T989] Steveromingagain:
Chris with Validus is working on this issue. Hope this helps.
[T-Mobile Samsung Galaxy S II SGH-T989] vakkah:
do you have a link for the 4.1.2 touchwiz rom that you flashed after partitioning?

if you can provide with the rom that i can flash through recovery, i'll greatly appreciate it.

thanks in advance.
[T-Mobile Samsung Galaxy S II SGH-T989] OldeCrow:
I use Rushing's UVMC6_HERCULES_TETHR_STOCK_-IQ_RIPPL.zip

All of his old stock roms are still on his sourceforge page ;)

http://sourceforge.net/projects/beastmade/files/

I use cerux or tiberius kernel,

wipe and then advanced wipe: dalvic, data, system, cache, preoload,

flash rom reboot recovery flash kernel, reboot recovery flash other mods, reboot =profit

I've attached the four way reboot for it here too since GOK where it is here in the forum now...
[T-Mobile Samsung Galaxy S II SGH-T989] vakkah:
thanks OC..

you've always a good help.

thanks again, much appreciated..
[T-Mobile Samsung Galaxy S II SGH-T989] eric93se:
Hey my battery life went WAY up! I'm over 20hrs with 55% remaining (light use). I didn't believe the numbers so I rebooted and its still there. I had problems reverting from Sultans LP, my sdcard0 was unusable. I used odin, nuking whatever I could to get the phone active again (odin 3.06 did the trick). I wasn't out the woods so fast, I had permissions issues that had to be manually changed to get sdcard0 usable again. I don't know if it had to do with erasing all the nand or going from the 8gb pit to oldcrows pit file. Also I made sure my internal sdcard0 was FAT (it was ext4), I don't know if ext4 somehow used more energy. Running Sultans KK and latest kernel currently.
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
can you elaborate on the permission issue for your sdcard0? my friend recently installed Sultan's rom on my wife's Hercules (they did not tell me they were going to do this, otherwise I would have told them to avoid that ROM). I've been having tons of issues in recovery since he did that; recovery would throw errors when wiping android secure, and throw mount/unmount errors during rom installation ("failed to mount /dev/block/mmcblk0p24 at /system Device or resource busy")
[T-Mobile Samsung Galaxy S II SGH-T989] eric93se:
I'm not familiar with those errors. I can only guess that the official TWRP was not installed on top of sultans modified TWRP. So you need to flash the latest official twrp. If necessary do it in odin.

My problem with sdcard0 was in the OS, I had no access.

Read here:

http://xdaforums.com/showpost.php?p=61367768&postcount=818

edit: Actually I did get those errors with android secure partition, I'm not sure if they went away in the end. But mount/unmount errors, no I don't think I had any problems with mounting the external sd card. Maybe try re-seating the SD card.
[T-Mobile Samsung Galaxy S II SGH-T989] RogueCoyote:
Link not working, is there any other TWRP with f2fs?
[T-Mobile Samsung Galaxy S II SGH-T989] raptor170:
You are in luck, just few days ago their was an updated f2fs compatible twrp released

https://www.androidfilehost.com/?w=files&flid=34526
[T-Mobile Samsung Galaxy S II SGH-T989] RogueCoyote:
Sweet, thanks that worked great! I have the option to use f2fs now, will try it out when a new update to the Tesla ROM comes up.
[T-Mobile Samsung Galaxy S II SGH-T989] NoSpamDan:
You're welcome lol

You can thank [MENTION=5795145]javelinanddart[/MENTION] too.

---------- Post added at 02:43 AM ---------- Previous post was at 02:41 AM ----------

Please mention or link to the announcement post when you post direct links. Thanks :)
[T-Mobile Samsung Galaxy S II SGH-T989] khukuh:
Dear brother,

Thanks for great mod, please give me easy step by step to repartition memory, because i got bootlop when I try twice, I use stock rom 4.1.2 root and twrp 2.5.0.0 ...

Thanks for your help & GBU
[T-Mobile Samsung Galaxy S II SGH-T989] Omegadrive:
[MENTION=4824919]Lorien_Silmaril[/MENTION]

I tried your pre-modified pit file with my wife's phone today (Odin 3.09) but when I got into TWRP 2.8.7.0 after the reboot the only partition that it could see was "davlik-cache", none of the other partitions where listed, so I flashed the original pit file to revert but all the other partitions still missing!, ended up flashing original rom back to recover from the mess. Any clue why it didn't worked? Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] ilLuminatriXkill:
Can i use this guide on the SGH-i727?
[T-Mobile Samsung Galaxy S II SGH-T989] celldweller97:
Yes you can
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
Sorry, no idea what happened in your case. Were you unable to see any of the partitions at all? Or did they just fail to mount? What happens when you go into Advanced Wipe and go to choose the partitions?
[T-Mobile Samsung Galaxy S II SGH-T989] Omegadrive:
Like I said, none of the partitions where listed except Davlik-Cache in that section. I ended up installing CWM recovery and flashing CM11 after the stock rom restore so the partitions appear again.

I suspect the problem may have been TWRP, after flashing the original rom and doing the initial setup I rebooted into into TWRP and could only still see Davlik-Cache as partitions listed for wiping, so I went ahead and flashed CWM and have no partition errors, but can't also reformat any partition as CWM doesn't have that option. [emoji20]
[T-Mobile Samsung Galaxy S II SGH-T989] ShaDisNX255:
I have the same problem. No partitions show up, just Davlik-cache

So is there no fix to this?

------------------------EDIT-----------------------------

Try TWRP V2.8.0.0

Now they're showing (Dalvik, Data, System, Cache, Internal, etc)

But what do I do now? ._.

Stuck with 2 Gigs?

-------------------------------------EDIT AGAIN----------------------------------

Read the instructions more careful, got my 8 Gigs of Internal memory ;)
[T-Mobile Samsung Galaxy S II SGH-T989] oka1:
From the Moderator

Some People are not capable of being considerate. Other do not know what they are talking about .........yet they always think it is ok to post negative commentary in forums such as these........

I Have the Galaxy S1 (Vibrant) and I have it running Lollipop with everything working..... including the front facing camera that I modded into it.

There will always be someone who will still like developing for an older phone, If you do not like this phone or this thread Move On , .......easy........

Post on topic, Respectfully .... or do not post

Thanks ~~~ oka1
[T-Mobile Samsung Galaxy S II SGH-T989] ArtfulDodger:
All due respect, the Vibrant is not the S2. I would suggest visiting the LP threads here and on G+. That's all that I have left to say here.
[T-Mobile Samsung Galaxy S II SGH-T989] ShaDisNX255:
This tutorial is just to get a couple more gigs for apps, what's wrong with that? We're not asking to get LP on this device, we're not asking to make LP run PERFECTLY on this device and we're not asking anybody to raise the RAM to 3 GIGS.

Well ANYWAY, just for future reference, this method will not work with the newest TWRP, you need TWRP 2.8.0.0

Thanks for the creator of the tut :D
[T-Mobile Samsung Galaxy S II SGH-T989] OldeCrow:
I'm on 2.8.6.0, it works fine...

You guys need to reformat every partition that recovery can see (that has errors) once the pit file has been modified, it's easy to see which ones just do a wipe of all the internal partitions to see which ones throw an error during the wipe then return to the wipe options check the partitions one at a time that have problems, click the big repair or change file system button it will take you to a summery of the current file system with a repair and a change file system button, select change file system select ext4 for all but the sdcard partition (which is fat) then for each partition select the repair button. This should restore all the partitions correctly. It took me a couple of tries to get the hang of it myself.
[T-Mobile Samsung Galaxy S II SGH-T989] DrRootso:
Life saver.☺ Helped bring life back to my old dog.
[T-Mobile Samsung Galaxy S II SGH-T989] aSuperSaiyanG0D:
Is there possibly anyway to fix this on a official cm11 nightly?

My system rom is at around 600mb too after using the modified pit in the OP.

I really don't want to use a lollipop rom unless that's the only way to get the full 1.23 GB to show in system..
[T-Mobile Samsung Galaxy S II SGH-T989] ulibube:
Wanted to report general success in flashing Lollipop 5.1 AOSPA after a repartition to 1.2GB system & 4GB data. I did encounter a crash sometime after I was done flashing and re-installing my apps, but my guess is that it was not related to the repartition. BTW, I extracted my own baseline PIT file from the phone with Heimdall. That was an interesting exercise, but generally unnecessary, as my PIT had indeed the same settings as the unmodified PIT from the OP.

Can it make sense to increase the size of /cache as alluded to in the OP? For Lollipop 5.1? I generally see very little usage of my /cache partition, typically around 5MB. Was /cache more relevant pre-Lollipop?
[T-Mobile Samsung Galaxy S II SGH-T989] Krebs830:
TWRP 2.8.7.0 works fine, also. I'm running the Validus ROM with no problems other than an occasional random reboot. Question: If I flash a resized .pit & the same ROM, will I be able to restore from a previous TWRP backup, or will it balk at the new partitions?
[T-Mobile Samsung Galaxy S II SGH-T989] OldeCrow:
I don't know, it probably won't care especially since the partitions that matter are all larger but I've never used recovery to backup and restore so I am not certain!

you will need to copy your backup data to the external SD to be sure it isn't lost.
[T-Mobile Samsung Galaxy S II SGH-T989] Krebs830:
I set TWRP and Titanium to back-up to the external SD card. However, I got mixed results. After flashing the new pit & reinstalling Validus, TWRP restored the System partition just fine but Data kept failing right at the start. Between Google & Titanium, though, I was able to restore most of my apps.
[T-Mobile Samsung Galaxy S II SGH-T989] OldeCrow:
Good to hear,

I've never used backups for the phones, I use Titanium to backup my call logs and messages and that's it.

Everything else just restores from the market. Since I don't use any weird third party apps that generate important data it's never been an issue.

I suppose mail data might be another thing to backup if I was using pop mail on my phone...
[T-Mobile Samsung Galaxy S II SGH-T989] Jovica007:
How to edit #24 because of the lollipop ? Thx dude
[T-Mobile Samsung Galaxy S II SGH-T989] NoSpamDan:
I"ve been trying this on my Slim builds. I had to modify the /system partition size in the ROM to obtain the full 1.2GB /system space, otherwise the board config was putting it back to 538MB or whatever.

I'm still experimenting while I work to bring "M" up on the Galaxy SII Skyrocket SGH-I727, and eventually the GS II Hercules SGH-T989... :D

Thanks for this, [MENTION=3285597]OldeCrow[/MENTION]!
[T-Mobile Samsung Galaxy S II SGH-T989] NoSpamDan:
Hey [MENTION=3285597]OldeCrow[/MENTION], have you or anyone here seen anything like this:

Using this PIT file, when I'm in TWRP recovery, I see:

* A 5GB /sdcard parition which does mount in recovery, and

* An 8GB /data partition that I can't mount it in recovery.

In the ROM, /data DOES mount at 8GB and I can see it in the ROM, but that 5GB of /sdcard I had in recovery is nowhere to be found...

I'm looking at virtual partitioning to move forward with these devices but wanted to ask this as there are some experienced "PITters" here.

:cowboy:
[T-Mobile Samsung Galaxy S II SGH-T989] OldeCrow:
I'm still running the pit file I edited and I can mount data and see it in recovery and also sdcard.

they both also display in the rom.

I'm on twrp 2.8.6.0

I know there are some hacked recoveries that also let you use a couple of newer file systems but that may not mean it will work well even in the cm builds...

The sdcard should be formatted as

fat

not ext4 I'm on tw4.1.2 and both if the partitions display properly in recovery and from the rom. The other partitions should be ext4.

The only thing I can think of that might cause your issues is file system format issues, you might try changing the partitions to ext2 and back to ext4 and formatting them in recovery and maybe even the sdcard to ext and back to fat and formatting and see if it corrects the problem...
[T-Mobile Samsung Galaxy S II SGH-T989] NoSpamDan:
Thank you. I an virtually partitioned now, and can see both partitions. It turns out it was the ROM source that is not ready yet.

I may return to this PIT but I'm not sure when. Thanks for your reply and this contribution to the community. :)
[T-Mobile Samsung Galaxy S II SGH-T989] Drums4Freaks:
Storage space is running out...again!?

During Christmas holidays I finally repartitioned my Hercules (SGH-T989D) using the 8GB pit file and then flashed Validus ROM. Everything went smoothly and that made me rediscover my phone and I thank you for that!

However, last night, a warning popped-up stating my storage space is running out. I was like WTF, that's impossible? If I go in the settings/storage and add up the used space, it doesn't seem to add up to the capacity so I need help to figure it out. Here is what I have under storage:

Internal storage

Total space 7.88GB

Available 429MB

Apps 2.73GB

Cached data 23.08MB

Internal storage

Total space 5.17GB

Available 4.83GB

Apps 113MB

Pictures, videos 18.56MB

Audio 168KB

Downloads 3.72MB

Cached data 126MB

Misc. 3.86MB

SD card

Total space 29.71GB

Available 21.64GB

Any idea, advice, solution?

I thank you in advance.﻿
[T-Mobile Samsung Galaxy S II SGH-T989] measle:
Some years ago a similar problem would pop up on skyrocket, haven't run across it in some time.

There was an app that fixed the glitch. you may want to search for more info. the app was called: "FixInsuffieientStorage.apk"

Good Luck.
[T-Mobile Samsung Galaxy S II SGH-T989] Drums4Freaks:
Thanks!

Reading back in this thread, I noticed that all partitions should be ext4 except internal and external SD that should be vfat (or F2FS). I don't remember if I did this formatting or all in ext4... Can this be why I see the capacity (+/-8GB) but the phone does not use it in full?

Like I wrote above, there is a message in the settings/storage stating space is running low and I see this:

Internal storage

Total space 7.88GB

Available 429MB

Apps 2.73GB

Cached data 23.08MB

But 429MB + 2.73GB + 23.08MB does not add up to 7.88GB! That's only 3GB! I'm very confused...
[T-Mobile Samsung Galaxy S II SGH-T989] Drums4Freaks:
RESOLVED!

Resolved!

RESOLVED!

In TWRP recovery, I wipped internal SD into vfat (that was in ext4), then I used the procedure from Manny Clement on G+ Galaxy S4/S2 Unleashed - How to Guides to wipe /cache and /data in F2FS:

Reading now:

Internal storage

Total space 8.01GB

Available 3.99GB

Apps 2.54GB

Cached data 10.71MB

It even restored everything as it was before! Except with correct storage space! YEAH!
[T-Mobile Samsung Galaxy S II SGH-T989] gleech:
I'm trying to go back to stock PIT, tried flashing using the unmodified file by the OP but no go, Odin just stuck in the DO NOT REMOVE DEVICE screen. Any ideas?
[T-Mobile Samsung Galaxy S II SGH-T989] primod808:
Try to redownload the unmodified pit again. I didn't have any problems when I had to flash the unmodified pit.
[T-Mobile Samsung Galaxy S II SGH-T989] mr__T:
8gb system partition

Hello,

i've tried flashing the modified pit file from this thread and everything seems to work but when i go into TWRP and reformat my partition, the SYSTEM one gets formated to 8gb?!

Do you guys have any idea what might cause this?

Meanwhile I will try an older TWRP version and see if this works.

Thanks!
[T-Mobile Samsung Galaxy S II SGH-T989] NoSpamDan:
Did you try to resize and repair it?

Hopefully you aren't using a Virtually Repartitioned version of TWRP..
[T-Mobile Samsung Galaxy S II SGH-T989] CalvinNL:
t989 not showing any storage since flashing modified pit file

I flashed the modified pit file via odin and now when i go into twrp, it shows only the folders from the twrp install and it does not show my sc card data to install a rom, any suggestions?
[T-Mobile Samsung Galaxy S II SGH-T989] mpadhu:
@ Lorien_Silmaril

That's awesome. Helped me a lot. Appreciate your hard work. :good:
[T-Mobile Samsung Galaxy S II SGH-T989] mpadhu:
You should choose 'Select Storage' to select the type of storage(internal or Micro SD or USB OTG).
[T-Mobile Samsung Galaxy S II SGH-T989] atsuptech:
can't used my camera no more after trying this method!!

can't used my camera no more after trying this method..it sucks!!!!

And i used the pit file (unmodified) to revert the problem but still I can't used my camera or i can't access my system's storage.. DAFUQ!!!!!!!!!!!!!

PLEASE HELP!!!!
[T-Mobile Samsung Galaxy S II SGH-T989] raptor170:
Can you see your partitions in twrp? Will start from there
[T-Mobile Samsung Galaxy S II SGH-T989] evil_cherokee:
Just tried it, had to re-format cache, data and internal storage, then did a wipe (factory reset), installed rom (Candy5) and gapps (tk pico for 5.1), fixed permissions and rebooted, everything went as smooth as expected.

Thank you very much...
[T-Mobile Samsung Galaxy S II SGH-T989] medohatem:
thnx man for great guide

i want to revent to stock PIT but my pc no longer dectect my phone

if it possible to back to stock PIT without odin please tell me how ???!!!!

i want to flash the new MM rom [MENTION=4824919]Lorien_Silmaril[/MENTION]
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
I haven't messed wugh this phone in a long time, but if I remember correctly you have to ODIN to flash pit files.
[T-Mobile Samsung Galaxy S II SGH-T989] sasank360:
Hello everyone. I need some help. I used the modified pit file and failed to flash roms despite wiping the partitions.

I wanted to go back to stock. I flashed the un modified pit file,

it gets stuck at "Set partition" message in Odin.. i used 3.10 and 1.85 versions of Odin.. same result... any help ?

How do i restore the partitions to stock ?

thanks in advance.
[T-Mobile Samsung Galaxy S II SGH-T989] CaptShaft:
This entire thing is a bust. Doesn’t seem to work at all.

Chet’s custom modified recovery is missing in action, and TWRP version 2.8.7 can’t see any partitions of any variety after flashing the modified partition table. TWRP version 3.0.2 can’t mount anything at all, and I get nothing but a stream of errors after it launches.

I think I eventually got it to boot up, but then nothing would flash properly.

Flashing back to the default partition table gets me back to something that I can use.

Maybe TWRP version 2.8.4 would work, but were going back in time with less features to do so.

We really need something like gParted for android to allow us to dynamically resize partitions on-the-fly, like we can do in Linux. Supposedly there is something called aParted, but I’m not sure how well that works. I might try that.
[T-Mobile Samsung Galaxy S II SGH-T989] raptor170:
One way without the stock pit file is to Odin the factory ROM, check sammobile, etc. And find the corresponding ROM. This will revert partitions back to stock, wipe your recovery also tho, be back to 100% stock, will have to flash twrp, etc again.
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
I think TWRP 2.8.7 is intended for virtual re-partition, that may be the cause of the issue? Setting the partition table via the PIT file can cause conflict with any ROM or recovery that uses virtual re-partition, I think.

Honestly though, a lot's happened since I wrote this guide and I simply haven't kept up with the newer ROM's for this phone. Looks like virtual re-partition is the standard for a lot of 6.0 ROMs, and given that virtual repartitioning circumvents the data partition size limit, flashing the PIT file may no longer necessary for most of these new ROM's.
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
A quick update for you folks! I just updated my t989 successfully to TWRP 3.0.2-0 + CandySix ROM. I noted the following:

TWRP 2.8.7.0 will NOT show partitions at all no mtater how you con figure the partitions (even after flashing the original factory image via ODIN). This appears to be a known issue with that version (and mentioned in the TWRP thread here). TWRP 2.8.4.0 on the other hand seems to work.

If you wish to flash the phone back with factory image, do the following:

Boot the phone into Download Mode.

Launch ODIN, tick the "Re-Partition" checkbox, and select the stock PIT file (see attachment in first post) under the PIT selection field. Then, under the PDA field, select a stock factory image (you can download it from here). The phone will be restored to factory condition, with stock partitions; the process can take up to 15 minutes, be patient.

Flashing the factory image will restore your phone back to stock recovery. If you wish to flash a virtual repartition TWRP in preparation for one of the 6.x ROMs, do the following:

Download a TAR copy of TWRP 2.8.4.0 that you can push through ODIN.

Reboot phone into Download Mode, and select the TWRP TAR file in PDA mode. Flash it.

Boot into TWRP, and go to "Wipe" -> "Advanced" and tell it to change the file system format to EXT4 for "Internal Storage", "Data", "Cache", "System", etc... (very important that you do the one for Internal Storage at the very least, this one was causing issues for me).

Once all the partitions have been reformatted, download and flash the TWRP 3.0.2.0 ZIP file (this is a virtual partition recovery which will allow you to install the new 6.x ROMs)

Reboot Recovery. Now you can install your new virtual partition 6.x ROM.
[T-Mobile Samsung Galaxy S II SGH-T989] ThaDraGun:
Followed your instructions, What if it takes longer then 15min??? Its around 40min now. Still says DO NOT TURN OFF TARGET.:eek:
[T-Mobile Samsung Galaxy S II SGH-T989] Lorien_Silmaril:
Is the progress bar in ODIN actually moving? Does it show it's writing to NAND at all?
[T-Mobile Samsung Galaxy S II SGH-T989] fattest:
I'm in the same boat, stuck at DO NOT TURN OFF TARGET using unmodified PIT and stock rom. How to resolve this?

Interesting, I just tried again and odin returned an error I haven't seen before:

<ID:0/007> __XmitData_Write

<ID:0/007> Re-Partition operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

<ID:0/007> Removed!!
[T-Mobile Samsung Galaxy S II SGH-T989] fattest:
Turns out I was doing two things wrong. First I didn't read the post above and was using TWRP 2.8.7.0, when I moved back to 2.8.4.0 I could see my partitions. Secondly the stock PIT I downloaded didn't seem to be correct. The file size was 500kb, compared to the modified PIT which was 4kb. I found another copy of the stock PIT and flashed it along with stock rom and it completed without hanging.

Now my phone (Telus T989D) is boot looping. I installed stock 4.1.2 (PDA T989DTLUMC4 CSC T989DOYBMC4) but after the S II logo, the phone reboots. I tried an older rom for Koodo (subsidiary of Telus), it makes it past the boot screen but once Android has started up no menus come up and the first run setup doesn't kick in, just stuck at a blank screen. I then tried flashing a custom rom (SlimLP) but that hangs forever at the boot animation. I'm 0/3 on all my attempts to revive this device. Any idea what's going on here?