Red Hat Bugzilla – Bug 186616
e2label to report labels from swap partitions
Last modified: 2007-11-30 17:11:28 EST
Description of problem:
missing utility to query swap partition label
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. make a swap partition with parameter -L swap
2. now try to find the label of that swap partition without having to mkswap again
not able to retrieve the label from a swap partition.
mkswap will replace the label but no utility is available to fetch the label.
e2label should be able to identify that the partition is a swap partition, or
another util should be written to read the label from a swap partition.
Please, see "man blkid(8)". The e2label util works with ext2/ext3 filesystem only.
# blkid /dev/hda3
/dev/hda3: TYPE="swap" LABEL="SWAP-hda3"