erdilS / Port-Windows-11-Xiaomi-Pad-5

Windows installation guide for Xiaomi Pad 5
https://t.me/nabuwoa
391 stars 85 forks source link

[QUESTION] - Partition Custom ROM Xiaomi Pad 5 #285

Open smartfrenard opened 1 day ago

smartfrenard commented 1 day ago

Question

I have custom ufs, upgrade from 256 Gb to 512 Gb for Xiomi Pad 5. How to partition for custom rom 512 Gb? Screenshot 01 Screenshot 02

Agreement

n00b69 commented 23 hours ago

Please run the below command and send a picture

adb shell blockdev --getsize64 /dev/block/sda

After that, use these steps to partition:

adb shell sgdisk --resize-table=128 /dev/block/sda
adb shell parted /dev/block/sda
rm 31

Replace 256GB with whatever you want Android to have

mkpart userdata ext4 10.9gb 256gb

Replace 256 with the value you used in userdata

mkpart esp fat32 256gb 256.35gb

Same here with 256

mkpart win ntfs 256.35gb 509gb
set 32 esp on
quit
adb shell mkfs.ntfs -f /dev/block/sda33 -L WINNABU
adb shell mkfs.fat -F32 -s1 /dev/block/sda32 -n ESPNABU

Format data in ofox and check if android boots, then reboot back to recovery and do the steps on the second page