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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content