How do I change the label of a swap partition in Red Hat Enterprise Linux version 4?

Updated -

It is possible to change the label of a SWAP partition by using the mkswap command with the '-L' option.

The command is:

mkswap -L <label> <partition>

Replace <label> with the label you would like to use. Replace the partition with the SWAP partition. If following is the output of fdisk -l,<...>

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.