I am doing a program in C, and for Linux, I have been able to easily "catch" the UUID with the command blkid
.
This program needs to know if the disk where it was installed is still the same and allow to change the UUID itself.
Is it possible to programmatically change the UUID of a partition? I do not find anything conclusive researching on the internet.