Ubuntu on Xiaomi Pad 6 (pipa)
YOU COULD BRICK YOUR DEVICE if you mistype partition numbers or ignore warnings.
β’ Verify each command before pressing enter. β’ Use at your own risk. β’ 128GB model numbers are already safe.π’ Singleboot (fastboot method)
Use this if you want Ubuntu only (replaces Android). You need fastboot and the image files.
boot_ab flashes both slots, so it's safe.
π· Dualboot (Android + Ubuntu)
We'll resize userdata to make room for a Linux partition. Backup your files before touching partitions.
Enter fastboot mode (device off β vol down + power). Then boot TWRP (temporary):
Once in TWRP, verify connection:
Download parted binary and push to device:
Enter adb shell and set permissions:
Start parted on the correct block device:
Inside parted, type print to list partitions. Look for userdata (usually sda34) at the bottom.
Note the start and end values. Example output:
34 11.1GB 120GB 108.9GB ext4 userdata
βοΈ Doubleβcheck the number: rm 34 removes userdata. If you have a different number, adapt.
After creation, name them correctly:
Use print again to confirm. Both should be ext4.
If Android boots and storage is okay, proceed. If not, you may need to format the new userdata from TWRP.
First, check current active slot:
If it shows b, then replace every _b with _a below. Assuming active is A, we'll flash to B:
After reboot, you should see Ubuntu. To go back to Android, change active slot.
β’ From Ubuntu: use qbootctrl-gui
β’ From Android (root): BootControl or simply TWRP β reboot β change slot.
π¦ Xiaomi Pad 6 / 6 Pro firmware (Post 7mero #132995154) β check everything works before dualboot.
All links / images are assumed to be known. If something doesn't boot, re-read the slot part.
For 128GB model, partition numbers remain unchanged, just adapt sizes if needed.