Given the partition device file /dev/sdh1, I need to find out the label of this device.dmesg doesn't mention its label while GParted reveals that it is called H2N_SD:I need to build a way to be able to run something similar to$ partlabel /dev/sdh1H2N_SDThis question is nearly the opposite of getting device name & mount point from label.
Get label of Linux storage partition device file
linux;partition;block device
Use blkid:$ blkid -s LABEL -o value /dev/sdh1H2N_SD