Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Request for testing: CD/DVD writing on 2.6.9
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Dec 04, 2004 11:50 pm    Post subject: Reply with quote

use 2.6.10-rc3. my medium removal patch is included in there.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Sun Dec 05, 2004 12:57 am    Post subject: Reply with quote

dsd wrote:
use 2.6.10-rc3. my medium removal patch is included in there.


Just noticed this in portage, emerging it as I type this. Will post back to see if it does indeed fix it. Thanks dsd.
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Sun Dec 05, 2004 7:00 am    Post subject: Reply with quote

No good. Still get the same error, RC3 didnt fix it. Any ideas?
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Mon Dec 06, 2004 7:45 am    Post subject: Reply with quote

Hey dsd,

I have exactly the same problem as Lokheed:

Burning CDs was no problem with 2.6.10-rc[2|3] when you adhere to your howto in the original post (in short: Just remove the suid bits).

Burning DVDs just don't work:
* I don't know exactly which error messages I got with k3b 0.11.10, but finally had to upgrade dvd+rw-tools to the latest version (dvd+rw-tools-5.21.4.10.8).
* After that, k3b couldn't find dvd+rw-format which already was a known issue and could be solved by updating k3b from 0.11.10 to >= 0.11.13 (I am now using 0.11.17 because it was the one portage emerged automatically).
* I also added my username to "cdrom" and "cdrw" in /etc/group.

However, if I try to burn a DVD it only works the very first time. After the first DVD is finished I couldn't burn any other DVD until I reboot my machine.

The complete error log of k3b is:
Code:

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/
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Mon Dec 06, 2004 12:56 pm    Post subject: Reply with quote

are there any rejected commands in dmesg?
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
cmichal
n00b
n00b


Joined: 06 Dec 2004
Posts: 2

PostPosted: Mon Dec 06, 2004 6:25 pm    Post subject: cdrecord privileges Reply with quote

I bet that the SCSI I/O buffer allocation failure that people see when cdrecord is suid is related to changes in mlockall that were made in 2.6.9.

Before 2.6.9, mlockall would only work for root. Now it 'works' for all users, but the behaviour is different if you aren't root - there's a (very small) limit on how much memory a non-root user can lock. cdrecord calls mlockall before dropping privilges, but then goes to allocate buffers afterwards.

A fix is to:

struct rlimit my_lim;
my_lim.rlim_cur = RLIM_INFINITY;
my_lim.rlim_max = RLIM_INFINITY;
setrlimit(RLIMIT_MEMLOCK,&my_lim);

*before* dropping privileges. This should allow cdrecord to be suid again, so that the scheduling priority can also be dealt with.
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 275
Location: Caucasia

PostPosted: Mon Dec 06, 2004 6:56 pm    Post subject: Reply with quote

dsd wrote:
could people who own plextor drives and have trouble writing cd's please apply this patch and let me know if it helps or not:

http://www.reactivated.net/patches/linux-kernel/2.6.9/scsi_ioctl-permit-plextor.patch


Will try this when I get home! :D
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Mon Dec 06, 2004 8:17 pm    Post subject: Reply with quote

I just noticed this thread. My questions are:

1. I noticed my cdrecord is not setuid root, but rather setgid cdrw. I can't remember if this is something I did or that portage set up. Either way, should I remove the setgid bit? I don't think it will affect anything since my user owns the device, and it's in group root.

ls -l /dev/hdc (the burner):
Code:

brw-------  1 ${USER} root 22, 0 Apr 13  2004 /dev/hdc


ls -l /usr/bin/cdrecord:
Code:

-rwxr-sr-x  1 root cdrw 332868 Sep 21 12:09 /usr/bin/cdrecord*


2. I have been burning using my current kernel (2.6.9-r9). Can I do tests with that, and only compile in the debugging code if it seems to fail? I'd prefer to leave my kernel unpatched if possible, although I do want to help out. It seems like the debugging is only necessary if this burning has errors--is this true.

For what it's worth, currently burning works for any user using the dev=/dev/hdc syntax. Burning fails for normal users but works as root with the dev=ATAPI:0,0,0 syntax. In each case you also get Mr. Schiller's tirades about linux. :)

[ EDIT: Some of the post was garbled--fixed. ]


Last edited by d_m on Wed Dec 08, 2004 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Mon Dec 06, 2004 10:21 pm    Post subject: Reply with quote

i'm fairly sure we permit all the standard commands and if cd writing is working then there is no issue
so dont worry too much about debugging it
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Tue Dec 07, 2004 8:35 pm    Post subject: Reply with quote

