| The label command allows the user to label any partitions that match the selection. At least one of the following selection options must be specified. |
The -a option specifies that all partitions should be labeled. It is mutually exclusive with all other selection options.
The -b number option selects the partition that starts at the given block number.
The -i index option selects the partition with the given partition number.
The -s count option selects all partitions that have the given size. This can cause multiple partitions to be removed.
The -t type option selects all partitions that have the given type. The type is given as an UUID or by the aliases that the add command accepts. This can cause multiple partitions to be removed.
The -f file or -l label options specify the new label to be assigned to the selected partitions. The -f file option is used to read the label from the specified file. Only the first line is read from the file and the trailing newline character is stripped. If the file name is the dash or minus sign (-), the label is read from the standard input. The -l label option is used to specify the label in the command line. The label is assumed to be encoded in UTF-8.