Parted/align 002dcheck
From Get docs
Next: disk_set, Up: Command explanations [Index]
2.4.1 align-check
- Command: align-check
align-type
n
Determine whether the starting sector of partition
n
meets the disk’s selected alignment criteria.align-type
must be ‘minimal
’, ‘optimal
’ or an abbreviation. When in script mode, if the partition does not meet the alignment requirement, exit with status 1; otherwise (including on older kernels for which alignment data is not available), continue processing any remaining commands. Without--script
, print either ‘N aligned
’ or ‘N not aligned
’.Example:
(parted) align-check minimal 1 1 aligned