Cannot Install Magisk - twrp unmount of system failed resource busy - Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti

Hello
Can anyone suggest some help, I cannot install magisk on my z3c tablet
I used this guide to install twrp, rooted 6.0.1
https://forum.xda-developers.com/z3...torial-stock-android-marshmallow-6-0-t3409486
I backed up my DRM keys and then proceeded to unlock the bootloader.
Then I used full unroot inside SuperSu
I constructed the magisk flash file using Boot Bridge for Sony ELF
when I boot into twrp and try to flash the magisk file I get the following
Code:
Magisk v14.0 Installer
**********************
- Mounting /system, /vendor, /cache, /data
- Device platform: arm
- Constructing environment
- Found Boot Image: /dev/block/mmcblk0p14
- Unpacking boot image
- Checking ramdisk status
- Magisk patched image detected!
- Ramdisk restored from internal backup
- Patching ramdisk
- Repacking boot image
- Flashing new boot image
- Unmounting partitions
- Done
- Restoring the boot bridge...
- Cleaning temporary files...
installation completed!
script succeeded: result was [ ]
Updating partition details...
Failed to mount '/system' (Device or resource busy)
...done
Magisk manager is saying that Magisk is not installed, so I guess the above failed to mount system is the problem ??
Any suggestions on what to try
Thanks
S8utt

s8utt said:
Hello
Can anyone suggest some help, I cannot install magisk on my z3c tablet
I used this guide to install twrp, rooted 6.0.1
https://forum.xda-developers.com/z3...torial-stock-android-marshmallow-6-0-t3409486
I backed up my DRM keys and then proceeded to unlock the bootloader.
Then I used full unroot inside SuperSu
I constructed the magisk flash file using Boot Bridge for Sony ELF
when I boot into twrp and try to flash the magisk file I get the following
Code:
Magisk v14.0 Installer
**********************
- Mounting /system, /vendor, /cache, /data
- Device platform: arm
- Constructing environment
- Found Boot Image: /dev/block/mmcblk0p14
- Unpacking boot image
- Checking ramdisk status
- Magisk patched image detected!
- Ramdisk restored from internal backup
- Patching ramdisk
- Repacking boot image
- Flashing new boot image
- Unmounting partitions
- Done
- Restoring the boot bridge...
- Cleaning temporary files...
installation completed!
script succeeded: result was [ ]
Updating partition details...
Failed to mount '/system' (Device or resource busy)
...done
Magisk manager is saying that Magisk is not installed, so I guess the above failed to mount system is the problem ??
Any suggestions on what to try
Thanks
S8utt
Click to expand...
Click to collapse
Hey mind did you get this working?

Nope

I have a similar problem the workaround is to wipe system cache a dalvik then flash rom gapps and magisk. However this loses data. I will try uninstalling magisk before installing builds.

Related

[Help me!] Internal sd can't mount, unable to flash new rom via adb sideload

