mlabel

Set an MS-DOS volume label for FAT and VFAT filesystems. More information: <https://www.gnu.org/software/mtools/manual/mtools.html#mlabel>.

Install

All systems
curl cmd.cat/mlabel.sh
Debian Debian
apt-get install mtools
Ubuntu
apt-get install mtools
Alpine
apk add mtools
Arch Arch Linux
pacman -S mtools
image/svg+xml Kali Linux
apt-get install mtools
CentOS
yum install mtools
Fedora
dnf install mtools
Windows (WSL2)
sudo apt-get update sudo apt-get install mtools
OS X
brew install mtools
Raspbian
apt-get install mtools
Docker
docker run cmd.cat/mlabel mlabel powered by Commando

Set an MS-DOS volume label for FAT and VFAT filesystems. More information: <https://www.gnu.org/software/mtools/manual/mtools.html#mlabel>.

  • Set a filesystem label:
    mlabel -i /dev/sda ::"new_label"

© tl;dr; authors and contributors