~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to disk-utils/swaplabel.8

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
.\"
3
3
.\" This file may be copied under the terms of the GNU Public License.
4
4
.\"
5
 
.TH SWAPLABEL 8 "2 April 2010" "Linux" "Linux Programmer's Manual"
 
5
.TH SWAPLABEL 8 "April 2010" "util-linux" "System Administration"
6
6
.SH NAME
7
 
swaplabel \- Print or change the label / UUID of a swap area
 
7
swaplabel \- print or change the label or UUID of a swap area
8
8
.SH SYNOPSIS
9
9
.B swaplabel
10
10
.RB [ \-L
14
14
.I device
15
15
.SH DESCRIPTION
16
16
.B swaplabel
17
 
will display or change the label / UUID of a swap partition located on
 
17
will display or change the label or UUID of a swap partition located on
18
18
.IR device 
19
19
(or regular file).
20
20
.PP
22
22
.B \-L 
23
23
and
24
24
.B \-U 
25
 
are not present,
 
25
are not given,
26
26
.B swaplabel
27
 
will simply display the swap area label and UUID of
 
27
will simply display the current swap-area label and UUID of
28
28
.IR device .
29
29
.PP
30
30
If an optional argument is present, then
31
31
.B swaplabel
32
 
will change the appropriate value of
 
32
will change the appropriate value on
33
33
.IR device .
34
34
These values can also be set during swap creation using
35
35
.BR mkswap (8).
36
36
The
37
37
.B swaplabel
38
 
utility allows to change the label or UUID on actively used swap device.
 
38
utility allows to change the label or UUID on an actively used swap device.
39
39
.SH OPTIONS
40
 
.IP "\fB\-h, \-\-help\fP"
41
 
Print help and exit.
42
 
.IP "\fB\-L, \-\-label\fP \fIlabel\fP"
43
 
Specify a new label for
44
 
.IR device .
 
40
.TP
 
41
.BR \-h , " \-\-help"
 
42
Display help text and exit.
 
43
.TP
 
44
.BR \-L , " \-\-label " \fIlabel\fR
 
45
Specify a new \fIlabel\fR for the device.
45
46
Swap partition labels can be at most 16 characters long.  If
46
 
.IR label
 
47
.I label
47
48
is longer than 16 characters,
48
 
.B swapinfo
 
49
.B swaplabel
49
50
will truncate it and print a warning message.
50
 
.IP "\fB\-U, \-\-uuid\fP \fIuuid\fP"
51
 
Specify a new UUID for
52
 
.IR device .
53
 
.IR UUID
 
51
.TP
 
52
.BR \-U , " \-\-uuid " \fIUUID\fR
 
53
Specify a new \fIUUID\fR for the device.
 
54
The \fI UUID\fR
54
55
must be in the standard 8-4-4-4-12 character format, such as is output by
55
56
.BR uuidgen (1) .
56
57
.PP
58
59
.B swaplabel
59
60
was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>.
60
61
.SH AVAILABILITY
61
 
.B swaplabel
62
 
is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
 
62
The swaplabel command is part of the util-linux package and is available from
 
63
ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
63
64
.SH SEE ALSO
64
65
.BR mkswap (8),
65
66
.BR swapon (8),