How to create, view, and remove a filesystem label
Issue
- We need to add a label to a filesystem, such as
XFSorEXT4. - We want to check the currently configured label of a filesystem.
- We need to change or remove an existing filesystem label.
- We want to use labels in
/etc/fstabinstead of device names (e.g.,/dev/sda1) for persistent mount configurations.
Environment
- Red Hat Enterprise Linux (RHEL) - All versions
- Filesystem:
XFSEXT2,EXT3andEXT4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.