πŸ”· Ubuntu on Mi Pad 6

βš™οΈ This walkthrough collects the essential steps from the original Indonesian guide. Read twice, execute once. Always backup your data.

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.
πŸ’‘ First boot may not succeed – just reboot again. If stuck, force reboot (power + volume up). All passwords: root:root Β· xiaomi:123456

🟒 Singleboot (fastboot method)

Use this if you want Ubuntu only (replaces Android). You need fastboot and the image files.

# after downloading ubuntu-boot.img and ubuntu-pipa.img: fastboot flash boot_ab ubuntu-boot.img fastboot flash userdata ubuntu-pipa.img fastboot erase dtbo fastboot reboot

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.

1️⃣ Preparation & boot TWRP

Enter fastboot mode (device off β†’ vol down + power). Then boot TWRP (temporary):

fastboot boot twrp-last.img

Once in TWRP, verify connection:

adb devices
2️⃣ Push parted tool

Download parted binary and push to device:

adb push parted /sbin/parted

Enter adb shell and set permissions:

adb shell # you should see "#" (root) chmod 777 /sbin/parted
3️⃣ Examine current partition table

Start parted on the correct block device:

parted /dev/block/sda

Inside parted, type print to list partitions. Look for userdata (usually sda34) at the bottom.

Note the start and end values. Example output:

Number Start End Size File system Name Flags
34 11.1GB 120GB 108.9GB ext4 userdata
4️⃣ Remove & recreate partitions (resize)

❗️ Double‑check the number: rm 34 removes userdata. If you have a different number, adapt.

rm 34 this is for 128GB edition mkpart userdata ext4 11.1GB 80GB mkpart linux ext4 80GB 120GB

After creation, name them correctly:

name 34 userdata name 35 linux

Use print again to confirm. Both should be ext4.

5️⃣ Reboot to Android & check
exit # leave parted exit # leave adb shell adb reboot

If Android boots and storage is okay, proceed. If not, you may need to format the new userdata from TWRP.

6️⃣ Flash Ubuntu to slot B (example)

First, check current active slot:

fastboot getvar current-slot

If it shows b, then replace every _b with _a below. Assuming active is A, we'll flash to B:

fastboot erase boot_b fastboot erase dtbo_b fastboot flash boot_b ubuntu-boot.img fastboot flash linux ubuntu-pipa.img # this writes to sda35 (linux partition) fastboot set_active b fastboot reboot

After reboot, you should see Ubuntu. To go back to Android, change active slot.

πŸ”„ Switching between systems:
β€’ 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.

πŸ“Œ
IF IT DOESN'T BOOT THE FIRST TIME β€” reboot again. Also check that you used the correct slot (a/b).
For 128GB model, partition numbers remain unchanged, just adapt sizes if needed.