Set the filesystem label to MY_LABEL

tune2fs

  • Adjust parameters of an ext2, ext3 or ext4 filesystem.
    May be used on mounted filesystems.
    More information: <https://manned.org/tune2fs>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

tune2fs -L {{'MY_LABEL'}} {{/dev/sdXN}}

click the source code to copy install tune2fs on any operating system with command-not-found.com