Mi4i Soft Brick; No OS Installed - Xiaomi Mi 4i

Flashed MIUI8 about a month ago and now I got some 'systemui has stopped working' errors, the device rebooted and got stuck on the MI logo. So I used a fastboot guide on the MIUI forums and fastbooted a Global MIUI V8.0.1.0 rom using MI Flash (selected the 'flash all' option).
The tool says that it has successfully flashed the rom but instead, it just wiped the whole device and not actually flash the rom.
Now the device is stuck on fastboot mode. If I try to reboot the device through TWRP it says 'No OS installed! Are you sure you wish to reboot?'
Tried to flash miui using OTG, it detects the pendrive, but it gives errors while flashing-
Code:
Installing '/usb_otg/miui_MI4iGlobal_V8.1.5.0.LXIMIDI_bd019203d_5.0.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
[COLOR="Red"]E:Error executing updater binary in zip '/usb_otg/miui_MI4iGlobal_V8.1.5.0.LXIMIDI_bd019203d_5.0.zip'[/COLOR]
Error flashing zip 'usb_otg/miui_MI4iGlobal_V8.1.5.0.LXIMIDI_bd019203d_5.0.zip'
Updating partition details...
[COLOR="Red"]E:Unable to mount '/system'
E:Unable to mount '/cache'
E:Unable to mount '/data'[/COLOR]
...done
I've tried to flash different roms (CM, diff versions of miui) but all give pretty much same error.
Also tried ADB sideload method, gives the same errors as above.
I'm out of ideas, anyone has a fix for this?

Fastboot flash, run the bat files instead of using Mi flash. Should work

I ran the .bat file directly but it still says No OS installed in TWRP and boots directly to fastboot mode.

Which file did you ran? From where did you get the firmware?

I got the firmware from the MIUI forums. There are two bat files - flash_all.bat and flash_all_except_data_storage.bat. I tried both but didn't work.

Try to flash it 1 by 1
By typing
Fastboot flash system system.IMG , fastboot flash boot boot.IMG and so on...

There are many .img files in my 'images' folder. Do I flash all img files one by one or what? Please elaborate.

Face6000 said:
There are many .img files in my 'images' folder. Do I flash all img files one by one or what? Please elaborate.
Click to expand...
Click to collapse
Yes , all of them..
The example command is in the vla bla .bat
But , just take a few line or figure it out
Ex: "fastboot flash system system.IMG"
Also , don't forget to place adb and fastboot inside image folder...
*this is a manual fastboot

Copy paste the commands from the bat file

Typed all the commands which were in the .bat file manually in cmd one by one, no errors while flashing but it STILL reboots to fastboot mode and 'No OS installed'.

Hackerpunk1 said:
Copy paste the commands from the bat file
Click to expand...
Click to collapse
Not all of them , the bat file is a script for Miflash , not the manual fastboot ...
Face6000 said:
Typed all the commands which were in the .bat file manually in cmd one by one, no errors while flashing but it STILL reboots to fastboot mode and 'No OS installed'.
Click to expand...
Click to collapse
Are you sure? Do you flash the mbn files?
Could you please send a screenshot ( to make sure )

faizauthar12 said:
Not all of them , the bat file is a script for Miflash , not the manual fastboot ...
Are you sure? Do you flash the mbn files?
Could you please send a screenshot ( to make sure )
Click to expand...
Click to collapse
Yes, I did flash the mbn files. Here are the screenshots -
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

I'm facing a similar situation. Were you able to figure out the solution?

Related

[Q]Is there a way to get out of fastboot?

