[REPARTITION] Nexus 4 Repartition [MAKO] [8GB/16GB] [UA TWRP]

alexandruvlad

Senior Member
Mar 10, 2010
526
22
0
Bucharest
@Sam Nakamura partition log is clean, as it should be anyway. Problems you are facing aren't connected with your current partition layout. You should use UA TWRP, try to redownload gapps, reboot recovery -> recovery before resize etc.
Can you please describe what you mean by "resize" before flashing GApps?
I'm getting this error
Thanks in advance
 

Attachments

bgoel4132

Senior Member
May 3, 2017
201
63
0
Delhi-NCR
@Clamor i noticed something that while flashing the repartition zip the modified twrp shows an error mounting /vendor that is why it is unable to use the repartition with modified twrp, but the repartition worked fine with normal twrp, i digged xda and found that vendor partition is meant for treble supported roms, and may be i was trying to flash it on stock rom that is why it was showing wrror but earlier when i used it with custom rom it worked fine does that mean those custom roms are intended to have treble support. earlier the twrp did ahow the error mounting vendor but it didn't refused to flash the package.
@Clamor i also had a issue going back to stock partition when i flashed the repartition again and format everything the only error i got is mounting vendor and afterwards my phone sucks i flahsed stock rom and it gave me a bootloop finally i had to go through the LGNPST method to get it back to life, but after that also with custom twrp it shows error mounting vendor and not flashing the repartition , so can you please explain what basically we had to do get back the stock rom back after repartition
 
Last edited:

Clamor

Senior Member
Sep 4, 2013
363
654
133
Львів
@bgoel4132 first about /vendor partition handle. It is possible to use standard TWRP with my repartition scheme in this case /vendor will be just hidden and there would be no opportunity to interact with it through TWRP interface. If UA TWRP is installed + repartition is made and you get error with mounting it, then just format it via Advanced wipe menu. On stock partition layout UA TWRP will give continuous error with unable to mount /vendor.

About stock. NO ONE MUST NOT FLASH PURE STOCK it is super bad idea. Never do that. Instead there are 3 solutions of stock flashing problem:
1. Backup your stock rom with TWRP (boot+system) and then restore it after repartition.
2. Unpack pure stock image and flash ONLY system image through fastboot mode.
3. Flash stock rom repacked for flash via TWRP (I'm Nexus 5 owner so I don't know if there are such roms for mako).

P.S. And remember don't do anything if you aren't certain in your actions. Check thread or ask, it is better than have more problems in future.
 

dnize

Member
Jan 17, 2012
5
0
0
My system storage is now increased to 1,5 GB. BUT ,now, while trying to flash gapps I still get error message 70 because of insufficient storage space. Any idea what could be missed? Thanks in advance!
 

jludt

Member
Aug 28, 2010
5
0
0
Any chance on some insight as to what my options might be for repartitioning a 16GB nexus 4 that I was trying to flash with pie. Trying to flash the mako_clamor zip and it's giving me "Failed to mount" errors which is pretty much what i'm getting when i try to do anything within TWRP.
 

TundraLK520

Senior Member
Apr 10, 2016
162
54
28
I'm getting unable to mount vendor errors. I went into mount section from twrp but can't select the vendor option, it allows me to select every other option just not vendor. Also part about missing updater script.
Update:
I downloaded the official twrp and tried again this time no vendor errors but it says missing updater script.

Final Update:
I can just say to read instructions carefully. I did the mistake of trying to repartition on UA twrp instead of official twrp which was giving me vendor errors. As for the updater script error, I re downloaded the repartition zip and it flashed successfully (make sure to tick system in mount options). Then it gave me directions to type modify in twrp terminal. Upon which it started the repartition and rebooted to recovery and the I flashed UA twrp and followed the procedure mentioned, don't worry about the mounting errors when wiping and then advanced wipe everything. Then flash ROM and after that resize through wipe section ticking the system option. Which results in error the first time and then do it again. This time no error. Now you can successfully flash gapps.
 
Last edited:
  • Like
Reactions: d_g_m_2000

pietls

Member
Mar 7, 2019
7
0
0
I had a Nexus 4 in the drawer and managed to put NitrogenOS on it that runs like a charm! But Gapps would not install. So i tried this method to resize System but after I tried resizing, I now have a Vendor partition of 0 Mb that stops all further actions and no resized system partition. Any suggestions?
Last update: Problem solved! I restored to an other ROM and started the procedure again. This time it worked and I installed Pie and GAPPS succesfully!
 
Last edited:

Burner2000

Senior Member
Mar 17, 2016
51
15
0
Hi,
Got a noob question. I hope this thread is the correct one.

Is 1.5G enough space to install Carbon 9.0 ROM along with Opengapps Micro Package (210MB zip file size)?

My previous experience with installing custom ROMs is limited to just flashing using TWRP. First time I am even thinking about required partition size for different packages etc.

Any help and/or responses would be appreciated greatly.

Regards,
- B
 

nitin.chobhe

Recognized Contributor
Jan 3, 2013
8,098
19,497
263
Pune
Hi,
Got a noob question. I hope this thread is the correct one.

Is 1.5G enough space to install Carbon 9.0 ROM along with Opengapps Micro Package (210MB zip file size)?

My previous experience with installing custom ROMs is limited to just flashing using TWRP. First time I am even thinking about required partition size for different packages etc.

Any help and/or responses would be appreciated greatly.

Regards,
- B
I guess that should be enough.

Nitin
 

Burner2000

Senior Member
Mar 17, 2016
51
15
0
Nitin,
Thanks for the reply man.

Yeah, I went ahead and used the script to repartition & installed latest Carbon ROM with Opengapps Arm Micro package. Seemed to work fine.

Thanks to OP for the script & also to Nitin for continuing to maintain newer ROMs for N4.
 
  • Like
Reactions: nitin.chobhe

track21

Member
May 19, 2011
12
5
0
Filadelfia (VV)
Hi, I've tried to download the partitioning zip many times, but the link doesn't work to me, is there any other link? thank you

---------- Post added at 10:20 AM ---------- Previous post was at 09:36 AM ----------

ok, done, thank you