This may be an upstream issue, as I’m having this problem on openSUSE LEAP 15.1 (2 systems), Kubuntu 18.04LTS (2 systems), and Solydk 9.
It first appeared on the Kubuntu systems in early to mid September, but It’s now happening on the openSUSE systems.
It won’t write images or data projects to either CD or DVD media.
In openSUSE the error says
cdrecord has no permission to open the device.
modify device settings in k3b to solve this problem
The messages in Kubuntu are slightly different, but to the same effect.
However, I even tried logging in as root and running k3b, I got the same error message.
Both root and cdrom have write permissions on /dev/sr0, and my user is in the cdrom group.
Here are the permissions for cdrecord
ls -l /usr/bin/cdrecord
-rwxr-xr-x 1 root cdrom 442160 Apr 28 2019 /usr/bin/cdrecord
I see that neither UID nor GID is set. Should they be?
Here are the contents of the debug log
Devices
-----------------------
ATAPI DVD A DH24ABL GX12 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-R Dual Layer Jump, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite, Layer Jump] %7]
System
-----------------------
K3b Version: 18.12.3
KDE Version: 5.55.0
Qt Version: 5.9.7
Kernel: 4.12.14-lp151.28.20-default
Used versions
-----------------------
cdrecord: 3.2a09
cdrecord
-----------------------
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler.
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Insufficient 'file read' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'file write' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems.
cdrecord: Insufficient 'memlock' privileges. You may get buffer underruns.
cdrecord: Insufficient 'priocntl' privileges. You may get buffer underruns.
cdrecord: Insufficient 'network' privileges. You will not be able to do remote SCSI.
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Cdrecord-ProDVD-ProBD-Clone 3.02a09 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2016 Joerg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'ATAPI '
Identifikation : 'DVD A DH24ABL '
Revision : 'GX12'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD-RW restricted overwrite
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL layer jump recording
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential recording (current)
Profile: DVD-RW restricted overwrite (current)
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags : NO-CD DVD MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 1177600 = 1150 KB
FIFO size : 4194304 = 4096 KB
cdrecord: Operation not permitted. rezero unit: scsi sendcmd: fatal error
CDB: 01 00 00 00 00 00
cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl.
cdrecord: Operation not permitted. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Track 01: data 3637 MB
Total size: 3637 MB = 1862198 sectors
cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=2 -sao driveropts=burnfree -data -tsize=1862198s -
It’s frustrating to have to fire up a Windows machine in order to write to optical media.
What am I missing?
Thanks,
ron