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