Sorry if the question isnt clear, here is my delemma
So My N5 I had deleted the system partition (or folder) and I no longer had a rom, now my problem is that I cannot get a new rom installed.
I have TWRP as my recovery but no roms.
I also cant do adb sideboot, It always says: Error: Device not found
What Can I do about this?
Does adb Sideboot need usb debugging enabled?
Thanks!
Sounds like you may have to install the drivers for adb on your computer
Sent from my Nexus 5 using XDA Premium 4 mobile app
kevkid said:
Sorry if the question isnt clear, here is my delemma
So My N5 I had deleted the system partition (or folder) and I no longer had a rom, now my problem is that I cannot get a new rom installed.
I have TWRP as my recovery but no roms.
I also cant do adb sideboot, It always says: Error: Device not found
What Can I do about this?
Does adb Sideboot need usb debugging enabled?
Thanks!
Click to expand...
Click to collapse
Why not just flash the factory images from fastboot?
So I tried to using this: http://forum.xda-developers.com/showthread.php?t=2509428 one of mthe multi tools, and it seems to go through and it stays boot looping in the boot animation.
hrmm.... very weird
EDIT: Ok I was able to flash stock via the direct google link, Now a question about adb sideload, How does that function? Do I have to have usb debugging enabled?
kevkid said:
So I tried to using this: http://forum.xda-developers.com/showthread.php?t=2509428 one of mthe multi tools, and it seems to go through and it stays boot looping in the boot animation.
hrmm.... very weird
Click to expand...
Click to collapse
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
bahnburner said:
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
Click to expand...
Click to collapse
Thanks worked!!
bahnburner said:
1. Go here: https://developers.google.com/android/nexus/images
2. Download the Nexus 5 Android 4.4 (KRT16M) image.
3. Unzip.
4. Run the .bat file while in fastboot.
That's it. It's going to wipe everything but atleast it will work.
Click to expand...
Click to collapse
Having a little trouble I was hoping you could help clarify how to run the .bat file while in fastboot. I tried to flash the image and I am still stuck on a bootloop. Thanks
capathy21 said:
Having a little trouble I was hoping you could help clarify how to run the .bat file while in fastboot. I tried to flash the image and I am still stuck on a bootloop. Thanks
Click to expand...
Click to collapse
Open a new command prompt, drag and drop the bat file into the terminal window, press enter.
bahnburner said:
Open a new command prompt, drag and drop the bat file into the terminal window, press enter.
Click to expand...
Click to collapse
I am having trouble with what the bat file is. When I unzip the download I have
bootloader-hammerhead-HHZ11d(disc image file).
flash-all(windows batch file)
flash-all.sh(SH File)
flash-base.sh(SH File)
image-hammerhead-krt16m(WinRar zip archive)
radio-hammerhead-M8974A-1.0.25.0.17(Disc Image File)
I am not seeing anything that says .bat file.
Sorry for being so ignorant on this.
capathy21 said:
I am having trouble with what the bat file is. When I unzip the download I have
bootloader-hammerhead-HHZ11d(disc image file).
flash-all(windows batch file)
flash-all.sh(SH File)
flash-base.sh(SH File)
image-hammerhead-krt16m(WinRar zip archive)
radio-hammerhead-M8974A-1.0.25.0.17(Disc Image File)
I am not seeing anything that says .bat file.
Sorry for being so ignorant on this.
Click to expand...
Click to collapse
Windows batch file = .bat file. If you're going to screw with your phone, at the very least you should probably make sure explorer shows all file extensions...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bahnburner said:
Windows batch file = .bat file. If you're going to screw with your phone, at the very least you should probably make sure explorer shows all file extensions...
Click to expand...
Click to collapse
Thanks for the help! Sorry to annoy. I've been rooting and such for several years but was just a bit lost.

fastboot Error while Flashing Android M

Well i downloaded the new developer preview for m
and tried to flash the usual way
Then i encountred this error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
tried running cmd in admin mode too, no effect.
The method i used is as follows
I extract the zip in the folder to get access to the images inside and then flashed them manually.
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system sysytem.img (did not work)
fastboot flash userdata userdata.img
Click to expand...
Click to collapse
Running Fastboot and adb v 1.4 from here
http://forum.xda-developers.com/showthread.php?t=2588979
Kindy someone assist thank you
Your image doesn't show
Sent from my Android M Nexus 5 yo!
Try to reboot to your bootloader, and then flash system.img.
Schoat333 said:
Try to reboot to your bootloader, and then flash system.img.
Click to expand...
Click to collapse
i try this and still get the error
Schoat333 said:
Try to reboot to your bootloader, and then flash system.img.
Click to expand...
Click to collapse
I tired that.
I actually even tried restarting the bootloader after flashing every component.
Seems this fastboot has some issues with android m.
Can anyone who has flashed it provide some input.
Sent from my A0001 using XDA Free mobile app
I had the same problem. Not just with android M, other Google OEM Roms. I was only able to get it to work by doing it on my Mac. I would think that Linux would have no problem either.
I had no issues flashing M through fastboot - even used flash-all.sh.
I couldn't get M to boot until I individually erased each part using fastboot, and then individually flashed each part, extracted from Google's zip, also using fastboot.
lnchbx said:
I had the same problem. Not just with android M, other Google OEM Roms. I was only able to get it to work by doing it on my Mac. I would think that Linux would have no problem either.
Click to expand...
Click to collapse
I can't get it to work on my Mac! I keep getting the data length too large error when trying to flash system.mg. Everywhere I've looked has said update the sdk, but I'm on the latest version.
theChief_ said:
I can't get it to work on my Mac! I keep getting the data length too large error when trying to flash system.mg. Everywhere I've looked has said update the sdk, but I'm on the latest version.
Click to expand...
Click to collapse
You need to pass the '-s' argument to fastboot to be able to flash system.
Redownload the file could be corrupt. Only other thing try using mfastboot(google it)

