ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Linux(RedHat): How can I find the label name of my swap partition

Linux(RedHat): How can I find the label name of my swap partition

原创 Linux操作系统 作者:brucewoo 时间:2008-05-29 15:51:12 0 删除 编辑

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 with the name of the swap partition.

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.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/75231/viewspace-324141/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-05-22

  • 博文量
    35
  • 访问量
    111105