Join us on Tl   Wh

Hovatek Forum DEVELOPMENT Android [Please help] How to mount a system partition in TWRP Recovery for SONY Xperia 1 II?

[Please help] How to mount a system partition in TWRP Recovery for SONY Xperia 1 II?

[Please help] How to mount a system partition in TWRP Recovery for SONY Xperia 1 II?

Mira-7
Mira-7
Mira-7
Newbie
4
11-01-2025, 06:10 PM
#1



How to mount a system partition in TWRP Recovery for SONY Xperia 1 II?
 
Hi, I'm solving a problem with the unofficial TWRP for SONY Xperia 1 II.

In my old SONY Xperia Z3 (D6603) phone, I was able to back up: whole system+data+cache+trim area+kernel image.

I don't know how it is in the new phone: "SONY Xperia 1 II", but in TWRP (Unofficial) there is no option to back up and delete the system partition.

Using the tool: "Android Image Kitchen 3.8" from the XDA forum, I unzipped the file: "recovery.img" (the file of the unofficial TWRP) and got to the file: "ramdisk\system\etc\recovery.fstab".

I need to make an adjustment here (mount system partition), but I don't know exactly how and if this file is written correctly against the SONY XPeria 1 II (XQ-AT52) phone.
 
I need to delete, backup and restore the entire Android operating system to image files.
 
Please give me any help or advice. Thank you...
 
File: "recovery.fstab" attached as an attachment.

Tech info: Unofficial TWRP is designed for Android v. 11. In my case: Firmware: ( 58.1.A.5.530-R3B (Service Exchange Unit).
 
Download link (this version of TWRP):
Code:

https://github.com/shinyquagsire23/twrp_sony_pdx203/releases/


Note: I'm not a programmer, but I can make basic modifications to commands.

Pictures of TWRP problem:
Code:

https://i.postimg.cc/374xmL9j/IMG-5170u.jpg
https://i.postimg.cc/rcBFJSYB/IMG-5171u.jpg
https://i.postimg.cc/0P75HbTb/IMG-5173u.jpg
https://i.postimg.cc/6WS6FR6G/IMG-5178u.jpg
https://i.postimg.cc/pv1d9NQX/Official-TWRP-Vs-Unofficial.jpg
https://i.postimg.cc/yBtWGqWr/recovery-fstab-PIC.png


Download recovery.fstab file for edit :
Code:

https://www.mediafire.com/file/zbuxinfajzl9jif/recovery.fstab/file
This post was last modified: 11-01-2025, 06:20 PM by Mira-7.
Mira-7
Mira-7
Mira-7
Newbie
4
16-01-2025, 09:24 PM
#2
Solved!
I found a working unofficial "TWRP Recovery" version for the SONY Xperia 1 II :-).

twrp-3.7.1_12.1-pdx203-UNOFFICAL-240721.img
Code:

https://sourceforge.net/projects/homosenpai/files/Recovery/TWRP/
kelvinchinedu
kelvinchinedu
kelvinchinedu
Contributor
1,491
18-01-2025, 09:00 PM
#3
Edith twrp.flags
kelvinchinedu
kelvinchinedu
kelvinchinedu
Contributor
1,491
18-01-2025, 09:08 PM
#4
Add this to twrp.flags found inside ramdisk/system/etc/



/super emmc /dev/block/platform/bootdevice/by-name/super flags=backup=1;display="Super_image";flashimg=1;wipeingui=1
/system_image emmc /dev/block/mapper/system flags=backup=1;flashimg=1;display="System Image";wipeingui=1;slotselect
/system ext4 /dev/block/mapper/system
/vendor_image emmc /dev/block/mapper/vendor flags=backup=1;flashimg=1;display="Vendor Image";wipeingui=1;slotselect
/vendor ext4 /dev/block/mapper/vendor
/product_image emmc /dev/block/mapper/product flags=backup=1;flashimg=1;display="Product Image";wipeingui=1;slotselect
/product ext4 /dev/block/mapper/product
/system_ext_image emmc /dev/block/mapper/system_ext flags=backup=1;flashimg=1;display="System_ext Image";wipeingui=1;slotselect
/system_ext ext4 /dev/block/mapper/system_ext
kelvinchinedu
kelvinchinedu
kelvinchinedu
Contributor
1,491
18-01-2025, 09:09 PM
#5



If using mtk use dev/block/emmc/boot-name
Mira-7
Mira-7
Mira-7
Newbie
4
Yesterday, 01:42 PM
#6
Quote:
(18-01-2025, 09:08 PM)kelvinchinedu Add this to twrp.flags found inside ramdisk/system/etc/
/super          emmc    /dev/block/platform/bootdevice/by-name/super            flags=backup=1;display="Super_image";flashimg=1;wipeingui=1
/system_image     emmc  /dev/block/mapper/system                flags=backup=1;flashimg=1;display="System Image";wipeingui=1;slotselect
/system        ext4     /dev/block/mapper/system
/vendor_image     emmc  /dev/block/mapper/vendor                flags=backup=1;flashimg=1;display="Vendor Image";wipeingui=1;slotselect
/vendor              ext4      /dev/block/mapper/vendor
/product_image     emmc  /dev/block/mapper/product              flags=backup=1;flashimg=1;display="Product Image";wipeingui=1;slotselect
/product            ext4      /dev/block/mapper/product
/system_ext_image     emmc  /dev/block/mapper/system_ext              flags=backup=1;flashimg=1;display="System_ext Image";wipeingui=1;slotselect
/system_ext            ext4      /dev/block/mapper/system_ext


Does this modification also apply to the new TWRP (version 3.7.1), as I wrote above?

twrp-3.7.1_12.1-pdx203-UNOFFICAL-240721.img

Because there is already a system partition for backup in the new TWRP, but there is no one for wipe, see the photo below.

Pictures:
Code:

https://postimg.cc/fSxtxpVM
https://postimg.cc/YLcLLMqX
https://postimg.cc/kD8b36fL

File: "twrp.flags" from package: "twrp-3.7.1_12.1-pdx203-UNOFFICAL-240721.img"

Download file:
Code:

https://www.mediafire.com/file/3vafhrxzwf4spdr/twrp.flags/file


Original path: \ramdisk\system\etc\twrp.flags

Thank you...
kelvinchinedu
kelvinchinedu
kelvinchinedu
Contributor
1,491
10 hours ago
#7
Yes it does ,just add the line and u will have options to wipe vendor , systems,product and so on2
Mira-7
Mira-7
Mira-7
Newbie
4
8 hours ago
#8
(10 hours ago)kelvinchinedu Yes it does ,just add the line and u will have options to wipe vendor , systems,product and so on2

I don't know if I did everything right, but TWRP reports an error. See, picture.

Code:

https://postimg.cc/sMxd44bW
https://postimg.cc/LgBk57SZ

Or should I completely replace the original commands with new commands?

Thanks...
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
Join us
WhTlYt