LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-20-2018, 11:50 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
K3B - Error 255 when burning DVD from an .iso image


Hello

i am trying to burn a DVD from an .iso image. Unfortunately i am getting the following error. Please have a look at the output:

Code:
System
-----------------------
K3b Version: 2.0.3
KDE Version: 4.14.32
QT Version:  4.8.7
Kernel:      4.4.153

Used versions
-----------------------
cdrecord: 3.1

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.01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2015 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    : 'PLDS    '
Identifikation : 'DVD+-RW DS-8A8SH'
Revision       : 'KD13'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD+R
Profile: DVD+R/DL 
Profile: DVD+R (current)
Profile: DVD+RW 
Profile: DVD-R/DL layer jump recording 
Profile: DVD-R/DL sequential recording 
Profile: DVD-RW sequential recording 
Profile: DVD-RW restricted overwrite 
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-3 DVD+R driver (mmc_dvdplusr).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE FORCESPEED 
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 718848 = 702 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  4479 MB        
Total size:     4479 MB = 2293604 sectors

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=4 -sao driveropts=burnfree -data -tsize=2293604s -
Code:
bash-4.3$ ls -la /usr/bin/cdrecord 
-rwxr-xr-x 1 root root 480232 May 31  2016 /usr/bin/cdrecord
I am trying the operation as a normal user. I see there is the group execution right on cdrecord for the group root. Would it be enough to change it to a group where my normal user is a member of? My normal user is not a member of the group root.


Thanks!
 
Old 10-20-2018, 11:51 AM   #2
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think something like this will help.

Code:
# chown root:somegroup /usr/bin/cdrecord
# chmod 4710 /usr/bin/cdrecord
And then make sure your user belongs to 'somegroup'.

Last edited by orbea; 10-20-2018 at 01:40 PM. Reason: Fixed code tags.
 
1 members found this post helpful.
Old 10-20-2018, 12:46 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
This is covered in the CHANGES_AND_HINTS.TXT file on your install media or favorite mirror:

Code:
If you have permission errors when attempting to burn a cdrom or dvd image,
  such as the following:
    /usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
  then cdrecord almost certainly needs root privileges to work correctly.
  One potential solution is to make the cdrecord and cdrdao binaries suid root,
  but this has possible security implications.  The safest way to do that is 
  to make those binaries suid root, owned by a specific group, and executable
  by only root and members of that group.  For most people, the example below
  will be sufficient (but adjust as desired depending on your specific needs):
    chown root:cdrom /usr/bin/cdrecord /usr/bin/cdrdao
    chmod 4750 /usr/bin/cdrecord /usr/bin/cdrdao
  If you don't want all members of the 'cdrom' group to be able to execute the
  two suid binaries, then create a special group (such as 'burning' which is
  recommended by k3b), use it instead of 'cdrom' in the line above, and add
  to it only the users you wish to have access to cdrecord and cdrdao.
 
1 members found this post helpful.
Old 10-20-2018, 01:37 PM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by glupa4e View Post
I am trying the operation as a normal user. I see there is the group execution right on cdrecord for the group root. Would it be enough to change it to a group where my normal user is a member of? My normal user is not a member of the group root.
Thanks!
The important thing for burning CD-roms or DVD's is that YOU are a member of the group (normally cdrom) of the device /dev/sr?.
The program k3b (and crecord too) is running as YOU, not as its owner/group, so it's YOU that needs the access to the device.
In _my_ system /dev/sr? are:
brw-rw---- 1 root cdrom 11, 0 2018-08-09 07:52:59 /dev/sr0
brw-rw---- 1 root cdrom 11, 1 2018-08-09 07:52:59 /dev/sr1
so anyone that belongs to group "cdrom" can write to it (and all other can NOT!).

So just make sure you're a member of that group (in /etc/group) and logout/in before trying it again.
 
1 members found this post helpful.
Old 10-20-2018, 02:33 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
As suggested in CHANGES_AND_HINTS, I created the burning group (as root, of course) and added brian to it. Everything works OK.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistent errors when burning DVD from iso with K3b and growisofs JamesHall Linux - Software 7 01-26-2009 11:04 AM
k3b DVD ISO Burning kromberg Linux - Software 3 08-11-2008 11:56 AM
Burning ISO image (DVD+R, external DVD writer) swan2925 Linux - Software 6 06-02-2005 09:49 AM
Burning ISO Image with K3b software ? dolphans1 Mandriva 4 08-20-2004 01:00 AM
Burning dvd iso with K3b Inexactitude Linux - General 15 03-04-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration