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  sim‐
16       ply 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 to change 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
29              be at most 16 characters long.  If label is longer than 16 char‐
30              acters, 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
34              standard 8-4-4-4-12 character format, such as is output by uuid‐
35              gen(1).
36

AUTHOR

38       swaplabel was written by Jason Borden <jborden@bluehost.com> and  Karel
39       Zak <kzak@redhat.com>.
40

ENVIRONMENT

42       LIBBLKID_DEBUG=all
43              enables libblkid debug output.
44

AVAILABILITY

46       The  swaplabel  command is part of the util-linux package and is avail‐
47       able from https://www.kernel.org/pub/linux/utils/util-linux/.
48

SEE ALSO

50       uuidgen(1), mkswap(8), swapon(8)
51
52
53
54util-linux                        April 2010                      SWAPLABEL(8)
Impressum