1 .\" Copyright 2010 Jason Borden <jborden@bluehost.com>
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH SWAPLABEL 8 "April 2010" "util-linux" "System Administration"
7 swaplabel \- print or change the label or UUID of a swap area
17 will display or change the label or UUID of a swap partition located on
21 If the optional arguments
27 will simply display the current swap-area label and UUID of
30 If an optional argument is present, then
32 will change the appropriate value on
34 These values can also be set during swap creation using
38 utility allows to change the label or UUID on an actively used swap device.
42 Display help text and exit.
44 .BR \-L , " \-\-label " \fIlabel\fR
45 Specify a new \fIlabel\fR for the device.
46 Swap partition labels can be at most 16 characters long. If
48 is longer than 16 characters,
50 will truncate it and print a warning message.
52 .BR \-U , " \-\-uuid " \fIUUID\fR
53 Specify a new \fIUUID\fR for the device.
55 must be in the standard 8-4-4-4-12 character format, such as is output by
60 was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>.
62 .IP LIBBLKID_DEBUG=all
63 enables libblkid debug output.
65 The swaplabel command is part of the util-linux package and is available from
66 https://www.kernel.org/pub/linux/utils/util-linux/.