yashsingh1/xdaforums huggingface dataset:
[LG Optimus L90] jbonilla51:
Whew, after flashing back stock kdz my phone finally stopped with the random sd card mounting/unmounting (thanks F. Gacrux! for all the PMs and help :))

I recently tried the actual zip file from the OP and got the same message "failed to start /tmp/aroma/customize.prop: No such file or directory." However, I want to try and take one last shot at repartitioning via the offline kdz flashing method. I know how to use such a method; what I don't know is where and what I'd need to do to perform the repartition during the process. The OP mentioned that it can be done but never specified. And the kdz offline flash page doesn't delve into it either. Anyone willing to help out a bit? If it involves using cmd+ADB that's fine, I've used it before, I get by using it via reading step by step what i need to do with it. Thanks! And sorry for the lengthy explanations.
[LG Optimus L90] Tejas tedi:
KDZ method restores your stock partition thats it!!

Select CS_EMERGENCY emergency in the flashing tool!!
[LG Optimus L90] Kamil445:
IT PERFECT work with TWRP 2.8.6.0! :)

ON 2.8.7.0 errors (only 2x use can "partition" - with errors)

ON 3.0.2.0 nothing happens (device power off when installing zip)
[LG Optimus L90] Hyoretsu:
How do I make it work with cm13 (Maximal option)? I checked my backup and it says that system has 990MB. Also, when I try to install CM13 again, it stays in "Patching system image unconditionally..." forever.
[LG Optimus L90] lfom:
All CM13 based ROMs need full stock partition size, it's hard-coded, probably to have enough space for full Gapps. There's a workaround tho, involving TWRP backups, please search the thread/forum (not sure if updateds work by the other hand).
[LG Optimus L90] Floating Point:
It's not hard coded as I setup a system partition of 896MB enought to fit CM13 and Gapps pico + free 100MB.

All the rest 11104MB went to user data partition. It's just a matter of resizing the sparse data image and disabling the SHA-1 check in updater-script.

Of course if you do this, you cannot update via CM Updater, you have to manually resize the new release and flash again in recovery (no wipe needed if its nightly > nightly).
[LG Optimus L90] robot_head:
Worked great on 415. Choosing 415 option in aroma says it couldn't get build prop. Worked fine choosing other version 405, 410

3GotoM ym morf tneS
[LG Optimus L90] kreativpause:
Guide please!

Would you mind creating a brief guide? Concretely on how to resize the data image manually, disabling the sha-1 check in updater script and manually resizing the new release (I think for cm13, as it is the release most people use..)?

I'm using this right now, but as a user of pico gapps I still see much space wasted.

Would be awesome!
[LG Optimus L90] Tejas tedi:
Follow this guide::: https://goo.gl/zqlihR (in MANUAL RESIZING folder)

Credits to F. Gacrux:highfive:
[LG Optimus L90] Floating Point:
I'll make a video about it, and post an Excel Sheet I made that works like a calculator for the repartition script that need to be edited inside the Repartition Tool by bigmajster.
[LG Optimus L90] Hyoretsu:
How can I keep my TWRP after using this tool's optimal setting?

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

Where can I get this if I'm on windows? Also, when I use "mount -o loop system.img ./system", it says "'mount' is not recognized as an internal or external command, operable program or batch file."
[LG Optimus L90] Floating Point:
1 - TWRP is not affected unless you face that bug that the partition tool reboots to CWM after finishing the repartition operations, in this case, follow what I said in the guide and have a recovery flashable TWRP zip (as provided).

2 - Sorry no Windows, you need Linux. I have no idea how to do this in Windows.

3 - In terminal: sudo apt install android-tools-fsutils

4- mount requires root privilege, but in your case it seems mount bin is missing. What distro you are using?
[LG Optimus L90] Hyoretsu:
It doesn't work for me, whenever I install CM13 and checks storage, it says 3.9GB instead of 5.2GB.

EDIT: Somehow, it worked. Now I have 5.08GB. Yay!

EDIT2: Now for some reason, root doesn't works.
[LG Optimus L90] Floating Point:
You probably have a problem with selinux. Check for errors in operations using system.transfer.list.

Last chainfire supersu recovery flashable zip is working flawlessly here.

