/dev/dvd vs /dev/sr0
Today, I encountered an error I haven’t experienced before when wanting to burn a DVD.
$ growisofs -dry-run -Z /dev/dvd=Image.iso :-( "/dev/dvd=Image.iso": unexpected errno:No such file or directory
Since I knew the file was existing, something with the dvd device might be wrong. Investigating the problem yields:
$ cdrecord -checkdrive Device was not specified. Trying to find an appropriate drive... Detected CD-R drive: /dev/sr0 Device type : Removable CD-ROM Version : 5 Response Format: 2 Capabilities : Vendor_info : 'HL-DT-ST' Identification : 'DVDRAM GSA-U20N ' Revision : 'HX12' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd). Driver flags : SWABAUDIO BURNFREE Supported modes: PACKET SAO
Allright, the disk in the drive is indeed recognized. But guess what: Now you have to access it directly via its node at /dev/sr0, not its alias /dev/dvd anymore!
You can simply change the command to
$ growisofs -dry-run -Z /dev/sr0=Image.iso
or automount the drive via /etc/fstab, where you can specify the path to mount, eg. /dev/dvd