Can I manually set the UUID on a swap partition in Red Hat Enteprise Linux 5?

Solution Verified - Updated -


  • The mkswap utility in Fedora and other Linux distributions has a -U option to set a UUID. 
  • Red Hat Enterprise Linux 5, however, doesn't seem to have this functionality in its mkswap.

  • Is it possible set a UUID to the swap partition using mkswap?



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