maas admin block-devices read <SYSID> | jq -r '.[] | [.id, .name, .model, .size, .used_for] | @tsv' | column -t
maas admin block-device set-boot-disk <SYSID> <DEVID>
maas admin block-device update <SYSID> <DEVID> partition_table=gpt
# 512M EFI, 20G root, remainder home
maas admin partitions create <SYSID> <DEVID> size=536870912 bootable=true
maas admin partitions create <SYSID> <DEVID> size=$((20*1024*1024*1024))
maas admin partitions create <SYSID> <DEVID>
maas admin filesystem create <SYSID> <PARTID2> fstype=ext4 mount_point=/
maas admin filesystem create <SYSID> <PARTID3> fstype=ext4 mount_point=/home
CC BY-NC 2025 stormrider