Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73529 - growisofs reports ":-( unable to PREVENT MEDIA REMOVAL: Operation not permitted" with development-sources-2.6.10-rc2 and -rc3
Summary: growisofs reports ":-( unable to PREVENT MEDIA REMOVAL: Operation not permitt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on: 79237
Blocks:
  Show dependency tree
 
Reported: 2004-12-06 00:08 UTC by mail
Modified: 2005-02-05 02:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mail 2004-12-06 00:08:16 UTC
I upgraded from linux-2.4.24-xfs-r3 to linux-2.6.9-gentoo-r1 which broke USB and so I was told to use development-sources-2.6.10-rc2 instead (see http://bugs.gentoo.org/show_bug.cgi?id=71874).

According to this thread: http://forums.gentoo.org/viewtopic.php?t=247459 I successfully managed to burn CDs. But what I cannot do is burning DVDs more than ONCE per reboot.

Reproducible: Always
Steps to Reproduce:
I am using k3b for burning CDs and DVDs:

1. Tried to burned CDs - worked after removing the setuid bits from cdrecord, mkisofs and so on.

2. Tried to burn a DVD - didn't work (don't remember the exact error message anymore).

3. Checked permissions of executables (growisofs, ...), added my username to "cdrom" and "cdrw" in /etc/groups - still no luck.

4. Emerged newer version of dvd+rw-tools: dvd+rw-tools-5.21.4.10.8.

5. Then k3b didn't recognize dvd+rw-format which was a known issue and could be solved by updating k3b from 0.11.10 to >= 0.11.13. I'm using 0.11.17 now because it was emerged by portage by default.

6. When I now try to burn a DVD, it only works the _very_first_time_ after booting. After that I get the following error message:

growisofs
-----------------------
WARNING: /dev/hdc already carries isofs!
About to execute 'builtin_dd if=/tmp/kde-cmarker/DVD.iso of=/dev/hdc obs=32k seek=0'
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

7. I updated to development-sources-2.6.10-rc3 (as dsd told us in http://forums.gentoo.org/viewtopic.php?p=1846946), but still the same behaviour.
Actual Results:  
The complete log is: 
 
System 
----------------------- 
K3b Version:0.11.17  
KDE Version: 3.1.5 
QT Version: 3.3.2 
 
growisofs 
----------------------- 
WARNING: /dev/hdc already carries isofs! 
About to execute 'builtin_dd if=/tmp/kde-cmarker/DVD.iso of=/dev/hdc obs=32k 
seek=0' 
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted 
 
growisofs comand: 
----------------------- 
/usr/bin/growisofs -Z /dev/hdc=/tmp/kde-cmarker/DVD.iso 
-use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=dao 
-dvd-compat -speed=2.4  
 
mkisofs 
----------------------- 
/usr/bin/mkisofs: Warning: -follow-links does not always work correctly; be 
careful. 
Warning: creating filesystem that does not conform to ISO-9660. 
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the 
OS. 
Total translation table size: 0 
Total rockridge attributes bytes: 331 
Total directory bytes: 0 
Path table size(bytes): 10 
Max brk space used 0 
186 extents written (0 MB) 
 
mkisofs comand: 
----------------------- 
/usr/bin/mkisofs -gui -graft-points -volid DVD -volset  -appid K3b - Version 
0.11.1 -publisher  -preparer K3b - Version 0.11.1 -sysid Linux -volset-size 1 
-volset-seqno 1 -sort /tmp/kde-cmarker/k3bsGPYVa.tmp -rational-rock 
-hide-list /tmp/kde-cmarker/k3bBOl2mb.tmp -joliet 
-hide-joliet-list /tmp/kde-cmarker/k3by0iXwb.tmp -allow-leading-dots 
-full-iso9660-filenames -relaxed-filenames -allow-lowercase -no-iso-translate 
-allow-multidot -max-iso9660-filenames -follow-links -iso-level 3 
-path-list /tmp/kde-cmarker/k3bl0bFbc.tmp /home/cmarker/.kde3.1/share/apps/k3b/temp/dummydir0/  
 

Expected Results:  
Burn DVDs as expected which means that I don't have to reboot after one DVD 
has finished. 

Here is some information about my system. 
 
---------- 
 
$ emerge info 
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.2, 
glibc-2.3.4.20040808-r1, 2.6.10-rc3 i686) 
================================================================= 
System uname: 2.6.10-rc3 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.58-r1 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.14.90.0.7-r4 
Headers:  sys-kernel/linux26-headers-2.6.8.1 
Libtools: sys-devel/libtool-1.4.3-r3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-Os -march=pentium4 -msse -msse2 -mmmx -mfpmath=sse 
-fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-Os -march=pentium4 -msse -msse2 -mmmx -mfpmath=sse 
-fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://gentoo.inode.at/source/ 
http://gentoo.inode.at/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts 
cdr crypt cups dga dio directfb divx4linux doc dvb dvd dvdr encode esd exif 
f77 fam fbcon firebird flac flatfile foomaticdb fortran ftp gdbm gif gpm gtk 
gtk2 icq imagemagick imlib interbase jack java joystick jpeg kde libg++ libwww 
mad mikmod mime mmx motif mpeg ncurses nls odbc offensive oggvorbis opengl 
oscar oss pam pdflib perl plotutils png ppds python qt quicktime readline 
scanner sdl slang spell sse ssl svg svga sysvipc tcltk tcpd tetex tidy tiff 
truetype usb videos wmf x86 xml xml2 xmms xpm xv xvid zlib linguas_de 
linguas_el linguas_en" 
 
