Changing 'disk ID' of Windows GPT disk via Linux

gdisk should help: have a look at 'c', 'g' and 'f' from the extra functionality menu.

See ubuntu trusty gdisk manpage.


sgdisk --disk-guid=R /dev/sdXXXX

(Sets the disk GUID to a new random value and is more suitable for scripting/automation)