1SWAPLABEL(8)                 System Administration                SWAPLABEL(8)
2
3
4

NAME

6       swaplabel - print or change the label or UUID of a swap area
7

SYNOPSIS

9       swaplabel [-L label] [-U UUID] device
10

DESCRIPTION

12       swaplabel will display or change the label or UUID of a swap partition
13       located on device (or regular file).
14
15       If the optional arguments -L and -U are not given, swaplabel will
16       simply display the current swap-area label and UUID of device.
17
18       If an optional argument is present, then swaplabel will change the
19       appropriate value on device. These values can also be set during swap
20       creation using mkswap(8). The swaplabel utility allows changing the
21       label or UUID on an actively used swap device.
22

OPTIONS

24       -h, --help
25           Display help text and exit.
26
27       -L, --label label
28           Specify a new label for the device. Swap partition labels can be at
29           most 16 characters long. If label is longer than 16 characters,
30           swaplabel will truncate it and print a warning message.
31
32       -U, --uuid UUID
33           Specify a new UUID for the device. The UUID must be in the standard
34           8-4-4-4-12 character format, such as is output by uuidgen(1).
35

ENVIRONMENT

37       LIBBLKID_DEBUG=all
38           enables libblkid debug output.
39

AUTHORS

41       swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel
42       Zak <kzak@redhat.com>.
43

SEE ALSO

45       uuidgen(1), mkswap(8), swapon(8)
46

REPORTING BUGS

48       For bug reports, use the issue tracker at
49       https://github.com/karelzak/util-linux/issues.
50

AVAILABILITY

52       The swaplabel command is part of the util-linux package which can be
53       downloaded from Linux Kernel Archive
54       <https://www.kernel.org/pub/linux/utils/util-linux/>.
55
56
57
58util-linux 2.37.2                 2021-06-02                      SWAPLABEL(8)
Impressum