Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

 in
Just because it's not supported doesn't mean it won't work.
Another Example

Let's suppose you had a different combination of drives. In a system with two hard drives (/dev/hda and /dev/hdb) and a CD-ROM on /dev/hdc you would add the CD writer to /dev/hdd. Further, let's suppose that you didn't need or want to do disk-to-disk copies. After physically connecting the drive and powering up, you would first add the line append="hdd=ide-scsi" to lilo.conf and then add the line ignore="hdd" to /etc/modules.conf. Reboot once more and voilà--a working CD writer.

It should be noted that you can enable IDE-SCSI emulation on any combination of drives you wish. They needn't be contiguous in the drive chain, nor do you need to enable IDE-SCSI for all the drives on an IDE channel--you may do so selectively. That is, you can enable IDE-SCSI emulation for /dev/hdd but not /dev/hdc, as in the example above. Also, you only have to enable IDE-SCSI on optical drives other than your CD writer if you wish xcdroadst/cdrecord to see them and be able to do disk-to-disk copies.

Specifications

Drive Specs

Writing Speed: 40xRewriting Speed: 12xRead Speed: 48xRandom Access Time: 150msBuffer Memory: 2MBBuffer Underrun Technology: YES!Write modes: Disc At Once, Track At Once, Session At Once, Packet WritingSupported Disc Formats: CD-DA, CD-ROM (XA) Video CD, Photo CD (multi-session) CD Text, CD Extra

System Requirements (from box)

  • Pentium II 400MHz or faster

  • Windows 98/2K/ME/XP

  • 64MB RAM and 1 GB HD space

System as Tested

  • Pentium III 1000MHz

  • 256MB RAM

  • Red Hat Linux 7.3 with default 2.4.18-3 kernel

  • cdrecord version 1.10-11 (provided by Red Hat)

  • xcdroast version .98-a9-8 (provided by Red Hat)

Pros and Cons

The drive was cheap ($89.99), and the $20 mail-in rebate really was what made me decide on this model. I tested writing at speeds up to 32x (the version of xcdroast that I have only goes up to 32x), and I was impressed with the overall writing speed of the drive. In the ISO burning test, I burned the Gentoo live CD ISO image (approximately 230MB) in 66 seconds! The Sony name made me feel comfortable, as I have had various other Sony optical drives in the past with uniformly good results. cdrecord did use the burnproof capabilities of the drive, which was another plus.

The bad part is no Linux support. The complete lack of help from live support was disappointing, and the drive came with no extras or frills. For instance, there were no blank disks of any sort included in the box. The manuals and quick-start guides were disappointing and next to useless even for a Windows installation. I would not recommend this drive for an inexperienced Windows user, but for a Linux user who had read all the HOWTOs and FAQs, it should be no problem at all.

Resources

The FAQs and HOWTOs I read were distribution-neutral, and the steps contained therein should work equally well for any modern distro.

CD Writing HOWTO

cdrecord's List of Supported Drives in cdrecord Version 1.9

Andy McFadden's CD-Recordable FAQ

Various IRC Users in #cofr on gamesnet.net

Key Modifications
  1. Add append="hdX=ide-scsi" to lilo.conf or grub.conf, where X is the letter of the CD writer. Remember to add in any additional optical drives if you wish to do CD-to-CD copying, for example, append="hdb=ide-scsi hdc=ide-scsi".

  2. Modify /etc/modules.conf to include the line options ide-cd ignore="hdX", where X is the letter(s) of the drive(s) you are using.

Listing 1. grub.conf
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-3)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-3 ro root=/dev/hde3 vga=792 append="hdb=ide-scsi hdc=ide-scsi"
        initrd /initrd-2.4.18-3.img
Listing 2. modules.conf
alias parport_lowlevel parport_pc
alias sound-slot-0 emu10k1
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias eth0 3c59x
alias char-major-195 NVdriver
options ide-cd ignore="hdb hdc"

