fatlabel

FAT filesystem volume label utility

TLDR

Read the volume label of a FAT filesystem
$ fatlabel [/dev/sda1]
Write a new volume label
$ 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 device
label
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)

RESOURCES

Source code