---------- 
 
Used programs: 
 
app-cdr/k3b-0.11.17 
app-cdr/dvd+rw-tools-5.21.4.10.8 
 
---------- 
 
Used kernels: 
development-sources-2.6.10-rc2 and development-sources-2.6.10-rc3 
 
---------- 
udev only: 
 
$ ls -lah | grep hd 
brw-------    1 cmarker  cdrom     22,   0  6. Dez 08:19 hdc // <- DVD 
Recorder 
brw-------    1 cmarker  cdrom     22,  64  6. Dez 08:19 hdd
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2005-01-08 11:08:15 UTC
dsd, what do you think about this bug?  Still a kernel issue, that the command in request is not allowed?
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-01-08 11:40:01 UTC
I don't know. Disabling automatic eject after burn solves this.
Comment 3 Mike Williams 2005-01-12 12:39:54 UTC
I'm now burning my third DVD of this boot with k3b, and dev-sources 2.6.10-r1

sauron linux # ls -lh /usr/bin/growisofs
-rws--x---  1 root cdrom 59K Jan 12 12:21 /usr/bin/growisofs
Comment 4 Raul Lluna 2005-01-15 15:22:39 UTC
I am having similar problem.
I can write one DVD but after same message (unable to PREVENT MEDIA REMOVAL) i cannot write any more DVDs as non-root user until i reboot system.

I will try as you say disabling automatic eject after burn.
Comment 5 Peter Kerwien 2005-01-19 11:54:41 UTC
I installed k3b-0.11.17 and dvd+rw-tools-5.21.4.10.8 on Gentoo-amd64, running a vanilla 2.6.10 kernel. When trying to burn a DVD in k3b, I'm also see this error message and the burn process stops.

Then I executed the command directly from the command line:

bash-2.05b$ /usr/bin/growisofs -Z /dev/hdc=foo.iso -use-the-force-luke=notray -use-the-force-luke=tty -speed=2.4
WARNING: /dev/hdc already carries isofs!
About to execute 'builtin_dd if=foo.iso of=/dev/hdc obs=32k seek=0'
:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

I didn't modify any permissions after installation. But when this command is executed by root everything works ok. It seems to be some kind of permission problem. Maybe it is necessary to be root. Here is my growisofs' permissions:

bash-2.05$ ls -l `which growisofs`
-rwxr-xr-x  1 root root 77600 Jan 19 08:15 /usr/bin/growisofs*
Comment 6 trejkaz 2005-01-21 20:02:24 UTC
Strange, I just got this same problem.  The previous burn did not have a problem, and this burn does.  Thought it might be a media issue but trying different blanks didn't help.  I changed absolutely nothing between the two burns, and in particular, automatic eject was turned on for both.

Very odd.
Comment 7 trejkaz 2005-01-21 20:06:23 UTC
&#7766;.S. "chmod 4711 /usr/bin/growisofs" is a successful workaround in my case.
Comment 8 Wiebe Cazemier 2005-01-22 11:11:17 UTC
I've got this problem as well (K3b 0.11.18, dvd+rw-tools 5.21.4.10.8, kernel 2.6.10-gentoo-r6). Setting growisofs to SIUD works, but then it starts using realtime priority or something similair. Strangely enough, it results in not enough CPU cycles being available for writing. The 'write' LED on my burner blinks all the time (it should burn constantly), and the effective speed is only 1 or 2x (instead a steady 4), meaning it is using burn-proof methods to keep going. And the CPU-guage in my KPanel keeps indicating kernel CPU-usage while writing.

I was using 2.6.9-gentoo-r9 and k3b 0.11.17 before this, but k3b wasn't able to find my cd devices with it. I then upgraded to 2.6.10-gentoo-r6, but then I got some kind of I/O error with growisofs. Upgrading k3b led to this problem. Strange, because growisofs hasn't changed.
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2005-01-23 12:11:31 UTC
2.6.11-rc2 fixes this.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2005-01-24 15:52:44 UTC
Hi,

http://www.ussg.iu.edu/hypermail/linux/kernel/0501.2/0450.html
this patch for kernel-2.6.10 should get rid of the "unable to PREVENT MEDIA REMOVAL: Operation not permitted" bug.
I tested this with 2.6.10 (only CD-burning but there it's the very same bug) and couldn't reproduce the error since.

Poly
Comment 11 Lars Weiler (RETIRED) gentoo-dev 2005-01-24 17:44:22 UTC
On comment #9:  Should we wait for 2.6.11 or should we backport that patch to 2.6.10?
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2005-01-25 04:14:15 UTC
It is being backported to 2.6.10, notice the dep on bug 79237
Comment 13 Daniel Drake (RETIRED) gentoo-dev 2005-02-05 02:20:25 UTC
Fixed in gentoo-dev-sources-2.6.10-r7