Easy steps for restoring original partition table? - Nexus 5 Q&A, Help & Troubleshooting

To put it simple, I would need some guidance for restoring the very factory / unmodified partition layout for my Nexus 5 (32GB) model. It is not bricked. I can flash Android 10 ROMs with newest gapps and they all work. Earlier I installed crDroid: https://forum.xda-developers.com/google-nexus-5/development/rom-crdroid-v5-4-t3931587
To make it work, I modified partitions beforehand: https://forum.xda-developers.com/go...ment/repartition-nexus-5-repartition-t3844395
But I decided to flash the original software on it. It can be successfully flashed, but it is in bootloop. I guess because of the non standard partition layout.
Thanks for the help.

@HUN_Gyuszi,
U can restore original partition table with the same script u used to modify them. Here are the steps:
1. Boot into UA TWRP
2. Flash the hh_clamor_repartition.zip from the thread you have mentioned
3. Open Terminal in TWRP (TWRP -> Advanced - Terminal)
4. Type stock and wait until your phone reboots.
5. Install original TWRP 3.3.1-0 from https://dl.twrp.me/hammerhead/ via fastboot
6. Boot into original TWRP
7. Wipe all partitions and format data
8. Reboot from TWRP to TWRP
9. Make a factory reset. The process described here https://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
I highly suggest u to make a backup of persist partition before doing these steps. You can read how to do it here https://forum.xda-developers.com/showpost.php?p=77661978&postcount=2
PS: After reverting back to original partition table all your data will be lost! So backup everything u need before reverting to stock partition table.

Much respect and thanks for the prompt reply, all worked.
z3DD3r said:
@HUN_Gyuszi,
U can restore original partition table with the same script u used to modify them. Here are the steps:
1. Boot into UA TWRP
2. Flash the hh_clamor_repartition.zip from the thread you have mentioned
3. Open Terminal in TWRP (TWRP -> Advanced - Terminal)
4. Type stock and wait until your phone reboots.
5. Install original TWRP 3.3.1-0 from https://dl.twrp.me/hammerhead/ via fastboot
6. Boot into original TWRP
7. Wipe all partitions and format data
8. Reboot from TWRP to TWRP
9. Make a factory reset. The process described here https://forum.xda-developers.com/google-nexus-5/general/tutorial-how-to-flash-factory-image-t2513701
I highly suggest u to make a backup of persist partition before doing these steps. You can read how to do it here https://forum.xda-developers.com/showpost.php?p=77661978&postcount=2
PS: After reverting back to original partition table all your data will be lost! So backup everything u need before reverting to stock partition table.
Click to expand...
Click to collapse

Related

[MOD][SCRIPT] Super WIPE Script HTC One | Aroma GUI (upd.18/03/2015)

