Hi there,
I have an old Nexus 4 where the screen doesn't work along the right side of it so I can't press enter after I type modify.
I am trying to install a battery friendly rom before handing this off to an friend of mine but I can't becuase of the system partition size.
I tried "adb shell" but it wasn't working, though I can see my device.
I realize that this thread is quite old but I would really appreciate some help as the last offical stock build of Android for mako is the only one I can seem to get to work and we all know that isn't good enough.
Thanks to anyone that can help.
Hello!!
I Have the same problem, I wanted to check if anyone has trouble decrypting the storage in TWRP, and if so, is it caused by the rom or by the recovery?
Thanks for the great work!
Did you use twrp 3.4 for this?
Note! This version has an annoying restart error so you have to do it manually in the terminal, e.g.
twrp reboot recovery
My Nexus 4 was running ASOP 6.0.1. In order to flash a more current rom, I needed to resize its partitions.
After flashing mako_clamor_repartition.zip in official TWRP 3.4, my Nexus 4 seems to have lost all partitions.
I managed to flash twrp-3.3.1-1_UA-mako.img after, but it's unable to mount any partition apart from Cache which it reports as zero byte. Trying to wipe/erase partitions does not work as it could not mount them.
When I try reflashing the stock rom, it reported that it can write to Boot and Recovery but not System partition.
I have also tried plugging in a micro usb drive, but TWRP won't mount it either.
Does anyone have any advice on how to rescue my Nexus 4?
Also, I managed to get back into TWRP one time. The rest of the time, it get stuck on the Google logo screen. Holding down Volumes + Power just restart the phone instead of going to the bootloader screen. Alternatively, it would shows the battery charging logo and my Windows computer would play the sound that it has detected a device.
Links to your pictures can only be seen after trying to answer the post. What TWRP did you use to make the pictures?
What happens after using mako_clamor_repartition.zip in twrp-3.3.1-1_UA-mako?
EDIT: And I'm an idiot and missed the format all partitions step. Leaving the rest of this post as a testament to my shame =)
I'm in the same boat with my 16GB Nexus. Ran the mako_clamor_partition, then went to the terminal and specified 'modify', and now the partitions on the device are in a wonky state.
When inspecting the partitions in twrp in the 'Advanced Wipe' menu, checking a partition, and hitting 'Repair or Change File System' these are the results:
/system is 1476MB
/vendor is 0MB
/data is 0MB
"internal storage" says "Invalid partition selected"
/cache is 98MB
"Dalvik/ART Cache" says "Invalid partition selected"
Because internal storage and data are 0/invalid copying files to the device isn't possible. There is no storage available/detected when connecting via USB to a PC.
I tried the method of unbricking the N4 from this thread:
https://xdaforums.com/nexus-4/general/tutorial-how-to-unbrick-n4-t2347060
However the LGNPST program does not detect the phone when connected in download mode.
Is there any way to restore the partition table from inside TWRP with no access to the internal device storage? It looks like fdisk is installed in /sbin (though running 'sbin/fdisk -ul' reutrns nothing?), does anyone have the proper commands to issue to get the partition table back to stock?
Also, if I attempt to copy the logs, this error is in the output:
'Failed to mount '/data' (Invalid argument)'
Any ideas how to get out of this state?
Thanks!
- If repartition pack says that device isn't correct,
than, if partition table wasn't modified before,
congrats! your device has different memory chip
that those I worked with. No worry, PM me and
I'll add support for it.
# Before processing further we highly recommend you to use our TWRP which has support of EFS/Persist backup
# Or you might lose your IMEI/WIFI + BT mac addresses
# This mod is backwards compatible with any ROM so we highly recommend NOT to reverse it if repartition went well.
# You should use ONLY recovery from this thread since other don't support all benefits of this mod.
# When installing ROM just after you flashed zip and before installing GAPPs you MUST make a resize in TWRP since all roms are build for ~800M system.
# To restore stock layout use same zip and steps as for repartition.
1. Boot into recovery (You need to allow system partition modification to be able resize /system in recovery).
2. Backup your data & Move your files from flash to your PC.
3. Flash repartition pack zip.
4. Do the actions asked by repartition pack (go to Terminal in ordinary recovery and input word that pack will tell you. Everything else will be done automatically).
5. Phone will reboot into recovery.
6. Install TWRP from below (it is build with support of new partitions layout and sizes. It can be differed from official TWRP by next format 3.x.x-1 UA).
7. Format everything. (mount errors will not affect formatting!)
- In TWRP: Wipe > Format data
- Type yes
- Once this completes go to: Wipe > Advanced Wipe
- Tick all the boxes and wipe. There should be no further mount errors.
8. Install ROM which you like.
9. Enjoy better flash partition layout.
21 159383552B 1040187391B 880803840B system
22 1040187392B 1627389951B 587202560B cache
21 159383552B 1732247551B 1572864000B system
22 1732247552B 1994391551B 262144000B vendor
23 1994391552B 2099249151B 104857600B cache