yashsingh1/xdaforums huggingface dataset:
[LG Optimus L90] tetrismonkey:
Thank you I was able find it and will test it latter this week I will post with my results
[LG Optimus L90] olinojephanko:
when i format system and data to f2fs everything is working except that i cant read internal storage on windows or in android via file manager, it says that path/location doesnt exist, and also cache cant be formatted into f2fs as we already know and wifi wont turn on.
[LG Optimus L90] tetrismonkey:
Worked perfect was able to flash cwm recovery then back up my system then flash zip then chose the size and let the tool run. Afterward I restored the system. Running great love it thank you very much for this awesome tool
[LG Optimus L90] olinojephanko:
I changed cache to 150mb and now formatting to f2fs works.
[LG Optimus L90] deuce237bblock:
I have D415 and when installing I get an error about no such directory, here is the log:

AROMA Installer version 2.70RC2
(c) 2013 by amarullz xda-developers

ROM Name : Partition Table Tool
ROM Version : 1.0.1
ROM Author : BigMajster
Device : LG L90
Start at : Sun Feb 15 01:02:56 2015

installing samsung updater extensions
Preparing to repartition.
about to run program [/sbin/mkdir] with 2 args
about to run program [/sbin/mount] with 3 args
about to run program [/tmp/backup.sh] with 1 args
65536+0 records in
65536+0 records out
33554432 bytes (32.0MB) copied, 2.271126 seconds, 14.1MB/s
Creating filesystem with parameters:
Size: 33554432
Block size: 4096
Blocks per group: 32768
Inodes per group: 2048
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 8192
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/2048 inodes and 1166/8192 blocks
tune2fs 1.41.14 (22-Dec-2010)
Setting maximal mount count to -1
Setting current mount count to -1
Setting interval between checks to 4294880896 seconds
script aborted: file_getprop: failed to stat "/tmp/aroma/customize.prop": No such file or directory
file_getprop: failed to stat "/tmp/aroma/customize.prop": No such file or directory

Installer Error (Status 7)

End at : Sun Feb 15 01:02:58 2015
[LG Optimus L90] jrzanolini:
Works!

It worked perfectly on D410nh

But in the first time the script run , the phone restarted at 70 % and returned to the recovery TWRP . Only when running for the second time is that the process continued after the reboot and reached 100 % .

My phone got free 5,90gb and the CM11 . Very nice!
[LG Optimus L90] wizzardsk:
I experience similar behaviour. The first run restarted very soon without warning. The second run seems to restart correctly at 70 percent, but I did not run it for the third time. Now I have 5.9 GB /data, 708 MB /system and 98.52 MB /cache (according to Link2SD)
[LG Optimus L90] Akhil916:
Well, I just did this and initially it wiped the entire OS as well :mad:
[LG Optimus L90] wizzardsk:
Of course it did, what did you expect?
[LG Optimus L90] xantanion:
Guess he didnt see it does that
[LG Optimus L90] Akhil916:
Oh yes I didn't :p and I had no backup nor any rom on my SD card :p fine now anyway, this really helped me :)
[LG Optimus L90] xantanion:
I am pretty surr after doing it you can always throw a cistom rom on or even stock if you partitioned it right. Hopefully it all works for you now.
[LG Optimus L90] Akhil916:
Yeah working fine ;)
[LG Optimus L90] nyttliv7:
So, after I messed up (soft bricked) my phone, by wrongly mounting/unmounting during repartitioning the system - this is what I've got ?

Userdata and cache is gone and the rpmb (whatever that is?) is wrong size?

I can reach adb (twrp) and fastboot (download mode) and I've already tried all possible methods to restore laf, aboot, boot and different recoverys, even the stock recovery? Restores alright, but I can't get to stock download mode with button combo (a ms323 thing I believe).