I'm currently using 1GiB system and 90MiB cache, which gives me 5.62GB formatted usedata.
[LG Optimus L90] Hyoretsu:
When I do that, it gives me "error: build_directory_structure: cannot lookup security context for /system/addon.d". Also, is there anything I should change in the code? I'm using the maximal option. It has 6GB of data.
[LG Optimus L90] Floating Point:
You are using CM13 or CM14 image? It works only with CM13.
[LG Optimus L90] Hyoretsu:
Will ever support CM14.1 someday? Really sucks losing Xposed AND 2GB of storage.
[LG Optimus L90] Floating Point:
No support for CM14 because nougat uses a different file permission system that make_ext4fs currently do not support.
[LG Optimus L90] h473rj:
Exactly me to, cm13 is not flashing :(((
[LG Optimus L90] Kamil445:
If you want to use different partition size you must install CM13 on STOCK partition size, do backup, repartition to optimal and restore backup!

For me working good: D405N
[LG Optimus L90] Hyoretsu:
Repartition will format everything. You gotta install CM13 after partitioning and restore the backup. But to do that, you gotta repartition the CM13 image too.
[LG Optimus L90] YouKKKnow:
can someone tell me how to repartition the cm13 image to install in the optimal partition?

Sorry for bad english
[LG Optimus L90] PurposeS3:
Can some one make full tutorial for this tread, because I still understand how to gain more data ?
[LG Optimus L90] phidias81:
As far as I got form the other posts, this can be used only to install CM13, no other versions, or am I wrong?
[LG Optimus L90] bielz99x:
work on lineage os 14.1???
[LG Optimus L90] leoakch:
Your question is answered here, the short answer is:

No, however there are some possible workarounds.

https://xdaforums.com/showpost.php?p=72383894&postcount=62
[LG Optimus L90] Hyoretsu:
It stopped working after some time. Repartitioned, restored backup but still have 4GB of data instead of 6GB.
[LG Optimus L90] Kamil445:
For me working on TWRP 2.8.6.0 and 2.8.7.0.

On TWRP 3.0.2.0 or 3.1.0.0 and 3.1.1.0 just restart. Can't do repartition.

Sometimes I need do repartition two times, in first time in recovery "can't mount /cache /system /data" (partitions seems be broken, also can't install roms).

Next repartition working.
[LG Optimus L90] BlaMa:
how to revert back to stock size?

I tried at minimum four times, resazing is finished correctly(with one automatical restart). But I have still optimal size(sys 1.5GB, cache 100MB, data 5.2GB).

Any idea what is wrong, how to fix it. I need a stop partititon size to flash custom image.

Update phone is 405N(sorry, I forgot)
[LG Optimus L90] dileivi24:
works on model d415 ?. I have lineage 14
[LG Optimus L90] BlaMa:
I have a problem with lineage installation, always error: 7(discussing in thread lineage OS)

And one suggestion is to return back to original partitions size.
[LG Optimus L90] Tejas tedi:
Partition doesn't work on ROMs from cm13 coz they use stock partition table(2GB SYSTEM)

And if you want to get it work on lineage os you have to tweak the rom zip file to your partition size!!

BTW SEE HERE FOR THE GUIDE https://xdaforums.com/showthread.php?p=71995999
[LG Optimus L90] BigMajster:
Change recovery. You have my edited recovery it mount cache on another partition...
[LG Optimus L90] DevoutDevelopment:
I just tried TWRP, still not mounting cache
[LG Optimus L90] BigMajster:
Try this commands:

adb shell
make_ext4fs /dev/block/mmcblk0p32
tune2fs -c 0 -i -1 -C -1 /dev/block/mmcblk0p32
reboot recovery
[LG Optimus L90] DevoutDevelopment:
That did it, cache was mounted by my recovery :)
[LG Optimus L90] BigMajster:
Thank you that you have tried this on the D415, I think tomorrow I will give a version that will support all variants.:)
[LG Optimus L90] DevoutDevelopment:
Thank you for your help getting it working again. I can't live without my phone :)
[LG Optimus L90] Jon.Sch:
Worked with my LG L90 D405! Now I don't have to use Link2sd anymore!:o
[LG Optimus L90] DevoutDevelopment:
Got this error when installing on the D415

AROMA Installer version 2.70RC2 (c) 2013 by amarullz xda-developersROM Name : Partition Table ToolROM Version : 1.0.1ROM Author : BigMajsterDevice : LG L90Start at : Sat Jan 3 19:02:16 1970 installing samsung updater extensionsPreparing to repartition. about to run program [/sbin/mkdir] with 2 args mkdir: can't create directory '/sd': File exists run_program: child exited with status 1 about to run program [/sbin/mount] with 3 args mount: mounting /dev/block/mmcblk1p1 on /sd failed: Device or resource busy run_program: child exited with status 255 about to run program [/tmp/backup.sh] with 1 args 65536+0 records in 65536+0 records out 33554432 bytes (32.0MB) copied, 1.071050 seconds, 29.9MB/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 directoryInstaller Error (Status 7)End at : Sat Jan 3 19:02:18 1970

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] :
Hi,

On CM11 I don't have wifi anymore..

I set up max, script went well and I have 405n.

How to fix this?

--edit--

never mind because I retried it and now it works as smooth as butter ;)
[LG Optimus L90] BigMajster:
Try reflash.
[LG Optimus L90] DevoutDevelopment:
Have you fixed the error for the d415?

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] BigMajster:
Try this
[LG Optimus L90] DevoutDevelopment:
Still doesn't work. And I've noticed that when I click D415, its doesn't give me an option on which I'd like to install for the D415, it just starts the install process.

