K3b can't burm ISO image

Hi,

I'm able to create and burn a new data DVD with k3b. But when I try to burn a ISO image with k3b I get the error message below.
If I interpret the error output correctly it is due to the permission.
Has anything changed here in the last time?
As root I can burn the image with the command cdrecord speed=2 Windows.iso

Error output of k3b:

Devices
-----------------------
HL-DT-ST BD-RE  BH10LS30 1.00 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R doppelschichtig, BD-CD-ROM, BD-CD-R, BD-CD-R, DVD+R, DVD+RW, DVD+R doppelschichtig) [DVD-ROM, DVD-R sequenziell, Zweischichtige DVD-R sequenziell, Zweischicht-DVD-R-Sprung, DVD-RAM, DVD-RW Eingeschränktes Überschreiben, DVD-RW sequenziell, DVD+RW, DVD+R, Zweischichtige DVD+R, CD-ROM, CD-R, CD-RW, BD-CD-ROM, BD-R sequenziell (SRM), BD-R Zufällig (RRM), BD-CD-R] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Eingeschränktes Überschreiben, Sprung zwischen DVD-Schichten, Zufällige Aufnahme, Sequenzielle Aufnahme, Sequenzielle Aufnahme + POW] [%7]

System
-----------------------
K3b Version: 20.4.3
KDE Version: 5.71.0
Qt Version:  5.15.0
Kernel:      5.4.52-1-MANJARO

Used versions
-----------------------
cdrecord: 3.2a09

cdrecord
-----------------------
cdrecord: Die Operation ist nicht erlaubt. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Nicht genĂźgend Hauptspeicher verfĂźgbar. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Die Operation ist nicht erlaubt. WARNING: Cannot set RR-scheduler.
cdrecord: Keine Berechtigung. 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-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    : 'HL-DT-ST'
Identifikation : 'BD-RE  BH10LS30 '
Revision       : '1.00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD+R
Profile: BD-ROM 
Profile: BD-R sequential recording 
Profile: BD-R random recording 
Profile: BD-RE 
Profile: DVD-RAM 
Profile: DVD-R sequential recording 
Profile: DVD-R/DL sequential recording 
Profile: DVD-R/DL layer jump recording 
Profile: DVD-RW sequential recording 
Profile: DVD-RW restricted overwrite 
Profile: DVD+RW 
Profile: DVD+R (current)
Profile: DVD+R/DL 
Profile: DVD-ROM 
Profile: CD-R 
Profile: CD-RW 
Profile: CD-ROM 
Profile: Removable Disk 
Using generic SCSI-3/mmc-3 DVD+R driver (mmc_dvdplusr).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 2555904 = 2496 KB
Drive pbuf size: 3850240 = 3760 KB
Drive DMA Speed: 16626 kB/s 94x CD 12x DVD 3x BD
FIFO size      : 4194304 = 4096 KB
cdrecord: Die Operation ist nicht erlaubt. rezero unit: scsi sendcmd: fatal error
CDB:  01 00 00 00 00 00
cdrecord: Die Operation ist nicht erlaubt. Cannot send SCSI cmd via ioctl.
cdrecord: Die Operation ist nicht erlaubt. 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  3993 MB        
Total size:     3993 MB = 2044640 sectors

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=8 -sao driveropts=burnfree -data -tsize=2044640s -

1 Like

Can confirm that K3b also is not working for me with recent updates. The settings manager says that my user has to be added to the group 'optical'. Could not get it to work so far.

1 Like

I had the same problem with k3b, massive Manjaro update this week and tried to use k3b - same permissions error. Not sure what changed, but I was able to workaround by using the following:
$ sudo chmod 4711 /usr/bin/wodim
$ sudo chmod 4711 /usr/bin/cdrdao

I also had to change the following:
$ sudo chown root:optical /usr/bin/cdrecord
$ sudo chown root:optical /usr/bin/wodim
$ sudo chown root:optical /usr/bin/cdrdao
$ sudo chown root:optical /usr/bin/growisofs

