Hello,
It is possible to get the UUID of an harddisk with blkid, which is a library to look in infos about devices.
There is here possible way using this library.
https://stackoverflow.com/questions/...ion-infomation
However this is not a code which can be universal and largely portable:
Code:
~$ gcc -o getuuid getuuid.c -lblkid
getuuid.c:4:25: fatal error: blkid/blkid.h: No such file or directory
#include <blkid/blkid.h>
^
compilation terminated.
Would you know a possible alternative to get UUID of a device (without using blkid.h) using low-level C language?
thank you