Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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.