Linux(RedHat): Tips and tricks: How can I find the label name of my swap partition
如何查看系统中的 LABEL/ UUID
To find the label of a partition, use this command:
# blkid -s LABEL [ /dev/
# blkid -s UUID
Replace
This command will also work with any other type of partition
备注: blkid命令可能只在高版本的RedHat或在某个特殊的rpm包中存在!
blkid is part the e2fsprogs package since version 1.26 and is available
from http://e2fsprogs.sourceforge.net.