blob: aff08d9cde9360b33616e989721d163044116a8e [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001.\" -*- nroff -*-
2.\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved.
3.\" This file may be copied under the terms of the GNU Public License.
4.\"
5.TH E2LABEL 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6.SH NAME
7e2label \- Change the label on an ext2/ext3/ext4 filesystem
8.SH SYNOPSIS
9.B e2label
10.I device
11[
12.I new-label
13]
14.SH DESCRIPTION
15.B e2label
16will display or change the filesystem label on the ext2, ext3, or ext4
17filesystem located on
18.I device.
19.PP
20If the optional argument
21.I new-label
22is not present,
23.B e2label
24will simply display the current filesystem label.
25.PP
26If the optional argument
27.I new-label
28is present, then
29.B e2label
30will set the filesystem label to be
31.IR new-label .
32Ext2 filesystem labels can be at most 16 characters long; if
33.I new-label
34is longer than 16 characters,
35.B e2label
36will truncate it and print a warning message.
37.PP
38It is also possible to set the filesystem label using the
39.B \-L
40option of
41.BR tune2fs (8).
42.PP
43.SH AUTHOR
44.B e2label
45was written by Theodore Ts'o (tytso@mit.edu).
46.SH AVAILABILITY
47.B e2label
48is part of the e2fsprogs package and is available from
49http://e2fsprogs.sourceforge.net.
50.SH SEE ALSO
51.BR mke2fs (8),
52.BR tune2fs (8)
53