Bricked realme x2 pro (TWRP - unlocked) partition problem? - Realme X2 Pro Questions & Answers

Hi. This afternoon I tried to install the dirty unicorn rom. Unlock bootloader and flashed TWRP successfully. Then I tried to flash "Pie Firmware & Vendor" because it had realmeUI no ColorOs. The problem is that now I can not do anything with the mobile. It starts directly in TWRP. I have tried to flash a stock rom (CN) but it doesn't work. I think it is a problem with the partitions, for example if I try to clean cache / dalvik etc I receive these messages.
- Failed to mount '/data'
-Falied to wipe dalvik.
I have read many threads, but I cannot find a solution.
I saw this video,- [FIXED] Unable to mount /data or /system error- on youtube (sorry, i cant post URL yet) where even if it is another phone, it presents the same problem as me, but when I try to repair data I receive a failure (Error 8, unable to repair data) and I don't know what else I can do.
I hope you can help me .
Thank you!

in twrp to return to stock:
flash realme ozip
flash vbmeta.img to vbmeta
format data
reboot

perisman said:
in twrp to return to stock:
flash realme ozip
flash vbmeta.img to vbmeta
format data
reboot
Click to expand...
Click to collapse
Hi,I cannot pass files from my pc to the device, when I connect it, it is detected but it does not allow me to insert any rom.
Any other way to pass it?

Hi. I have managed to solve the problem that I had when wipe. I have changed "Data" format first to FAT and then back to EXT4.
But I still can't get past TWRP. Now if I try to start the TWRP system, it says that there is no OS installed.
Tried to flash ozip using SIDELOAD, but it gives me an error. I can flash dirty unicorns this way (for example), which also doesn't fix anything.

perisman said:
in twrp to return to stock:
flash realme ozip
flash vbmeta.img to vbmeta
format data
reboot
Click to expand...
Click to collapse
Hi. ok, after a whole afternoon struggling, i have found that i cannot flash .ozip from twrp, so i have transformed a rom .ozip into .zip. I have tried to flash using SIDELOAD but it gives me an error. I have tried to flash D.U rom the same way and there has been no error but it still gets caught on the loading screen. I don't know how to flash the realme rom, I can't fix anything, I'm really desperate
THANKS

What twrp are you using?
mauronofrio's last version -13 , orangefox R 10.1 and skyhawk 2.2 can decrypt and flash ozips.
Try also to put files to flash in a usb memory, change storage in twrp mount option and try to flash from usb.
If you flash aosp rom, try aosip 10, and used it and works well. and after flash it format data.
---------- Post added at 11:26 PM ---------- Previous post was at 11:10 PM ----------
you can try also to flash aoisp with whole process
firmware and vendor zip first
rom
volte fix
gapps
format data
reboot
---------- Post added at 11:34 PM ---------- Previous post was at 11:26 PM ----------
If you can go to fastboot from twrp reboot menu
try this
https://forum.xda-developers.com/re...ock-fastboot-flashable-images-realme-t4003107

perisman said:
What twrp are you using?
mauronofrio's last version -13 , orangefox R 10.1 and skyhawk 2.2 can decrypt and flash ozips.
Try also to put files to flash in a usb memory, change storage in twrp mount option and try to flash from usb.
If you flash aosp rom, try aosip 10, and used it and works well. and after flash it format data.
---------- Post added at 11:26 PM ---------- Previous post was at 11:10 PM ----------
you can try also to flash aoisp with whole process
firmware and vendor zip first
rom
volte fix
gapps
format data
reboot
---------- Post added at 11:34 PM ---------- Previous post was at 11:26 PM ----------
If you can go to fastboot from twrp reboot menu
try this
https://forum.xda-developers.com/re...ock-fastboot-flashable-images-realme-t4003107
Click to expand...
Click to collapse
Hello, I just installed TWRP v13 and wipe everything (data, system, vendor ...).
I have tried to install rom stock by fastboot but still it doesn't fix anything.
I have also tried to install AOSP by slideload and nothing is solved either. I have to buy a usb adapter this afternoon, to connect and test it this way, but for the moment, I still have no solution. Thank you, I will keep reporting!

I definitely don't know what to do. Change TWRP for Orange fox, and I have tried to install a stock rom, I have tried downloading the latest official rom from here (Realme UI), https://www.realme.com/cn/support/software-update, but when flashing it gives me an error "Update process ended with error: 7. Are you installing onto the correct device?" (I'm sure I'm downloading the proper CN version).
I have tried to flash a previous rom that I downloaded from here (color OS 6.1) https://www.xda-developers.com/andr...2-pro-android-software-update-download-links/ and it seems to be successful, but it gives two failures at the end
1. Failed to mount / dev / block / bootdevice / by-name / userdata at / data: Device or resource busy.
2.Failed to unmount / data: device or resource busy.
The phone is locked in the startup image.

i am facing the same problem
twrp 3.4 is no longer able to unlock partition,
is there any solution
what to do ?

i have the same problem. i bricked my device and stuck at twrp.. every time i try to flash the latest official update from realme i get this error : Failed to mount / dev / block / bootdevice / by-name / userdata at / data: Device or resource busy."
i dont know how to fix it.. my bootloader is unlock.
i am stuck on bootloop and twrp.. any ideas how to fix it?

