fatlabel

Sets or gets the label of a FAT32 partition. More information: <https://manned.org/fatlabel>.

Install

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

Sets or gets the label of a FAT32 partition. More information: <https://manned.org/fatlabel>.

  • Get the label of a FAT32 partition:
    fatlabel /dev/sda1
  • Set the label of a FAT32 partition:
    fatlabel /dev/sdc3 "new_label"

© tl;dr; authors and contributors