align-check (Parted User’s Manual)
- Command: align-check align-type n
Determine whether the starting sector of partition
nmeets the disk’s selected alignment criteria.
align-typemust be ‘
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’.
(parted) align-check minimal 1 1 aligned