LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cd Burning: operation not permitted (https://www.linuxquestions.org/questions/linux-newbie-8/cd-burning-operation-not-permitted-467761/)

xpucto 07-26-2006 04:43 AM

cd Burning: operation not permitted
 
Hi!
I'm trying to burn some windows datas from an external HD. I changed the rights for all folders into 755 and changed the owner, so that my user is the data's owner. When I try to burn some datas from the external HD using K3b, I get an error message. The output looks like this:
Quote:

System
-----------------------
K3b Version: 0.12.14

KDE Version: 3.5.1-2.3 Red Hat
QT Version: 3.3.5
Kernel: 2.6.17-1.2157_FC5
Devices
-----------------------
PLEXTOR DVDR PX-740A 1.01 (/dev/hdd, ) at [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-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96R; RAW/R16; RAW/R96R; Restricted Overwrite; Layer Jump]

JLMS XJ-HD166S DS19 (/dev/hdc, ) at [CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM] [None]
K3b
-----------------------
Size of filesystem calculated: 240934

Used versions
-----------------------
cdrecord: 2.1.1a03

cdrecord
-----------------------
/usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
/usr/bin/cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.85-RH '@(#)scsi-linux-sg.c 1.85 05/05/16 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
Cdrecord-Clone 2.01.01a03-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2005 Jörg Schilling
NOTE: This version contains the OSS DVD extensions for cdrtools and thus may
have bugs related to DVD issues that are not present in the original
cdrtools. Please send bug reports or support requests to
http://bugzilla.redhat.com/bugzilla The original cdrtools author should
not be bothered with problems in this version.
TOC Type: 3 = CD-ROM XA mode 2
Using libscg version 'schily-0.8'.
Driveropts: 'burnfree'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 3
Capabilities :
Vendor_info : 'PLEXTOR '
Identifikation : 'DVDR PX-740A '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009
Profile: 0x002B
Profile: 0x001B
Profile: 0x001A
Profile: 0x0016
Profile: 0x0015
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/hdd speed=48 -tao driveropts=burnfree -eject -multi -xa -tsize=240934s -

mkisofs
-----------------------
240934
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Using WHATS_NEW_IN_ARCGIS_DESK000.PDF;1 for Documentation/Whats_New_In_ArcGIS_Desktop_91.pdf (Whats_New_In_ArcGIS_Desktop_90.pdf)
/usr/bin/mkisofs: Connection reset by peer. cannot fwrite 2048*1

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid K3b data project -volset -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher -preparer -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-christophe/k3b5bf83a.tmp -rational-rock -hide-list /tmp/kde-christophe/k3bHIFqFa.tmp -joliet -hide-joliet-list /tmp/kde-christophe/k3bV9lJdb.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-christophe/k3bWCCwJa.tmp
I've just tried to make an iso image from another file located on my HD, and I also got an error message:
Quote:

System
-----------------------
K3b Version: 0.12.14

KDE Version: 3.5.1-2.3 Red Hat
QT Version: 3.3.5
Kernel: 2.6.17-1.2157_FC5
Devices
-----------------------
PLEXTOR DVDR PX-740A 1.01 (/dev/hdd, ) at [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-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96R; RAW/R16; RAW/R96R; Restricted Overwrite; Layer Jump]

JLMS XJ-HD166S DS19 (/dev/hdc, ) at [CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM] [None]
Used versions
-----------------------
cdrecord: 2.1.1a03

cdrecord
-----------------------
/usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
/usr/bin/cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.85-RH '@(#)scsi-linux-sg.c 1.85 05/05/16 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
Cdrecord-Clone 2.01.01a03-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2005 Jörg Schilling
NOTE: This version contains the OSS DVD extensions for cdrtools and thus may
have bugs related to DVD issues that are not present in the original
cdrtools. Please send bug reports or support requests to
http://bugzilla.redhat.com/bugzilla The original cdrtools author should
not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
Driveropts: 'burnfree'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 3
Capabilities :
Vendor_info : 'PLEXTOR '
Identifikation : 'DVDR PX-740A '
Revision : '1.01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009
Profile: 0x002B
Profile: 0x001B
Profile: 0x001A
Profile: 0x0016
Profile: 0x0015
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/hdd speed=12 -dao driveropts=burnfree -eject -data /home/christophe/download/GENTOO/install-x86-minimal-2006.0.iso

I guess this occures since I made an upgrade from fedora 4 to fedora 5. Before it worked fine.
I don't know how to get things to work again.
Thanks for any help.

xpucto 07-26-2006 05:20 AM

burning only works with root.
What permissions should I change in oder to have it work with normal user?

nx5000 07-26-2006 07:20 AM

I had the same problem 10 days ago but I can't remember what I did.

I think its this:

-rwsr-sr-x 1 root cdrom 565104 2006-02-19 23:18 /usr/bin/cdrdao
-rwxr-xr-x 1 root cdrom 133 2006-01-07 19:43 /usr/bin/cdrecord
-rwsr-sr-x 1 root cdrom 323540 2006-01-07 19:44 /usr/bin/cdrecord.mmap
-rwsr-sr-x 1 root cdrom 323540 2006-01-07 19:44 /usr/bin/cdrecord.shm

and the user is group of cdrom

b0uncer 07-26-2006 07:30 AM

In order to write cds/dvds one needs to have sufficient permissions on the files you can see when you open k3b's settings (the one that deals with permissions). You can either run k3b as root, or set the permissions so you run it beloning to some group, like "burners", and make sure "burners" group is the owner of the needed tools and device files.

xpucto 07-26-2006 07:40 AM

Quote:

Originally Posted by nx5000
I had the same problem 10 days ago but I can't remember what I did.

I think its this:

-rwsr-sr-x 1 root cdrom 565104 2006-02-19 23:18 /usr/bin/cdrdao
-rwxr-xr-x 1 root cdrom 133 2006-01-07 19:43 /usr/bin/cdrecord
-rwsr-sr-x 1 root cdrom 323540 2006-01-07 19:44 /usr/bin/cdrecord.mmap
-rwsr-sr-x 1 root cdrom 323540 2006-01-07 19:44 /usr/bin/cdrecord.shm

and the user is group of cdrom

cdrecord.mmap and cdrecord.shm don't exist in my system
I don't either have any cdrom as user or group. I created one and changed cdrdao and cdrecord but it doesn't help.
Quote:

-rwxr-xr-x 1 root cdrom 374124 Feb 15 10:10 /usr/bin/cdrecord
-rwsr-sr-x 1 root cdrom 605468 Mar 9 14:34 /usr/bin/cdrdao
and my user belongs to cdrom group

xpucto 07-26-2006 07:42 AM

Quote:

Originally Posted by b0uncer
In order to write cds/dvds one needs to have sufficient permissions on the files you can see when you open k3b's settings (the one that deals with permissions). You can either run k3b as root, or set the permissions so you run it beloning to some group, like "burners", and make sure "burners" group is the owner of the needed tools and device files.

I couldn't see any permissions issue in k3b's settings.

nx5000 07-26-2006 08:48 AM

If cdrecord.shm and cdrecord.mmap don't exist then you have to set
cdrecord to suid root.
chmod +s /usr/bin/cdrecord

Can you try and tell me?

xpucto 07-27-2006 01:24 AM

Quote:

Originally Posted by nx5000
If cdrecord.shm and cdrecord.mmap don't exist then you have to set
cdrecord to suid root.
chmod +s /usr/bin/cdrecord

Can you try and tell me?

still have an error message. Looks a bit different though:
Quote:

System
-----------------------
K3b Version: 0.12.14

KDE Version: 3.5.1-2.3 Red Hat
QT Version: 3.3.5
Kernel: 2.6.17-1.2157_FC5
Devices
-----------------------
PLEXTOR DVDR PX-740A 1.01 (/dev/hdd, ) at [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-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96R; RAW/R16; RAW/R96R; Restricted Overwrite; Layer Jump]

JLMS XJ-HD166S DS19 (/dev/hdc, ) at [CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM] [None]
Used versions
-----------------------
cdrecord: 2.1.1a03

cdrecord
-----------------------
/usr/bin/cdrecord: Resource temporarily unavailable. Cannot get mmap for 4198400 Bytes on /dev/zero.
Cdrecord-Clone 2.01.01a03-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2005 Jörg Schilling
NOTE: This version contains the OSS DVD extensions for cdrtools and thus may
have bugs related to DVD issues that are not present in the original
cdrtools. Please send bug reports or support requests to
http://bugzilla.redhat.com/bugzilla The original cdrtools author should
not be bothered with problems in this version.
TOC Type: 1 = CD-ROM

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/hdd speed=48 -dao driveropts=burnfree -eject -data /home/christophe/download/Ubuntu/ubuntu-6.06-server-i386.iso


xpucto 07-28-2006 12:26 AM

should I reinstall K3b ?!

xpucto 07-28-2006 12:41 AM

strangely it works fine with DVDs! I only have the problem with CDs! Any clue?

nx5000 08-01-2006 06:34 AM

Ah my memory came back :D

I know what I did:

Install resmgr which is used by k3b.
Then uncomment in /etc/resmgr.conf the line:

Code:

allow desktop          tty=/dev/tty[1-9]* || tty=:0
then /etc/init.d/resmgr restart

Works for me.

xpucto 08-03-2006 03:13 AM

Quote:

Originally Posted by nx5000
Ah my memory came back :D

I know what I did:

Install resmgr which is used by k3b.
Then uncomment in /etc/resmgr.conf the line:

Code:

allow desktop          tty=/dev/tty[1-9]* || tty=:0
then /etc/init.d/resmgr restart

Works for me.

Glad you're memory got back! I see that I'm not the only one having a hard time trying to make a documentation everytime I learn something new.

I try to install resmgr but I got those error messages:
Quote:

$ sudo make
cc -Wall -g -o .objs/main.o -c main.c
In file included from resmgrd.h:14,
from main.c:22:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/session.o -c session.c
In file included from resmgrd.h:14,
from session.c:11:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/class.o -c class.c
In file included from resmgrd.h:14,
from class.c:14:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/acl.o -c acl.c
In file included from resmgrd.h:14,
from acl.c:7:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/config.o -c config.c
In file included from resmgrd.h:14,
from config.c:10:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/svc.o -c svc.c
In file included from resmgrd.h:14,
from svc.c:7:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/family.o -c family.c
In file included from resmgrd.h:14,
from family.c:8:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/file.o -c file.c
In file included from resmgrd.h:14,
from file.c:10:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/scsi.o -c scsi.c
In file included from resmgrd.h:14,
from scsi.c:17:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/usb.o -c usb.c
In file included from resmgrd.h:14,
from usb.c:19:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/paride.o -c paride.c
In file included from resmgrd.h:14,
from paride.c:15:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -o .objs/utils.o -c utils.c
In file included from utils.c:22:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -fPIC -o .lobjs/conn.o -c conn.c
In file included from resmgrd.h:14,
from conn.c:7:
utils.h:11: warning: built-in function ‘log’ declared as non-function
utils.h:13: warning: built-in function ‘clog’ declared as non-function
cc -Wall -g -fPIC -o .lobjs/client.o -c client.c
cc -Wall -g -fPIC -o .lobjs/glob.o -c glob.c
cc -shared -Wl,-soname,libresmgr.so.1.0 -o libresmgr.so.1.0 .lobjs/conn.o .lobjs/client.o .lobjs/glob.o
ln -sf libresmgr.so.1.0 libresmgr.so
cc -o resmgrd .objs/main.o .objs/session.o .objs/class.o .objs/acl.o .objs/config.o .objs/svc.o .objs/family.o .objs/file.o .objs/scsi.o .objs/usb.o .objs/paride.o .objs/utils.o -L. -lresmgr
cc -Wall -g -o .objs/resmgr.o -c resmgr.c
cc -o resmgr .objs/resmgr.o -L. -lresmgr
cc -Wall -g -fPIC -o .lobjs/pam_resmgr.o -c pam_resmgr.c
pam_resmgr.c:13:34: error: security/pam_modules.h: No such file or directory
pam_resmgr.c:18: error: expected ‘)’ before ‘*’ token
pam_resmgr.c:67: error: expected ‘)’ before ‘*’ token
make: *** [.lobjs/pam_resmgr.o] Error 1
any idea what gone wrong? I use FC5.

nx5000 08-03-2006 09:09 AM

There is no prebuilt binary package?
Really try to find a binary package, no need to compile everything!!
There is no "./configure" in the directory?

Btw, meanwhile I updated my k3b and now k3bsetup works, try it. There is a group cdburner, should do what you want and no need for external software.

xpucto 08-09-2006 02:20 AM

Quote:

Originally Posted by nx5000
Btw, meanwhile I updated my k3b and now k3bsetup works, try it. There is a group cdburner, should do what you want and no need for external software.

I've just updated k3b but I do not seen anyting related width users'permissions.
In the menus, I have settings, then options,but nothin with permissions.

nx5000 08-09-2006 09:41 AM

and if you try from the command line:
k3bsetup
?


All times are GMT -5. The time now is 07:59 PM.