How to change the UUID of a partition?

Asked by ZioNemo on 2009-11-04

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:
2009-11-05
Last query:
2009-11-05
Last reply:
2009-11-04
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.

ZioNemo (zionemo) said : #2

Thanks Colin King, that solved my question.