I believe my last resort would be to learn (if it's even possible) how to create/repartition/resize partitions in adb? Or if it's possible to flash userdata.img and cache.img (if someone can upload it)? But I assume I have to create those partitions first?

Grateful for any help ☺

LG optimus l70 ms323 partitions

mmcblk0

(All 381747)

p1 65536 modem

p2 1024 sbl1b

p3 512 rpm

p4 512 tz

p5 512 sdi

p6 2048 aboot

p7 512 rpmb

p8 512 tzb

p9 2048 abootb

p10 2048 pad

p11 3072 modemst1

p12 3072 modemst2

p13 16384 misc

p14 32768 persist

p15 22528 laf

p16 22528 boot

p17 22528 recovery

p18 3072 fsg

p19 512 fcc

p20 512 ssd

p12 512 ddr

p22 512 encrypt

p23 512 rct

p24 8192 drm

p25 8192 sns

p26 20480 factory

p27 32768 fota

p28 1024 sbl1b

p29 32768 mpt

p30 512 eksst

p31 1587200 system

p32 ???[295mb] cache

p33 ???[1.48gb] userdata

p34 20463 grow

rpmb 4096[512kb] xx

??? = non existing partition

[ ] = original size

Maybe it's possible to make a flashable script (in twrp) to stock partition sizes???
[LG Optimus L90] judas1977:
It's possible to restore that partitions. I'd check if parted command works if you said adb works. If not- you will have to edit repartition script to restore default sizes or fix what is broken
[LG Optimus L90] nyttliv7:
Thanks for quick answer and for giving me some hope ☺

I recently installed Ubuntu, if that makes things easier?
[LG Optimus L90] judas1977:
Adb / parted should work in windows as well... Just try in recovery mode...

Adb devices

And if your device will be listed (some numbers):

Adb shell

And then:

parted

But it's possible that parted command isn't available
[LG Optimus L90] nyttliv7:
I'm a total noob, so I'll dig into the parted commands and see what my brain can grasp :)

Thanks :)
[LG Optimus L90] nyttliv7:
Parted works (Ubuntu), but as my phone is offline (tried killing and starting server), so no success...

Is there any way to fix the offline problem in my tricky position?
[LG Optimus L90] :
Try different recovery (as far as possible). I was in the same boat. What I did, was try to restore partitions (as much as it was possible) with parted. Then I extracted kdz in order to flash few partitions. Then I flashed kdz and then rerooted again and did the whole process till I had a fine partition table with custom ROM.

I hope this help you a bit.
[LG Optimus L90] nyttliv7:
Will try that, thank you ☺

I'm wondering - it's obviously possible to make a script for resizing partitions, so shouldn't it be possible to also make a script for creating/restoring stock partitions? Or is this much more complicated ☺
[LG Optimus L90] judas1977:
I told you already, the other way to restore partition scheme is modifying the script:)
[LG Optimus L90] nyttliv7:
You're right, sorry about that ☺

Just wish someone could help me...

Or give me a hint where I can learn how to ☺
[LG Optimus L90] SubliemeSiem:
After using this on my D405n, cwm was installed instead of twrp, so I flashed twrp again so I can format my /data and /cache to f2fs, but for /cache it said it couldn't be wiped. /data could be changed to f2fs without issues. Wiping /cache as ext4 works fine though. Also, after flashing cm11 in twrp afterwards, wifi wouldn't turn on anymore. If I'd have to guess I'd say it also has something to do with the cache partition, but I'm not sure. I used the 'minimal' option in the installer. After flashing the zip again and installing cm11 in cwm, I could no longer boot into recovery and rom toolbox could no longer locate the recovery partition, leaving me with flashing the kdz as my only solution. So why is twrp having these difficulties with the new partitions? I'd really like to have the huge data partition this mod provides combined with the extra speed f2fs can provide.
[LG Optimus L90] olinojephanko:
Ive never had problems with recoveries(i use twrp). This installer does not install cwm tho.

