Linux Disk Storage Cheat Sheet/Set an ext filesystem label

Assign a human-readable label to an ext filesystem.

Section: Format, Label, and Tune

Set an ext filesystem label

bash
bash
sudo e2label /dev/sdb1 data
Explanation

Assign a human-readable label to an ext filesystem.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Format, Label, and Tune
Create an ext4 filesystem
Format a partition as ext4.
OpenIn sheetbashsame section
Set an XFS label
Assign a label to an XFS filesystem.
OpenIn sheetbashsame section
Show ext filesystem metadata
Inspect features, UUID, mount count, and reserved blocks.
OpenIn sheetbashsame section
Change reserved blocks percentage
Lower reserved space on large non-root data volumes.
OpenIn sheetbashsame section
Dump ext filesystem superblock info
Show ext superblock and journal settings.
OpenIn sheetbashsame section
Create an XFS filesystem
Format a partition as XFS.
OpenIn sheetbashsame section