fatlabel
FAT filesystem volume label utility
TLDR
Get the label of a FAT32 partition
$ fatlabel [/dev/sda1]
Set the label of a FAT32 partition$ fatlabel [/dev/sdc3] "[new_label]"
SYNOPSIS
fatlabel device [label]
DESCRIPTION
fatlabel gets or sets the volume label of a FAT filesystem. Without a label argument, it displays the current label. With a label argument, it sets a new label.Part of the dosfstools package for managing FAT filesystems.
PARAMETERS
device
FAT partition devicelabel
New volume label (optional)
INSTALL
sudo apt install dosfstools
sudo dnf install dosfstools
sudo pacman -S dosfstools
sudo apk add dosfstools
sudo zypper install dosfstools
brew install dosfstools
nix profile install nixpkgs#dosfstools
CAVEATS
FAT labels limited to 11 characters. Requires unmounted filesystem for writing. Part of dosfstools package.
SEE ALSO
dosfslabel(8), e2label(8), mlabel(1)
