man-pages/man8/swaplabel.8.html
2021-03-31 01:06:50 +01:00

144 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SWAPLABEL</TITLE>
</HEAD><BODY>
<H1>SWAPLABEL</H1>
Section: System Administration (8)<BR>Updated: April 2010<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
swaplabel - print or change the label or UUID of a swap area
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>swaplabel</B>
[<B>-L</B>
<I>label</I>]
[<B>-U</B>
<I>UUID</I>]
<I>device</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>swaplabel</B>
will display or change the label or UUID of a swap partition located on
<I>device</I>
(or regular file).
<P>
If the optional arguments
<B>-L</B>
and
<B>-U</B>
are not given,
<B>swaplabel</B>
will simply display the current swap-area label and UUID of
<I>device</I>.
<P>
If an optional argument is present, then
<B>swaplabel</B>
will change the appropriate value on
<I>device</I>.
These values can also be set during swap creation using
<B><A HREF="/cgi-bin/man/man2html?8+mkswap">mkswap</A></B>(8).
The
<B>swaplabel</B>
utility allows to change the label or UUID on an actively used swap device.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
<DT id="2"><B>-L</B>,<B> --label </B><I>label</I>
<DD>
Specify a new <I>label</I> for the device.
Swap partition labels can be at most 16 characters long. If
<I>label</I>
is longer than 16 characters,
<B>swaplabel</B>
will truncate it and print a warning message.
<DT id="3"><B>-U</B>,<B> --uuid </B><I>UUID</I>
<DD>
Specify a new <I>UUID</I> for the device.
The <I> UUID</I>
must be in the standard 8-4-4-4-12 character format, such as is output by
<B><A HREF="/cgi-bin/man/man2html?1+uuidgen">uuidgen</A></B>(1).
</DL>
<P>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
<B>swaplabel</B>
was written by Jason Borden &lt;<A HREF="mailto:jborden@bluehost.com">jborden@bluehost.com</A>&gt; and Karel Zak &lt;<A HREF="mailto:kzak@redhat.com">kzak@redhat.com</A>&gt;.
<A NAME="lbAG">&nbsp;</A>
<H2>ENVIRONMENT</H2>
<DL COMPACT>
<DT id="4">LIBBLKID_DEBUG=all<DD>
enables libblkid debug output.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>AVAILABILITY</H2>
The swaplabel command is part of the util-linux package and is available from
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+uuidgen">uuidgen</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?8+mkswap">mkswap</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+swapon">swapon</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="9"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="10"><A HREF="#lbAG">ENVIRONMENT</A><DD>
<DT id="11"><A HREF="#lbAH">AVAILABILITY</A><DD>
<DT id="12"><A HREF="#lbAI">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:16 GMT, March 31, 2021
</BODY>
</HTML>