On Fri, Jan 06, 2006 at 01:34:59PM +0000, Chris Paulson-Ellis wrote: > Note that it is still a bit different to the page 0x80 output, but I > don't think this matters (unless that '0' or '1' is a bug not a > feature). For my purposes, it just needs to be unique. > > # ( scsi_id -p 0x80 -g -x -s /block/sda ; \ > scsi_id -p 0x83 -g -x -s /block/sda ) | grep ID_SERIAL > ID_SERIAL=SATA_Maxtor_6Y160M0_Y4DCTR3E > ID_SERIAL=1ATA_Maxtor_6Y160M0_Y4DCTR3E Yes, the above is a feature. The SATA in the above is actually S + ATA, the 'S' is added to guarantee no overlap with page 83 names. For page 80 the output is concatenation of 'S', vendor, model, and page 80 result, For page 83 the output puts the id type as a prefix, so the name spaces for page 83 can't collide - they are mostly unique across a given id type, but not for vendor specific, hence we also add model + vendor for vendor specific. And for '-x', extra spaces are removed and then spaces converted to '_'. -- Patrick Mansfield - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html