Quote:

are there any rejected commands in dmesg?


There is only one single line that appeared after I fininished the first burn process, I even don't know if it's related to the problem:

Code:

$ tail -f /var/log/messages
[...]
Dec  7 21:28:49 $hostname scsi: unknown opcode 0x1e


Code:

$ dmesg
scsi: unknown opcode 0x1e
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Tue Dec 07, 2004 9:22 pm    Post subject: Reply with quote

0x1e is PREVENT_ALLOW_MEDIUM_REMOVAL and definately (after my patch) is permitted in the kernel. however you need write access and the node must be opened in write mode. perhaps its not.

Quote:
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


which package owns builtin_dd ?
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Tue Dec 07, 2004 9:46 pm    Post subject: Reply with quote

Quote:

0x1e is PREVENT_ALLOW_MEDIUM_REMOVAL and definately (after my patch) is permitted in the kernel.

I both tried development-sources-rc2 and development-sources-rc3 (which is my current kernel).

Quote:

however you need write access and


I am pretty sure I have write access:

Code:

lrwxrwxrwx    1 root     root            3  7. Dez 22:24 cdrom -> hdc
lrwxrwxrwx    1 root     root            3  7. Dez 22:24 cdrw -> hdc
lrwxrwxrwx    1 root     root            3  7. Dez 22:24 dvd -> hdc
lrwxrwxrwx    1 root     root            3  7. Dez 22:24 dvdram -> hdc
lrwxrwxrwx    1 root     root            3  7. Dez 22:24 dvdrw -> hdc
brw-------    1 username  cdrom     22,   0  7. Dez 22:24 hdc


I also have chmodded hdc to 777 but the error still remains.

Quote:

the node must be opened in write mode. perhaps its not.


How can I make sure the node is opened in write mode? I guess I can't influence this directly, right? Isn't that something k3b or growisofs should care about?

Quote:

which package owns builtin_dd ?

I'm ashamed I can't find it:

Code:

$ locate builtin_dd
[nothing]


Code:

$ man builtin_dd
No manual entry for builtin_dd


Code:

$ built[TAB][TAB]
$ builtin
$ which builtin
which: no builtin in (/sbin:/bin:/usr/sbin:/usr/bin)
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Wed Dec 08, 2004 3:15 am    Post subject: Reply with quote

COMKEEN wrote:

However, if I try to burn a DVD it only works the very first time. After the first DVD is finished I couldn't burn any other DVD until I reboot my machine.


Same deal here. First time works like a charm but only a reboot will allow the user to burn again after that...
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Wed Dec 08, 2004 4:28 pm    Post subject: Reply with quote

builtin_dd is, well, builtin ;)
It's part of growisofs, which comes with dvd+rw-tools...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
javac16
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2003
Posts: 111

PostPosted: Thu Dec 09, 2004 3:19 am    Post subject: Reply with quote

dsd wrote:
could people who own plextor drives and have trouble writing cd's please apply this patch and let me know if it helps or not:

http://www.reactivated.net/patches/linux-kernel/2.6.9/scsi_ioctl-permit-plextor.patch