And i was only able to format cache to f2fs when I set cahce to 150/190mb, havent tried lowering partition more because flashing KDZ all over again was driving me crazy..and yeah when you cant turn wifi on that means that cache partition is corrupted.
[LG Optimus L90] SubliemeSiem:
It did install cwm for me. First booted in twrp again right after flashing, then chose reboot recovery, after which it suddenly booted in cwm. Didn't flash anything else besides the partitiontool. Is there some kind of minimal partition size for f2fs partitions? And why is cache corrupted when I install cm using twrp, but wifi works fine when I use the cwm that this mod installed? I might try creating the partition manually using adb and parted, see if that changes anything.
[LG Optimus L90] olinojephanko:
I werent able to find any info about minimal size for f2fs, i would say i doesnt need to have any required size... i were only able to format 150mb cache to f2fs via twrp, 130mb gave me the same error you had.

Hm interesting i really dont know if its corrupted or whats wrong with it, i will play with partitions when i have some time...

too bad bigmajster is missing.
[LG Optimus L90] myllo.setya:
This method working like a magic on G2mini d618.. :D

Thanks a lot [MENTION=6121686]BigMajster[/MENTION]
[LG Optimus L90] SubliemeSiem:
You haven't tried a manual repartition using the parted command? I'm looking into that now, but I won't try anything right now since I'm expecting some important calls. When things have quieted down for me I'm going to try a repartition using parted in adb. I also noticed that the script in this zip does this:

#!/sbin/sh
mkdir /cache/recovery
dd if=/dev/block/mmcblk0p17 of=/cache/recovery/backup.img
echo '--update_package=/cache/recovery/update.zip' >> /cache/recovery/command
dd if=/cache/recovery/backup.img of=/dev/block/mmcblk0p16
cp /system/build.prop /cache/recovery/build.prop

Why is partition mmcblk0p17 flashed to mmcblk0p16? Is this a typo? If it is just a backup as the name suggests, I'd expect it to be flashed back to mmcblk0p17. This may be why cwm is installed instead of twrp, but I don't know enough about android partitioning to be sure. Does anyone else know what exactly is happening here?
[LG Optimus L90] olinojephanko:
I was about to try it but my last try with script went well...when ill be switching into cm2.1 ill look into it but it wont be soon

I was also looking on that but I left that as it was, maybe ill try to change it later and i will report.

If you find something out let us know.
[LG Optimus L90] SubliemeSiem:
Sure thing, I always do ;)
[LG Optimus L90] chilo141:
will this work on lollipop?
[LG Optimus L90] DevoutDevelopment:
yes, the rom that you are on does not effect the partitions :)
[LG Optimus L90] chilo141:
ahhhhh im getting so frustrated!!! it worked for me before now its not! data never wants to mount. i followed the steps and it keeps failing....im able to partition it then after i go into recovery it wont mount data i tried to format it but it wont format because it wont mount!! ugh! this sucks
[LG Optimus L90] chilo141:
has anyone figured how to mount the data? ive only successfully have been able to mount once and ive tried more than 15 times...for the life of me i cant figure out whats going on or how to mount data
[LG Optimus L90] olinojephanko:
what are you doing? you run that script and /data cant be mounted?

i guess you restored partitions with kdz..? what phone do you have?
[LG Optimus L90] chilo141:
I have lg d415 ....every time I would flash the partition table.zip it goes through but when I try to restore or install a ROM it fail because the data won't mount...so it leaves me with no OS so I had to reflash KDZ on EMERGENCY
[LG Optimus L90] chilo141:
ok so i got it to work...but what i did was first i picked the international partition part installed it then restored my back up it failed then i installed again this time d415 restored back up BAM alls well.....i used CWM ...i wanna experiment with official lollipop 5.0.2 but im scared....last time i tried i used TWRP it left me with no OS i tried to reboot back into recovery it failed went straight to LG screen it stayed there...and it wouldnt even let me flash KDZ ...phone had no recovery and no OS ..so when i went into Firmware Mode to flash KDZ LG Flash wouldnt pick up my phone...i tried for hours and hours and hours....i couldnt do anything....i had to get a warranty exchange
[LG Optimus L90] chilo141:
this does not work for stock lollipop ive messed up 2 phones on lollipop with this.....
[LG Optimus L90] gustavoemcoma:
Should I perform a wipe before install PT and also after it ? Or Just Install PT then install my ROM and GAPPS without wipe ?
[LG Optimus L90] olinojephanko:
thats logical

