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

Solution Verified - Updated -

Issue

  • 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?

Environment

util-linux-2.13-0.50.el5.x86_64

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.