Gave this a try with 2.6.9-r9. I was:
able to see Plextor drive again (it didn't show up in dmesg in -r9).
able to burn a audio CD with k3b.

Haven't tried a DVD yet.
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 275
Location: Caucasia

PostPosted: Thu Dec 09, 2004 4:50 am    Post subject: Reply with quote

javac16 wrote:
dsd wrote:
could people who own plextor drives and have trouble writing cd's please apply this patch and let me know if it helps or not:

http://www.reactivated.net/patches/linux-kernel/2.6.9/scsi_ioctl-permit-plextor.patch


Gave this a try with 2.6.9-r9. I was:
able to see Plextor drive again (it didn't show up in dmesg in -r9).
able to burn a audio CD with k3b.

Haven't tried a DVD yet.


I second that! Thanks! ...no error messages either.

It also cleared up the freezing mentioned earlier...
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
korngerd
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2004
Posts: 104

PostPosted: Thu Dec 09, 2004 5:44 am    Post subject: Reply with quote

Got the Plextor patch into my kernel, tried recording, and got the following errors from dmesg:

spurious 8259A interrupt: IRQ7.
verify_command: rejected command 1

Running gentoo-dev-sources-2.6.9-r9 with a PLEXTOR CD-R PX-W4012A drive. Any clues?
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Thu Dec 09, 2004 9:15 am    Post subject: Reply with quote

korngerd wrote:
spurious 8259A interrupt: IRQ7.

unrelated to cd burning

Quote:
verify_command: rejected command 1

harmless, to be expected (also appears with non-plextors)

did the burn fail?
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Thu Dec 09, 2004 12:02 pm    Post subject: Reply with quote

mirko_3 wrote:
builtin_dd is, well, builtin ;)
It's part of growisofs, which comes with dvd+rw-tools...


Well, if it's built in dvd+rw-tools and I installed the latest version - why is it causing problems? :?: :? :?:
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Dec 10, 2004 12:41 am    Post subject: Reply with quote

COMKEEN wrote:
Well, if it's built in dvd+rw-tools and I installed the latest version - why is it causing problems? :?: :? :?:


lets find out.. could either you or someone else with this problem please apply this patch to dvd+rw-tools :

http://www.reactivated.net/patches/dvd+rw-tools/5.21.4.10.8/debug-fds.patch

it won't fix anything but will produce debugging output which i'd be interested to see
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
COMKEEN
n00b
n00b


Joined: 07 Nov 2003
Posts: 70

PostPosted: Fri Dec 10, 2004 11:30 am    Post subject: Reply with quote

dsd wrote:
COMKEEN wrote:
Well, if it's built in dvd+rw-tools and I installed the latest version - why is it causing problems? :?: :? :?:


lets find out.. could either you or someone else with this problem please apply this patch to dvd+rw-tools :

http://www.reactivated.net/patches/dvd+rw-tools/5.21.4.10.8/debug-fds.patch

it won't fix anything but will produce debugging output which i'd be interested to see


I applied the patch as described in http://forums.gentoo.org/viewtopic.php?t=99727.

Here is the debugging output:

This is what I get from k3b when started from a Console Window:
Code:

$ k3b
mcop warning: user defined signal handler found for SIG_PIPE, overriding
kdecore (KAction): WARNING: KActionCollection::KActionCollection( QObject *parent, const char *name, KInstance *instance )
k3b: WARNING: KDE detected X Error: BadMatch (invalid parameter attributes) \x08
  Major opcode:  *


And this is what I get inside k3b:

Code:

System
-----------------------
K3b Version:0.11.17
KDE Version: 3.1.5
QT Version: 3.3.2

growisofs
-----------------------
6 opened 5
7 ioctl 5
WARNING: /dev/hdc already carries isofs!
About to execute 'builtin_dd if=/tmp/kde-cmarker/DVD.iso of=/dev/hdc obs=32k seek=0'
preventing removal on fd 5
:-( 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
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 275
Location: Caucasia

PostPosted: Fri Dec 10, 2004 4:00 pm    Post subject: Reply with quote

dsd wrote:
could people who own plextor drives and have trouble writing cd's please apply this patch and let me know if it helps or not:

http://www.reactivated.net/patches/linux-kernel/2.6.9/scsi_ioctl-permit-plextor.patch


Will this be available in later gentoo-dev-sources?
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri Dec 10, 2004 7:10 pm    Post subject: Reply with quote

as long as the co-maintainer accepts my reasoning for it.. (we normally dont patch things that dont make it into linus's tree, and this one almost certainly wont..)
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
undrwater
Apprentice
Apprentice


Joined: 28 Jan 2003
Posts: 275
Location: Caucasia

PostPosted: Sat Dec 11, 2004 5:44 am    Post subject: Reply with quote

dsd wrote:
as long as the co-maintainer accepts my reasoning for it.. (we normally dont patch things that dont make it into linus's tree, and this one almost certainly wont..)


/me has fingers crossed
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
tristure
Apprentice
Apprentice


Joined: 30 Oct 2003
Posts: 270
Location: France

PostPosted: Sun Dec 12, 2004 12:13 am    Post subject: Reply with quote

Hi,

I might be late on this topic, but I wanted to react on ageb's post (in page 4 of this thread).

I have the same kind of problem : the writing itself seems to work ok, but after that the check fails, and the CD is unusable anyway. Not always mind you, once in a while everything works fine...

It looks a bit different as other problems in this thread, but it's quite common as I have noticed browsing this forum for several hours.

I have this problem with 2.6.8-ck3, and tried another kernel (2.6.7 gentoo-dev-sources) with no further success!
Burning as root doesn't improve things much.

I'm pretty sure that it's not hardware related because I can burn things without problems in Knoppix.

Do any other people have this problem? Any ideas on this?
It's really annoying. I can use my digital camera, my usb key, my portable mp3, but I can't safely burn a CD right now?!? :cry:

Thanks for help and hints!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum