Graeme:<br>>Query the date/time value of the '/bin' directory under Linux, or<br>>'C:\Windows' or 'C:\WinNT' under Windows. Then work out how many seconds or<br>
>milliseconds since say 1980-01-01. You then have a pretty unique value. The<br>
>chances of somebody else running your software and having installed their<br>
>OS in the exact same millisecond as somebody else is pretty slim. :-)<br>Is it really accurate to the millisecond? Anyway, also interested if OEMs like HP would have the same timestamps then, as from my understanding many just clone an hdd, which would leave hundreds of computers with the same system, file dates and all, no?<br>

<br><div class="gmail_quote">On Wed, Feb 10, 2010 at 6:37 PM, Juha Manninen <span dir="ltr"><<a href="mailto:juha.manninen@phnet.fi">juha.manninen@phnet.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">> Option 1)<br>
> UUID look-up can be done via /var/log/udev<br>
> This same file also gives you ALL the information about each device,<br>
> including the long and short serial number.<br>
<br>
</div>No such file in OpenSuse 11.2.<br>
<div class="im"><br>
> Option 2)<br>
> Knowing the UUID or device (eg: /dev/sda1) one can simply do a lookup<br>
> in the /dev/disk/by-id/ directory. Each file in that directory has the<br>
> following information: <bus>-<brand>-<model>-<serial#>[-<partition>]<br>
> So by simply parsing the name, you can find the serial number of the device.<br>
<br>
</div>/dev/disk/by-id/ has some files :<br>
<br>
/dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H<br>
/dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part1<br>
/dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part3<br>
/dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part4<br>
... and others...<br>
<br>
They are all zero bytes so all info is in the name.<br>
<div class="im"><br>
> Can anybody else running Linux, and preferably not Ubuntu (as I am<br>
> using Ubuntu), have a look and see if they have the same files with<br>
> information about hard drives?<br>
<br>
Regards,<br>
</div><font color="#888888">Juha Manninen<br>
</font><div><div></div><div class="h5"><br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br>