View previous topic :: View next topic |
Author |
Message |
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Fri Nov 12, 2004 4:07 pm Post subject: |
|
|
It is using cdrecord, and I was copying a CD that was in my DVD drive. It's also using burnfree if that makes any difference.
Here's the output of Code: | cdrecord -dev=/dev/hdd -checkdrive |
Quote: | Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.9-gentoo-r3
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PREMIUM '
Revision : '1.05'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
|
_________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
r3pek Retired Dev
Joined: 17 Sep 2003 Posts: 568 Location: Lisbon - Portugal
|
Posted: Fri Nov 12, 2004 5:44 pm Post subject: |
|
|
@dsd:
i can burn cd's with cdrecord..... but i can't use growisofs.
(burning as user)
here's the log from k3b:
Code: | System
-----------------------
K3b Version:0.11.17
KDE Version: 3.3.0
QT Version: 3.3.3
growisofs
-----------------------
Executing 'builtin_dd if=/dev/fd/0 of=/dev/hdc obs=32k seek=0'
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted
growisofs comand:
-----------------------
/usr/bin/growisofs -Z /dev/hdc=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=dao -dvd-compat -speed=2 -overburn
mkisofs
-----------------------
/usr/bin/mkisofs: Warning: -follow-links does not always work correctly; be careful.
mkisofs comand:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid K3b data project -volset -appid K3B THE CD KREATOR VERSION 0.11.17 (C) 2003 SEBASTIAN TRUEG AND THE K3B TEAM -publisher -preparer K3b - Version 0.11.17 -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-r3pek/k3bX4Odma.tmp -rational-rock -hide-list /tmp/kde-r3pek/k3bHPVDmc.tmp -full-iso9660-filenames -follow-links -iso-level 2 -path-list /tmp/kde-r3pek/k3bTrOhfc.tmp -dvd-video /tmp/kde-r3pek/k3bVideoDvd1 /home/r3pek/.kde/share/apps/k3b/temp/dummydir0/ |
Code: | r3pek@Trinity r3pek $ groups
tty disk wheel audio cdrom games cdrw users portage |
Code: | r3pek@Trinity r3pek $ ls /dev/dvdrec /dev/hdc
lrwxrwxrwx 1 root root 3 Nov 12 09:07 /dev/dvdrec -> hdc
brw------- 1 r3pek root 22, 0 Nov 12 09:07 /dev/hdc
|
i'm using udev. any special atention needed? |
|
Back to top |
|
|
xanderhsia n00b
Joined: 08 Jul 2004 Posts: 34
|
Posted: Sat Nov 13, 2004 2:00 am Post subject: |
|
|
I got the same error at first as r3pek
Now after several tries, I get the following instead
Code: |
System
-----------------------
K3b Version:0.11.17
KDE Version: 3.3.1
QT Version: 3.3.3
growisofs
-----------------------
WARNING: /dev/hdd already carries isofs!
About to execute 'builtin_dd if=/dev/fd/0 of=/dev/hdd obs=32k seek=0'
:-( write failed: Input/output error
growisofs comand:
-----------------------
/usr/bin/growisofs -Z /dev/hdd=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=dao -dvd-compat -speed=2.4
|
I have not yet done the second patch for logging errors. Will try that and report back |
|
Back to top |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Mon Nov 15, 2004 11:41 pm Post subject: |
|
|
r3pek wrote: | @dsd:
i can burn cd's with cdrecord..... but i can't use growisofs.
(burning as user)
|
I got the same error with growisofs (& k3b), but i can burn if logged as root
I'm using 2.6.9-gentoo-r4 & pure udev _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
|
llsardonicll Tux's lil' helper
Joined: 07 Oct 2004 Posts: 110
|
Posted: Tue Nov 16, 2004 8:12 am Post subject: |
|
|
k3b works great, no messages at all
*edit
xcdroast is broken now, it fails with
Code: |
cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
|
worked fine with previous kernels, works fine now as root, not users...off I go to find the solution to this problem. |
|
Back to top |
|
|
phekko Tux's lil' helper
Joined: 17 Feb 2004 Posts: 109 Location: Espoo Esbo
|
Posted: Tue Nov 16, 2004 10:02 am Post subject: |
|
|
r3pek wrote: |
unable to PREVENT MEDIA REMOVAL: Operation not permitted
|
I get this too. Used to work until upgrading to kernel 2.6.9-gentoo-r4. Ideas how to fix this would be welcome |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Tue Nov 16, 2004 4:46 pm Post subject: |
|
|
growisofs users: please upgrade to the latest testing version of dvd+rw-tools (5.21.4.10.8 ). they already fixed dvd+rw-format in that release, so i'm thinking they probably fixed growisofs too.
please report back here and let me know if it works. if it does, i'll send in a request to make 5.21.4.10.8 stable
llsardonicll: that is usually just a cdrecord warning. does cdrecord work ok outside of xcdroast?
donjuan: fyi, i figured out those rejected commands - they are specific to plextor writers. i'll see what the linux block maintainer thinks about this sort of situation.. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
llsardonicll Tux's lil' helper
Joined: 07 Oct 2004 Posts: 110
|
Posted: Tue Nov 16, 2004 5:44 pm Post subject: |
|
|
Yeah, cdrecord works fine just seems to be a xcdroast problem...i have a plextor drive and I get no reject commands at all.
Code: |
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.9-gentoo-r4
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PREMIUM '
Revision : '1.05'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE VARIREC FORCESPEED SPEEDREAD SINGLESESSION HIDECDR
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
|
|
|
Back to top |
|
|
phekko Tux's lil' helper
Joined: 17 Feb 2004 Posts: 109 Location: Espoo Esbo
|
Posted: Tue Nov 16, 2004 10:08 pm Post subject: |
|
|
After emerging the new dvd+rw-tools everything seems to work a-ok. Thanks for the help. Now don't have any problems whatsoever with dvd writing |
|
Back to top |
|
|
rapsure Apprentice
Joined: 29 Apr 2004 Posts: 172 Location: Logan, UT USA
|
Posted: Tue Nov 16, 2004 11:04 pm Post subject: Fixed mostly, but waiting for cdrtools-proDVD |
|
|
I am currently running the 2.6.10-rc2 kernel, and this is what I have concluded. I have a patch that I found for cdrtools that will allow a user to burn to a cd. This is a vanilla kernel that hasn't been patched, and cdrtools that has been patched. Here it is:
Code: | --- cdrtools-2.01/cdrecord/cdrecord.c.orig 2004-10-28 12:44:39.927882183 -0400
+++ cdrtools-2.01/cdrecord/cdrecord.c 2004-10-28 13:00:02.627948467 -0400
@@ -492,8 +492,11 @@
/*
* XXX Below this point we do not need root privilleges anymore.
*/
- if (geteuid() != getuid()) { /* AIX does not like to do this */
+
+ // fixing issue with kernel >= 2.6.8.1
+ //if (geteuid() != getuid()) { /* AIX does not like to do this */
/* If we are not root */
+ /*
#ifdef HAVE_SETREUID
if (setreuid(-1, getuid()) < 0)
#else
@@ -505,6 +508,8 @@
#endif
comerr("Panic cannot set back effective uid.\n");
}
+ */
+
/*
* WARNING: We now are no more able to do any privilleged operation
* unless we have been called by root.
@@ -1009,10 +1014,14 @@
* even on OS that do not support getreuid() which is *BSD
* and SUSv3 only.
*/
+
+ // fixing issue with kernel >= 2.6.8.1
+ /*
if (oeuid != getuid()) {
if (setreuid(-1, oeuid) < 0)
errmsg("Could set back effective uid.\n");
}
+ */
#endif
/*
* fork() here to start the extra process needed for
@@ -1027,11 +1036,14 @@
/*
* XXX Below this point we never need root privilleges anymore.
*/
- if (geteuid() != getuid()) { /* AIX does not like to do this */
+ // fixing issue with kernel >= 2.6.8.1
+ //if (geteuid() != getuid()) { /* AIX does not like to do this */
/* If we are not root */
+ /*
if (setreuid(-1, getuid()) < 0)
comerr("Panic cannot set back effective uid.\n");
}
+ */
#endif
}
if ((*dp->cdr_set_speed_dummy)(scgp, dp, &speed) < 0) { |
That should fix all of the cdrtools issues with the new kernels. However cdrtools-proDVD is broke still, and that isn't open source so we will have to wait on the owner to fix it. I was able to burn using dvd+rw-tools, and also using Gnome 2.8 CD-creator, and also the front end called Xcdroast also works.
[/code] _________________ Hindi ko naintindihan, pakiulit. Sometimes my code works. |
|
Back to top |
|
|
r3pek Retired Dev
Joined: 17 Sep 2003 Posts: 568 Location: Lisbon - Portugal
|
Posted: Wed Nov 17, 2004 12:15 am Post subject: |
|
|
dsd wrote: | growisofs users: please upgrade to the latest testing version of dvd+rw-tools (5.21.4.10.8 ). they already fixed dvd+rw-format in that release, so i'm thinking they probably fixed growisofs too. |
works here too! mark it stable on amd64 too. |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Wed Nov 17, 2004 11:28 pm Post subject: |
|
|
llsardonicll wrote: | Yeah, cdrecord works fine just seems to be a xcdroast problem...i have a plextor drive and I get no reject commands at all. |
could you please re-check step 5 in the original post, make sure that xcdroast / cdrecord are not setuid root, and confirm that you are not running as root user. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Wed Nov 17, 2004 11:33 pm Post subject: Re: Fixed mostly, but waiting for cdrtools-proDVD |
|
|
rapsure wrote: | I am currently running the 2.6.10-rc2 kernel, and this is what I have concluded. I have a patch that I found for cdrtools that will allow a user to burn to a cd. |
if you take setuid root off your cdrecord binary you will not need this. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Wed Nov 17, 2004 11:36 pm Post subject: |
|
|
fixed dvd+rw-tools is now stable on x86 and amd64 very soon _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
undrwater Guru
Joined: 28 Jan 2003 Posts: 312 Location: Caucasia
|
Posted: Thu Nov 18, 2004 12:29 am Post subject: |
|
|
Burning .iso using k3b, which is using cdrecord i get the following:
Code: | verify_command: rejected command e9
verify_command: rejected command e9
verify_command: rejected command ed
verify_command: rejected command e9
|
output of
Code: | cdrecord -dev=/dev/scsi/host0/bus0/target4/lun0/cd -checkdrive |
Code: | scsidev: '/dev/scsi/host0/bus0/target4/lun0/cd'
devname: '/dev/scsi/host0/bus0/target4/lun0/cd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PX-W124TS'
Revision : '1.07'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes:
|
_________________ Open-mindedness is painful... |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Nov 18, 2004 12:39 am Post subject: |
|
|
undrwater: those commands are specific to plextor drives and i'm not sure what will happen about getting the kernel to permit them. i'll see what the block maintainer has to say when i next send in a patch. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
undrwater Guru
Joined: 28 Jan 2003 Posts: 312 Location: Caucasia
|
Posted: Thu Nov 18, 2004 12:48 am Post subject: |
|
|
dsd wrote: | undrwater: those commands are specific to plextor drives and i'm not sure what will happen about getting the kernel to permit them. i'll see what the block maintainer has to say when i next send in a patch. |
Thanks! _________________ Open-mindedness is painful... |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Nov 18, 2004 1:02 am Post subject: |
|
|
forgot to ask, did the cd burn ok anyway? _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
undrwater Guru
Joined: 28 Jan 2003 Posts: 312 Location: Caucasia
|
Posted: Thu Nov 18, 2004 1:12 am Post subject: |
|
|
dsd wrote: | forgot to ask, did the cd burn ok anyway? |
I think it should have...I'm doing some compiling, so the buffer ran below 50%.
I ran is as a simulation. When I get a chance to try an actual burn, I'll post back. _________________ Open-mindedness is painful... |
|
Back to top |
|
|
rapsure Apprentice
Joined: 29 Apr 2004 Posts: 172 Location: Logan, UT USA
|
Posted: Thu Nov 18, 2004 1:48 am Post subject: I checked |
|
|
None of my cd burning utilities are set as suid. I have already made sure that I had checked that, because I had read a lot of other posts. cdrtools-proDVD doesn't work. There is no suid set on it either. It errors out with Code: | cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer. |
That is the message I get with cdrtools-proDVD. I received the same message with cdrtools-2.01 until I applied the afore mentioned patch. Also dvd+rw-tools gave me this message until I upgraded:
Code: |
unable to PREVENT MEDIA REMOVAL: Operation not permitted
|
So cdrtools-2.01 was fixed for me with the patch above. dvd+rw-tools was fixed by upgrading, and cdrtools-proDVD is still broke. Perhaps it has to do with my BenQ 1620 DVD+-RW DL drive. But what I understand from the code above is that it is trying to try to set the root user id for operation, and that isn't permitted. The kernel isn't broke, but the userland was broke by the patch. _________________ Hindi ko naintindihan, pakiulit. Sometimes my code works. |
|
Back to top |
|
|
rapsure Apprentice
Joined: 29 Apr 2004 Posts: 172 Location: Logan, UT USA
|
Posted: Thu Nov 18, 2004 2:05 am Post subject: test information |
|
|
So I went and ran cdrecord-ProDVD from bash, and this is the full error message.
Code: |
cdrecord-ProDVD: Operation not permitted. prevent/allow medium removal: scsi sendcmd: no error
cdrecord-ProDVD: Operation not permitted. mode select g1: scsi sendcmd: no error
cdrecord-ProDVD: Cannot init drive.
|
This is an error message that I get from cdrecord, but it still works.
Code: |
cdrecord: Input/ouput error. write_g1: scsi sendcmd: no error
|
It will still burn the cd's though. _________________ Hindi ko naintindihan, pakiulit. Sometimes my code works. |
|
Back to top |
|
|
xanderhsia n00b
Joined: 08 Jul 2004 Posts: 34
|
Posted: Thu Nov 18, 2004 2:07 pm Post subject: Success! |
|
|
Just reporting that I am burning fine now with dvd+rw-tools-5.21.4.10.8.
Running on gentoo-dev-sources-2.6.9-r3 with pure udev and k3b. Burned data, video, and audio discs with no problems. |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Thu Nov 18, 2004 10:39 pm Post subject: |
|
|
those error messages suggest that prodvd is opening the device as read only. not much i can do about this without prodvd source code, but it did appear to work for eradicator - maybe he was on a newer version (2.01a27).
i'm also not convinced about your cdrecord issue. yesterday i was talking to a developer with exactly the same problem who said his cdrecord binary was not setuid root. i pointed out that i can reproduce the error by putting the +s bit on, and in return he posted me the ls -l output which showed that it indeed it was setuid (his mistake!). taking it off solved the problem.
then again, you are on 2.6.10-rc2. i don't have a cd writing machine that i can test with that kernel right now. but at the same time i don't see anything that would change this after 2.6.9. also, the patch you applied is advertised elsewhere to make cdrecord work as root again. /me shrugs
i submitted a patch to allow the LOG_SENSE command that eradicator pointed out, and also was informed that the current command filter is only a temporary measure. eventually, the kernel will provide a mechanism where a user interface will allow commands to be allowed/disallowed, this will allow for those non-standard cases (e.g. some plextor writers) _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
rapsure Apprentice
Joined: 29 Apr 2004 Posts: 172 Location: Logan, UT USA
|
Posted: Fri Nov 19, 2004 1:30 am Post subject: More info |
|
|
Code: |
-rwxr-xr-x 1 root root 345156 Oct 30 15:22 /usr/bin/cdrecord
|
That is what my cdrecord is set to now. Now cdrecord-ProDVD worked until I upgraded to the latest version. Version 2.01_beta31 broke it, but it was working before that. Version 2.01_beta27 worked, but from my perspective at the time this bug showed up I had the command-filter applied. Then with that it broke, so right now it will remain broken.
Code: |
-rwxr-xr-x 1 root root 372924 Nov 14 22:23 /usr/bin/cdrecord-prodvd-2.01b31-i686-pc-linux-gnu
|
_________________ Hindi ko naintindihan, pakiulit. Sometimes my code works. |
|
Back to top |
|
|
llsardonicll Tux's lil' helper
Joined: 07 Oct 2004 Posts: 110
|
Posted: Fri Nov 19, 2004 9:52 am Post subject: |
|
|
Quote: | could you please re-check step 5 in the original post, make sure that xcdroast / cdrecord are not setuid root, and confirm that you are not running as root user. |
xcdroast and cdrecord are good
Code: |
sardonic bin $ ls -l xcdroast cdrecord k3b
-rwxr-xr-x 1 root root 342628 Oct 17 17:58 cdrecord
-rwxr-xr-x 1 root root 1458556 Nov 5 21:14 k3b
-rwxr-xr-x 1 root root 762432 Nov 16 03:13 xcdroast
|
and deffinatly logged in as a normal user |
|
Back to top |
|
|
|