[ASUS ZenFone 7 / 7 Pro Questions & Answers] SaburoSiro:
The main partition cannot be mounted because the main partition is not rewritable.

The procedure for making it rewritable is as follows.

However, a Linux environment is required for the PC.

<Caution>​

Please do so at your own risk.​

The author does not take any responsibility for the implementation of the contents of this article.​

If you make a mistake, at worst case, the RAM DUMP screen will appear,​

but please forcibly turn off the power by pressing and holding the power button and the volume down button .​

After that, it is almost recoverable by installing Raw firmware.​

<Index>​

0. Preparation

1. Initialize all partitions once with Raw firmware

2. Update the firmware

3. Install TWRP

4. Make the Active / Inactive Slot partition writable

5. Preparation for coexistence of Stock rom and TWRP

6. Install Custom Rom

<Milestone>​

Performed at Slot A:

(Case 1) Install stock ROM on slot B. Then install trwp on Slot A / B by script

or

(Case 2) Install custom ROM. Before doing this, it is imperative to carry out the process described above.

(Caution) After performing cases 1 and 2, say "yes" in "Format Data" before restarting the system.

Enter "data" to enable wipe and "Dalvik / ART Cache" and "Data" must be wiped

Performed in Slot B: Install Magisk zip

(Note) If your goal is to install the Magisk zip, don't do the above wipe work

<Detail>​

0. Preparation

​

0-0. Device​

That Boot Loader has been unlocked is mandatory.

0-1. Raw Firmware​

DL destination: https://androidfilehost.com/?w=search&s=ZS670KS

Storage location: Any location on your PC in a Linux environment

Executable file: dl_multiple_update_image.sh

Rewrite the code as necessary because it is necessary to implement with administrator privileges

Before rewriting: sudo ./fastboot
After rewriting: sudo $(which fastboot)

0-2. Stock ROM​

DL destination: https://www.asus.com/tw/Mobile/Phones/ZenFone/ZenFone-7/HelpDesk_BIOS/

Search for WW-30.41.69.112 and get UL-I002D-WW-30.41.69.112-user.zip

Storage location: Root directory of the device's external SD Card

0-3. TWRP​

DL destination: https://twrp.me/asus/zenfone7.html

File name to DL: twrp-3.5.2_10-0-I002D.img

I don't personally recommend it because TWRP 3.6.0 and 3.6.1 often don't work.

Storage location: Any location on your PC in a Linux environment

0-4. Script that makes the following partitions rewritable​

Reference thread: https://xdaforums.com/t/script-andr...ring-makerw-read-write.4247311/#post-84658055

Search word: "Download v1.32 mirror"

systemrw_1.32_flashable.zip

0-5. Script to write TWRP to Slot A/B​

Reference thread: https://xdaforums.com/t/recovery-official-twrp-for-asus-zenfone-7-series.4161719/#post-83480425

File name to DL: TWRP_Flash_to_opposite_Slot-CPTBv2.zip

Storage location: Any directory on the device's external SD Card

1. Initialize all partitions once with Raw firmware

​

1-0. Purpose​

Restore the device partition to the initial state.

1-1. Advance preparation​

Press and hold the power and the upper side of volume, to put the device in bootloader mode.

Connect the device and PC with a USB cable.

1-2. Implementation method​

1.2-1. Partition initialization

Run dl_multiple_update_image.sh

1-2-2. Start

Press the power button to activate it. Only Wifi settings are required after startup,

Finish the entire wizard process. (Basically all can be skipped)

2. Update the firmware

​

2-0. Purpose​

This section describes how to update the Firmware immediately after initializing with Raw Firmware.

Note that it is different from the Firmware update method before custom ROM rewriting (explanation will be described later).

2-1. Select update file​

The update launcher will start, so select UL-I002D-WW-30.41.69.112-user and tap OK.

2-2. System update started​

Wait for the system update to complete. Reboot.

2-3. Post-processing​

After confirming that it started normally, turn off the power of the device.

3. Install TWRP

​

3-0. Purpose​

Explain how to install TWRP

3-1. Advance preparation​

Press and hold the power and the upper side of volume, to put the device in bootloader mode.

Connect the device and PC with a USB cable.

3-2. Implementation method​

Open a terminal in the directory where you saved the TWRP zip file and open it.

Execute the code below to install TWRP on both Slot A/B.

$ sudo $(which fastboot) flash recovery_b ./twrp-3.5.2_10-0-I002D.img
$ sudo $(which fastboot) flash recovery_a ./twrp-3.5.2_10-0-I002D.img

3-3. Start TWRP​

When you press the volume button on your device. The display circulates as shown below

"START"-> "Restart bootloader"-> "Recovery mode"-> "Power off"-> "START"