View attachment PartitionTableTool_D415.zip.log.txt
[LG Optimus L90] BigMajster:
I found a stupid typo xD in script now should work.
[LG Optimus L90] DevoutDevelopment:
Worked beautifully. Thank you a lot :)

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] Disrupthor:
Hey, just wanted to tell you that with the 100MB cache version, I can't format cache in F2FS.
[LG Optimus L90] BigMajster:
Thanks I'll try to fix it
[LG Optimus L90] whodisname:
well, I went ahead and used this damm thing. first of all, it updated my recovery from twrp to cwm. all my backups are in twrp so thats that. so i install the latest cm by shinobisoft and the thing gets no data. also, it wont mount data so i had to redo everything. then i tried to wipe everything again and reuse the partition tool and now im stuck with "type password and decrypt" i never had a password in here so im at a loss. oh and my recovery is now gone. and my pc is acting up. bottom line is DO NOT USE THIS TOOL, YOU WILL HAVE A BEAST TO FIX.
[LG Optimus L90] DevoutDevelopment:
Worked fine for me. You must have done something wrong...

This is turning into the last scenario where you said things weren't working...

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] whodisname:
could be. this is what I did. i backed up my info to the pc. then i wiped data cache system and delvic. then i used this tool. i picked the d415 and then optimal, (middle choice) then i flashed the latest cm11 for the 415. (i have the 415!!) no data and no wifi, so i flashed cm11 again, i noticed recovery was now cwm instead of twrp. anyway i figured i might as well try again. so i wiped everything again, then i flashed cm11 again after that, i flashed it twice. then i reboot and now it says to input password to decrypt. i never encrypted my phone nor put any password i can figure into it. this is where im at. and no recovery and i cant seem to get it into download mode either. not recognized by the pc because usb debugging is unchecked by default and i cant get pass the encryption screen. my mistake was repartitioning twice i believe but it seemed lie the logical thing to do.
[LG Optimus L90] DevoutDevelopment:
When you get to a part during the repartition, it will say "100%" but at the bottom, it would say formatting the new partition. Did you pull the battery at this point?

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] whodisname:
No, it actually said it needed to reboot and finish up. I let it and it went back to recovery and it had several errors about not being able to mount Emmy, data, etc. I waited for about 10 min but it did nothing but sit in recovery so I tried to reboot. (Still had twerp then) it said no OS installed.and at that point I flashed cm11. And that was the beginning of the process detailed above. By the way, I'm gonna ask in that forum but since you right there, my LG flash tool says I have more than one device attached clearly I don't as I examined all the ports. Only the mouse is hooked up. Suggestions?

(I got download mode to work)
[LG Optimus L90] DevoutDevelopment:
Download mode might make it worse. So I know, could you PM me a detailed list of the steps you took. I should be able to help then.

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

Thank you,

This message was brought to you by:

Michael aka BlondGod

Current Device:

LG-L90 D415 running PAC ROM RC2 4.4.4

using Tapatalk
[LG Optimus L90] BigMajster:
Do you now have TWRP or CWM?
[LG Optimus L90] whodisname:
I have the stock recovery now. I'm using my s3 now. I think the only option is to flash kdz. It isn't working but its probably this pc. This pc here has Ebola. When I run the tool it says I have 2phones connected. I really want to get it running again.