I have two ways that probably will fix your issues .
The first one is much more faster and I recommend you to try it first .
Boot into bootloder mode (fastboot mode)
Open cmd and type fastboot -w .(THIS WILL WIPE YOU INTERNAL STORAGE )
boot to recovery .
Wipe cache, dalvik-cache,system,data .
Format data .
Reboot to recovery (Use the recovery boot option, choose recovery) it will ask you if you sure to reboot as no rom is installed ,swipe yes,or something similar.
Flash ozip if you are on OrangeFox or unofficial twrp ,if you on official twrp that does not support ozip , you must use a zip stock rom .
Format data .(if have a error reboot into recovery and then format data again)
Boot to the rom .
If it does not solve you issue I recommend to flash stock rom with fastboot commends .
You can find the files needed in this thread https://forum.xda-developers.com/re...ock-fastboot-flashable-images-realme-t4003107 .
Choose the files for you phone version EU,IN,CN .
This is a color os and not realme ui . You can make your own realme ui version but this will work just fine .You can flash after a realme ui version ozip on recovery .
Open cmd on the folder of the download files .
Write without the quote mark and press enter "fastboot -w && fastboot erase system && fastboot flash boot boot.img && fastboot flash vbmeta vbmeta.img && fastboot flash dtbo dtbo.img && fastboot flash system system.img && fastboot reboot"
After this your phone should boot into color os version.
If you need help please write and I try to help you .
JUST DO NOT TRY TO RELOCK YOUR BOOTLODER, THIS WILL BRICK YOU PHONE .

unknownart said:
i have the same problem. i bricked my device and stuck at twrp.. every time i try to flash the latest official update from realme i get this error : Failed to mount / dev / block / bootdevice / by-name / userdata at / data: Device or resource busy."
i dont know how to fix it.. my bootloader is unlock.
i am stuck on bootloop and twrp.. any ideas how to fix it?
Click to expand...
Click to collapse
I FOUND A WAY
switch off mobile,
after few mins boot in to fastboot
flash orangefox recovery
now boot in to recovery and try format data NOW,
and reboot
remember, update till C25, magisk20.3 works
all custom roms magisk20.3 works
only latest C29, magisk20.4 working

davidscdl said:
Hi. This afternoon I tried to install the dirty unicorn rom. Unlock bootloader and flashed TWRP successfully. Then I tried to flash "Pie Firmware & Vendor" because it had realmeUI no ColorOs. The problem is that now I can not do anything with the mobile. It starts directly in TWRP. I have tried to flash a stock rom (CN) but it doesn't work. I think it is a problem with the partitions, for example if I try to clean cache / dalvik etc I receive these messages.
- Failed to mount '/data'
-Falied to wipe dalvik.
I have read many threads, but I cannot find a solution.
I saw this video,- [FIXED] Unable to mount /data or /system error- on youtube (sorry, i cant post URL yet) where even if it is another phone, it presents the same problem as me, but when I try to repair data I receive a failure (Error 8, unable to repair data) and I don't know what else I can do.
I hope you can help me .
Thank you!
Click to expand...
Click to collapse
Just reboot to twrp .
Directly to format data
Format data by typing Yes
Now try to mount data
It will work

or965 said:
I have two ways that probably will fix your issues .
The first one is much more faster and I recommend you to try it first .
Boot into bootloder mode (fastboot mode)
Open cmd and type fastboot -w .(THIS WILL WIPE YOU INTERNAL STORAGE )
I got this problem
CreateProcess failed: The system cannot find the file specified. (2)
error: Cannot generate image for userdata
Click to expand...
Click to collapse

My fastboot -w command not working....its showing
CreateProcess failed: The system cannot find the file specified. (2)
error: Cannot generate image for userdata
help me

Related

Mİ3 Brick or Dead Im very sadly

Guys. I installed mm miui beta. after I want go back miui kk. and I flashed stock partition with cwm. now I cant flash any zip with twrp, cwm or orj miui recovery. I cant flash fastboot rom. I can only flash recovery with fast boot. in twrp menu internal stroge looking 0 mb. SDcard working but recovery cant flash any zip bec. internal stroge looking 0 mb. And I cant flash rom with adb.
mi flash error: 0x80004005:FAILED (remote: partition table doesnt exist ) Im very sad guys. I love my phone pls help me. with out battery cant give me 9008 port. I cant try testpoints.
Sorry for my bad lang. Who can help me?
in my partition table cant see rm 25 and 26
my partition table = i.imgur.com/XxyPuVA.png
I solved my problem with qpst guys. dont need thread thanks. firstly ı removed partition table with adb. after my pc connected with port10. with qpts ı write blocks. and install with mi flash my offical rom
en.miui.com/thread-138246-1-1
use http and html in end and . wherever necessary cant post link
There is a solution to unbrick using miflash here http://en.miui.com/thread-59891-1-1.html
Flash partition first then try I'm even faced the problem
Flash partition first then try I'm even faced the problem after upgrading to mm
Try to flash partition ill post u the link in next reply
---------- Post added at 04:02 AM ---------- Previous post was at 03:26 AM ----------
This guide is for you
What you will need:*
1. USB cable is of decent quality (not the one on which the connection is lost at the slightest movement)*
2. Windows
3. The device defined somehow Device Manager*
4. The latest version of*MiFlash*
5. MIUI firmware developer for fastboot*here
6. Adb and fastboot installer*here
Connect your phone in fastboot mode*
Enter this
Fastboot flash partition gpt_both0.bin
This file is in fastboot rom.*
This will restore stock partitions, then flash all the kitkat rom.
"Fastboot flash partition gpt_both0.bin"