just install pt and then rom
[LG Optimus L90] whodisname:
Hey yo, I have this phone still. I have an is installed but I can't get fastboot to run on the phone properly, I zeroed out the laf partition so I don't have download mode, and I have the stock recovery. It won't mount data and the phone is stuck on "encryption password" screen. I haven't fooled with it in a while but how did you get it into emergency mode? Got any pointers maybe I could unbrick that thing?

---------- Post added at 08:30 AM ---------- Previous post was at 08:29 AM ----------

Lg d415. Cm 10 or 11 (probly11) I ran this partition tool on it twice. (Don't know why I did it twice) no adb either.
[LG Optimus L90] gustavoemcoma:
So, I performed PT in Maximal size, then Install my Rom (CM12), but when I try to Install my Gapps pack (full) , error 70 happens!! So I have to install a smaller pack (micro or nano)!! I understand that the error is in relation to insuficente internal space, but the partition releases 5.8 GB and Doen't I have enough space???? I use the last TWRP!

Help!
[LG Optimus L90] olinojephanko:
With maximal option you have cca 700mb on /system and thats where you flash gapps. Cm 12.1 eats about 450mb+ so you have the rest for the gapps. Full gapps have 400+mb.

You need to make system partition bigger or flash smaller gapps.

with maximal option /data gets 5.8gb, its userspace
[LG Optimus L90] gustavoemcoma:
Thank's for the anwser! I'll try Optimal option in PT!! Another question: What is the correct process for install Cm+ Gapps?

I Do: Wipe 1st> PT> ROM>GAPPS ?
[LG Optimus L90] olinojephanko:
yea optimal should work fine

(wipe) -> pt->rom+gapps (or it can be flashed separately(rom->gapps), it doesnt matter I guess)
[LG Optimus L90] gustavoemcoma:
**** It did not work!! Same Error 70 in Optimal with Stock/Full Gapps happens! Anyway Thank's for your help!
[LG Optimus L90] lfom:
CM12.1 (Lollipop 5.1.1) has a "bug" that fixes the system partition to 700MB, no matter the size of the partition in the physical PT. It can be fixed tho, if one runs a command in Terminal or recovery while sys partition is rw, then reboot.
[LG Optimus L90] terrorizer84:
Hey gus I have a problem with this tool. I have Ressurrection Remix with optional partition change to maximal - only custom rom, and instal RR then I have got bootloop and I dont have any recovery :(. I flash stock kdz file in CS_EMERGENCY and it works system started, everything works, but if I do root ant instal any custom rom or partition tool I dont have any phone memory (sdcard0) is doesn't exist in any file manager and I realy don't know what to do. Please help I want go back to maximal partition only for custom roms.

Realy need help [emoji20]
[LG Optimus L90] olinojephanko:
When you flash stock rom perform factory reset. It should wipe all partitions on phone.
[LG Optimus L90] terrorizer84:
@up

Yes but when I flash any custom carbon or RR even without using Partition tool then I don't have sdcard0 with stock everything is ok but is "stock rom"
[LG Optimus L90] chilo141:
when i try to partition my d415 why does it say file_getprop: failed to stat "/tmp/aroma/customize.prop": no such file or directory?
[LG Optimus L90] nanaoftheyaw:
Is running a script different from installing? im using twrp.
[LG Optimus L90] TommyDN:
This screwed up my phone TWRP can't mount /emmc anymore now what do i do?
[LG Optimus L90] nanaoftheyaw:
Is yours the d415 and what options did you choose? Also, did you back up your system and restore?
[LG Optimus L90] Level99:
Edit Edit:

So even though I found the working D415 flash zip (post #34 of this thread, if you want to check it), I got no data partition after the flash. I got the following message when trying to manually run the steps from the shell script repartition4.sh:

parted -s /dev/block/mmcblk0 mkpart primary ext4 1234 7795

Error: You requested a partition from 1234MB to 7795MB.

The closest location we can manage is 1234MB to 7785MB.

So I modified the shell scripts to accommodate my potentially unique device settings. It is attached to this post if anyone else needs it.

--------------

I'm getting the same thing. D415 doesn't bring up any options for partition resize (no choice of stock, optimal, etc.), takes me immediately to the apply dialog, and fails at getprop. If i go through the international variants dialog, I get the options, so I can only assume that the 1.01 with D415 support isn't configured properly.
[LG Optimus L90] Disrupthor:
Hi, could someone upload version 1.0 please? Version 1.0.1 doesn't let me format cache in F2FS because it is too small (100MB vs 190MB from v1.0). Thank you.
[LG Optimus L90] olinojephanko:
I can only give you my version with 150mb of cache, witch i could format to f2fs.

However, modifying this script is really easy.

View attachment PartitionTableTool_v1.0.1.zip
[LG Optimus L90] Riku Azhurlar:
Wrong the reason for the location is because of a partition at the end of the disk called grow which I safely deleted
[LG Optimus L90] Indiant:
Possible to use this on LG G2 D802?
[LG Optimus L90] Xemidra:
I don't think so.
[LG Optimus L90] Tejas tedi:
will this work on stock lollipop
[LG Optimus L90] wojtek267:
No, stock lollipop requires stock system space
[LG Optimus L90] Disrupthor:
To anyone, PLEASE, can anyone provide version 1.0 of this script? Can't format my cache in f2fs with v1.0.1

Edit: Found a copy in my hdd.
[LG Optimus L90] Floating Point:
Nevermind. Delete.
[LG Optimus L90] EarthBoundX5:
No matter what I do; after using this specific posted version, I cannot clear any partition or install anything via TWRP. I keep getting E: Unable to mount '/data' and E: Unable to mount internal storage. messages. Even restoring to my backup prior doesn't work as I keep getting these prompted error messages. I'm at a loss...I cannot seem to find my kdz file to make a total recovery...as http://lg-phone-firmware.com/index.php?firmware=1 states my IMEI is invalid...

Any help would be appreciated, I'm at a bit of a loss...haven't messed with android in a good year+
[LG Optimus L90] :
When trying to restore with .kdz try to do with the imei found on the back of your battery. Also, you can download a .kdz file linked in the threads at xda corresponding your very own device variant. If those both don't work PM me :)
[LG Optimus L90] BlaMa:
This tool work great!!!

Thank you.

But can you note in first post, that after repartitioning there is only CWM recovery, NOT TWRP.

I had a small problem, because didn't have a TWRP ona SDcard and only TWRP backup.
[LG Optimus L90] :
Yes. This is a freaking stupid bug and needs fix, yet it only occurs occasionally. What actually happens is the fact that you boot into boot partition but when you do reboot recovery you do go back go TWRP/installed recovery I advice by then reflashing the script, as it is a sign the script failed when you do actually see CWM recovery.

Hope this helps..
[LG Optimus L90] BlaMa:
as I already wrote, I am very satisfied with this tool and currently using my phone with new partition layout for more then three weeks.

There is nothing problem for regular usage.

But I cannot install big application from Google Play market, the reason is that cache partition is also used as temporary place for download.

Then I used small workaround(root is necessary):

create somewhere(where you have big free space) folder called "cache" and then use command(over adb or terminal)

mount -o bind /cache /sdcard/cache

(/cache - mount point, /sdcard/cache - your new folder)

and now you can install everything from market without any problem.

This is temporary solution, after restart is your mountpoint lost.
[LG Optimus L90] Floating Point:
Give me an example of app that cannot be installed due the small size of cache partition.

I set my cache partition to 64MB and tested some huge downloads over 250MB and didn't run into any issues.
[LG Optimus L90] BlaMa:
For example I had this problem with game "Furby Boom". Cache is in my case 100MB.
[LG Optimus L90] Floating Point:
To avoid eksst corruption, use partitioning by sectors (512 bytes).

The partitioning of system, cache and userdata must start at sector 933888 and end at 15269854 (15223807 if you want to keep grow partition), respectively.

No problems here, download and install went smoothly.

My cache partition size is set to 64MB.

---

Here's mine, I debloated system partition and shrunk to a minimum size with 64MB free space, also shrunk cache to 64MB and took over grow partition space to userdata.

32 933888s 3848430s 2914543s ext4 system
33 3848431s 3979502s 131072s ext4 cache
34 3979503s 15269854s 11290352s ext4 userdata

system from 2 GiB to 1.39 GiB

cache from 900 MiB to 64 MiB

userdata from 3.94 GiB to 5.38 GiB

---

Looking at partition table retrieved from KDZ, I found out that grow partition has a GPT backup, I went back and reverted the userdata to the original end sector and rebuilt grow partition, who knows what can go wrong if original GTP gets corrupted and cannot retrieve the backup...
[LG Optimus L90] Tejas tedi:
This partitionning is not working for cm13 any tweaks ??? To make it work for cm13

Sent from my LG-D410
[LG Optimus L90] judas1977:
You'll have to give a biiiig smile to [MENTION=513620]Quarx[/MENTION], and he will change system size to 1,5GB and you can use that optimal settings;)

it's just one line of code..;)
[LG Optimus L90] viktormax3:
Source?

I would take this hack to another smartphone LG
[LG Optimus L90] wizzardsk:
Can anyone confirm if it already works with CM13?
[LG Optimus L90] Tejas tedi:
It's still not working

I tested first official builds

Stops on patching system image

Sent from my LG-D410
[LG Optimus L90] judas1977:
It's not a bug, it's made intentionally
[LG Optimus L90] jbonilla51:
Hey guys,

I tried this on my d415 (not the OP zip, but rather the one provided by [MENTION=5385462]coolbarlow[/MENTION] in post #71). The script worked fine, but my phone is not detecting my external SD. I chose the maximal setting, since I'm running OrionLP (~550 MB of system use) and it booted without problems. What other info you guys need to help get this sorted out? Thanks.

Edit: Never mind for now, did another reboot and the issue was solved for now.
[LG Optimus L90] Xemidra:
Can we somehow adjust the CM13 zip to make it work with changed partition sizes?
[LG Optimus L90] judas1977:
Ask Quarx to change that value...
[LG Optimus L90] AlexUnderKH:
Thanks. But not works good with TWRP higher than 2.8.6.0. TWRP 2.8.7.0 cannot mount system, data after wipe partitions before installing custom rom.
[LG Optimus L90] harsh sharma:
Dose this works with CM13 ???
[LG Optimus L90] terrorizer84:
If person who created ROM change system size to 1,5GB than yes

Wysłane z mojego LG-D405n przy użyciu Tapatalka
[LG Optimus L90] MrCampust:
Question

Does this work with TWRP because I see that in the other comments that everyone is using cwm? BTW I have a D415
[LG Optimus L90] terrorizer84:
Yes it's work with TWRP but with 2.8.6.0

Wysłane z mojego LG-D405n przy użyciu Tapatalka
[LG Optimus L90] jbonilla51:
Has anyone had problems where the sd card unmounted message, and then gets mounted again? I tried this originally with TWRP 2.8.7.0 for maximal setting. Then I went back to stock using the same recovery, but the problem persisted. I then went back to 2.8.6.0 and tried the whole process again and the problem still persists. I got a d415, running OrionLP. I never once tried flashing the mod with the CWM that gets installed with it. What do you guys think?
[LG Optimus L90] jesuita:
Anyone got this working on CM12.1? More space is always welcome! :)
[LG Optimus L90] wizzardsk:
It was working in CM12.1 with no problem. It is not working in CM13, as far as I know.