Parted

From Compilenix Wiki
Jump to: navigation, search

How to align partitions for best performance[1][2]

# cat /sys/block/sdb/queue/optimal_io_size
1048576
# cat /sys/block/sdb/queue/minimum_io_size
262144
# cat /sys/block/sdb/alignment_offset
0
# cat /sys/block/sdb/queue/physical_block_size
512

(optimal_io_size + alignment_offset) / physical_block_size = 2048 sectors offset

mkpart primary 2048s 100%

References

<references>