[Solved] Error while flashing Katkiss from CWM v6.0.5.0

Dear friends I need help!
I've tried to flash my tablet but I've got an error message while flashing Katkiss 6.0
What I did:
downloaded Rom.(md5sum is OK)
my bootloader is ww_epad-11.4.1.17-20140711
recovery CWM v6.0.5.0
previous rom zoombi pop
/format data
wipe data factory reset
install zip from sd card. (from internal storage or micro sd card)
And I have got the following error (in attachement)
Please help, my tablet boot only recovery now.
Thanks in advance for the help
trying to boot in fastboot mode when children let me try that...
Edit: fastboot ok.
I placed the the files
KatKiss-6.0_TF701T_033.zip
open_gapps-arm-6.0-pico-20170120.zip
UPDATE-SuperSU-v2.79-20161211114519.zip
In
C:\Program Files (x86)\Minimal ADB and Fastboot
ok I don't know how to proceed now.
Seems I cannot change the recovery from CMW to TWRP,
My bootloader is 11.4.1.17 and the tutorial to install TWRP says in capital red:
MUST BE ON A BOOTLOADER 11.4.1.27, 11.4.1.29 or 11.4.1.30
So how can I do?
I there a way to upgrade the bootloader to be able to install TWRP?
Or should I Flash the custom rom from fastboot?
My TF701 in not booting anymore.... only bootloader and recovery CMW
the positive thing is :
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
15C3E10090400000011FA8580 fastboot
Please help
I have been able to flash CROMI X (unfortunately with strong battery drain) so CMW is able to flash but for some reasons not Katkiss 6.0.
I have been told that my problem is not ROM related... So it is recovery related?
What is the better option to get katkiss on my tablet? Flash the recovery to get TWRP even if my bootloader is 11.4.1.17 and the tutorial to install TWRP says in capital red:
MUST BE ON A BOOTLOADER 11.4.1.27, 11.4.1.29 or 11.4.1.30????
There is a technical reason about this warning?
Edit: I found this on an old post:
You can try this:
Download the stock recovery from here: http://droidbasement.com/db-blog/?p=3210
Copy the image to your fastboot folder.
Download the Asus firmware, unzip the file once and copy it to your internal SD.
Boot tablet into fastboot
Issue this command
Code:
fastboot boot recovery.img
Note: Do not flash the recovery, just boot it.
It should recognize the firmware file on your tablet and flash it.
Click to expand...
Click to collapse
Would this method work to get the latest stock rom from Asus?
Got your PM and will try to find some time at work today. Hang in there and don't do anything to make it worse
Ok, work was crazy busy so it took a bit longer.
If you flash a recovery that is incompatible with the bootloader nothing happens. Until you use the recovery... That could permanently brick the tablet. So heed the warnings, they are there for a reason.
Ok, let's try to get you on the latest bootloader. It's no suprise at all that nothing boots if you try to flash a Android 6 rom on an Android 4 bootloader....
Download either WW or US package from here: https://forum.xda-developers.com/showpost.php?p=61045480&postcount=2
That zip contains the latest bootloader and a compatible TWRP recovery. Flash the zip in your current recovery just like any rom, then reboot.
When you flash a bootloader or recovery you actually write those files to the staging partition. On the next boot the bootloader will unpack it and write everything to it's proper place.
So it's essential that you flash, then reboot. Does not matter that the boot does not go anywhere. The first part, flashing the contents of /staging to it's partition(s), will happen anyway.
You should see a brief blue bar filling up when that happens. It does not take long.
Boot back into fastboot and check your bootloader version.
Enter recovery through RCK and that should be TWRP now.
Then format /data. Do not wipe it, format it. Do not interrupt it. Wait for it to finish even if it takes an hour (a full battery is a must before you start this). The format command is under the Wipe menu.
Unfortunately the formatting in this kanged TWRP is pretty buggy, but I still like it better than CWM.... If you get lots of error messages after the format (cannot mount this, cannot mount that) go into Wipe > Advanced > select Data > Change or repair file system > Change file system > choose ext3 and execute
Note: The button you have to swipe is pretty "sticky". Swipe it slowly and fully
Reboot to recovery
Go back into Wipe > Advanced etc and change the file system back to ext4
Reboot to recovery
Now everything should be ok, try to mount/unmount data.
Finally you are ready to flash Katkiss
If the bootloader flash does not work, we can try to flash Asus firmware in fastboot, but try the above first.
berndblb said:
Ok, work was crazy busy so it took a bit longer.
If you flash a recovery that is incompatible with the bootloader nothing happens. Until you use the recovery... That could permanently brick the tablet. So heed the warnings, they are there for a reason.
Ok, let's try to get you on the latest bootloader. It's no suprise at all that nothing boots if you try to flash a Android 6 rom on an Android 4 bootloader....
Download either WW or US package from here: https://forum.xda-developers.com/showpost.php?p=61045480&postcount=2
That zip contains the latest bootloader and a compatible TWRP recovery. Flash the zip in your current recovery just like any rom, then reboot.
When you flash a bootloader or recovery you actually write those files to the staging partition. On the next boot the bootloader will unpack it and write everything to it's proper place.
So it's essential that you flash, then reboot. Does not matter that the boot does not go anywhere. The first part, flashing the contents of /staging to it's partition(s), will happen anyway.
You should see a brief blue bar filling up when that happens. It does not take long.
Boot back into fastboot and check your bootloader version.
Enter recovery through RCK and that should be TWRP now.
Then format /data. Do not wipe it, format it. Do not interrupt it. Wait for it to finish even if it takes an hour (a full battery is a must before you start this). The format command is under the Wipe menu.
Unfortunately the formatting in this kanged TWRP is pretty buggy, but I still like it better than CWM.... If you get lots of error messages after the format (cannot mount this, cannot mount that) go into Wipe > Advanced > select Data > Change or repair file system > Change file system > choose ext3 and execute
Note: The button you have to swipe is pretty "sticky". Swipe it slowly and fully
Reboot to recovery
Go back into Wipe > Advanced etc and change the file system back to ext4
Reboot to recovery
Now everything should be ok, try to mount/unmount data.
Finally you are ready to flash Katkiss
If the bootloader flash does not work, we can try to flash Asus firmware in fastboot, but try the above first.
Click to expand...
Click to collapse
Thanks a lot to take time to help me.
Will try that tonight and I'll let you know the result.
Thanks a lot!
It was just like you said.
I had to format to ext3 and ext4 because I had errors.
Battery seems to be very good. Just the screen display is very white, needs color saturation and contrast I guess...
Thanks again you save my tablet.
Now that's what I like to read! :cyclops:

