Graeme:
>Query the date/time value of the '/bin' directory under Linux, or
>'C:\Windows' or 'C:\WinNT' under Windows. Then work out how many seconds or
>milliseconds since say 1980-01-01. You then have a pretty unique value. The
>chances of somebody else running your software and having installed their
>OS in the exact same millisecond as somebody else is pretty slim. :-)
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?

On Wed, Feb 10, 2010 at 6:37 PM, Juha Manninen <juha.manni...@phnet.fi>wrote:

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

Reply via email to