Please note that the author assumes no responsibility for any losses, damages or incidents caused by utilizing the information herein. This information is provided as is with no guarantees about its viability or accuracy in any system other than the author's own. Use this information at your own risk.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

how to make bootable floppy for RedHat Linux7.3 installation.

dipak's picture

hello sir, i have DVD OF RddHat Linux7.3 while installing it require seperate floppy of image/boot.img for installation.
how can i make this floppy
pls help

dipak

dipak_41@rediffmail.com

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Did somebody manage to overburn (for e.g. 735 MB) with Sony CRX195A1 CDRW? I use it on RH 8.0 with XCDROAST but when trying to overburn I get message (from the drive) :

"....cdrecord: Input/output error. write_g1: scsi sendcmd: no error

CDB: 2A 00 00 05 7D 89 00 00 1F 00

status: 0x2 (CHECK CONDITION)

Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 63 00 00 00 00 00

Sense Key: 0x5 Illegal Request, Segment 0

Sense Code: 0x63 Qual 0x00 (end of user area encountered on this track) Fru 0x0 ..........."

Mihail Tomoff

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Make sure you have your CDR drive as a master. I had this problem when I had my CDR drive as the only drive on the second IDE bus and jumpered to slave. (not a good idea in general, but linux lets you get away with it because it doesnt rely on the bios to detect)

When I switched it to master, the problem immediately went away.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

I can't have the burnproof feature work properly...

cdrecord -checkdrive driveropts=help says there are no option available for that particular cd recorder...

any hint ?

Thanks Mr. Powell!

Anonymous's picture

As a counterpoint some of the other posts here...

I just bought a Sony CRX195A1 at Best Buys and installed it in my home server. Booted it up.... no joy. I've got a stock Red Hat system with all the current patches, and the "enterprise" kernel because I have an Imperial Arseload (slightly more than the standard American f**kton) of SCSI RAID installed. I only use IDE for the optical drives.

I thought I'd have to slog through the module sources to get the syntactica for the lilo "append" line - the docs never get real specific about (for example) is it "hdb hdc" or "hdb,hdc" and you have to read the C code to get the parse - but on a whim I hit Google first. Apparently there are lots of links to this article, it came up first in the list.

I don't consider myself a "linux newbie" - I am not afraid to grep the kernel sources - but I'm not expert on every aspect of every module, either.

My system works great using your recipe. Thank you for saving me a bunch of time!

--Charlie

Re: Thanks Mr. Powell!

Anonymous's picture

Device names can be determined by the BIOS settings, eg:

IDE Primary Master WDC WD600BB

IDE Primary Slave WDC WD600BB

IDE Secondary Master TDK CDRW241040X

IDE Secondary Slave OEM CD-ROM F563E

So the TDK drive is hdc. To get X-CD-Roast to recognise all optical drives (RHL), add the following to grub.conf:

kernel /vmlinuz-2.4.7-10 ro root=/dev/hdb2 hdc=ide-scsi hdd=ide-scsi

That should do it!

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

It should be pointed out that Linux, been all else, is also a hobbyist OS, for the type who like to take the screws off if you wish. For those type, these types of articles are most welcome, for others, there is always Red Hat Support.

Sure, there are also others who are beyond been hobbyists, but then again that's besides the point...

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Excellent article, the clearest I've read on the subject. It answered a number of questions I still had even after reading the Howto's.

Whiners: piss off. If you've "done it successfully lots of times and it's no big deal" well, duh!!, the article's not for you - skip it!! ("It's sooo long, wah-wah-wah...")

useless article

Anonymous's picture

i mean is ok to write about cdrw on linux but anyway

they work, isn't a problem, but i would like to hear about dvd-rw on linux, that is useful for us.

Newbies: read this comment in Linux Today

Anonymous's picture

Newbies, don't read this article. Instead read this comment in Linux Today:

http://linuxtoday.com/news_story.php3?ltsn=2002-10-01-003-26-PS-HW-HL-0003

