[Nook HD, HD+ Android Development] Lanchon:
REPIT NOOK MINI-FAQ

hi people!

99% of the questions you are asking are answered elsewhere. this is the proper thread to discuss repit on nook hd, and it has links all the info you need in the first post:

https://xdaforums.com/nook-hd/development/nook-hd-repit-enlarge-data-partitions-t3503615

https://github.com/Lanchon/REPIT/issues/59

> 1) Is it recommended to wipe system and data partitions before performing REPIT?

NO! only wipe if you want to do a clean install.

but anyway, NEVER WIPE THEN RUN REPIT!!! ASK REPIT TO WIPE FOR YOU INSTEAD!!!

the other way around is stupid: you wipe, then ask repit to resize partitions WHILE KEEPING DATA! that is a lot of work, might take an hour, for nothing. if you ask repit to wipe, the whole process will take seconds. AND... besides the speedup, your flash memory won't be wore down unnecessarily this way.

you ask repit to wipe a partition with a '+wipe'... READ THE DOCS PLEASE!

> 2) Assuming all goes well with REPIT and I have the increased system and data memory, when would I be required to run REPIT again?

NO, never! nothing but running repit will change your partitions, so you never need to run REPIT again.

> I was thinking it was a one and done shot. Once the memory is increased, what would cause it to go back to its original size?

you confuse the partition size with the size of the file system image that happens to be stored in the partition. they should match, but your rom installer is defective and ends up replacing the correct file system with one that is improperly sized.

the solution is fixing the rom.

the workaround is using TWRP's resize file system after flashing a faulty rom. (yes, each time you flash such a rom.)

more information (including how to fix the rom --hint: alert your rom maintainer!!) can be found here:

https://github.com/Lanchon/REPIT/issues/56

> I install ROM, resize with TWRP, install Gapps

correct! after each flash you need to resize with TWRP (IF... THE ROM HAS A FLASHING SCRIPT IS FAULTY).

but for reasons too long to explain here, i recommend this sequence instead:

wipe /system, flash rom, resize system with TWRP button, flash gapps.

> I'm willing to completely wipe.

then read this complete post carefully.

> It would be great to see a recommended set of selections

i recommend 1GB system. besides that detail, read the Nook HD REPIT HOW-TO that i wrote for the recommended settings. linked from this very post.

> lanchon-repit-20170115-factory=32M-system=1G-cache=32M+wipe-data=max+wipe-ovation.zip

these settings are for those that choose to grow the data partition too (i recommend this! but some people may want a fast REPIT of a few seconds instead of an hour. also, not resizing the data partition puts your data under ZERO risk; there has never been issues of data loss with REPIT, except one case that a user started with empty battery, didn't plug in, and ran out of battery. (instructions clearly say: CHARGE YOUR BATTERY! PLUG IN YOUR DEVICE!))

> I changed everything to ext4 at this point for ease of use for this

> I changed /Data back to f2fs here, but that's optional

you could have used -data=max+wipe+f2fs instead.

yes you can use REPIT, but not recommended. easier to just use TWRP's button.

the problem with using REPIT for this is that the user might have configured repit to wipe partitions, and running it again will WIPE AGAIN. but you can use this configless repit name to safely resize the size of the file system image residing in the system partition:

-> lanchon-repit-20170115-ovation.zip

or if applicable:

-> lanchon-repit-20170115-data=++f2fs-ovation.zip

(yes, two + signs.)

those configuration will also check (and fix if necessary) the file systems of all your partitions.