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.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
dpkg-reconfigure cdrecord
And say YES to SUID root.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
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 ]
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 ]
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 ]
[ Parent | Reply to this comment ]
shoe
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
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 ]
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 ]
Using wodim (cdrecord) always failed. cdrdao always succeeded.
[ Parent | Reply to this comment ]