How to change the UUID of a partition?

Asked by ZioNemo

I have the opposite problem of some others :)

I cloned a partition (using partitionMagic, but I could have used dd).
Now I have two partitions with the same uuid.
Ubuntu isn't happy about that.
How can I change the uuid of one of the two partitions? (without reformatting, of course!)

TiA
ZioNemo

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu e2fsprogs Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Ian King
Solved:
Last query:
Last reply:
Revision history for this message
Best Colin Ian King (colin-king) said :
#1

You can change the UUID of a ext2/3/4 partition using tune2fs:

tune2fs -U UUID device

See the man page for more details. Hope that helps.

Revision history for this message
ZioNemo (zionemo) said :
#2

Thanks Colin King, that solved my question.