Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.8 and cdrecord?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
monkeyhead
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2004
Posts: 97
Location: hella-where?

PostPosted: Mon Aug 16, 2004 11:24 pm    Post subject: 2.6.8 and cdrecord? Reply with quote

so i read about some people having problems with cdrecord and the 2.6.8 kernel because i could not for the life of me get cdrecord to work.

it kept reporting that my drive appeared to be a regular cd-rom and did not support burning.

so after searching gentoo forums, I rebooted to my 2.6.7-gentoo-r9 kernel and sure enough it worked without a hitch.

Anyone found any solutions to this yet? I was using 2.6.8-mm2-rc2 when i encountered the problem.
Back to top
View user's profile Send private message
scmckenzie
n00b
n00b


Joined: 13 Aug 2004
Posts: 20
Location: Salt Lake City

PostPosted: Tue Aug 17, 2004 5:13 am    Post subject: Reply with quote

don't know about solution yet .. have to burn discs as root :?
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Tue Aug 17, 2004 7:33 am    Post subject: Reply with quote

From k3b.org news:

Quote:


Do not use Kernel 2.6.8

A patch that was introduced into the kernel shortly before the 2.6.8 release makes K3b and also the dvd+rw-tools unusable on Linux (unless run as root but that is not recommended). The very important GET CONFIGURATION MMC command is rejected by the kernel for reasons I cannot see and writing commands like MODE SELECT also fail (K3b cannot detect CD writers without it) even when the device is opened O_RDWR. Until this issue has been solved I strongly recommend to stick to kernel version 2.6.7.


On other words there is something wrong with cdrecording in 2.6.8-rc4 upwards.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Tue Aug 17, 2004 10:13 am    Post subject: Reply with quote

Con has written an extremely simple patch to fix this problem (can;t beat his elegance and style in his patches compared to other brute force patches I could mention).

Anyway, here it is.

HTH :D
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Tue Aug 17, 2004 7:09 pm    Post subject: Reply with quote

Strange things are happening with the kernel. The second bug in 2.6.8 after the NFS. Shouldn't there be 2.6.8.2 soon? 8O

PickledOnion, thanks for the link to the patch! I've discovered the bug when tried to clear a CD-RW today.

P.S. And big thanks to Con Kolivas! I am using ck-sources now.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
teutzz
Guru
Guru


Joined: 22 Apr 2004
Posts: 333
Location: .ro

PostPosted: Tue Aug 17, 2004 9:14 pm    Post subject: Reply with quote

@PickledOnion: what would be the correct way to patch the kernel with this patch?
_________________
Cand nu stii ce sa raspunzi sau ce sa spui un simplu BLA ajunge... lolz
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Wed Aug 18, 2004 7:38 am    Post subject: Reply with quote

blaster999 wrote:
Strange things are happening with the kernel. The second bug in 2.6.8 after the NFS. Shouldn't there be 2.6.8.2 soon? 8O

PickledOnion, thanks for the link to the patch! I've discovered the bug when tried to clear a CD-RW today.

P.S. And big thanks to Con Kolivas! I am using ck-sources now.


