accidently deleted partition - Realme X Questions & Answers

yesterday I used parted to resize the partition on realme x, but I accidentally deleted the system partition and now can't boot into recovery mode or edl
Is there any way to recreate partition?

If you can boot to fastboot , flash recovery and rom again

Related

recovery after new table partition

after installing the partition table cm7 r2 in my recovery will not come out more options for help
i have 4ext recovery
Reinstall your recovery through fastboot.
Here is a GUI to help you flash your recovery via fastboot:
http://forum.xda-developers.com/showthread.php?p=28719715

Unable to mount storage

On my Moto G5 TWRP when i try to wipe or flash any ROM it gives me unable to mount storage error and the storage shown as 0Mb and i can't even explore it inside the recovery
basem bebarse said:
On my Moto G5 TWRP when i try to wipe or flash any ROM it gives me unable to mount storage error and the storage shown as 0Mb and i can't even explore it inside the recovery
Click to expand...
Click to collapse
You haven't said which partition
If it's data goto wipe & select the option on the right
You can also do it in fastboot mode
fastboot erase userdata
This will erase everything on internal storage
Restart to recovery & data should be mountable
Anything else you may have to flash stock firmware via fastboot including gpt to repartition your device correctly - make sure you you flash a firmware that is equal or newer than the version currently installed
TheFixItMan said:
You haven't said which partition
If it's data goto wipe & select the option on the right
You can also do it in fastboot mode
fastboot erase userdata
This will erase everything on internal storage
Restart to recovery & data should be mountable
Anything else you may have to flash stock firmware via fastboot including gpt to repartition your device correctly - make sure you you flash a firmware that is equal or newer than the version currently installed
Click to expand...
Click to collapse
It works, Thank you so much that was very useful

How to flash a treble img without fastboot (/system wiped, twrp operational)?

I may be in a tricky spot here. I've a Palm phone which doesn't have fastboot. I flashed twrp and a replacement system image but the system image didn't boot as planned. I wiped it with the intention of replacing using dd which writes the data, but the partition is corrupt and can't be mounted.
How to recover? TWRP only has 'boot' and 'recovery' as options for the img flash, which I assume is because it's using fastboot and that isn't available.
snoopy20 said:
I may be in a tricky spot here. I've a Palm phone which doesn't have fastboot. I flashed twrp and a replacement system image but the system image didn't boot as planned. I wiped it with the intention of replacing using dd which writes the data, but the partition is corrupt and can't be mounted.
How to recover? TWRP only has 'boot' and 'recovery' as options for the img flash, which I assume is because it's using fastboot and that isn't available.
Click to expand...
Click to collapse
Try manually formatting the system partition into whatever your device has as default, ext4 for example, or alternatively reinstall the stock Rom and continue from there, also, wrong thread

[GUIDE][UNBRICK] How unbrick your bootloop in MERLIN after flashing TWRP (Xiaomi Redmi Note 9 / Xiaomi Redmi 10X 4G)