[Solved] Accidentally Wiped OS From Smartphone

Hello.
I was trying to do a factory reset when I accidentally wiped the os from 'my' phone.
I still can access to bootloader and I have TWRP installed.
I have no backups and no experience in the field.
How can I have 'my' phone back on track again?
Thank you very much.
YellowV said:
Hello.
I was trying to do a factory reset when I accidentally wiped the os from 'my' phone.
I still can access to bootloader and I have TWRP installed.
I have no backups and no experience in the field.
How can I have 'my' phone back on track again?
Thank you very much.
Click to expand...
Click to collapse
download a custom rom
boot to twrp and flash it
if you are on S-ON after rom installation flash the boot.img of the rom via fastboot command
the command is fastboot flash boot boot.img
rzr86 said:
download a custom rom
boot to twrp and flash it
if you are on S-ON after rom installation flash the boot.img of the rom via fastboot command
the command is fastboot flash boot boot.img
Click to expand...
Click to collapse
Thanks for the reply.
I'm trying to do that. But so far without success, i'm having this error:
' E: unable to open zip file. '
(I found a video of someone in a similar situation youtube/xpRyv0b-pfY #I can't post the complete link due to xdadevelopers restrictions)
Any Ideas why and how can I solve it?
YellowV said:
Thanks for the reply.
I'm trying to do that. But so far without success, i'm having this error:
' E: unable to open zip file. '
(I found a video of someone in a similar situation youtube/xpRyv0b-pfY #I can't post the complete link due to xdadevelopers restrictions)
Any Ideas why and how can I solve it?
Click to expand...
Click to collapse
change the recovery
http://d-h.st/rG7
extract the recovery.img and flash it via fastboot command
fastboot flash recovery recovery.img
also what rom did you download ?
rzr86 said:
change the recovery
http://d-h.st/rG7
extract the recovery.img and flash it via fastboot command
fastboot flash recovery recovery.img
also what rom did you download ?
Click to expand...
Click to collapse
I was finishing to do that when you made this post.
That solved the problem, but now I am with a new one:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ROM: http://forum.xda-developers.com/htc-sensation/development/rom-cyanogenmod11-ivanich-t2911152
YellowV said:
I was finishing to do that when you made this post.
That solved the problem, but now I am with a new one:
ROM: http://forum.xda-developers.com/htc-sensation/development/rom-cyanogenmod11-ivanich-t2911152
Click to expand...
Click to collapse
redownload the rom
rzr86 said:
redownload the rom
Click to expand...
Click to collapse
By distraction I put the wrong zip file.
I will try now with the proper one. Thanks.

oneplus 6 stuck in fastboot mode help plz

hello my oneplus 6 has been blocked on fastboot mode.:crying:
the problem is that I format the phone system with the twrp by mistake. now the phone is empty neither system nor twrp. I tried several methods like msmdownloadtool but the phone does not connect.
i tried to install the twrp with the command prompt when i put the command adb devices the list of phones attached remains empty.
please help me
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Try too flash stockrom via fastboot, following this thread https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
Please read the instruction carefully.
elbachiri said:
hello my oneplus 6 has been blocked on fastboot mode.:crying:
the problem is that I format the phone system with the twrp by mistake. now the phone is empty neither system nor twrp. I tried several methods like msmdownloadtool but the phone does not connect.
i tried to install the twrp with the command prompt when i put the command adb devices the list of phones attached remains empty.
please help me
Click to expand...
Click to collapse
in fast boot mode, only fastboot commands work like "fastboot boot twrp.img" will boot you into twrp
MrSteelX said:
in fast boot mode, only fastboot commands work like "fastboot boot twrp.img" will boot you into twrp
Click to expand...
Click to collapse
When i try the commands fastboot boot twrp.img
The commands gives me failed:error
elbachiri said:
hello my oneplus 6 has been blocked on fastboot mode.:crying:
the problem is that I format the phone system with the twrp by mistake. now the phone is empty neither system nor twrp. I tried several methods like msmdownloadtool but the phone does not connect.
i tried to install the twrp with the command prompt when i put the command adb devices the list of phones attached remains empty.
please help me
Click to expand...
Click to collapse
how Is your phone recognized?
°Washy said:
how Is your phone recognized?
Click to expand...
Click to collapse
Recognized like android phone
despite the drivers are installed
ndp_singe said:
Try too flash stockrom via fastboot, following this thread https://forum.xda-developers.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665
Please read the instruction carefully.
Click to expand...
Click to collapse
https://ibb.co/ctgDjft
extract the images.zip (on the same directory - not a sub directory i.e images\ ).
extract Others_flashall.zip.
Your directory will look like this:
then run flash-all-partitions.bat.
Warning: that will wipe all your data
thanks i put the .bat files in the official rom 9.0.2 Oxyegen.rar
after I install the rom with the program tool all in one.
now all its running well thanks for your help

TWRP extractTarFork() process ended with ERROR: 255

Hello people
Today I flashed the Xiaomi EU android 11 to check it out and saw some bugs and wanted to downgrade to android 10.
I flashed the stock rom as I was downgrading and installed TWRP, Fully wiped the phone and wanted to restore my backup, but it says " extractTarFork() process ended with ERROR: 255 " when restoring the data. Needless to say, I had to type my password when I booted to recovery and I had Fingerprint and Pincode enabled when I was backing up. now I checked the recovery log and the error is
Code:
==> extracting: //data/misc/recovery/ (mode 40770, directory)
tar_extract_file(): failed to extract //data/misc/recovery/ !!!
When I browse that Directory there is some files named Fingerprint so looks like this is making some issues.
Could someone please help me out how I am able to delete this directory and try restoring my Data ?
I have tried any way of wiping and installing stock rom but still I get this error.
Looks a recovery error. Is the back up made with different recovery? Looks like it cannot find or extract it from the back up. Can you get back to where you were when you made the back up and restore from there?
If not, looks like a format and start again.
Sathelp said:
Looks a recovery error. Is the back up made with different recovery? Looks like it cannot find or extract it from the back up. Can you get back to where you were when you made the back up and restore from there?
If not, looks like a format and start again.
Click to expand...
Click to collapse
Yeah it is from the same recovery.
It is a common error when you google it. but the fix they have mentioned does not work for me. It is like I should somehow delete that folder or files causing the issue from the backup and restore it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You'll need to mount it on a pc, extract the folder and compress it again or delete it from the archive and save. I would make a copy first though.
Sathelp said:
You'll need to mount it on a pc, extract the folder and compress it again or delete it from the archive and save. I would make a copy first though.
Click to expand...
Click to collapse
ok I am able to extract it with WinRar. but how should I compress so the TWRP will not face issues? on Winrar I have RAR,RAR4 and ZIP that I think will not work.
Use 7 zip.
To create a tar file, you can highlight the files you'd like to archive, right-click, and go to 7-Zip > Add to archive. In the 'Add to Archive' menu, just select 'tar' as your archive format and click OK.
Did you get it fixed?
Sathelp said:
Did you get it fixed?
Click to expand...
Click to collapse
No, it didnt work. When i extracted the file using 7zip I got errors for everyfile. I think the issue is with the pincode and the data being encrypted. So next time I should remove the lockscreen and backup my data.
Goos thing I had backed up on Google Account.
Thanks for letting us know but good luck my friend
im having the same error in my realme xt... I have a twrp backup of system image vendor image data boot recovery persist but im unable to recover because it shows an error extract tar fork process ended up with error 255{i too have locked the phone with pincode during backup} ....i also have a backup of my internal storage in twrp but im not able to restore because of this error.... kindly help me
Some of the TWRP we use on Mi 10 ultra, dont able to decrypt data using Fingerprint or pin, you need to use pattern, this is a TWRP bug.
What a bull**** bug. There should be warnings about this at least when people go to create a backup.

Categories

Resources