This tool will allow you to easily WIPE system, data (except /data/media), boot (kernel) and cache partitions directly from custom recovery.
Before using this tool you need to be sure you are using latest version of custom recovery (TWRP or CWM). The current downloads for both CWM and TWRP can found below:
The latest M7 U/UL TWRP can be downloaded HERE. I recommend to use TWRP 2.6.3.0 (for v1.0.2d) and TWRP 2.8.5.* (for v2.0.2) .
v1.0.2d will work for Intarnational version, GE, T_Mobile, AT&T but NOT for SPRINT DEVICE
and v.2.0.2 - for all version!!!
To use this tool please copy zip file to your phone and then boot into custom recovery and choose Install. Then browse to where you copied zip file and select it. Aroma installer will begin. Choose options you want to run.
What script does:
1. Wipe /cache partition (select in Aroma);
2. Wipe delvik-cache (select in Aroma);
3. Wipe /system partition (select in Aroma);
4. Wipe /data partition except /data/media (select in Aroma);
5. Format boot partition (kernel) and removes /system/lib/modules (select in Aroma);
/system/lib/modules
/system/etc/init.d/01-h2w
/system/etc/init.d/01-pwp
/system/etc/init.d/01-therm
/system/etc/init.d/01-blinkbuttons
/system/etc/init.d/01-f2s
/system/etc/init.d/01-f2w
/system/etc/init.d/01-f2ws
/system/etc/init.d/01-f2wt
/system/etc/init.d/01-p2w
/system/etc/init.d/thoravukk
system/etc/init.d/89elementalx
/system/etc/init.d/99elementalx
/system/etc/init.d/99elementalx~
/system/etc/init.d/99bulletproof
/system/etc/init.d/56zram
/system/etc/init.d/30sweep2wake
/system/etc/elementalx.conf
/system/bin/fstrim
/system/usr/keylayout/synaptics-rmi-touchscreen.kl
/sys/android_touch/sweep2wake
/sys/android_touch/doubletap2wake
/sys/android_touch/logo2wake
/sys/android_touch/pocket_detect
/sys/android_touch/logo2menu
5. Removes some system files from /data/media;
/sdcard/.android_secure
/sdcard/.bookmark_thumb1
/sdcard/LazyList
/sdcard/LOST.DIR
/sdcard/.data/footprints
/sdcard/.data/mail
sdcard/Android/data/com.android.providers.media
/sdcard/Android/data/com.google.android.apps.genie.geniewidget.news-content-cache
/sdcard/Android/data/com.google.android.apps.maps
/sdcard/.data/navigator/Data/Temporary
6. Check partitions for errors;
7. Create a log of work on internal memory card.
This operation will remove all your data except for /data/media.
If you wipe ONLY BOOT, then you must to flash new kernel and kernel modules too (/system/lib/modules)!
Make sure that you have nandroid backup and Titanium backup before a full wipe!!!
You must have new ROM on /data/media to flash after full wipe!!!
If AROMA Installer stops at 0%, then you must to press Power button and hold 15-17 seconds to reboot. Then go to recovery and start installation again. This will help you.
***Credits***
amarullz for his AROMA Installer Script.
mike1986 for his SUPER WIPE script for Android Revolution HD.
Venom Team for updater-script for ViperOne.
LlabTooFeR for his updater-script for Maximus.
***Download***
Super_Wipe_HTC_One_FULL_v2.0.2.zip - some updates from 18/03/15
Arhive:
Super_Wipe_HTC_One_FULL_v1.0.2d.zip - 2.66 MB - some updates from 24/11/13
md5: 60cff28e4f5ec11e11c15e7d37c54d35
Enjoy!
Version for HTC ONE M9 (ONLY!!!!)
(Russian interface)
Download:
Super_Wipe_HTC_One_M9_FULL_v3.0.1_RUS.zip
Thank you! :good:
Excellent, i miss this scripts since DHD days Thanks mate...
@Golv - good job
i want to wipe everything except the contents on my sdcard download folder > eg. downloaded roms for flashing in TWRP
what should i choose.
what is this script do is the same as wiping in TWRP recovery?
Magpir said:
i want to wipe everything except the contents on my sdcard download folder > eg. downloaded roms for flashing in TWRP
what should i choose.
what is this script do is the same as wiping in TWRP recovery?
Click to expand...
Click to collapse
You must select all of items then will be deleted data, system, cache the boot partitions, after that you can return back into recovery, choose Install and select rom to flash.
This script makes a wipe as well as in TWRP recovery. It's more convenient to use script for somebody ...
Golv said:
You must select all of items then will be deleted data, system, cache the boot partitions, after that you can return back into recovery, choose Install and select rom to flash.
This script makes a wipe as well as in TWRP recovery. It's more convenient to use script for somebody ...
Click to expand...
Click to collapse
i dont understand what this script does is wipe more stuff than the standard TWRP recovery or what?
isnt wiping the boot partitions dangerous?
Magpir said:
i dont understand what this script does is wipe more stuff than the standard TWRP recovery or what?
isnt wiping the boot partitions dangerous?
Click to expand...
Click to collapse
In TWRP all the same, except wipe of boot partition. And there is no partition format /data/media in this script.
Boot partition can be flashed into bootloader (fastboot usb) through:
Code:
fastboot flash boot boot.img
or through:
Code:
fastboot oem rebootRUU
fastboot flash zip boot.zip
(If you S-OFF you can put into zip 2 files: boot.img and android-info.txt, if s-on - signed firmware.zip)
or into custom recovery (zip).
It's dangerous to delete HBOOT partition! In this case - bricks. If you erased boot partition then you can enter into bootloader and recovery and restore all things! ...
so are u telling me that yr script is different from wiping in TWRP ?
So yr script dont delete Hboot partition?
Do not worry! :laugh:
This script don't delete Hboot partition!
so its safe to use?
I checked all items of script on myself. All safe. And if someone does not think before to do something, it is always dangerous!
Awesome, been using a wipe script for the galaxy nexus, great to have one for the One, thanks OP!
when i use this script.
checked all options and wipe.. no rom and no kernel on my phone?
flash now a rom without choose fullwipe in aroma..
why all my apps on phone, my own homescreen?
sent from my HTC One powered by ViperOne
Hopie, thank you! Try this version. Super_Wipe_HTC_One_FULL_v1.0.2d.zip - 2.66 MB An updated version in OP.
Молодец, @Golv. Так держать.
Great work! Thanks.
forgot to answer
with new version all ok..
ium think u know it ^^
sent from my HTC One powered by IronByte
works this script on android 5?
Hopie said:
works this scriot on androud 5?
Click to expand...
Click to collapse
Yes.

TWRP not working with encrypted phone memory?

