I am using Linux Fedora Core 4 (have to work with a legacy system) and trying to burn DVDs as a non-root user using the
growisofs utility. I seem to be getting this error message at the end of the burn process every time:
Error trying to open /dev/dvd exclusively ... retrying in 1 second.
The output is here:
99.18% done, estimate finish Wed Jan 22 11:02:27 2014 99.44% done, estimate finish Wed Jan 22 11:02:27 2014 99.71% done, estimate finish Wed Jan 22 11:02:27 2014 99.97% done, estimate finish Wed Jan 22 11:02:28 2014 Total translation table size: 973 Total rockridge attributes bytes: 663 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used 0 1900572 extents written (3712 MB) builtin_dd: 1900576*2KB out @ average 8.2x1385KBps /dev/dvd: flushing cache /dev/dvd: closing track /dev/dvd: closing disc Error trying to open /dev/dvd exclusively ... retrying in 1 second. /dev/dvd: reloading tray
It seems like it completed the writing process, complains about not being able to open the device exclusively, then reloads the DVD drive's tray and things are fine after that. Furthermore, on examining the DVD, the burnt contents are there.
The burn command is run inside a bash script and I prefer it if the error message is not there as it is used by other people and can cause confusion. An excerpt of the script is here:
# # Burn to DVD # growisofs -dvd-compat -Z /dev/dvd -r -f -J -T /BACKUPS/DVD_backups/* if [[ $? != 0 ]]; then echo "Burn to DVD failed." exit 1 fi echo "=============================================" echo " DVD Burn Finished." echo "=============================================" echo echo
/dev/dvd is a soft link that points to
ls output of
brw-rw---- 1 root disk 11, 0 Jan 22 09:47 /dev/scd0
The user I am running the bash script under is a member of the
Here is the content of the
/dev/scd0 /media/cdrecorder auto pamconsole,exec,noauto,user,managed 0 0
I have tried
lsof | grep /media/cdrecorder and
fuser -a /media/cdrecorder but that does not show up with anything.