5

Sometimes when I try to burn an ISO image, the message that "/dev/sr0" cannot be open exclusively appears. lsof does not shows any program that opens "/dev/sr0" (I checked for aliases too).

tshepang
  • 64,472
  • 86
  • 223
  • 290
Maciej Piechotka
  • 16,578
  • 11
  • 57
  • 93

3 Answers3

1

You may be using a bad fork of the CD writing software. It seems that Debian forked the cdrecord tools five years ago, and one fork does not work well, including emitting errors about exclusive locks on the CD device.

Get a copy of the real software by going to http://cdrecord.berlios.de/

Also (even though you may not be using ubuntu) the following may be informative: https://bugs.launchpad.net/ubuntu/+source/cdrkit/+bug/149076

unpythonic
  • 942
  • 6
  • 8
  • Even if cdrkit is unrelated to your problem, I would replace it with the proper official cdrtools. cdrkit is buggy and very outdated, all its programs included. I want an updated mkisofs, even on my cdromless netbook. There is a really good ppa located https://launchpad.net/~brandonsnider/+archive/cdrtools I actually was able to use those packages in Debian, with no problems. – J. M. Becker Nov 26 '11 at 08:39
1
fuser -a /media/cdrom

Usually that tells you which process is accessing or locking the resource.

Amjith
  • 373
  • 1
  • 3
  • 9
0

Also, lsof can be a great help in determining who's using a filesystem.

sudo lsof | grep /media/cdrom

penguin359
  • 11,877
  • 4
  • 42
  • 45