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       -V, --version
28           Print version and exit.
29
30       -L, --label label
31           Specify a new label for the device. Swap partition labels can be at
32           most 16 characters long. If label is longer than 16 characters,
33           swaplabel will truncate it and print a warning message.
34
35       -U, --uuid UUID
36           Specify a new UUID for the device. The UUID must be in the standard
37           8-4-4-4-12 character format, such as is output by uuidgen(1).
38

ENVIRONMENT

40       LIBBLKID_DEBUG=all
41           enables libblkid debug output.
42

AUTHORS

44       swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel
45       Zak <kzak@redhat.com>.
46

SEE ALSO

48       uuidgen(1), mkswap(8), swapon(8)
49

REPORTING BUGS

51       For bug reports, use the issue tracker at
52       https://github.com/util-linux/util-linux/issues.
53

AVAILABILITY

55       The swaplabel command is part of the util-linux package which can be
56       downloaded from Linux Kernel Archive
57       <https://www.kernel.org/pub/linux/utils/util-linux/>.
58
59
60
61util-linux 2.39.2                 2023-06-14                      SWAPLABEL(8)
Impressum