This site is now 100% read-only, and retired.

CD burning with a 2.4 kernel: how to configure Debian properly?

Posted by istoyanov on Wed 25 Jan 2006 at 09:46

It is fairly clear how to burn CDs with a 2.6 kernel, but I wonder what is the correct way to configuring Debian Sarge to read/write CDs with the default 2.4.27-2 kernel.

Chris pointed out in his nice article, that:

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).

However, I am still not sure what is the best way to configure a clean Debian install to use the CD-R functionality.

Yes, I know about The Linux CD-ROM HOWTO, but I feel it is quite generic and I am not so experienced to know if everything therein is valid for Debian.

Thank you all in advance for any hints or more profound advice!

 

 


Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by Anonymous (69.76.xx.xx) on Wed 25 Jan 2006 at 13:50
How about you just upgrade your kernel to something more recent/modern? Sarge also comes with 2.6.8 right? I don't quite see the point of using such an old kernel and then trying to find ways to work around it. There are lots of really old resources out there that will tell you how to setup scsi emulation and all that good stuff, but why bother? Just a thought...

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by istoyanov (195.96.xx.xx) on Wed 25 Jan 2006 at 16:44
Of course could I upgrade to 2.6.X, but I just prefer to run my system as "clean" as possible:) Besides, I wanted to get some advice here to have the things documented on this marvelous site, devoted entirely to Debian.

Any more hints?

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by simonw (84.45.xx.xx) on Wed 25 Jan 2006 at 17:44
[ View Weblogs ]
"Of course could I upgrade to 2.6.X, but I just prefer to run my system as "clean" as possible:)"

Me too, precisely why I don't run archaic software like 2.4 kernels without a very good reason.

This is well documented elsewhere, we'd do better spending our time telling people not to run...

sendmail
2.4 kernels
Apache 1.anything

Okay 2.6 is only just over two years old, but a lot of work was done to cdrecord and friends precisely to avoid the pain of specifying kernel options to write a CD.

The sensible way to configure Debian to do this, assuming you have an IDE CD recorder, is definitely to upgrade to a kernel that supports this without unneeded emulation layers.

The other day, I hot-plugged a USB CD recorder into my Debian Sarge box at work for the first time, one wget, and one cdrecord command to identify the correct CD device to use, and one cdrecord command to write the ISO, and I had a netinst disk for Etch. It is suppose to be this easy, lots of people sweated blood and tears to make it this easy to write CDs, and you want to go back to the 2003 way of doing things....

Simon, only too grateful to have removed all that ide-scsi rubbish from his desktop PC at home.

[ Parent ]

Re: CD burning with a 2.4 kernel... why I would want to
Posted by rls (68.127.xx.xx) on Sun 26 Feb 2006 at 05:09
I agree that upgrading to 2.6 is well advised. In fact, I am preparing to re-install debian to undo all of the mistakes I have made in my first two weeks of using it. Unfortunately, my network is victim to a series of those mistakes and therefore I need either diskettes or cds to get my data off the machine. Therefore, I definitely don't want to hear that I should upgrade to 2.6 when doing so would require downloading packages to cd's right before blowing it all away and regaining access to the net.

As this question probably appeals to newbies at least as much as administrators, I've created an answer to the equivalent question at the bottom of the FAQ on newbiedocs to record what I learned here -- I was careful not to copy any of the previous posts as the content is as far as I know the copyright of its authors: http://newbiedoc.berlios.de/wiki/FAQs

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by Anonymous (132.210.xx.xx) on Mon 26 Mar 2007 at 20:26
One good reason for me to stick with kernel 2.4 on some of my servers is that any kernel 2.6.x tried up to now does not work with the following raid card

Adaptec 2940 Ultra2 SCSI adapter
aic7890/91: Ultra2 Wide Channel A,


Laurent

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by ruddog (72.43.xx.xx) on Wed 25 Jan 2006 at 17:20
I just ran into this problem this week. This is what I did to fix it:

-Add "options ide-cd ignore-hdc" to /etc/modutils/cdburner and run update-modules, where hdc is your burner (it could be hda, etc.)
-Do not add any 'append="hdc=ide-scsi"' to /etc/lilo.conf
-Add these modules to /etc/modules in this order:

ide-detect
ide-cd
ide-scsi

Basically, you need to make sure that ide-detect (and ide-cd) is loaded before ide-scsi. Test with cdrecord -scanbus. Then link /dev/cdrom to /dev/scd0 and you should be all set.

I hope this helps.

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by Anonymous (69.173.xx.xx) on Mon 30 Jan 2006 at 15:19
The ide-scsi module is not needed for 2.4.x under debian either. Use the dev=ATAPI:0,0,0 (or similar device. To probe your system for the correct device use "cdrecord dev=ATAPI: -scanbus". I have a hundtred or so machines setup just like this. Not of them use the ide-scsi module. The only catch between 2.4.x and 2.6.x is that the cdrecord executable needs to be SUID for 2.4.x and not SUID for 2.6.x.

Robert

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by istoyanov (195.96.xx.xx) on Mon 30 Jan 2006 at 15:30
Thanks, Robert, for this great hint! This is definitely the most unintrusive, and so it's becoming my favourite method for CD burning under Debian (using the default 2.4.27 kernel) so far.

Cheers!!!

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by Anonymous (66.113.xx.xx) on Tue 21 Feb 2006 at 14:31
so what exactly did you do to make this work ?
could you pls provide step by step instructions if possible,
thanks in advance.

rs

[ Parent ]

Re: CD burning with a 2.4 kernel: how to configure Debian properly?
Posted by Anonymous (195.96.xx.xx) on Tue 21 Feb 2006 at 14:36
I access the devices through the options "dev=ATAPI:/dev/hdc" and "dev=ATAPI:/dev/hdd", respectively. No further modifucations have been made to a default install:)

HTH!

[ Parent ]