To find the label of a partition, use this command:
# blkid -s LABEL /dev/<partition>
Replace <partition> with the name of the swap partition.
This command will also work with any other type of partition
Red Hat’s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.
This entry was posted by the editorial team
on Tuesday, May 27th, 2008 at 4:39 pm and is filed under tips and tricks, technical.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
June 6th, 2008 at 12:26 am
there is another simple method to find a label of partition
# findfs LABEL=/dev/sda5
June 6th, 2008 at 12:27 am
sorry for the error
#findfs LABEL=
June 13th, 2008 at 6:38 am
# findfs LABEL=label
will search the disks in the system for a filesystem has a specified label, or you can use
# findfs UUID=uuid
which will search a filesystem has a specified uuid
thnx