Not sure if this is the best or only way to get around this, but until something better comes along it'll do.

3 Likes

Same issue here. K3b 20.04.3
Can't burn a disc due to permission errors.
K3b permission bug

Message:

cdrecord has no permission to open the device
modify device settings in K3b to solve this problem.

Can't change any permissions in K3b settings.

Did

$ sudo chmod 4711 /usr/bin/wodim
$ sudo chmod 4711 /usr/bin/cdrdao

and

$ sudo chown root:optical /usr/bin/cdrecord
$ sudo chown root:optical /usr/bin/wodim
$ sudo chown root:optical /usr/bin/cdrdao
$ sudo chown root:optical /usr/bin/growisofs

Doesn't work for me.
:unamused:

Edit: Here a screenshot of default permissions:
K3b_orig-permissions

And here of the message of no access to the group. Can't be added with add button.
K3b_no access

In order to give K3b full access to the writer device the current user needs to be added to a group optical
->
Unable to execute the action: DBus Backend error: service start org.kde.k3b failed: Cannot launch daemon, file not found or permissions

Even tried
$ sudo usermod -a -G optical MYUSERNAME
This solved the message "In order to give K3b full access to the writer device the current user needs be added to a group optical", but still can't burn a disc.

Any help?

pappl

Hello.
open the file /usr/share/dbus-1/system-services/org.kde.k3b.service. If it points to /usr/lib64/kauth/k3bhelper, then: sudo cp /usr/lib/k3bhelper /usr/lib64/kauth/k3bhelper.

Also:
sudo chmod 4710 /usr/bin/cdrdao
sudo chmod 4710 /usr/bin/cdrecord
sudo chmod 750 /usr/bin/growisofs

sudo chmod 4710 /usr/sbin/cdrdao
sudo chmod 4710 /usr/sbin/cdrecord
sudo chmod 750 /usr/sbin/growisofs

sudo chmod 4710 /sbin/cdrdao
sudo chmod 4710 /sbin/cdrecord
sudo chmod 750 /sbin/growisofs

that works for me.

1 Like

This works!
I'm so happy. Big thumbs up.
K3b-bugfixed
Thanks!

Thank you for your helpful advice, jdwright32 and Nostromo, for posting both your solutions.
Especially with latest post, can confirm K3b is working again. Very nice!

1 Like

I do not have a k3bhelper, isnt that interesting. Tried reinstalling k3b and nothing.

Also, I really messed up k3b changing the permission manually. K3b cant make any changes to permissions directly due to:

Unable to execute the action: DBus Backend error: service start org.kde.k3b failed: Cannot launch daemon, file not found or permissions invalid.

Edit: Ok so k3bhelper gets install in usr/lib/ when the kauth needs it in kauth. I copied it there, and I am making progress, but I really should symlink it as the updates to k3bhelper, if any, will make the older version be left behind.

Finally, I manually added my user to the optical group, as K3B wasnt doing that. Now it is working.

Summary: Use symlink to add the k3bhelper to the kauth helperlist

sudo ln -s /usr/lib/k3bhelper /usr/lib/kauth/k3bhelper

add your user to the group:

sudo usermod -a -G optical yourusername

1 Like

off topic I remember k3b did not work in 2004 when I used to use cd burner maybe they did not fix the issue :sunglasses:

This app comes with the OS.
I think it should work out of the box. Or should be replaced. It's not nice having apps that are broken right off the bat.

Replacement is difficult.
K3b is one of the few options to burn blurays and get a pleasant GUI.

It's bad this bug is still present. There are threads from many years ago complaining about it.
I'm glad there is a solution for manjaro and it will hopefully be fixed someday.
I posted this problem to the KDE forum and made a link to the fix here.

1 Like

Forum kindly sponsored by