Note that I'm not the poster of the message.

CDRoms and scsi emulation

Anonymous's picture

It's not a bad idea to leave ide-cdrom support out of your kernel, and access all cdrom drives through the ide-scsi emulation layer. some apps actually prefer to talk to the device this way (I think cdparanoia is one such). If you do this, then you don't need to pass options to the kernel.

Though some small /etc/modules.conf entries might still be needed (the "ignore" certainly won't be though).

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

You may want to verify that the 32x speed is limitation of Xcdroast. I recently installed an Asus 48x speed CDRW and I found that cdrecord (I haven't used Xcdroast) adjusts its max writing speed based on the media used. If I specify speed=48, the same drive will burn the same iso image on older Memorex media at 32x speed and 40x speed on newer TDK media.

Also, when burning Red Hat iso images, cdrecord appeared to work but the Red Hat mediacheck option would fail more often than not. I disabled DMA for the burner and have not had a problem since.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

You don't need to reboot after messing with /etc/modules.conf. Just remove the affected modules (ie ide-cd) and reinsert them.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

This article has a lot of misinformation.

I use scsi-emulation for my ide-cdrw and it works just fine. But all I need is the line:

append="hdc=ide-scsi hdd=ide-scsi"

in /etc/lilo.conf .

My /etc/modules.conf has no line like:

options ide-cd ignore="hdc hdd"

In fact, this line is required if and only if the ide-cd support is modular (not in-built) in the kernel. I guess thats the case with the 2.4.18-3 redhat kernel. That also explains why in the author's case, the bootloader append entry did not enable scsi emulation.

So, if the ide-cd support is built-in to the kernel, add a line to the boot-loader config file, otherwise if it is modular then add a line to the module loader config file (modules.conf).

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Some people have posted that this article was not useful because cdrw's are so easy to install. I disagree, I found it useful because I had never heard of ide-scsi. Now that I know about it, I can set it up for my ide cdrom and be able to do cd-to-cd recording from it to my scsi cd-r. Perhaps I could have found that information other places, but the fact is that I hadn't. I did find it in this article, and that makes it useful.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Personally, I found the article very useful. The CD Writing HOWTO has a lot of information that is difficult to sift through, and the cdrecord man page as well.

Distilling that down to two steps (one of which another poster points out may not be necessary depending on your kernel) is quite useful.

I just inherited a writer that was described as "flaky" under Windows, but stable under linux. Following these instructions should make it very painless to get going for me.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Installing CD-RW drives is so easy these days that reading through the CD-Writing HOWTO, as the author has done is an overkill - especially the advice on kernel recompilation. I can't actually believe that anyone can write a feature length article on such topics! What next? A feature length article on installing a network card?

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

us, trying to be ex-windoze newbies, need to learn. we are frequently and rightly told to read the manpage, read the faq or by less tolerant folks, RTFM.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Yes RTFM (F for Fine ;)) if you have to, but regurgitating the contents of the FM is worthless. The HOWTOs were written with the least common denominator in mind - an unpackaged linux system if you like. Any modern Linux distribution from about 5 years ago will have at least ide-scsi in module form.

This article does a disservice to the many non-GNU/Linux-ers. Many Windows newbies will conclude that using GNU/Linux is difficult and requires a deep understanding of the underlying operating system (many of my colleagues squirm at the mention of the word "kernel").

I have installed lots of CD-RW drives in my time and all it takes is a single modification to lilo.conf (or grub.conf if you're using GRUB) and modules.conf. The length of this article is deceiving.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

It sounds to me like you are saying "leave out some detail so it will look like it's less complex than it really is". How is that doing a newbie any favors?

This article was a perfect balance of brevity and detail for my situation. I wanted to know how to do this exact job, and how to do it properly - not how to do it on Slackware, or from raw kernel.org sources, but how to do it with my Sony CD on my Red Hat system. The config listings made me feel all warm and fuzzy and comfortable with the task, because I knew exactly what the syntax looked like, and I had a known working config to compare to.

My system didn't work until I added the modules.conf options line. So, your instructions would have been frustratingly useless to me!

If you're not afraid of a recompile...

Anonymous's picture

For people who compile their own kernels, a simpler alternative is to disable ide-cd altogether, and compile only ide-scsi for their kernel, as I did. In this case, you don't have to worry about disabling ide-cd for specific drives.

Of course, you still have to enable all other IDE modules as necessary. The SCSI emulation only effects CDs.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Every RW drive I have ever had simply works with linux. It will auto detect the drive and write to the necessary files when the machine boots up. My drives always simply worked after I installing them. I was never aware that one had to go to all of this trouble to get an RW CD drive to work.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

No trouble for hackers man, just fun...

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

I've yet to see an atapi cd writable drive that wouldn't work with scsi emulation, so don't be so proud if yours does work, I've tried 5 so far of different brands with nary a trouble.

CD-RW SONY CRX195E1 also works

Anonymous's picture

This drive also works perfectly:

kernel: hdc: SONY CD-RW CRX195E1, ATAPI CD/DVD-ROM drive

kernel: Vendor: SONY Model: CD-RW CRX195E1 Rev: ZYS5

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Nitpicking:

Phillips (two ells) makes tools, Philips (one ell) makes CD-writers.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Now I see why my Phillips wants to t-u-r-n not b-u-r-n...

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

From the X-CD-Roast FAQ (www.xcdroast.org):

2. Why doesn't X-CD-Roast find my harddrives/CD-Burner/CD-ROMs?

X-CD-Roast 0.96e had limited ATAPI-device support. But this was

just a quick hack and I had a lot of complaints that the code

detected devices wrong. So I decided to remove ANY ATAPI/IDE-code

from X-CD-Roast. And there is really absolutely no reason why you

need it anyway. Direct support of partitions and harddisks is gone,

so you never need to see devices of this kind in X-CD-Roast.

But in order to write a CD, X-CD-Roast must of course detect your

CD-Writer. If you have a SCSI-Writer there should never be a problem.

All you need is generic-scsi support in the kernel.

ATAPI/IDE-Writers need scsi-emulation to be detected and accessable.

You have to install scsi-emulation for ALL your ATAPI-CDROM drives too, if

you want to use them within X-CD-Roast.

Parallel-Writers need the parallelport-driver in the kernel.

Please see section 2 of the CD-Writing-HOWTO how to configure your kernel on Linux.

If you use not Linux but any other OS, you have to check the cdrecord

documentation how to access your writer.

Additional note about configuring SCSI-emulation in Linux:

The HOWTO does not explain how to add more than one ATAPI device to

SCSI-emulation like may be needed for X-CD-Roast.

The trick are these two lines (Examples only!!):

Line for /etc/modules.conf

options ide-cd ignore='hdc hdd'

Line for /etc/lilo.conf

append="hdc=ide-scsi hdd=ide-scsi"

If you use grub instead of lilo you might try something like that:

Example line for /boot/grub/grub.conf or /etc/grub.conf

kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6 ide-scsi=/dev/hdc ide-scsi=/dev/hdd

Note:

I got a report that if the line above does not work with your grub.conf you can

try this:

kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6 hdc=ide-scsi hdd=ide-scsi

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

I've come to learn that not supported usually means no tech support. 99.99% of modern ide/scsi CDR/W drives work with linux.

Re: Installing a Sony CRX195A1 CDRW Drive in Red Hat 7.3

Anonymous's picture

Nice explanation but there is an automated way available. Redhat 7.3 will detect CDRW during installation and make the proper modifications to grub.conf/lilo.conf and modules.conf. Alternatively if you don't want to reinstall simply, remove the entry for the CD ROM out of the /etc/sysconfig/hwconfig and run kudzu.

- Dave

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState