Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

While in Linux every disk got a UUID.
I just wondering will the UUID be the same if I moved the same disk from one Linux box to another?

Is it the same UUID in different machines with the same disk?
Or for a disk the UUID will change with attached machine?

Also a similar question:
Will the UUID be the same after Linux distribution reinstalled in the same machine with the same disk?
For example: First is CentOS 5, then reinstalled it to CentOS 6.

share|improve this question
    
Do you really mean disk? Or do you mean partition/filesystem? –  David Schwartz Nov 3 '13 at 12:43
    
Do you mean slices/partitions? Partition UUID's will be the same across different machines (they are stored in the MBR/GPT) but the UUID changes on each format. (So going from CentOS 5 to CentOS 6 with a format would result in a new UUID.) –  nullity Nov 3 '13 at 12:44

1 Answer 1

up vote 3 down vote accepted

Every filesystem has a UUID, which is stored as part of the partition table on the disk itself, so is "portable" with the disk.

Upgrading your OS should only change the UUID of a partition if that partition was formatted.

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.