Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What scenarios causes a hard drive UUID to change? Are there any manufacturer assigned unique ids for hard drives that is less likely to change?

share|improve this question
up vote 5 down vote accepted

The Universally Unique Identifier (UUID) is integrated in the filesystem. By this we can recognize a filesystem by it's unique number to avoid confusion (e.g. when mounting drives).

Anything that affects the file-system will also change its UUID. Under normal circumstances this will be

  • formatting a drive
  • (re-)partitioning of a drive

Under rare circumstances we may be faced with an external drive that mounts a temporary filesystem (e.g. live systems booting from an USB drive). In this case the UUID may also change.

We can manually assign a fixed UUID to a drive if we wish:

This would be another scenario where the UUID of a drive changes.

In case we need manual control over the disk identifiers we may also use a disk LABEL:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.