Alternative/simple way to get the ATIP and other disc (and drive) information on Linux (or BSD/UNIX)

with Joerg Schilling’s (who unfortunately passed away earlier this year) original version of cdrecord from cdrtools (installed using NetBSD’s pkgsrc since it is famously not included in the Debian package repositories):
|# /usr/pkg/bin/cdrecord -atip dev=16,0,0
Cdrecord-ProDVD-ProBD-Clone 3.01 (x86_64-unknown-linux-gnu) Copyright © 1995-2015 Joerg Schilling
scsidev: ‘16,0,0’
scsibus: 16 target: 0 lun: 0
Linux sg driver version: 3.5.36
Using libscg version ‘schily-0.9’.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : ‘TSSTcorp’
Identifikation : 'CDDVDW SH-224DB ’
Revision : ‘SB01’
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
ATIP info from disk:
Indicated writing power: 5
Disk Is not unrestricted
Disk Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation

Capacity  Blklen/Sparesz.  Format-type  Type
  358091             2048         0x00  Formatted Media

I should add that while installing cdrtools may be a bit of hassle compared to installing, say, cdrkit if your distribution does not package it, it is worth it as cdrtools provides a lot more than just cdrecord and cdrecord can do a lot more than provide ATIP information! The “dev=16,0,0” argument specifies my SH-224DB (‘dev’ is short for device). You can find a list of drives (and other SCSI/SATA devices) by simply typing “cdrecord dev”. Here is an excerpt from my output (I excluded my HDD, SSD and SD card reader):
16,0,0 1600) ‘TSSTcorp’ 'CDDVDW SH-224DB ’ ‘SB01’ Removable CD-ROM
16,1,0 1601) *
16,2,0 1602) *
16,3,0 1603) *
16,4,0 1604) *
16,5,0 1605) *
16,6,0 1606) *
16,7,0 1607) *
17,0,0 1700) ‘HL-DT-ST’ 'BD-RE WH16NS40 ’ ‘1.03’ Removable CD-ROM
17,1,0 1701) *
17,2,0 1702) *
17,3,0 1703) *
17,4,0 1704) *
17,5,0 1705) *
17,6,0 1706) *
17,7,0 1707) *”

Note that both drives are connected using USB SATA adapters/enclosures, not to SATA connectors on the motherboard!

The cdrskin utility (which is available in the repositories of most if not all major Linux distributions) from the libburnia project can also provide the ATIP, although it provides less other (e.g. no short/long strategy) information:

|#cdrskin -atip
cdrskin 1.5.2 : limited cdrecord compatibility wrapper for libburn
cdrskin: scanning for devices …
cdrskin: … scanning for devices done
cdrskin: pseudo-atip on drive 0
cdrskin: status 4 burn_disc_full “There is a disc with data on it in the drive”
scsidev: ‘17,0,0’
Device type : Removable CD-ROM
Vendor_info : ‘HL-DT-ST’
Identifikation : ‘BD-RE WH16NS40’
Revision : ‘1.03’
Drive id : 'M---------- ’
Driver flags : BURNFREE
Supported modes: TAO SAO
cdrskin: burn_drive_get_write_speed = 7056 (40.0x)
ATIP info from disk:
Is not erasable
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
1T speed low: 16 1T speed high: 40
Producer: CMC Magnetics Corporation