| 1 |
.\" -*- 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 "March 2025" "E2fsprogs version 1.47.4" |
| 6 |
.SH NAME |
| 7 |
e2label \- Change the label on an ext2/ext3/ext4 file system |
| 8 |
.SH SYNOPSIS |
| 9 |
.B e2label |
| 10 |
.I device |
| 11 |
[ |
| 12 |
.I volume-label |
| 13 |
] |
| 14 |
.SH DESCRIPTION |
| 15 |
.B e2label |
| 16 |
will display or change the volume label on the ext2, ext3, or ext4 |
| 17 |
file system located on |
| 18 |
.I device. |
| 19 |
.PP |
| 20 |
If the optional argument |
| 21 |
.I volume-label |
| 22 |
is not present, |
| 23 |
.B e2label |
| 24 |
will simply display the current volume label. |
| 25 |
.PP |
| 26 |
If the optional argument |
| 27 |
.I volume-label |
| 28 |
is present, then |
| 29 |
.B e2label |
| 30 |
will set the volume label to be |
| 31 |
.IR volume-label . |
| 32 |
Ext2 volume labels can be at most 16 characters long; if |
| 33 |
.I volume-label |
| 34 |
is longer than 16 characters, |
| 35 |
.B e2label |
| 36 |
will truncate it and print a warning message. For other file systems that |
| 37 |
support online label manipulation and are mounted |
| 38 |
.B e2label |
| 39 |
will work as well, but it will not attempt to truncate the |
| 40 |
.I volume-label |
| 41 |
at all. |
| 42 |
.PP |
| 43 |
It is also possible to set the volume label using the |
| 44 |
.B \-L |
| 45 |
option of |
| 46 |
.BR tune2fs (8). |
| 47 |
.PP |
| 48 |
.SH AUTHOR |
| 49 |
.B e2label |
| 50 |
was written by Theodore Ts'o ([email protected]). |
| 51 |
.SH AVAILABILITY |
| 52 |
.B e2label |
| 53 |
is part of the e2fsprogs package and is available from |
| 54 |
http://e2fsprogs.sourceforge.net. |
| 55 |
.SH SEE ALSO |
| 56 |
.BR mke2fs (8), |
| 57 |
.BR tune2fs (8) |
| 58 |
|