Output from udevtest rules in a USB drive supporting VPDs and SCSI protocol:
---- Starting '/usr/bin/sg_inq --export /dev/sdb' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TPGS=0' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TYPE=disk' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR=Seagate' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR_ENC=Seagate\x20' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL=Backup+_Desk' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL_ENC=Backup+\x20\x20Desk\x20\x20\x20' '/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_REVISION=0406' Process '/usr/bin/sg_inq --export /dev/sdb' succeeded. Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw' '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw'(out) 'SCSI_IDENT_SERIAL=NA7EMXLG' Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw' succeeded. Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw' '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw'(out) 'SCSI_IDENT_LUN_NAA_REG=5000000000000001' Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw' succeeded. Starting 'probe-bcache -o udev /dev/sdb' Process 'probe-bcache -o udev /dev/sdb' succeeded. Starting '/lib/udev/vdev_id -d sdb' Process '/lib/udev/vdev_id -d sdb' succeeded. ----
Output from udevtest in a memory stick supporting only SCSI commands:
---- Process '/usr/bin/sg_inq --export /dev/sdc' succeeded. Starting '/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw' '/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw'(err) 'unable to open binary file /sys/block/sdc/device/vpd_pg80: No such file or directory' Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdc/device/vpd_pg80 --raw' failed with exit code 15. Starting 'probe-bcache -o udev /dev/sdc' Process 'probe-bcache -o udev /dev/sdc' succeeded. Starting '/lib/udev/vdev_id -d sdc' Process '/lib/udev/vdev_id -d sdc' succeeded. ----
Output from udevtest rules in a USB drive supporting VPDs and SCSI protocol:
---- Seagate' ENC=Seagate\ x20' Backup+ _Desk' ENC=Backup+ \x20\x20Desk\ x20\x20\ x20' 0406' /sys/block/ sdb/device/ vpd_pg80 --raw' /sys/block/ sdb/device/ vpd_pg80 --raw'(out) 'SCSI_IDENT_ SERIAL= NA7EMXLG' /sys/block/ sdb/device/ vpd_pg80 --raw' succeeded. /sys/block/ sdb/device/ vpd_pg83 --raw' /sys/block/ sdb/device/ vpd_pg83 --raw'(out) 'SCSI_IDENT_ LUN_NAA_ REG=50000000000 00001' /sys/block/ sdb/device/ vpd_pg83 --raw' succeeded.
Starting '/usr/bin/sg_inq --export /dev/sdb'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TPGS=0'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_TYPE=disk'
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR=
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_VENDOR_
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL=
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_MODEL_
'/usr/bin/sg_inq --export /dev/sdb'(out) 'SCSI_REVISION=
Process '/usr/bin/sg_inq --export /dev/sdb' succeeded.
Starting '/usr/bin/sg_inq --export --inhex=
'/usr/bin/sg_inq --export --inhex=
Process '/usr/bin/sg_inq --export --inhex=
Starting '/usr/bin/sg_inq --export --inhex=
'/usr/bin/sg_inq --export --inhex=
Process '/usr/bin/sg_inq --export --inhex=
Starting 'probe-bcache -o udev /dev/sdb'
Process 'probe-bcache -o udev /dev/sdb' succeeded.
Starting '/lib/udev/vdev_id -d sdb'
Process '/lib/udev/vdev_id -d sdb' succeeded.
----
Output from udevtest in a memory stick supporting only SCSI commands:
---- /sys/block/ sdc/device/ vpd_pg80 --raw' /sys/block/ sdc/device/ vpd_pg80 --raw'(err) 'unable to open binary file /sys/block/ sdc/device/ vpd_pg80: No such file or directory' /sys/block/ sdc/device/ vpd_pg80 --raw' failed with exit code 15.
Process '/usr/bin/sg_inq --export /dev/sdc' succeeded.
Starting '/usr/bin/sg_inq --export --inhex=
'/usr/bin/sg_inq --export --inhex=
Process '/usr/bin/sg_inq --export --inhex=
Starting 'probe-bcache -o udev /dev/sdc'
Process 'probe-bcache -o udev /dev/sdc' succeeded.
Starting '/lib/udev/vdev_id -d sdc'
Process '/lib/udev/vdev_id -d sdc' succeeded.
----