> 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