Couple months ago, I tried to flash Android 6.0 on my S2 i9100 but it only recognized the first partition (2gb ) but the rest 14gb no. [ Sure, I did wipe cache partition, dalvik cache, data ]
So, I did some format with adb shell ( I deleted FactoryFS, Data, UMS partitions and change the format type to Fat32) and copied to internal storage. When I install it ( it takes like 3-5 minutes) and get this error
|Warning: No file_contextsdetected filesysstem ext4 for /dev/block/mmcblk0p9
| mount: failed to mount /dev/block/mmcblk0p9 at /system: Device or resource busy
| detected filesystem ext4 for /dev/block/mmcblk0p9 It stuck here for a while
ApplyParsedPerms: lsetfilecon of /system/lost+found to ubject_r: system_file: s0 failed: Operation on not supported on transport endpoint
set_metadata_recursive: some changes failed
E: Error in /emmc/cm12.... (status 7)
Installation aborted
press any key to continue.
After that, I tried again with Odin, I used Stock PIT and 12gb PIT ver to install Rom, still get the error above. Even when I use Odin to flash new Rom, Odin get stopped working.
[ I have tried many versions of CWM, Philz, TWRP,... but still Can't mount /sdcard ]
So how can I fix this problem?
Thanks for reading and helping me. Also sorry for my bad English.

phone works but unable to flash zip after upgrading recovery to TWRP 3.2.1-1

Hello All,
I have a problem where TWRP is not able to mount /data, although the device still works without any other problems. It has happened when i upgrade the TWRP recovery from 3.2.1-0 to 3.2.1-1
This is preventing me to install Magis modules unfortunately.
I have a OOS Open BETA 1 for the Oneplus 5T.
Here's the log:
Code:
[COLOR="Red"]Could not mount /data and unable to find crypto footer.
Failed to mount '/data' (No such device)
Unable to recreate /data/media folder.[/COLOR]
Updating partition details...
[COLOR="red"]Failed to mount '/data' (No such device)
Failed to mount '/preload' (Invalid argument)[/COLOR]
...done
Full SELinux support is present.

[Help] I can not flashing Magisk on TWRP (ERROR: 1)

==> I using:
- Xiaomi Redmi Note 4 (mido)
- Custom Rom (Resurrection Remix v6.10)
- Android 8.1
==> I can not flashing Magisk on TWRP 3.2.2.0. Error details are:
******************************
* Magisk v16.0 installer
******************************
- Mounting /system, /vendor
! Cannot mount /vendor
- Unmounting partitions
Update process ended with ERROR: 1
Error installing zip file '/sdcard/Magisk-v16.0.zip'
Updating patition details...
...done
==> I have flashed file boot.img and flash Magisk-v16.0.zip again but failed.
I do not know what to do next. Please everyone help me!
Thank you Everyone!!!:fingers-crossed::laugh:

Alcatel/Vodafone VFD720 dm-verity disable

Hi!
This phone has separate system and vendor partitions which are verified with dm-verity. I want to add Polish strings to apks/framework.
So I tried to disable veryfying of vendor and system partition (by editing fstab in boot.img), but there's only fstab.enableswap file available, which doesn't contain system/vendor mountpoints.
Later I found fstab.mt6739 on the vendor image, in /etc, and it had the desirable mounts. But after removing 'verify' flag, the phone still keeps restarting on android logo (only if system was modified).
I've also noticed, that changing anything in vendor image doesn't take effect (tried removing vodafone apps, changing strings in an apk). Is it possible that vendor partition is somehow bypassed? Is there an other way to disable dm-verity?
PS I'm flashing the firmware using NCK box.
Hi
flash the stock Boot.img ,flash it to the recovery partition. using SP flash tools
It allows to boot to the system os with recovery editing permissions
Boot into recovery mode
Hold power + volume up on boot
Adb push fstab.mt6739 /sdcard/
adb Shell
su
mount -o rw,remount /system
mount -o rw,remount /vendor
cp /sdcard/fstab.mt6739 /vendor/etc/
chmod 644 /vendor/etc/fstab.mt6739
Flash back the stock recovery when your finished

[HELP] TWRP on MT6771V/CT Android 9 (Pie)

Hello, I have Blackview BV9800Pro with MT6771V/CT and Stock Android Pie and Magisk roots + Riru ckre and edXposed. I need TWRP so I could easily backup and restore system at any time. I test EdXposed and Magisk modules and it is PAIN to do factory reset if something fails cause this is my only smartphone. I tried different twrp already, but it didn't worked. Unofficial twrp contact form on website does not work (gives error). Can You help me guys, please? PLEASE!!
this one works for me (at mega)
#!GWwXDKjC!vPERdlfIiP-hylz3R7SEcU105PGAP4oi0QC3FtNWsyU
from the hovatek forum (32580)
the only problem is that, like said on that forum, it won't decrypt the user partition. Someone on there says to use the Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip
to disable encryption, but another poster says that it disables the phone, no touch, no mouse, etc. I have the same issue. I'd like to be able to decrypt with TWRP or turn off encryption. Then ill be able to make backups of the user partition. Anyone have any ideas?
tecs.ottawa said:
this one works for me (at mega)
#!GWwXDKjC!vPERdlfIiP-hylz3R7SEcU105PGAP4oi0QC3FtNWsyU
from the hovatek forum (32580)
the only problem is that, like said on that forum, it won't decrypt the user partition. Someone on there says to use the Disable_Dm-Verity_ForceEncrypt_03.04.2020.zip
to disable encryption, but another poster says that it disables the phone, no touch, no mouse, etc. I have the same issue. I'd like to be able to decrypt with TWRP or turn off encryption. Then ill be able to make backups of the user partition. Anyone have any ideas?
Click to expand...
Click to collapse
that TWRP looks fine to me, the one who did this was expert. the display driver is hex patched against getbootmode in order to get touch screen working. some user reported that TWRP is asking for password, that indicates to me encryption is supported (/etc/recovery.fstab has entry for full-disk encryption with metadata partition). furthermore this TWRP build is signed with AVBv1 signature that mean it passes Verified Boot and is flashable even on locked bootloader
have you seen Method 3 for disabling dm-verity by disabling AVB with dummy vbmeta?
Code:
fastboot --disable-verity -disable-verification flash vbmeta vbmeta.img
also it seems like you can do it with Method 2 patching boot.img with Magisk Manager, the only discrepancy i recommend on step 4. to keep the checkbox for preserve force encryption enabled, then patch it manually in fstab against force encryption by changing the flag from forceencrypt= into encryptable=
if this device has fstab in boot.img then you can use Android.Image.Kitchen.v3.7-Win32.zip for unpack/repack boot.img and do the change in ramdisk/fstab.mt6771 with Notepad++
otherwise fstab is located /system_root/system/vendor/etc/fstab.mt6771 you can use adb pull in TWRP recovery, modify the file, and adb push it back
Code:
adb pull /vendor/etc/fstab.mt6771
adb push fstab.mt6771 /tmp
adb shell
cat /tmp/fstab.mt6771 > /vendor/etc/fstab.mt6771
or do it directly with sed
Code:
adb shell
sed -r ',s,(^/[^[:space:]]+[[:space:]]+/data[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]*)force[def]+[cno]+r[befpty]{3}=([^[:space:]]+),\1encryptable=\2,' /vendor/etc/fstab.mt6771 > /tmp/fstab.mt6771
cat /tmp/fstab.mt6771 > /vendor/etc/fstab.mt6771
of course vendor must be mounted. cat is recommended to preserve file permissions
But, before modifying vendor, make sure AVB is disabled (flash empty vbmeta.img)
I tried method 1:
it just stalled on the first splash screen when turned on.
for method 3:
i looked in the root and there's no vmbeta folder (vendor is the last one)
for method 2:
i tried it and it has the same issue as when i use the disabler, no touch. i made the boot img in magisk with the force encryption unchecked and the verity checked. i unpacked the boot img but there was no fstab in it. i found the one on the phone but it already had "encryptable=", here is the main section:
/dev/block/platform/bootdevice/by-name/system / ext4 ro wait,recoveryonly
/dev/block/platform/bootdevice/by-name/vendor /vendor ext4 ro wait,recoveryonly
/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,formattable,quota,resize,reservedsize=128m,=/dev/block/platform/bootdevice/by-name/metadata
/dev/block/platform/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable
/dev/block/platform/bootdevice/by-name/protect1 /mnt/vendor/protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/bootdevice/by-name/protect2 /mnt/vendor/protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/bootdevice/by-name/nvdata /mnt/vendor/nvdata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable
/dev/block/platform/bootdevice/by-name/nvcfg /mnt/vendor/nvcfg ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/dev/block/platform/bootdevice/by-name/apd /mnt/vendor/apd ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable
/devices/platform/externdevice* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
when i flashed back the magisk boot img that doesnt have the custom settings, it booted OK, but then twrp cant access the userdata again.
please read more careful
method 2
force encryption checked and the verity unchecked
i can see your fstab is broken already, there is no forceencrypt= forcefdeorfbe= or encryptable= flag (it's gone) furthermore this is not the only file otherwise it wouldn't encrypt again
method 3
flashing vbmeta is required. please download dummy vbmeta and flash it from fastboot
in TWRP you can list partitions with
Code:
ls -d $(find /dev/block -name by-name)/*
don't flash magisk zip this will affect encryption. patch fstab manually in the respective line for /data in the flags in 5th column
Code:
/dev/block/platform/bootdevice/by-name/userdata /data ext4
noatime,nosuid,nodev,noauto_da_alloc,errors=panic
wait,check,formattable,quota,resize,reservedsize=128m,encryptable=/dev/block/platform/bootdevice/by-name/metadata
which fstab is it? maybe there is another one in nvdata? at least, it is the only explanation i have why device encryptes anyway..
i am not sure why TWRP does not work for you, please provide recovery.log
edit: btw i wonder why magisk only boot with dm-verity enabled.. are you sure you have unlocked bootloader?
sorry about that, i was really tired. that is what i had. under advanced settings in magisk manager: preserve force encryption (checked), preserve AVB 2.0/dm-verity (unchecked), recovery mode (unchecked)
I just typed it wrong in my message
I didn't modify that fstab actually. So unless the disabler did it, that is the original one. I tried to unpack the vendor.img from the stock rom to see if that fstab is the same, but that image kitchen .bat threw an error.
i've added "encryptable" after "reservedsize=128m,". i then flashed the magisk boot.img and replaced the fstab using cat with the new one by copying it to /tmp/ and then running cat /tmp/fstab.mt6771 > /vendor/etc/fstab.mt6771
there is also an fstab in nvdata, that one says:
/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,formattable,quota,resize,reservedsize=128m,forcefdeorfbe=/dev/block/platform/bootdevice/by-name/metadata
i edited that one : replaced forcefdeorfbe with encryptable and replaced the file in the same way as the other.
after rebooting with the 2 fstab files with "encryptable" and the custom magisk boot.img (that had no touch before), it works!
i guess that second nvdata fstab was the one we needed to edit or the regular one had been broken somehow and fixing it was the thing. im guessing it was the nvdata one.
now the phone says its unencrypted and twrp can backup the userpartition.
thank you so much

Categories

Resources