CD burning with a 2.6 kernel (IDE)

Posted by chris on Tue 17 Jan 2006 at 11:22

Under the 2.4 series kernel - to be able to use an IDE CD burner we were forced to use SCSI emulation (via the kernel module ide-scsi). Under the 2.6 series kernel - this is deprecated - we now use ide-cd.

So - let's load it:

modprobe ide-cd

For non-udev users you'll need to set up your /dev area - mine looks like this:

$ ls -l /dev/cd* /dev/dvd* /dev/hdc
lrwxrwxrwx 1 root root 3 Jan 4 08:10 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 Jan 4 08:10 /dev/cdrw -> hdc
lrwxrwxrwx 1 root root 3 Jan 4 08:10 /dev/dvd -> hdc
brw-rw---- 1 root cdrom 22, 0 Jan 4 08:10 /dev/hdc

For udev users - loading the ide-cd module should have updated sysfs so that udev can create the correct devices for you.

I use the non-devfs naming styles so I symlinked /etc/udev/cd-aliases.rules to /etc/udev/rules.d/cd-aliases.rules and then restarted udev.

You will want to be a member of the cdrom group too. Now - to actually burn a cd I use:

cdrecord dev=/dev/cdrw /path/to/iso/image.iso

You will get warnings about running with 2.6 - I don't want to get into a discussion on this - the author of cdrecord doesn't like non-scsi emulation in the 2.6 series. However - it still burns the CD.

On a side note - there is (was?) something in the later 2.6 kernels this stopped working for non-root users. So - I tend to use sudo cdrecord rather than cdrecord.

To record a dvd - I would normally use growisofs from the dvd+rw-tools package - this works just fine with ide-cd.

 

 


Posted by Anonymous (216.46.xx.xx) on Tue 17 Jan 2006 at 13:07
i was just looking for this right now, and i thought i'd have a look at d-a, 'just in case'. thank you very much for this posting -- my disc is being burned right this minute.

[ Parent | Reply to this comment ]

Posted by chris (217.8.xx.xx) on Tue 17 Jan 2006 at 13:15
[ View Weblogs ]
Glad to help :)

[ Parent | Reply to this comment ]

Posted by Anonymous (156.153.xx.xx) on Tue 17 Jan 2006 at 19:23
To use cdrecord as user simply issue:
dpkg-reconfigure cdrecord
And say YES to SUID root.

[ Parent | Reply to this comment ]

Posted by chris (80.203.xx.xx) on Tue 17 Jan 2006 at 20:17
[ View Weblogs ]
Interesting - will give it a try. I keep meaning to look into why it's necessary - and if it affects things like growisofs too. Thanks for the tip.

[ Parent | Reply to this comment ]

Posted by Anonymous (62.114.xx.xx) on Tue 17 Jan 2006 at 20:34
A friend of mine on kernel 2.4, cant burn DVDs on USB writer! The drive only works as a CD writer. Any suggestions?? I've never really burnt a DVD before, but I wanna help him. Anything to check? how to debug this?

[ Parent | Reply to this comment ]

Posted by chris (80.203.xx.xx) on Tue 17 Jan 2006 at 22:55
[ View Weblogs ]
Sorry to say that I've never used a USB burner - and never used any USB under 2.4 - anyone else?

[ Parent | Reply to this comment ]

Posted by Anonymous (87.0.xx.xx) on Sat 21 Jan 2006 at 09:30
You may try cdrecord-prodvd, not in Debian, but very very good.

[ Parent | Reply to this comment ]

Posted by Anonymous (62.6.xx.xx) on Thu 19 Jan 2006 at 14:41
I think the SUID root thing has been disabled in the latest kernels.

[ Parent | Reply to this comment ]

Posted by mschurter (70.225.xx.xx) on Wed 18 Jan 2006 at 22:36
I have a CDROM & DVD-RW hooked up to the tertiary IDE chain on a server where the only harddrive is SCSI (so the primary & seconday IDE chains are empty & disabled in BIOS).

I'm running Debian Etch and unable to access either the CDROM or DVD-RW. I don't have any /dev/hd* files, modprobe ide-cd doesn't do a thing, and udevmonitor doesn't display anything when I'm fiddling with modprobe and other tools.

Back when Etch used 2.6.8, both drives worked beautifully, but now under 2.6.12 I don't see either.

It looks like my kernel loads a bunch of ide modules on boot, but it also displays this: "PCI: Ignoring BAR0-3 of IDE controller 0000:00:0f.1" which may or may not be related.

Any ideas?

