I am partitioning eMMC using following commands in the script,parted /dev/mmcblk0 --script mklabel gptparted /dev/mmcblk0 --script mkpart primary ext4 32MB 132MBparted /dev/mmcblk0 --script mkpart primary ext4 233MB 433MBparted /dev/mmcblk0 --script mkpart primary ext4 433MB 533MBparted /dev/mmcblk0 --script mkpart primary ext4 533MB 593MBparted /dev/mmcblk0 --script mkpart primary ext4 593MB 793MBparted /dev/mmcblk0 --script mkpart primary ext4 793MB 3800MBparted /dev/mmcblk0 --script align-check min 1Is it the correct way to create partition in the script ? Is there any better way ?After creating first partition i am getting following warningWarning: The resulting partition is not properly aligned for best performance.Do i need to worry about it ?I tried parted /dev/mmcblk0 --script align-check min 1 but not sure that's the solution. Any pointers for that?I am going through this link meanwhile any other suggestions ?Edit:Just a quick reference for frostschutz reply,MiB = Mebibyte = 1024 KiBKiB = Kibibyte = 1024 BytesMB = Megabyte = 1,000 KBKB = Kilobyte = 1,000 Bytes
Scripteable GPT partitions using parted
linux;bash;scripting;partition;parted
It's correct in principle but you might consider reducing it to a single parted call.parted --script /device \    mklabel gpt \    mkpart primary 1MiB 100MiB \    mkpart primary 100MiB 200MiB \    ...Your alignment issue is probably because you use MB instead of MiB. You should not need an actual align-check command when creating partitions on MiB boundaries / on a known device.