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 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
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

ENVIRONMENT

38       LIBBLKID_DEBUG=all
39              enables libblkid debug output.
40

AUTHORS

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

SEE ALSO

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

AVAILABILITY

49       The  swaplabel  command is part of the util-linux package and is avail‐
50       able from https://www.kernel.org/pub/linux/utils/util-linux/.
51
52
53
54util-linux                        April 2010                      SWAPLABEL(8)
Impressum