[ Parent | Reply to this comment ]

Posted by chris (80.203.xx.xx) on Wed 18 Jan 2006 at 23:12
[ View Weblogs ]
Hmm. Not used a pc with more than 2 IDE bus. You can't try a debian based live cd boot - based on an earlier kernel (say 2.6.8) - if that works you can see what kernel modules are loaded - then make sure the same ones are loaded in etch's .12?

I think that if you can get it to turn up as /dev/hdX then ide-cd will work again :)

[ Parent | Reply to this comment ]

Posted by bclark (198.54.xx.xx) on Wed 1 Feb 2006 at 07:36
Hi

I did the dpkg-reconfigure, which was set to yes btw, but then I got this message.

"Generating missing device files needed by cdrecord."

But anyway I still have problems with cdrecord (lost count with the amount of cds I have wasted).

============= Cut and paste of the output ================

Writing: The File(s) Start Block 77
6 seconds. 1.46% done, estimate finish Wed Feb 1 09:43:27 2006
0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Starting new track at sector: 0
Track 01: 10 MB written (fifo 44%) [buf 1%] 15.5x.cdrecord: Success. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 00 14 1A 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F1 00 05 00 00 14 1B 0C 00 00 00 00 10 02 00 00
Sense Key: 0x5 Illegal Request, deferred error, Segment 0
Sense Code: 0x10 Qual 0x02 (id crc or ecc error) [No matching qualifier] Fru 0x0
Sense flags: Blk 5147 (valid)
resid: 63488
cmd finished after 0.009s timeout 40s

write track data: error after 10539008 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
2.92% done, estimate finish Wed Feb 1 09:44:34 2006
Writing time: 13.121s
Min drive buffer fill was 1%
Total of 1 possible drive buffer underruns predicted.
Fixating...
WARNING: Some drives don't like fixation in dummy mode.
Fixating time: 0.004s
cdrecord: fifo had 358 puts and 167 gets.
cdrecord: fifo was 0 times empty and 4 times full, min fill was 44%.

[ Parent | Reply to this comment ]

Posted by pedxing (67.68.xx.xx) on Tue 7 Feb 2006 at 02:51
[ View Weblogs ]
If you can sucessfully burn at 8x, but not at higher speeds, it's probably an issue with DMA. Look up `hdparm` on how to set that.

[ Parent | Reply to this comment ]

Posted by shoe (24.50.xx.xx) on Sat 11 Feb 2006 at 00:17
excellent article

shoe

[ Parent | Reply to this comment ]

Posted by Anonymous (69.180.xx.xx) on Thu 9 Mar 2006 at 17:19
This is very helpful. I have looking for this information since I upgraded to the 2.6 kernel. It should be more widely distributed.

[ Parent | Reply to this comment ]

Posted by Anonymous (193.32.xx.xx) on Thu 27 Jul 2006 at 21:33
Thanks, cdrecord worked where cd/dvd creater did not.
I used cd/dvd creater to convieniently create the iso and then burnt with cdrecord. I had used cdrecord a while ago, but foolishly thought (briefly) that graphical approaches would match (wrap/use) the cdrecord functionality.

[ Parent | Reply to this comment ]

Posted by batista (200.218.xx.xx) on Fri 19 Jan 2007 at 21:14
Apparently there is no more support for cdrecord in debian, the replacement
package now is wodim. Unfortunately wodim does not work for me (I'm using kernel
2.6.8-2-686) and I no longer can burn cds. I tried to install the package directly from the cdrecord (cdrtools) creator but it didn't work either. When I try to
run xcdroast I get the following error message:
** (xcdroast:4505): WARNING **: Invalid readcd version -unknown- found.
When I use wodim instead of cdrecord to scan the bus I do not detect cdrom/cdrw. For ex. I get:
$ sudo wodim -scanbus
scsibus1:
1,0,0 100) 'Sony ' 'MSC-U03 ' '2.00' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

Any idea on how to solve this problem?

Thanks,
Adriano.

[ Parent | Reply to this comment ]

Posted by Anonymous (85.177.xx.xx) on Wed 27 Jun 2007 at 12:18
Using etch standard installation with wodim I had to select "cdrdao" instead of "cdrecord" to burn a CD. (Settings/advanced/manually select).

Using wodim (cdrecord) always failed. cdrdao always succeeded.

[ Parent | Reply to this comment ]

Sign In

Username:

Password:

[Register|Advanced]

 

Flattr

 

Current Poll

What do you use for configuration management?








( 283 votes ~ 1 comments )