[Redmi Note 9 Questions & Answers] !zbile:
Am currently using the Redmi Note 9 EEA on version MIUI V12.5.4.0.RJOEUXM. it is ROOTED

I would like to update to the latest firmware without losing data but after research, it seems it not the best option.

i have opted for unrooting it since its the safer option without losing data

When i try to uninstall magisk, I get the following error:

- Flashing restored boot image

blockdev: /dev/block/mmcblk0p34: Permission denied

! Insufficient partition size

Archive: /data/app/~~VJ8daJ24VbUJiPikOrNRTg==/com.topjohnwu.magisk-hOWN-QD-FCuN_J7BQL9lxg==/base.apk
inflating: assets/addon.d.sh
inflating: assets/boot_patch.sh
inflating: assets/bootctl
inflating: assets/chromeos/futility
inflating: assets/chromeos/kernel.keyblock
inflating: assets/chromeos/kernel_data_key.vbprivk
inflating: assets/dexopt/baseline.prof
inflating: assets/dexopt/baseline.profm
inflating: assets/main.jar
inflating: assets/module_installer.sh
inflating: assets/uninstaller.sh
inflating: assets/util_functions.sh
inflating: lib/arm64-v8a/libbusybox.so
inflating: lib/arm64-v8a/libmagisk64.so
inflating: lib/arm64-v8a/libmagiskboot.so
inflating: lib/arm64-v8a/libmagiskinit.so
inflating: lib/arm64-v8a/libmagiskpolicy.so
inflating: lib/armeabi-v7a/libbusybox.so
inflating: lib/armeabi-v7a/libmagisk32.so
inflating: lib/armeabi-v7a/libmagiskboot.so
inflating: lib/armeabi-v7a/libmagiskinit.so
inflating: lib/armeabi-v7a/libmagiskpolicy.so
inflating: lib/x86/libbusybox.so
inflating: lib/x86/libmagisk32.so
inflating: lib/x86/libmagiskboot.so
inflating: lib/x86/libmagiskinit.so
inflating: lib/x86/libmagiskpolicy.so
inflating: lib/x86_64/libbusybox.so
inflating: lib/x86_64/libmagisk64.so
inflating: lib/x86_64/libmagiskboot.so
inflating: lib/x86_64/libmagiskinit.so
inflating: lib/x86_64/libmagiskpolicy.so
*************************
Magisk 25.2 Uninstaller
*************************
- Device is system-as-root
- Target image: /dev/block/mmcblk0p34
Parsing boot image: [/dev/block/mmcblk0p34]
HEADER_VER [2]
KERNEL_SZ [10155446]
RAMDISK_SZ [1294962]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [181267]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2022-01]
PAGESIZE [2048]
NAME []
CMDLINE [bootopt=64S3,32N2,64N2 buildvariant=user]
CHECKSUM [192ce3c704b8c28f2d4d53edfe21ca4aef04c44c000000000000000000000000]
- Device platform: arm64-v8a
KERNEL_DTB_SZ [181203]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
- Unpacking boot image
VBMETA
- Checking ramdisk status
Loading cpio: [ramdisk.cpio]
Loading cpio: [ramdisk.cpio]
Remove [.backup]
Remove [.backup/.magisk]
Remove [overlay.d]
Remove [overlay.d/sbin]
Remove [overlay.d/sbin/magisk32.xz]
Remove [overlay.d/sbin/magisk64.xz]
Remove [.backup/.rmlist]
Move [.backup/init] -> [init]
Dump cpio: [ramdisk.cpio]
Loading cpio: [ramdisk.cpio]
Parsing boot image: [/dev/block/mmcblk0p34]
- Magisk patched image detected
! Boot image backup unavailable
- Restoring ramdisk with internal backup
HEADER_VER [2]
KERNEL_SZ [10155446]
RAMDISK_SZ [1294962]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [181267]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2022-01]
PAGESIZE [2048]
NAME []
CMDLINE [bootopt=64S3,32N2,64N2 buildvariant=user]
CHECKSUM [192ce3c704b8c28f2d4d53edfe21ca4aef04c44c000000000000000000000000]
KERNEL_DTB_SZ [181203]
KERNEL_FMT [gzip]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [new-boot.img]
HEADER_VER [2]
KERNEL_SZ [10155446]
RAMDISK_SZ [786693]
SECOND_SZ [0]
RECOV_DTBO_SZ [0]
DTB_SZ [181267]
OS_VERSION [11.0.0]
OS_PATCH_LEVEL [2022-01]
PAGESIZE [2048]
NAME []
CMDLINE [bootopt=64S3,32N2,64N2 buildvariant=user]
CHECKSUM [23c6164a94df8b795b1958f52d5cd30aa3ecbbe8000000000000000000000000]
- Flashing restored boot image
blockdev: /dev/block/mmcblk0p34: Permission denied
! Insufficient partition size