FS#2143 - Can not burn a DVD as a user (using devfs)

Attached to Project: Arch Linux
Opened by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 08:47 GMT
Last edited by Damir Perisa (damir.perisa) - Sunday, 06 February 2005, 20:11 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

growisofs returns this error when attempting to burn a DVD as a user:

:-( unable to PREVENT MEDIA REMOVAL: Operation not permitted

The device it lists I have full permission to through devfs:

brw-rw---- 1 root disc 22, 0 1969-12-31 16:00 /dev/ide/host0/bus1/target0/lun0/cd

This problem did not exist before the last couple updates to the dvd+rw-tools and/or k3b packages.
This task depends upon

Closed by  Damir Perisa (damir.perisa)
Sunday, 06 March 2005, 18:28 GMT
Reason for closing:  Works for me
Comment by arjan timmerman (blaasvis) - Sunday, 06 February 2005, 13:55 GMT
is your user in the group disc ?
Comment by Damir Perisa (damir.perisa) - Sunday, 06 February 2005, 17:34 GMT
any kernel or udev upgrades?

i cannot imagine, that this is caused by dvd+rw-tools and/or k3b
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 19:37 GMT
Arjan Timmerman: Yes, my user is in the disc group.
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 19:40 GMT
Damir Perisa: It has worked properly since the time when I booted my computer into kernel 2.6.10_RC2 83 days ago. It was a software change that broke it. It works as expected as root. I have full read-write permissions to the device. I can burn CDs fine, but I do not burn CDs anymore, they are so itty bitty.

The error relates to growisofs not being able to lock the drive, which means it can not guarantee that the disc will not be ejected during burning, which means it can not allow the burn to occur.
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 19:43 GMT
Damir Perisa: Oh, and as I said in my initial comment, I am using devfs and not udev.
Comment by Damir Perisa (damir.perisa) - Sunday, 06 February 2005, 20:11 GMT
devfs is most probably the source of your trouble
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 21:03 GMT
Damir Perisa: DVD burning has long worked with devfs ... you are not reading the comments. It worked when I booted my computer. What kind of crappy, unhelpful comment is "devfs is most probably the source of your trouble" ? Devfs is just a way to access device nodes, it does not change what the devices are capable of. Rather than giving random "advice", just say that you have no clue what the problem is.
Comment by Damir Perisa (damir.perisa) - Sunday, 06 February 2005, 21:40 GMT
1) soft language, please

2) i never said i knew in detail, what your problem is ... but "Operation not permitted" means most probably that there are wrong permissions to do things ... and this is handled by the kernel and udev/devfs in primary and only secondary by growisofs. it is absolutely possible that it is caused by dvd+rw-tools, but then it would be an incompatibility or trouble of dvd+rw-tools with your drive and in this case, please be so kind and contact the dvd+rw-tools devs.

3) arch is now using udev as default /dev popluation and over long time things will get broken if you keep devfs (devfs is marked in any current kernel as OBSOLETE)

4) please provide verions of used kernel and devfs, dvd+rw-tools, k3b and all others
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 22:19 GMT
Damir Persia: Again you are not actually reading any of the comments I am writing. I stated above that I am using kernel 2.6.10_RC2. Everything else is up-to-date Arch Linux packages. It worked as user when I booted up, so the problem is related to software changes, not the kernel.

Qt: 3.3.4
KDE: 3.3.2
K3b: 0.11.20

* growisofs by <appro@fy.chalmers.se>, version 5.21,
front-ending to mkisofs: mkisofs 2.01 (i686-pc-linux-gnu)

devfsd 1.3.25-4

GLIBC 2.3.3
Comment by Raven Morris (Samus_Aran) - Sunday, 06 February 2005, 22:21 GMT
dvd+rw-tools 5.21.4.10.8-2
Comment by Damir Perisa (damir.perisa) - Sunday, 06 February 2005, 22:48 GMT
thank you very much on the infos.

i read all your comments and only wanted to be sure, you are using a release candidate kernel. if you once again suspect me of "not reading the comments", i will for sure stop reading them and close this bug as "worksforme". you must understand that english is not my native language and things may sound different for a native speaker - sorry for any misconceptions caused by this

is there any important reason, why you use a 2.6.10_rc2 kernel? release candidate kernels are known to be un-reliable and tricky for some things. is there a chance, that you try the kernel26 instead? i'm asking this, because i know that the optical drive access was changed in the kernel several times from 2.6.8 over 2.6.8.1, 2.6.9 and 2.6.10 and now modern apps are not longer able to handle one of the older kernels for burning (for details on this changes related to k3b, have a look here: http://k3b.plainblack.com/index.pl/news2 )

Comment by Damir Perisa (damir.perisa) - Thursday, 10 February 2005, 21:30 GMT
i cannot reproduce your trouble with the stock-kernel

please try the stock-kernel and report if you can reproduce it

-> this bug will be closed on sunday morning
Comment by Judd Vinet (judd) - Friday, 25 February 2005, 23:00 GMT
Re-opened by request from Raven Morris.
Comment by Raven Morris (Samus_Aran) - Saturday, 26 February 2005, 00:26 GMT
I am on a 2.6.11_RC4 kernel now, and like when I first booted into my former kernel, CD burning worked as my user ... for a couple hours. I think I have tracked down what is causing this "can not lock the DVD drive, so we can't burn a DVD" business. Sometimes after burning a DVD, the drive is still locked and I can't use the eject button. Rather than going into k3b and "Right-clicking > Unlock", I usually just run the "eject" command.

It seems that the eject command is what is breaking the users ability to lock the DVD. After eject forcibly unlocks and ejects the disc, the user can no longer lock the drive. I would appreciate it if anyone else could test this theory a bit on their systems. After burning a DVD, check if you can hit the eject button, if not use the "eject /dev/dvd" or similar command, and then try burning another DVD. If it always unlocks it, perhaps just try locking it with k3b using "Right-click > Lock", and then using the eject command.

I have no idea if this is a kernel problem or a growisofs problem, but I did not get it on 2.6.8 and earlier.

If nobody else can reproduce the "unlockable DVD drive" on their Arch Linux systems after using eject on a locked drive, I will assume it has nothing to do with Arch Linux.
Comment by Jason Chu (jason) - Sunday, 06 March 2005, 18:24 GMT
How exactly are we supposed to support custom built kernels?
Comment by Damir Perisa (damir.perisa) - Sunday, 06 March 2005, 18:28 GMT
2005-03-06 - bug squashing day discussion:
conclusion:

custom kernel - devfs - closing

Loading...