If you try to flash the file misc.bin your device can be in bootloop forever, please follow this guide to fix it.
It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G
Method 1:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
If you can see your device in adb recovery mode, you have to erase misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.
Method 2:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
And then reboot to bootloader:
Code:
adb reboot bootloader
And then check if it is detected in fastboot mode:
Code:
fastboot devices
If you can see your device in fastboot mode, you have to erase misc partition:
Code:
fastboot erase misc
Keep attention, if you try to format misc partition, you will get this error: Formatting is not supported for file system with type 'raw data'.
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.
Good luck !
Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
VD171 said:
If you boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.
It works with:
- Xiaomi Redmi 10X 4G
- Xiaomi Redmi Note 9
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected:
Code:
adb devices
If you can see your device in adb recovery mode, you have to format misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.
Good luck !
Click to expand...
Click to collapse
OR they can just use
adb reboot bootloader
boot to fastboot and flash the stock image of the partition which is corrupted.
Communos said:
OR they can just use
adb reboot bootloader
boot to fastboot and flash the stock image of the partition which is corrupted.
Click to expand...
Click to collapse
Please, read the guide. This guide is for people who flashed misc.bin partition from the outdated TWRP.
This misc.bin partition from the outdated TWRP, will bootloop the device forever in recovery mode.
There is NO misc partition on stock image. So, you have to erase misc partition for stops with bootloop in recovery.
Thanks! If I knew this a few weeks ago it would have been helpful, But I fixed it with MiTool V2
VD171 said:
Please, read the guide. This guide is for people who flashed misc.bin partition from the outdated TWRP.
This misc.bin partition from the outdated TWRP, will bootloop the device forever in recovery mode.
There is NO misc partition on stock image. So, you have to erase or format misc partition for stops with bootloop in recovery.
Click to expand...
Click to collapse
Well, I've been in this situation twice or thrice, first I fixed by flashing full stock rom, rest of the times flashing stock recovery and stock boot fixed it for me.
Communos said:
Well, I've been in this situation twice or thrice, first I fixed by flashing full stock rom, rest of the times flashing stock recovery and stock boot fixed it for me.
Click to expand...
Click to collapse
As I've said, if you've flashed misc.bin from the outdated TWRP, just flashing stock recovery or stock boot will not fix the problem.
For fixing it, you have to erase misc partition. If it doesn't help you, please, go away and let it help who wants help.
Nice job and see you later.
VD171 said:
If you try to boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.
It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G
Method 1:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
If you can see your device in adb recovery mode, you have to format misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.
Method 2:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
And then reboot to bootloader:
Code:
adb reboot bootloader
And then check if it is detected in fastboot mode:
Code:
fastboot devices
If you can see your device in fastboot mode, you have to format misc partition:
Code:
fastboot format misc
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will FORMAT any other partition and it can brick your device forever and cause more damages.
Good luck !
Click to expand...
Click to collapse
thanks sooo much
imranbinlatif said:
thanks sooo much
Click to expand...
Click to collapse
Good job, my friend.
You are welcome
VD171 said:
If you try to boot your device and it keeps in a black screen because outdated TWRP, please follow this guide.
It works with:
- Xiaomi Redmi Note 9
- Xiaomi Redmi 10X 4G
Method 1:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
If you can see your device in adb recovery mode, you have to erase misc partition:
Code:
dd if=/dev/zero of=/dev/block/mmcblk0p2
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.
Method 2:
Once your device is on the black screen, plug it on USB (try USB3.0 first).
And then check if it is detected in adb recovery mode:
Code:
adb devices
And then reboot to bootloader:
Code:
adb reboot bootloader
And then check if it is detected in fastboot mode:
Code:
fastboot devices
If you can see your device in fastboot mode, you have to erase misc partition:
Code:
fastboot erase misc
Keep attention, if you try to format misc partition, you will get this error: Formatting is not supported for file system with type 'raw data'.
After it is done, you can reboot your device to system or fastboot again.
Keep atention, if you execute this command wrong, you will ERASE any other partition and it can brick your device forever and cause more damages.
Good luck !
Do you need help with your MERLIN device ?
Read this FAQ: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4225163/
Click to expand...
Click to collapse
Hey there, i erased the Misc partition, it's still bootlooping,
I tried to un-brick my device from the Xiaomi Mod Tool,
Yes i did try flashing a outdated TWRP image,
It got hard bricked, and i tried to fix it,
through some good luck, i managed to get into "fastboot"
And, nothing, it just got soft bricked,
I guess that's proggress?
My device: merlinnfc (Redmi Note 9/10X 4G)
TheMagnificent_Y said:
Hey there, i erased the Misc partition, it's still bootlooping,
I tried to un-brick my device from the Xiaomi Mod Tool,
Yes i did try flashing a outdated TWRP image,
It got hard bricked, and i tried to fix it,
through some good luck, i managed to get into "fastboot"
And, nothing, it just got soft bricked,
I guess that's proggress?
My device: merlinnfc (Redmi Note 9/10X 4G)
Click to expand...
Click to collapse
If you have access to fastboot and erasing misc did not work, simply flash the entire stock rom you were on through MiFlash.
TheMagnificent_Y said:
Hey there, i erased the Misc partition, it's still bootlooping,
I tried to un-brick my device from the Xiaomi Mod Tool,
Yes i did try flashing a outdated TWRP image,
It got hard bricked, and i tried to fix it,
through some good luck, i managed to get into "fastboot"
And, nothing, it just got soft bricked,
I guess that's proggress?
My device: merlinnfc (Redmi Note 9/10X 4G)
Click to expand...
Click to collapse
Erasing misc only works if you are frozen in a black screen after flashing misc partition.
Recovery partition can't break boot.
Probably your problem is vbmeta.
Vbmeta can break the boot.
Did you flash it too?
I flashed the entire ROM,
So yes,
Every single partition, except misc since it's gone now,
When i say "Every Single Partition", I mean every single one,
this includes,
Scp1/2
super
..etc.
TheMagnificent_Y said:
I flashed the entire ROM,
So yes,
Every single partition, except misc since it's gone now,
When i say "Every Single Partition", I mean every single one,
this includes,
Scp1/2
super
..etc.
Click to expand...
Click to collapse
Misc partition is not present in original stock rom.
It contains a variable data/parameter for boot.
Did you solve the bootloop after flash full rom?
No,
Here are the full details:
1. I tried flashing the recovery partition, Nothing.
2. I used an unnofficial TWRP ROM that hard bricked my device, this includes the following partitions:
Misc Opt Vbmeta Recovery
3. I managed to get into ADB recovery, i got into fastboot, then flashed the stock rom.
4. Boot loop
TheMagnificent_Y said:
No,
Here are the full details:
1. I tried flashing the recovery partition, Nothing.
2. I used an unnofficial TWRP ROM that hard bricked my device, this includes the following partitions:
Misc Opt Vbmeta Recovery
3. I managed to get into ADB recovery, i got into fastboot, then flashed the stock rom.
4. Boot loop
Click to expand...
Click to collapse
You need to avoid the misc partition.
If you've flashed it, you REALLY need to erase it.
Or, it will make your device to enter in recovery forever.
Vbmeta needs to be flashed with disababled verification.
Here you can find safe and secure vbmeta with disabled verification: https://forum.xda-developers.com/t/...omi-redmi-note-9-xiaomi-redmi-10x-4g.4218909/
Or, it will detect modification on partitions and will reboot the device forever.
I think Opt doesn't change anything.
I'm not sure, but I think it only matter for devices without vbmeta partition. (I'M NOT SURE.)
Because it modifies the system, and obviously you will get in a bootloop.
If you want to modify the system, you need to debloat your system before.
Try to flash the whole system again.
Or just try to flash the whole rom again.
I've done that twice, and i deleted misc afterwards,
What about...:
fastboot flashall -w ?
Shouldn't that help flashing the system?
Also what does Vbmeta verify?
Thanks.
PS: I tried flashing the un-official and official versions, both leave a brick, and nothing really changes, i haven't tried your "Patched" version tho.
TheMagnificent_Y said:
I've done that twice, and i deleted misc afterwards,
What about...:
fastboot flashall -w ?
Shouldn't that help flashing the system?
Also what does Vbmeta verify?
Thanks.
Click to expand...
Click to collapse
I'm not sure.
Just flashing the system should solve it.
Or just flashing the whole rom using the flashing scripts inside the original stock rom.
Vbmeta checks if boot, recovery and dtbo partitions keeps untouched and unmodified.
I flashed the whole rom using the Xiaomi Mod Tool which is coded in java script,
i'll try to flash your "Patched" vbmeta image and see if that helps, if not, i'll re-flash the stock rom.
TheMagnificent_Y said:
I flashed the whole rom using the Xiaomi Mod Tool which is coded in java script,
i'll try to flash your "Patched" vbmeta image and see if that helps, if not, i'll re-flash the stock rom.
Click to expand...
Click to collapse
Flashing the whole stock rom, certainly solves everything.
And then, if you want TWRP again, try this first: https://forum.xda-developers.com/t/...for-merlin-redmi-note-9-redmi-10x-4g.4227751/
Good luck

Question [URGENT] TWRP fails to decrypt /data partition using the correct passcode and can't mount /cust partition with error "Structure needs cleaning"

Long story short, read the previous thread: https://forum.xda-developers.com/t/...-product-vendor-odm-invalid-argument.4431903/
After succesfully installing the fastboot rom via Mi Flash, the phone is still in a bootloop. Tried flashing TWRP via fastboot command (fastboot boot twrp.img) but it can't decrypt the /data partition with the correct passcode anymore. after a reboot in recovery, the /cust partition also can't be mounted anymore, with error "Structure needs cleaning".
I do not have a backup of my system nor data partition, nor internal storage, so i absolutely need it to work again without wiping/formatting the data partition
EDIT: after flashing the fastboot rom again via mi flash and twrp via fastboot command, the cust error disappears but twrp still can't decrypt /data
EDIT: i decided to do a full wipe of my internal memory and the phone works again. this thread should be closed.

Categories

Resources