← All commands
Topic hub System & Storage
Windows Linux System & Storage Disk & Storage

Windows label equivalent in Linux

Assigns a human-readable name (label) to a disk partition for easier identification.

Windows label
Linux equivalents
Debian/Ubuntu same command
e2label / tune2fs -L
Fedora same command
e2label / tune2fs -L
Arch same command
e2label / tune2fs -L

Overview

What this command does

Assigns a human-readable name (label) to a disk partition for easier identification.

Migration tip: Labels appear in lsblk -f and can be used in /etc/fstab as LABEL=MyDisk for reliable mounting that survives device reordering.

Practical tasks

Common use cases

Set or view disk volume label

Assigns a human-readable name (label) to a disk partition for easier identification.

e2label /dev/sdb1

Show label (ext filesystems)

e2label /dev/sdb1 'MyDisk'

Set label on ext2/3/4

tune2fs -L 'MyDisk' /dev/sdb1

Set label (alternative)

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

lsblk -f
sudo e2label /dev/sdb1 'DataDrive'
sudo fatlabel /dev/sdb1 'MYUSB'

Walkthrough

Examples with explanations

# Windows: label D: MyDrive

# View all labels:
lsblk -f

# Set label on ext4:
sudo e2label /dev/sdb1 'DataDrive'

# Set label on FAT/USB:
sudo fatlabel /dev/sdb1 'MYUSB'

Reference

Common options and variations

Command or optionUse
e2label /dev/sdb1Show label (ext filesystems)
e2label /dev/sdb1 'MyDisk'Set label on ext2/3/4
tune2fs -L 'MyDisk' /dev/sdb1Set label (alternative)
fatlabel /dev/sdb1 'USBDRIVE'Set label on FAT filesystem
lsblk -fView all disk labels

Distro differences

Debian/Ubuntu vs Fedora vs Arch

This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command e2label / tune2fs -L Same command on this distribution.
Fedora same command e2label / tune2fs -L Same command on this distribution.
Arch same command e2label / tune2fs -L Same command on this distribution.

Keep learning

Related System & Storage commands