Labeling partitions or volumes is a file system feature.  There are typically two commands to set label name for a partition of ext2, ext3 and ext4 type. Both of these commands are from e2fsprogs.