The cdrw command works with or without removable media services running. For more information about disabling or enabling removable media services, see How to Disable or Enable Removable Media Services.
The CD or DVD can be any CD or DVD that the drive can read.
$ cdrw -l Looking for CD devices... Node Connected Device Device type ----------------------+--------------------------------+----------------- cdrom1 | YAMAHA CRW8824S 1.0d | CD Reader/Writer
Add the drive without rebooting the system.
# devfsadm
Restart removable media services