[DEV] Flashing and Rooting Phone, Development project

All the thanks goes to @Peak.Krittin [Dev].
MIUI Forum link to this thread :-
http://en.miui.com/thread-3584490-1-1.html
Greeting , MIUIers
This thread is divided into 2 part
- Flashing TWRP & ROOT (& INSTALL XIAOMI.EU)
- My active development project for Redmi S2/Y2 (YSL)
Today , I will be showing you how to flash TWRP and root the Xiaomi Redmi S2/Y2 (YSL)
I took time to make this and sure that it is noob friendly.
You can not blame anyone if you bricked your phone, It's all your own fault. Please done it with caution.
People who do not know what they are doing right now please leave this thread alone.
!!! Unlocking & Rooting phone will lost your warranty !!!
(Re-locking & flashing full rom by fastboot should give your warranty back)
Requirements :
- Unlocked Bootloader
- Workable Brain
- Common Sense
- TWRP
https://drive.google.com/file/d/1kW_j-iQDDPHnt8cWkcogtKR7iM--8Yhh/view
- Magisk
https://github.com/topjohnwu/Magisk/releases/download/v16.4/Magisk-v16.4.zip
- ADB & FASTBOOT
- ADB & FASTBOOT DRIVER
- Xiaomi.eu Rom (Optional)
https://xiaomi.eu/community/forums/miui-rom-releases.103/
Note:- You can flash it on any miui rom.It is safe to flash.
and for boot into recovery wiping of data not needed.
but if you flash ( I said flashing) on xiaomi.eu MIUI roms then to decrypt internel data you have to click on wipe data and then it will ask you something you have to simply write "yes" and then your internel data will be decrypted and you can see all the files of internel data in twrp.( Decryption of internel storage is only supported by xiaomi.eu roms )
But if you flash it on any other MIUI rom then it will not decrypt your internel storage (So no need to wipe data). To flash any .zip or .img file you have to put that file in your sdcard so that you will flash it through twrp.
And note that if you only boot into twrp then you dont have to wipe data but you have to put your flashable files in the sdcard.TWRP will not be there once you reboot.It only will be seen when you again boot into twrp through cmd.and you will get ota update as well if you only boot into twrp because when once you reboot your phone you will get your stock recovery not twrp.
I am again saying booting and flashing are two different things.
!!! UNLOCKED BOOTLOADER REQUIRED !!!
Let get start,
Copy the twrp file into your ADB&Fastboot folder.
First of all , Prepare your phone in fastboot by
- Power + Volume Down
- adb reboot fastboot
Then type "fastboot devices"
It should return something.. (Your phone)
If it didn't ( Please go read #1 Solution in the end of the thread
After that, type
"fastboot boot twrp-3.2.1-0-ysl.img"
If you want to temporarily boot twrp
or type
"fastboot flash recovery twrp-3.2.1-0-ysl.img"
If you want to flash recovery.
Then, You should see your phone entering TWRP
You will be prompted
"Please enter password to decrypt your phone"
(Please read solution #2 at the end of the thread to permanently disable encryption)
Don't enter password....
Click cancel then go to wipe
Then "Slide to wipe" ( If there are errors please go read #3 Solution in the end of the thread )
Then advanced wipe and wipe Internal Storage
After that, click "Install" then click "select storage"
and select External Storage / SD Card and click
"Magisk.zip" and "Install This ZIP" wait until the installation finish then click "Reboot Device"
Congratulations, You have rooted your phone
Solution Part :
#1 : My device is not founded in fastboot...
Answer : Did you even unlock your bootloader...
#2 : Permanently disable encryption
Answer : Please make sure that you done rooting your phone then flash xiaomi.eu rom before flash please wipe all of your partition except EXTERNAL STORAGE (SD CARD) then flash Magisk.zip again
What is xiaomi.eu rom?
It is a modded miui rom based on CHINA and have OTA update supported... Also, It disable encryption
#3 : Can't format
Answer : Please reboot your phone into fastboot and start the process again...
--------++++++ Development Part ++++++--------Redmi S2/Y2
WhatsApp Group : https://goo.gl/9g8S9Y
ARM64 Kernel
- Kernel build completed
Collecting VENDORS FILE to make the kernel work...
Custom ROM
- Let talk about it later ( I'm secretly doing it)
--------------------------------------------------------------
And... Thank you for deleting my old thread with the Irrelevant reason
and for information about Development of redmi S2/Y2 join our whatsapp group.
Link is mention above .
and if you like this then please like this thread.
THANK YOU
Zaid Sheikh said:
"fastboot flash twrp-3.2.1-0-ysl.img"
If you want to flash recovery.
Click to expand...
Click to collapse
this one is right command
"fastboot flash recovery twrp-3.2.1-0-ysl.img"
Shiroyasha21 said:
nice guide
I just unlocked bootloader and try to instal twrp and i found something wrong
this one is right
"fastboot flash recovery twrp-3.2.1-0-ysl.img"
is wiping internal storage needed? for what?
also whatsapp group link is broken
Click to expand...
Click to collapse
brother first of all sorry for broken whatsapp group link
now coming to your issue
brother if you only want to reboot into twrp recovery then use this command :-
fastboot boot twrpname.img
and if you want to flash it :-
fastboot flash recovery twrpname.img
if you have xiaomi.eu MIUI rom then it is needed to wipe internel data or you can simply click on wipe data na then type yes .It will decrypt your internel storage only works in xiaomi.eu rom
and if you wipe data on other roms like golbal beta or stable then it will not decrypt your internel data .
Zaid Sheikh said:
if you have xiaomi.eu ...
Click to expand...
Click to collapse
ok I'm understand
Shiroyasha21 said:
ok finally I'm understand
at first booting to twrp it take time, ask password and log show "unable to decrypt blabla...." it was beacuse I'm on global right? and I can only flash .zip only from sdcard
so now I'm on eu rom then format data, and no more "unable to decrypt blabla...." is that mean I can flash .zip from Internal storage?
Click to expand...
Click to collapse
yes u r right but you have to wipe data first
As the proper owner of this guide, He just copied without PM or permission
Edit : He gave proper credits now.
Zaid shaikh all links are revoked plz contact me= 8847291484 i want to root my phone urgent please
batthsahej said:
Zaid shaikh all links are revoked plz contact me= 8847291484 i want to root my phone urgent please
Click to expand...
Click to collapse
There is another thread. Find it.
After unlocked bootloader and enter following command
PS C:\Users\amiku\Desktop> fastboot boot ysltwrp.img
downloading 'boot.img'...
OKAY [ 0.738s]
booting...
and it stays like that forever
milan1984 said:
After unlocked bootloader and enter following command
PS C:\Users\amiku\Desktop> fastboot boot ysltwrp.img
downloading 'boot.img'...
OKAY [ 0.738s]
booting...
and it stays like that forever
Click to expand...
Click to collapse
vol up + power button will boot to recovery
Yeah, I know that, i fixed it with flashing twrp, just wanted to try without flashing custom recovery only booting for couple of times.
Yeah command "fastboot flash recovery ysltwrp.img"
fastboot reboot
power+vol+

Failed to mount /persist (invalid argoument)

Hey guys, i have a problem with the K20 Pro, i tried a gps module from magisk but it didn't work properly and now when i try to format data, factory reset this error appears: "Failed to mount /persist" (Invalid argoument). How can i fix this? I Was on EU Android Q Rom. I Can still boot up but things as Pop up camera are buggy
I think if someone with TWRP do a Backup of persist and upload somewhere for me i can back it up from twrp!
Youshouldsmile said:
Hey guys, i have a problem with the K20 Pro, i tried a gps module from magisk but it didn't work properly and now when i try to format data, factory reset this error appears: "Failed to mount /persist" (Invalid argoument). How can i fix this? I Was on EU Android Q Rom. I Can still boot up but things as Pop up camera are buggy
I think if someone with TWRP do a Backup of persist and upload somewhere for me i can back it up from twrp!
Click to expand...
Click to collapse
You can extract the persist.img file from the MIUI Q beta fastboot ROM
i have the same problem
tried doing fastboot erase persist , but no luck ( write protected)
using twrp or fox recovery both giving me the same error ( failed to mount persist, invalid argiument..
any help ?
---------- Post added at 10:54 PM ---------- Previous post was at 10:48 PM ----------
also the problem happened after a module install using magisk.. i really dont know how persist partition got damaged when it is write protected !
sar78mad said:
i have the same problem
tried doing fastboot erase persist , but no luck ( write protected)
using twrp or fox recovery both giving me the same error ( failed to mount persist, invalid argiument..
any help ?
---------- Post added at 10:54 PM ---------- Previous post was at 10:48 PM ----------
also the problem happened after a module install using magisk.. i really dont know how persist partition got damaged when it is write protected !
Click to expand...
Click to collapse
Fix: Just extract persist.img from your fastboot rom then use LR.Team TWRP to flash it in the persist partition after that when you boot to system open the camera app several times until a message apperars to calibrate, tick on it and you will see a popup message tell calibration successful.
Done.
i've managed to fix the problem with persist partition
i used persist.img form stock 10.3.3 global fastboot rom , and copied it to sdcard. then did the adb shell command with (dd if=/sdcard/perist.img of=/dev/block/"add here persist partition dir")
worked and my device now is working like a charm..
sar78mad said:
i've managed to fix the problem with persist partition
i used persist.img form stock 10.3.3 global fastboot rom , and copied it to sdcard. then did the adb shell command with (dd if=/sdcard/perist.img of=/dev/block/"add here persist partition dir")
worked and my device now is working like a charm..
Click to expand...
Click to collapse
Bro could please tell us step by step ? i am getting mad. please
Eng.Raman said:
Fix: Just extract persist.img from your fastboot rom then use LR.Team TWRP to flash it in the persist partition after that when you boot to system open the camera app several times until a message apperars to calibrate, tick on it and you will see a popup message tell calibration successful.
Done.
Click to expand...
Click to collapse
perfect
I read my computer partitions. After finding the number of the block that corresponds to my team, copy the persist of the rom stock to my internal memory in twrp and then flash with your command and add my block.
in my case note 10 pro (sweet)
dd if=/sdcard/persist.img of=/dev/block/sdf7
VERY CAREFUL NOT TO USE THIS COMMAND ON ANOTHER computer. each person must read the exact block that corresponds to your mobile reference.
I guess your problem is more of hardware issue ,but have to test to know.
I come to this conclusion because magisk does not modify partitions nor system files , I would start with a clean fastboot flash of the phone (be careful of the lock checkbox).
Then judge from there , if phone still presents anomalies then my first assumption is true.

[Guide] Installing Custom ROM on Honor Note 10 (EMUI 9)

This thread outlines the exact steps in installing a custom ROM on your Huawei Honor Note 10 device with either EMUI 8 or EMUI 9. You can install and run TWRP on both EMUI and or EMUI 9.
Make sure to follow this guide precisely, as order matters. At the end, I will post an explanation of why we need to execute these steps. I spent an entire weekend of trial and error on my Huawei Honor Note 10, and now I have figured out the ins and outs so you don't have to. You're welcome
Prerequisites
Huawei Honor Note 10 device, either on stock ROM or rooted (doesn't matter)
MicroSD card (formatted exFAT or FAT, doesn't matter)
Bootloader unlock code for Huawei Honor Note 10 (follows a format like my own HBP38K14DBK2RNB4)
Computer with admin privileges
Before You Flash Anything
Back up, back up, back up! I am not responsible if you lose valuable or sensitive data. Your Huawei Honor Note 10 will factory reset a number of times (probably more) before you can get back up and running again. Either use TWRP to do this, or use HiSuite (not recommended but will work on a locked bootloader).
Remove your SIM card! Your carrier may get charged ridiculous amounts of fees if you have a limited data plan, such as 256MB (Canada has notoriously expensive phone plans, so Canadians beware). When you reboot, expect Huawei's stock ROM to use copious amounts of data on retrieving the latest version of bloatware and spyware.
Ensure you have stock recovery installed. If you don't, download the stock recovery image, place it in your Minimal ADB and Fastboot folder, then boot to download mode by holding the VOLUME DOWN button and simultaneously plug in in your Huawei Honor Note 10 device, then open Minimal ADB and Fastboot on your computer and run this command:
Code:
fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
Steps to Install Custom ROM on Huawei Honor Note 10
Download the EMUI 9 stock ROM and place the dload folder on your MicroSD card
Boot to (stock) recovery by holding down the VOLUME UP, VOLUME DOWN, and POWER buttons at the same time. The update should begin immediately. Wait patiently for your phone to reboot
Fill out the bloatware questionnaire by Huawei and download any and all updates under Settings. This will ensure you have the latest boot image. You will reboot at least once.
Once you have completed all the updates, reboot to download mode; press and hold the VOLUME DOWN button while you plug in your Huawei Honor Note 10 device to your computer
On your computer, download and open Minimal ADB and Fastboot
Run the following command:
Code:
fastboot oem unlock <code>
(where code corresponds to a format that looks like this: HBP38K14DBK2RNB4)
Confirm unlocking your bootloader by using the VOLUME keys, selecting yes, and pressing the POWER button. The Huawei Honor Note 10 device will now perform a factory reset
IMPORTANT step. DO NOT let the Huawei Honor Note 10 reboot. DO NOT. Impatiently wait for the low-level factory reset to complete and as soon as it does, enter download mode again by pressing the VOLUME DOWN key and plugging in the device again
Flash this TWRP recovery:
Code:
fastboot flash recovery_ramdisk HN10_Twrp.img
Reboot to recovery by holding the VOLUME UP and POWER buttons for over 5 seconds. You should see the TWRP logo, and it should boot up. It should boot up right away, so if TWRP hangs here on the TWRP logo, you need to skip back to step 2
IMPORTANT: wipe to factory reset. Wipe /system again via advanced wipe just to be safe
Install any custom ROM you wish via selecting a system image
IMPORTANT: disable_Dm-Verity_ForceEncrypt by installing this zip. If you don't do this, you won't be able to enter TWRP again
Optionally install magisk, titanium backup, and other magisk mods
Reboot system and profit
Update: 2021-04-06​
Reboot to recovery by holding the VOLUME UP and POWER buttons for over 5 seconds. This should boot you to stock RECOVERY.
Wipe to factory reset. Confirm by typing "yes" (WARNING: this wipes your device)
Plug in your Huawei Honor Note 10 to your PC with ADB
Boot to DOWNLOAD mode by holding down the VOLUME DOWN button as soon as your Huawei Honor Note 10 reboots
Flash this TWRP recovery:
Code:
fastboot flash recovery_ramdisk HN10_Twrp.img
Reboot to recovery by holding the VOLUME UP and POWER buttons for over 5 seconds. You should see the TWRP logo, and it should boot up. It should boot up right away, so if TWRP hangs here on the TWRP logo, you need to skip back to step 2
Install any custom ROM you wish via selecting a system image (or zip file if you have EMUI 8)
Install magisk, titanium backup, and other magisk mods (note that you will NOT be able to boot to recovery after this; consider this you last chance to install any mods)
Reboot system and profit
Background and Explanation
When you first flash a ROM, even in EMUI 8, your Huawei Honor Note 10 encrypts /system to prevent third parties such as TWRP from mounting it. Hence, you may successfully boot to TWRP, but /system will be mounted as read-only. This is problematic, as it means you can't install any new ROMs (however, you can make a backup, which can be useful for backing up stock, encrypted /system partitions)
Because /system gets encrypted, it means you have to wipe /system completely. Doing a factory reset (low-level) does this, once you unlock your bootloader. However, if you were to let your Huawei Honor Note 10 boot, then the stock ROM would, by default, encrypt /system, forcing you to start this process all over again (as TWRP will, in most cases, not even boot with an encrypted /system). If your TWRP hangs on the TWRP logo, your /system partition is likely encrypted. You need to factory reset, install TWRP again, and then wipe /system, followed by installing the Disable_Dm-Verity_ForceEncrypt_01.15.2020.zip script.
ROMs I Tested That Work (well)
Resurrection Remix 7 (openKirin)
I hope this guide helps other fellow Huawei Honor Note 10 owners. If you have any questions, please also make sure to include your EMUI version and steps taken so that I can best help you. I hope that I have saved some of you trouble when updating to EMUI 9 and also helped to explain why updating can become so tedious.
Thank you for the instructions! I've got some questions...
ForgottenSolstace said:
IMPORTANT: wipe to factory reset. Wipe /system again via advanced wipe just to be safe
Install any custom ROM you wish via selecting a system image
Click to expand...
Click to collapse
During these steps, I saw the error messages like these:
Code:
Updater process ended with ERROR:7
Error installing zip file '/sdcard/RR-P-v7.0.2-20200202-ravel-Unoffical.zip'
and
Code:
Failed to mount '/cust' (Invalid argument)
Failed to mount '/vendor' (Invalid argument)
Failed to mount '/odm' (Invalid argument)
Failed to mount '/product' (Invalid argument)
I tried getting into fastboot mode and flash the CUST.img, VENDOR.img, ODM.img and PRODUCT.img but failed with the error message "FAILED (remote: Command not allowed)", what should I do?
null00005 said:
Thank you for the instructions! I've got some questions...
During these steps, I saw the error messages like these:
Code:
Updater process ended with ERROR:7
Error installing zip file '/sdcard/RR-P-v7.0.2-20200202-ravel-Unoffical.zip'
and
Code:
Failed to mount '/cust' (Invalid argument)
Failed to mount '/vendor' (Invalid argument)
Failed to mount '/odm' (Invalid argument)
Failed to mount '/product' (Invalid argument)
I tried getting into fastboot mode and flash the CUST.img, VENDOR.img, ODM.img and PRODUCT.img but failed with the error message "FAILED (remote: Command not allowed)", what should I do?
Click to expand...
Click to collapse
Yep, so it sounds like you have an encrypted /data.
Make sure you can safely wipe the entire device, then try the following in download mode:
Bash:
fastboot erase userdata
(Note: this will erase everything on /data)
Then boot to TWRP again. Check the logs and try again.
ForgottenSolstace said:
Yep, so it sounds like you have an encrypted /system.
Make sure you can safely wipe the entire device, then try the following in download mode:
Bash:
fastboot erase userdata
Then boot to TWRP again. Check the logs and try again.
Click to expand...
Click to collapse
How do I wipe the entire device? I have done step 8 properly (get into fastboot immediately after low-level factory reset completes) and wiped system in TWRP, but still get the error messages.
null00005 said:
How do I wipe the entire device? I have done step 8 properly (get into fastboot immediately after low-level factory reset completes) and wiped system in TWRP, but still get the error messages.
Click to expand...
Click to collapse
Bash:
fastboot erase userdata
That will wipe /data.
Since you can also boot to TWRP, then try wiping /system, cache, and dalvik (factory reset). If you can also wipe /data, then that might also work in TWRP, depending on which version you're using.
ForgottenSolstace said:
Bash:
fastboot erase userdata
That will wipe /data.
Since you can also boot to TWRP, then try wiping /system, cache, and dalvik (factory reset). If you can also wipe /data, then that might also work in TWRP, depending on which version you're using.
Click to expand...
Click to collapse
After reinstalling the stock ROM and unlock bootloader and flash TWRP again, I performed "fastboot erase system" and "fastboot erase userdata" in fastboot, then wiped Dalvik, cache, Cust, Data, system, Product and Version in TWRP. However, I am still getting the "Failed to mount '/odm' (Invalid argument)" error message
I can't wipe odm in TWRP since there is no such option, and I can't perform "fastboot erase odm" as it shows up an error message saying "FAILED (remote: Command not allowed)". What should I do now?
null00005 said:
After reinstalling the stock ROM and unlock bootloader and flash TWRP again, I performed "fastboot erase system" and "fastboot erase userdata" in fastboot, then wiped Dalvik, cache, Cust, Data, system, Product and Version in TWRP. However, I am still getting the "Failed to mount '/odm' (Invalid argument)" error message
I can't wipe odm in TWRP since there is no such option, and I can't perform "fastboot erase odm" as it shows up an error message saying "FAILED (remote: Command not allowed)". What should I do now?
Click to expand...
Click to collapse
If you roll back to stock and unlock your bootloader again, then you don't need to do fastboot erase userdata because "factory reset low-level" will perform that once you unlock your bootloader again. So you should be able to flash TWRP, boot fine (only that one time), install whatever ROM you want, flash magisk, and boot (note: on EMUI9, you must reboot to recovery, as boot_ramdisk only exists in EMUI8).
In the past, I have ignored the message "failed to mount '/odm'" and still had success; just pay attention to the status code at the end when you install /system. Don't bother wiping odm, as we really care about mounting /system. Perform a factory reset just to be safe, and feel free to wipe /data, but it won't matter if you already performed a factory-reset (low-level) from unlocking your bootloader again.
Try installing your ROM of choice from TWRP despite this error, flashing magisk, and confirm if that works.
ForgottenSolstace said:
This thread outlines the exact steps in installing a custom ROM on your Huawei Honor Note 10 device with either EMUI 8 or EMUI 9. You can install and run TWRP on both EMUI and or EMUI 9.
ROMs I Tested That Work (well)
Resurrection Remix 7 (openKirin)
Click to expand...
Click to collapse
Hi, how about root with magisk in this rom?!
TheFastGT said:
Hi, how about root with magisk in this rom?!
Click to expand...
Click to collapse
I second that. Magisk installed in boot.img but ROM doesn't recognize root, installing SuperSU says done but no result. Once I got SuperSU to get into stage where it said that boot might take longer and it was recognized but I can't replicate that anymore.
jazzzy said:
I second that. Magisk installed in boot.img but ROM doesn't recognize root, installing SuperSU says done but no result. Once I got SuperSU to get into stage where it said that boot might take longer and it was recognized but I can't replicate that anymore.
Click to expand...
Click to collapse
Just done....you need to install magisk in this:
RECOVERY_RAMDIS.img
then flash via fastboot and reboot...
TheFastGT said:
Just done....you need to install magisk in this:
RECOVERY_RAMDIS.img
then flash via fastboot and reboot...
Click to expand...
Click to collapse
so I open Magisk app and patch RECOVERY_RAMDIS.img, then flash RECOVERY_RAMDIS.img and after that flash TWRP ? TWRP won't overwrite RECOVERY_RAMDIS.img ?
jazzzy said:
so I open Magisk app and patch RECOVERY_RAMDIS.img, then flash RECOVERY_RAMDIS.img and after that flash TWRP ? TWRP won't overwrite RECOVERY_RAMDIS.img ?
Click to expand...
Click to collapse
I've a Honor Note 10 and i haven't TWRP installed, i use stock recovery and Openkirin rom...
How can I unlock my bootloader?
Darj said:
How can I unlock my bootloader?
Click to expand...
Click to collapse
HCU client
TheFastGT said:
HCU client
Click to expand...
Click to collapse
Thanks.. this is the only device I have so I wanted to ask what would happen if I mess it up
TheFastGT said:
HCU client
Click to expand...
Click to collapse
And once I unlock the bootloader using HCU client, do I have to follow the steps above or can I just install a custom recover how you'd do on any phone?
@Darj , did you manage to sort out rooting your Huawei Honor Note 10? I've updated the installation steps to reflect the shortened steps I last took to get Magisk running (downgraded to EMUI8 on my Huawei Honor Note 10 to try to preserve TWRP).
Hopefully, we'll see more ROMS from the OpenKirin project, as the latest security patch is almost a year old on EMUI8.
@ForgottenSolstace not yet. I want to make sure I have all the informations I need before spending money to unlock the bootloader
@Darj , it only costs 15USD to unlock your Huawei Honor Note 10. Why not go ahead and try?
I assure you that the effort is much worth it; Stock ROM is bloated with all kinds of spyware from the Chinese government. When you install AOSP, you can actually secure your phone following the updated instructions which encrypts /data.
Let me know if you have any questions. Happy to help
Hi ...got problem using twrp?

Categories

Resources