I'm partitioning a non-SSD hard disk with parted because I want a GPT partition table.
parted /dev/sda mklabel gpt
Now, I'm trying to create partitions correctly aligned so I use the next command to know where begins the first sector:
parted /dev/sda unit s p free Disk /dev/sda: 488397168s Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 34s 488397134s 488397101s Free Space
We can see that it starts in the sector 34 (it's by default when this partition table is used).
So, to create the first partition I tried:
parted /dev/sda mkpart primary 63s 127s
to align it in the sector 64 since it's multiple of 8 but it shows:
Warning: The resulting partition is not properly aligned for best performance.
The sector size logical and physical in my hard disk are both of 512 bytes:
cat /sys/block/sda/queue/physical_block_size 512 cat /sys/block/sda/queue/logical_block_size 512
How to create partitions correctly aligned? What I'm doing wrong?