Press the power button when "Recovery mode" is displayed.

4. Make the Active / Inactive Slot partition writable

​

4-0. Purpose​

Allow partition rewriting when custom ROM is installed

4-1. Implementation method​

4-1-1. Treatment of Slot B

4-1-1-0. Preparation

Tap Wipe from TWRP's home screen

Tap "Format Data". After entering "yes", tap the check mark

Tap Wipe from TWRP's home screen.

Tap "Advanced Wipe".

Select "Dalvik / ART Cache" and "Data" and slide "Swipe to wipe"

4-1-1-1. Partition mounting

Tap Mount from TWRP's home screen

Select below

System
system_ext (only for <-Slot B)
Product
Vendor
ODM

By the way, the following has already been selected
Data
Micro SD card
Firmware Firmware.

4-1-1-2. Applying the Zip file

Tap Install from TWRP's home screen.

Switch to Micro SD card.

Select systemrw_1.32_flashable.zip

Slide "Swipe to confirm Flash"

4-1-1-3. Result confirmation

Leave the device for a while and check if it finishes without error

4-1-2. Treatment of Slot A

Tap Reboot from TWRP's home screen.

If you tap "Recovery" after tapping "Slot A", twrp will recurse and Active Slot will switch to A.

Basically the same as 4-1-1, but system_ext cannot be selected when mounting a partition

4-2-3. Precautions

Do not normally start the device before performing item 5 below.

5. Preparation for coexistence of Stock rom and TWRP

​

5-0. Purpose​

Explain how to make Stock rom and TWRP coexist.

By the way, in this chapter 5, Active Slot must be A.

After installing Stock rom (or Custom Rom), switch to Slot B and start it.

In addition, Slot at the time of installation such as Magisk must remain Slot B.

5-1. Advance preparation​

Tap Reboot from TWRP's home screen. Check if the display is as follows.

Current Slot: A

5-3. Implementation details​

Tap Install from TWRP's home screen.

Select UL-I002D-WW-30.41.69.112-user.zip in the root directory of the device's external SD Card

Tap "Add more Zips" and select TWRP_Flash_to_opposite_Slot-CPTBv2.zip

Slide "Swipe to confirm Flash"

5-4. Preparation before booting the device​

5-4-1. Switch Slot A to B

Tap Reboot from TWRP's home screen.

If you tap "Recovery" after tapping "Slot B", twrp will recurse and Active Slot will switch to B.

By the way, if you execute the wipe explained below without switching Slot A to B, it will be returned to the state immediately after the end of Chapter 1, so be careful.

5-4-2. Pretreatment in Slot B

Tap Wipe from TWRP's home screen

Tap "Format Data". After entering "yes", tap "Check mark"

Tap Wipe from TWRP's home screen.

Tap "Advanced Wipe".

Select "Dalvik / ART Cache" and "Data" and slide "Swipe to wipe"

5-4-3. Device startup

Tap Reboot from TWRP's home screen.

Tap "System"

​

5-5. Device startup confirmation​

Check if it started normally. Just check if "WELCOME" is displayed.

5-6. Check if TWRP can be started​

Turn off the device. Refer to "3.3 Starting TWRP".

​

6. Install Custom Rom

​

After performing all of Chapter 5 each time you switch the ROM type, perform the following.

6-0. Preparation

Tap Reboot from TWRP's home screen. Check if the display is as follows.

Current Slot: A

6-1. Implementation details in Slot A​

Tap Install from TWRP's home screen.

Select (Custom Rom name) .zip in the root directory of the device's external SD Card

Slide "Swipe to confirm Flash"

( At this time, do not reboot as "system," because If reboot t as "system" without conducting the process explaining at 6-2, unfortunately device will reboot as "recovery"...)

​

6-2. Pretreatment in Slot B ​

Tap Reboot from TWRP's home screen.

Tap "Slot B" and Tap "Recovery"

After that device will reboot by twrp...

Tap Reboot from TWRP's home screen. Check if the display is as follows.

Current Slot: B

Tap Wipe from TWRP's home screen

Tap "Format Data". After entering "yes", tap "Check mark"

Tap Wipe from TWRP's home screen.

Tap "Advanced Wipe".

Select "Dalvik / ART Cache" and "Data" and slide "Swipe to wipe"

6-3. Device startup​

Tap Reboot from TWRP's home screen.

Tap "System"

​

6-4. Case that installing the different custom rom ​

To install the different custom rom, conduct below again

" 5. Preparation for coexistence of Stock rom and TWRP"

7. Install Magisk

​

7-0. Preparation​

Tap Reboot from TWRP's home screen. Check if the display is as follows.

Current Slot: B

7-1. Implementation details​

Same as 6-1.

If you like this post, please like it