No, it not a bug, the code was changed to try and close the security breach the cdrecord process has when recording a cd. Obviously any update to the code will affect cdrecording programmes and k3b are working on changeing their code to fit with the new kernel. Until that time, the fix will revert the code to the older way of doing it and the seciruty issue is still there (although I do haver to say I think it is a bogus security issue and is wrong to change it, but then I'm not a kernel programmer) :D
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Wed Aug 18, 2004 7:59 am    Post subject: Reply with quote

PickledOnion wrote:
the code was changed to try and close the security breach the cdrecord process has when recording a cd


Oh, sorry :oops: Then we'll have to wait the next k3b. BTW, shouldn't setting cdrecord suid be a solution? Or it is a bigger security risk?
EDIT: Just noticed it IS suid.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Wed Aug 18, 2004 8:11 am    Post subject: Reply with quote

Well, amazingly that is the basis of the so called 'security' problem. The fact that a user can record a cd is the whole security issue. The official answer is that you should be root to do that and only root should be able to record cds.

Now to me, and it is only my opinion, logging in as root to record cds is a far bigger security issue than a user recording cds. They say that anyone can come to your computer and record something but my argument would be that if that is the case then all, and I mean all, disk writing should be done as root. No user should be able to write or save or read something on a computer if using a cdr is a problem.

Obviously, my argument is not going to happen and would be ridiculous if it was even considered as realistic but that is the basis of the argument for the so called security issue.

Meh, at least we can record cds again :D
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Wed Aug 18, 2004 8:17 am    Post subject: Reply with quote

teutzz wrote:
@PickledOnion: what would be the correct way to patch the kernel with this patch?


To apply the fix do the following things, in this order and all will be fixed for you:

1. download the adjusted fix (see link above)

2. cd into your kernel directory (ie: cd /usr/src/linux-2.6.8.1)

3. enter the following command:
Code:
patch -p1 < /path/to/cddvd-cmdfilter-drop.patch


4. You will see one line telling you code has been patched

5. recompile the kernel using:
Code:
make && make modules_install


This will only take a few seconds as you are not recompiling the whole kernel again, just the adjusted file.

6. Mount /boot

7. copy the new bzImage over

8. reboot

Enjoy recording again.

HTH :D
Back to top
View user's profile Send private message
teutzz
Guru
Guru


Joined: 22 Apr 2004
Posts: 333
Location: .ro

PostPosted: Wed Aug 18, 2004 9:07 am    Post subject: Reply with quote

10x
_________________
Cand nu stii ce sa raspunzi sau ce sa spui un simplu BLA ajunge... lolz
Back to top
View user's profile Send private message
teutzz
Guru
Guru


Joined: 22 Apr 2004
Posts: 333
Location: .ro

PostPosted: Wed Aug 18, 2004 9:09 am    Post subject: Reply with quote

looks like i have to start learning manual patching (a thing that a lot of time i avoided)
_________________
Cand nu stii ce sa raspunzi sau ce sa spui un simplu BLA ajunge... lolz
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Wed Aug 18, 2004 2:46 pm    Post subject: Reply with quote

Well, may be alittle offtopic (just alittle). I've found this article on kerneltrap. Another issue with 2.6.8.1 and cdrecord - now memleak when recording audio cds. Patch included.

EDIT: After applying patch I haven't noticed the leak when writing audio cds. Didn't test before patching though (too lazy :) )
EDIT2: Too optimistic: the CD recorded fine, but it sounds AWFUL! something is b0rked. Can someone confirm this misbehavior? Or maybe after ck's patch the patch by Kurt Garloff isn't necessary?
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Wed Aug 18, 2004 3:37 pm    Post subject: Reply with quote

I'm using the Love-Sources 2.6.8-rc4-love2 aka Staircase to Heaven Kernel and when I want to apply the patch I get this:

Code:

patch -p1 < /tmp/cddvd-cmdfilter-drop.patch
patching file drivers/block/scsi_ioctl.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y


Could anybody help me? I can't delete my cdrw's.... :(
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Wed Aug 18, 2004 5:06 pm    Post subject: Reply with quote

Well, I reverted the memleak patch and got a huge memleak and a hangup while trying to write an audio CD (reset helped a lot :) ). Now rebooted in 2.6.7-ck5 and tried to write the same tracks on the same cd-rewritable - and everything works (sound is good and no memleaks). Be warned: if you have a cd burner, using 2.6.8.1 is not a good idea.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Wed Aug 18, 2004 5:26 pm    Post subject: Reply with quote

hmm i just burned a cd with my 2.6.8-rc4 and had no problems. And i can also delete cdrws again: on console it works fine, i think its a k3b related issue...
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Wed Aug 18, 2004 5:41 pm    Post subject: Reply with quote

Writing data cds doesn't reveal the memory leak. The bug can be seen only when burning audio cds. Get a cd-rw and try to write some audio tracks on it - you'll see what I mean (save all unsaved work before doing it - your system most probably will become unusable till next reboot).
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Wed Aug 18, 2004 5:48 pm    Post subject: Reply with quote