It WILL NOT get adb at any time. I dont have fastboot, just download mode. I zeroed out the laf partition but didn't remove it. It has stock recovery and it won't factory reset. It fails in the blink of an eye but if you don't blink you can see the stock green android and some words. Not enough time to read them but they look like mount errors. (Which makes sense) if I could get past the decryption screen I can work with it. I never encrypted the data.

---------- Post added at 10:49 PM ---------- Previous post was at 10:45 PM ----------

Now that I think about it I dont know if I wiped anything before running this tool. I might have but I might not. I dont remember doing so therefore I will assume I didn't. That may be where the trouble stems from.
[LG Optimus L90] BigMajster:
If adb really not working only option is KDZ.
[LG Optimus L90] whodisname:
I should have made fastboot available. Problem solved then. Smdh
[LG Optimus L90] BigMajster:
Yes, fastboot is very useful. You can do something These 5s in adb? Try do your KDZ maybe other PC. Or Turn off all what you have in the COM in device manager.
[LG Optimus L90] whodisname:
Look, I really want this phone to work and I will do whatever I need to do to get it working. I'm a little busy lately so I can only work on it sometimes I had a mishap with the partition tool and I now stuck at a decryption screen. Amy help would be appreciated.
[LG Optimus L90] whodisname:
Everything gets recognized except MTP. And it only shows one opaque disk drive in/ computer. Not two full color ones that you can access.

Kdz doesn't work. Says more than two devices installed. Adb doesn't work because of debuffing. Twrp is gone and stock recovery fails to mount anything. No help. Fasrbootode is also corrupted. And upon power up. It goes straight to encryption password. I never had a password on the device nor had it encrypted.
[LG Optimus L90] BigMajster:
So system is booting but asks for a password, adb works then?
[LG Optimus L90] Disrupthor:
Do a hard reset.
[LG Optimus L90] coolbarlow:
Same thing happened to me and I am sure many others. I did not want to do a kdz flash at all so I had to come up with another way to get the data partition back on my phone. The method I used allowed me to delete the data partition then resize my data partition to 6.0 GB so that I didn't have to use the script and potentially mess up my data partition again.

First of all can you post a list of your current partitions for me.

adb shell
parted -s /dev/block/mmcblk0 print
[LG Optimus L90] whodisname:
I put it in adb and got no farteher than adb shell oh

Device offline

Deviceofflline.

---------- Post added at 12:52 AM ---------- Previous post was at 12:51 AM ----------

Used these ocviously

---------- Post added at 12:52 AM ---------- Previous post was at 12:52 AM ----------

Meanwhile the thing ticks. Just sayin

---------- Post added at 01:01 AM ---------- Previous post was at 12:52 AM ----------

If anyone knows a way to force the thing into adb that would be all I needed. All I need is o e wedge in here and I got it. Noob question but can't do anything with a factory cable here eh?
[LG Optimus L90] coolbarlow:
I am trying to help you without kdz resetting your phone.

Boot into recovery and run those commands then upload a screenshot of what your partition table looks like.
[LG Optimus L90] whodisname:
I really a0rwxiate your help bud, thank you. However, there is effectively no recovery because when I try to factory wipe with button combo, I get the android and some logs for maybe a second. Then it reboots to the encryption screen

---------- Post added at 04:02 AM ---------- Previous post was at 03:58 AM ----------

I have never been locked out of a phone as tgouroughly as this. And while I don't really know a lot, of they have power I can almost guaranteed get it back. I do this a lot.
[LG Optimus L90] whodisname:
Isthere any way to do a hard reset without a recovery that works?
[LG Optimus L90] whodisname:
Using my fastboot cable it does this

EPO/in FAIL NFC=40 pg0=ffc2b40

So I guess I am just 100% bricked then. Hell with it, getting a JTAG next week. Gunna experent with that thang.
[LG Optimus L90] System_F:
thanx, it's also working for G2 Mini D620r :)
[LG Optimus L90] DevoutDevelopment:
How would I go about resetting my partitions to stock on the D415, it is fully functioning with only 720mb of system partition?
[LG Optimus L90] BigMajster:
You can resize to 1,5gb or 2gb(original), 1,5gb is better option because you can install stock roms. Remember use this fixed script for d415 and of course have backup your data.
[LG Optimus L90] DevoutDevelopment:
Here is my results:

