parted: align-check

 
 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