sudo /lib/udev/cdrom_id -d /dev/sr0
sudo /lib/udev/cdrom_id -d /dev/sr0 main: probing: '/dev/sr0' cd_media_compat: CDROM_DRIVE_STATUS != CDS_DISC_OK cd_inquiry: INQUIRY: [PIONEER ][DVD-RW DVR-112D][1.21] cd_profiles: GET CONFIGURATION: number of profiles 316 cd_profiles: profile 0x2b cd_profiles: profile 0x1b cd_profiles: profile 0x1a cd_profiles: profile 0x16 cd_profiles: profile 0x15 cd_profiles: profile 0x14 cd_profiles: profile 0x13 cd_profiles: profile 0x11 cd_profiles: profile 0x10 cd_profiles: current profile 0x00 cd_profiles: no current profile, assuming no media ID_CDROM=1 ID_CDROM_CD_R=1 ID_CDROM_CD_RW=1 ID_CDROM_DVD=1 ID_CDROM_DVD_R=1 ID_CDROM_DVD_RW=1 ID_CDROM_DVD_PLUS_R=1 ID_CDROM_DVD_PLUS_RW=1 ID_CDROM_DVD_PLUS_R_DL=1
udev – dynamic device management
udev provides a dynamic device directory containing only the files for actually present devices. It creates or removes device node files in the /dev directory, or it renames network interfaces.
Usually udev runs as udevd(8) and receives uevents directly from the kernel if a device is added or removed from the system.
If udev receives a device event, it matches its configured rules against the available device attributes provided in sysfs to identify the device. Rules that match may provide additional device information or specify a device node name and multiple symlink names and instructudev to run additional programs as part of the device event handling.