Attempting to go to stock:

Stalls at 70% and never reboots

Attempting to install optimal:

Reboots, but never continues repartition

The only one that works is maximal

Also, for whatever reason, your tool installs CWM recovery.
[LG Optimus L90] BigMajster:
Thanks for the info. If I find some more time i try fix all installation bugs.
[LG Optimus L90] cretu01:
What type did you use? You said in other thread it may brick your phone. I'd like to try the optimal one.
[LG Optimus L90] System_F:
I used maximal for d405/410... :)
[LG Optimus L90] DevoutDevelopment:
Please let me know if/when you do, I would really like to be able to go back to stock :D
[LG Optimus L90] tetrismonkey:
Hello could use your help again

I ran this hack and the first time it got to 70% and then it rebooted and i ended up in TWRP but i could not get any thing to restore

I tried running it again and the 2nd time around it got to 70% then it rebooted to the partition tool and it finished then i hit the reboot recovery and it booted to cwm. I know from there we can restore or use an update zip. However my backups were in twrp and now i have nothing to restore i tried flashing the 2.7.1 twrp you gave me and it got me back into twrp 2.7.1 again but still will not restore it tells me it tells me unable to mount /data

unable to mount internal storage.

Do you have an update zip that will work in cwm and fix my problem or any advice on how to fix this

Thank you
[LG Optimus L90] DevoutDevelopment:
I am going to leave this comment, as is, this tool is very dangerous for D415 owners, I know now of three people who have bricked their devices with it. It needs to be fixed for the D415 so users to not continue to brick their devices, or it needs to have D415 support removed.

[MENTION=6121686]BigMajster[/MENTION] please take this into account.

Thank you
[LG Optimus L90] tetrismonkey:
Ok well my phone is not bricked but i need to know how to get back to stock can you give me some advice or a guide to follow
[LG Optimus L90] olinojephanko:
logcat cant install new apps

Here are the logs of installing new apps on free 491mb on data which ends with not enough free space.

[MENTION=6121686]BigMajster[/MENTION] im using optimal option, can it be fixed?

View attachment logcat.txt
[LG Optimus L90] coolbarlow:
I have to apologize. I fixed the d415 script for my phone about a month ago. Since then I have been using it to go between cm12 and stock. I forgot to mention anything in the thread about this. I would advise that you DO NOT try this on the d410 variant or the d405 variant. I edited this specifically for the d415 so running it on any other variant will brick your phone.

First of all, Make a backup of your data partition. Your data partition will be reset!

Second, Run the script. Of course select D415.

MAX- System= 700MB Data=6.6GB

OPT- System=1.5 GB Data=5.0GB

STOCK- System=2.2GB Data=4GB

Wait for the script to finish. It may take a while. DO NOT PULL THE BATTERY!

Reboot recovery and flash a new rom, or restore your backup! :)

[MENTION=6063496]DevoutDevelopment[/MENTION] you could also try this script to return to the stock partition scheme. I was looking through the screenshots of your partition scheme in this thread. You partitions are slightly different (probably the very first time you flashed the script and they got all messed up), but it never hurts to try. :)
[LG Optimus L90] DevoutDevelopment:
I was able to go back to stock on my partitions using "Parted" and got it all situated. Thanks however :)

Could you get me a picture of your partition scheme so i could make sure mine are fine?
[LG Optimus L90] coolbarlow:
Here is my partition scheme. If your partition map is setup the same way you should be able to still use the script when trying out different roms.
[LG Optimus L90] DevoutDevelopment:
Ahh I see. That 34th partition that I dont have
[LG Optimus L90] coolbarlow:
Partition #34 doesn't matter.
[LG Optimus L90] DevoutDevelopment:
So I guess I did fix it all right :)
[LG Optimus L90] tetrismonkey:
Thank you I was able to fix my phone by using lg flash tool and going back to stock then rooted it again and I'm rocking pacman ROM now willing to give this another try with the fixed zip. However what is the best way to back up my ROM for this. Right now I'm using twrp 2.8.4 but when I flashed the zip before it loaded cwm so do my backs ups need to be in cwm for this to work? If so is there a cwm that works for d415 if so can someone post a link. Thank you all for all work you do and for all the help
[LG Optimus L90] coolbarlow:
There is a link to cwm for the d415 in the second or third post of Cyanogenmod 11 for the d415 thread.