hmm ok, so I won't try it, but I changed the default kernel back to 2.6.7 ;)
Will this problem be fixed in the next kernel version? Or is there a patch that really fixes this problem?
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Wed Aug 18, 2004 6:00 pm    Post subject: Reply with quote

There is a patch, but the Audio CD I've recorded using the patched 2.6.8.1 sounded AWFULLY. The patch (and info about the bug) can be found here:
http://kerneltrap.org/node/view/3659
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
deadmoo
n00b
n00b


Joined: 02 Feb 2004
Posts: 55
Location: MD

PostPosted: Wed Aug 18, 2004 6:29 pm    Post subject: Reply with quote

what exactly sounded so bad about your audio cd? I made a cd with the unpatched 2.6.8 and it was not playable at all. is the audio cd made with the patched kernel playable at least? if you are using a cdrw that me be the cause of bad audio quality and not the kernel. do you get the same results with a cdr?
Back to top
View user's profile Send private message
blaster999
l33t
l33t


Joined: 09 May 2004
Posts: 902
Location: Between keyboard and chair

PostPosted: Thu Aug 19, 2004 5:54 am    Post subject: Reply with quote

Well, there was some audio when recorded with patched 2.6.8.1 but I hardly recognized the soundtracks. They sounded more like white noise than music. I rebooted into 2.6.7-ck5 and wrote the same tracks on the same cd-rw, the quality was good, so it's not the medium.
_________________
60s: sex, drugs, rock'n'roll
90s: sux, bugs, drag'n'drop
---
Some multimedia keys refuse to work? See my mini-howto:
https://forums.gentoo.org/viewtopic.php?p=1896734#1896734
Back to top
View user's profile Send private message
squeegy
Guru
Guru


Joined: 13 Mar 2004
Posts: 321
Location: Cincinnati, OH

PostPosted: Thu Aug 19, 2004 6:11 am    Post subject: Reply with quote

Phlogiston. wrote:
I'm using the Love-Sources 2.6.8-rc4-love2 aka Staircase to Heaven Kernel and when I want to apply the patch I get this:

Code:

patch -p1 < /tmp/cddvd-cmdfilter-drop.patch
patching file drivers/block/scsi_ioctl.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y


Could anybody help me? I can't delete my cdrw's.... :(


You're using 2.6.8-rc4 not 2.6.8.1 that's probably why.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Thu Aug 19, 2004 9:28 am    Post subject: Reply with quote

If anyone wants to try it 2.6.8.1-mm2 contains fixes for the memory leak in recording cds.

it also has reiser4 in it (which will be interesting).

HTH :D
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Thu Aug 19, 2004 11:31 am    Post subject: Reply with quote

Hmm why is reiserfs4 interesting? Which advantages will it habe? Is ist faster?
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Thu Aug 19, 2004 12:14 pm    Post subject: Reply with quote

I think it will be interesting as it has been in patchsets such as love-sources for some months and has kind of been tested heavily in those patches.

Now, instead of using one of the patchsets or downloading directly from namesys and patching your own kernel, anyone can simply emerge (when it appears in portage) the latest mm-sources and give the filesystem a go.

This will exponentially increase exposure of this young file system to users. Something that can only be good for it I think.

The interesting part (for me) is whether it can stand the use and abuse it will receive from the hugely increased number of users and different setups and so-on.

That's all, it really is the first big exposure it has had. I think a lot of posts on lkml will be about it and I think there will be many problems (but then the mm patchset really is bleeding edge and users should know this), but in the long run it should help to mature it a bit, which it desperately needs

As for performance, there are lots of threads about it, but in summary it is meant to be faster than other filesystems due to it's structure, etc. Apart from 1 or 2 things (such as diffing patches, etc) I found it significantly slower and unstable so I removed it from my system. I really am looking forward to when it goes in the mainsteam kernels.

:D
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 1, 2, 3  Next
Page 1 of 3

 
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