i'm having issues to use TWRP after encrypting the phone memory. I tried the following:
• "TWP-3.0.2-2-E6653.img" is just doing nothing after entering the PIN
• "twrp-3.0.2-0-E6653-20160417.img" shows
○ Unable to mount storage (is this due to no SD present?)
○ After entering the PIN: "Password failed, please try again"
is anyone experiencing the same effect? according to the changelog (https://kernel.andro.plus/kitakami_r2.html) it should work, do you know how to contact the developers?
the phone configuration:
-E6653
-stock rom .253
-the following steps applied (thanks to the other posters, but each post was not working for me at some point, because something was missing. so here is what i did):
references:
http://forum.xda-developers.com/xperia-z5/general/guide-rooting-unlocking-bootloader-t3354307
http://forum.xda-developers.com/xpe...ckup-drm-unlock-rootfor-t3373312#post68988474
1.Download the latest Flashtool
http://www.flashtool.net/downloads.php
2.Download 32.0.A.6.200 or any older build for your Z5.(pay attention to download the right firmware. for example you may have E6633 or E6653)
http://www.xperiablog.net/forum/resources/xperia-z5_e6653_32-0-a-6-152_central-europe-5_generic.477/
3.Flash it and power on your phone.
4.Download Iovyroot and use it to back up your DRM key.(don't forget to enable USB debugging)
http://forum.xda-developers.com/cros...-tool-t3349597
5.Copy your DRM keys to a safe back up.(warning:never try to flash another handsets DRM key or you will hardbrick your phone)
6.Unlock your bootloader now.request keys from here.follow the guide
set in developer options:
OEM Unlocking - Yes
USB Debugging - Yes
http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
7. update to latest firmware via flashtool / xperifirm
E6653_Customized DE_1298-3675_32.2.A.0.253_R3C
(wipe APPS_LOG, USERDATA)
## optional ## encrypt your phone now
8. androplus kernel / twrp
fastboot flash boot boot.img (Z5_AndroPlusKernel_Permissive_v38.zip)
fastboot flash recovery TWP-3.0.2-2-E6653.img
https://kernel.andro.plus/kitakami_r2.html (go to google drive downloads)
9. supersu (not possible because of defective twrp)
start twrp -> install SR1-SuperSU-v2.78-SR1-20160915123031.zip
cheers
anyone? is encryption really not possible?
It is possible.. I had the internal storage encrypted, but I also had serious problems trying to wipe it via TWRP. Somehow I managed to wipe it flashing stock recovery, I couldn't do it with TWRP.
Hi Lionel,
Which Rom and twrp version did you use? I still can't get access to the data with twrp, see above. Could you create backups with your configuration?
How did u manage to remove encryption by flashing it. i have tried and failed. What settings did u use in Flashtools?
lionelbac said:
It is possible.. I had the internal storage encrypted, but I also had serious problems trying to wipe it via TWRP. Somehow I managed to wipe it flashing stock recovery, I couldn't do it with TWRP.
Click to expand...
Click to collapse
inteltecra1700 said:
How did u manage to remove encryption by flashing it. i have tried and failed. What settings did u use in Flashtools?
Click to expand...
Click to collapse
I had to flash kernel and recovery (both stock), then when rebooted, it started to wipe.
My problem started when I tried to make a factory reset from android. Then every time the phone started it went to TWRP, but it couldn't wipe the user data partition.

[NANDROID] Stock 5.0.2 (Lolipop) Android Galaxy Tab 10.1 T530NN

I am making available the Nandroid backup of the Samsung Galaxy Tab 4 10.1 T530NN. I searched the net and did not find this available in any format. I have tested this and it will work if installed properly. This Backup will probably work in other Recovery packages, but has only been tested in TWRP 3.0.0-0. You're welcome to re-install any Recovery you wish afterward.
Instructions:
1) Install TWRP 3.0.0-0 (Use the Matisse variant for the T530NN) and boot directly into Recovery.
2) Backup your current configuration. This process WILL wipe everything!
3) Using Android File Transfer or ADB, upload the folder from the expanded Stock_5.0.2_Nandroid_LRX22G.T530NNUEU1BOJ3.zip file to the folder /TWRP/Backup/<your device's serial number>/ of either the Internal Storage, or SD Card, whichever you did your Backup to in step 2..
4) Select Wipe to wipe the Data, Cache and Dalvik partitions.
5) Still in TWRP Recovery, select Restore to restore the Stock_5.0.2_Nandroid_LRX22G.T530NNUEU1BOJ3 package. This will overwrite Everything! You can probably get by with selecting only the System, but I saved everything to be sure to get a full reset to stock.
6) Reboot into Recovery again to allow TWRP to make adjustments to the System to keep it rooted.
7) Reboot into System. This will take you through the initial setup to activate your Gmail account and such.
8) Install SuperSU from the Play Store to complete the Rooting. If you'd rather render the tablet un-rooted, that option is in SuperSU's Settings.
I hope I posted this correctly. If not, I welcome admins to properly chastise me.

Returning to locked stock on the H918

Before we begin, make sure you have the latest TWRP and superSU installed. OK, on to the steps:
1. Download the OTA zip from here, and the images zip from here.
**IMPORTANT! Use everything but the system image from the OTA, and only the system image from the images zip. **
2. Extract the images and copy them to a micro SD card. (format it to Exfat, the system image is 5.86GB, too big for fat32)
3. In TWRP, install the system, persist, boot, modem and recovery images to the corresponding partitions.
4. Reboot to bootloader.
5. In bootloader, fastboot oem lock.
6. fastboot reboot, and you will be back to locked stock!
Please let me know if you have any issues! ^
cool! Are there any parts of this that would work with the H910 (or even the H996)?
kibmikey1 said:
Before we begin, make sure you have the latest TWRP and superSU installed. OK, on to the steps:
1. Download the OTA zip from here, and the images zip from here.
**IMPORTANT! Use everything but the system image from the OTA, and only the system image from the images zip. **
2. Extract the images and copy them to a micro SD card. (format it to Exfat, the system image is 5.86GB, too big for fat32)
3. In TWRP, install the system, persist, boot, modem and recovery images to the corresponding partitions.
4. Reboot to bootloader.
5. In bootloader, fastboot oem lock.
6. fastboot reboot, and you will be back to locked stock!
Please let me know if you have any issues! ^
Click to expand...
Click to collapse
what's the difference between the system image from the OTA and from the images.zip?
dimm0k said:
what's the difference between the system image from the OTA and from the images.zip?
Click to expand...
Click to collapse
Bump for the answer to this question. I'd like to keep this method of returning to complete stock in my back pocket. Still on software version 10d rooted, suited and booted.
sciencedude100 said:
cool! Are there any parts of this that would work with the H910 (or even the H996)?
Click to expand...
Click to collapse
If you search, I have a back to stock zip for the H910. Just flash it in TWRP and it restores your phone to stock.

[Guide] Step by Step Installation of Android Pie Custom Roms

Step by Step Installation of/Upgrade to Android Pie Custom Roms
Following this guide, you will lose all your data if haven't backed it up yet!!
Also NO USING GSI PIE!!!
Requirements:
- Twrp is already installed.
What you need:
- LineageosTWRP (Attached to thread)
- Custom Rom (can be found here)
- Open Gapps (Pico or Nano)
Only if Root is wanted: Chose either of them
Magisk(Recommended) or SuperSU
- A brain and a body
- The Knowledge that you will wipe your phone by doing this. Be Warned.
Installation:
1. Backup all the files that you have either by copying them to a usb drive ,a micro SD or your computer.
2. Check that all files are copied successfully and can be opened or viewed.
( Some apps have a cloud synchonisation feature, use it if you have it as an option since it is really helpful!)
3. Now, get your preferred rom, gapps and if wanted, your root method ready, also unzip the twrp file aswell.
Copy them to your micro SD.
4. Boot into twrp via adb or by using some app(root needed).
In Twrp, go into wipe option, then select change file system. Change file System to ext4.
4.1 Now use Twrp Reboot-Menu Option to reboot into recovery(twrp) again.
4.2 Wipe system, data, cache and dalvik-cache partitions using the Wipe option
5. Go into Install Option and Press on "Install IMG" , select pietwrp image and flash it. (The name should be lineagerecovery.img or something if downloaded via telegram)
(If you don't have it yet and are in the Lenovo P2 Telegram group, type #pietwrp in chat and make sure to safe it to your download folder. Otherwise it's also attached to this thread.)
6. Reboot back to recovery like you did in step 4.1.
7. Now install your rom and gapps.
8. Wipe cache and then reboot .
9. Setup your phone and Enjoy.
( For Root, reboot to recovery. Flash your Root Method, wipe cache and reboot)
Enjoy and thank your Devs
FAQ
Q: Instructions unclear, phone stuck in bootloop
A: Either do this:
Download this folder and use one of the two ".bat" files. Boot into Bootloader via Volume Down and Power Button. --
It will flash S048 Firmware of our Lenovo P2, after the flash-process is finished it will boot up on its own. Recommended: Do all the ota updates via ota app.
Or: Boot into bootloader, via adb cmd prompt use: fastboot boot lineagerecovery.img , then use reboot menu to reboot into twrp. Clean Wipe phone(Wipe system,data, cache and dalvik-cache Partitions) and try flashing your Rom etc. again.
Q: Instructions unclear, hardbricked my phone!!
A: Thaat shouldn't have happened. Did you screw up somewhere?...
Luckily you backed up your most important files!

Categories

Resources