Re: [fpc-pascal] Get "disk" ID

2019-01-07 Thread Graeme Geldenhuys
On 05/01/2019 16:03, Bart wrote: > I need some function to get a unique ID for a disk. Take a look at OnGuard - which is software copy projection software written for Delphi and FPC (originally by TurboPower Software Co). The latest software changes I made to it can be found on Github: https:/

Re: [fpc-pascal] Get "disk" ID

2019-01-06 Thread Sven Barth via fpc-pascal
Am Sa., 5. Jan. 2019, 17:05 hat Bart geschrieben: > Hi, > > I need some function to get a unique ID for a disk. > I need this to identify if my program has accessed this disk previously. > > On Windows I can retreive the VolumeSerialNr, but how do I do > something like that in Linux? > Mind you:

Re: [fpc-pascal] Get "disk" ID

2019-01-06 Thread Giuliano Colla
Il 05/01/2019 17:03, Bart ha scritto: I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. For that purpose on Linux, out of laziness, I usually just parse the output of command-line utilities, such as blkid or lsblk. bl

[fpc-pascal] Get "disk" ID

2019-01-05 Thread Bart
Hi, I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. On Windows I can retreive the VolumeSerialNr, but how do I do something like that in Linux? Mind you: the "ID" retrieved does NOT have to be the same for each platform.