I’d like to welcome fellow Linux user here. In this short tutorial we’ll show you on how you can flash TWRP Custom Recovery on your Xiaomi smartphone using the Ubuntu, Linux Mint, elementary OS or any other Linux distro.
TWRP Installation Tutorial for Linux Mint and Ubuntu users
This method will work for every Xiaomi device model and every TWRP Custom Recovery version. Basically steps are always identical. The only thing you must consider is that you should have unlocked bootloader on your device before starting with TWRP installation.
Download the required TWRP .img file for your device model. Do not try to flash TWRP for different device.
Open the folder with previously downloaded recovery.img and use right mouse button to open the terminal window.
Start your device in fastboot mode. If you don’t know how to do to, please browse our website, you’ll find a tutorial here.
Now use the terminal window and enter the following commands in the right order: