LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-31-2002, 06:22 PM   #1
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Rep: Reputation: 30
cdrecord (scsi emulation)


For cdrecord command I need to use scsi emulation. For this I have added the following to /etc/modules.conf:

options ide-cd "ignore=hdc ignore=hdd"
alias scd0 sr_mod
alias scd1 sr_mod
pre-install sg modprobe ide-scsi
pre-install sr_mod modprobe ide-scsi
pre-install ide-scsi modprobe ide-cd

This enables me to use the cdrecord command--although I am having other issues with it--but I find that I have to go back and comment out these lines in /etc/modules.conf and then reboot in order to play the CD I've just recorded to (or tried to).

On an older machine with a dual boot--winbloz/LINUX--I had no problem such as this. The only difference I can think of being RH 7.2 on the older machine and RH 8 on this one.

Any suggestions?

Happy new year to you, friends all.

TAH
 
Old 12-31-2002, 07:22 PM   #2
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Interesting.. I've never enabled ide-scsi emulation that way, I've always done so by passing the parameter to the kernel via lilo or grub. This is from a RH8 machines /etc/grub.conf file:

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-19.8.0)
root (hd0,0)
kernel /vmlinuz-2.4.18-19.8.0 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-19.8.0.img
 
Old 12-31-2002, 07:35 PM   #3
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
wdingus,

The contents of my /etc/grub.conf file are as follows:

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password *************************************************
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /initrd-2.4.18-14.img

I notice the main difference between yours and mine is the missing "hdc=ide-scsi" after "...root=LABEL=/"

I wonder, should I be editing this file to reflect hdc=ide-scsi? And if so, what about the cdrom which is hdd? How would I distinguish between the two?

Kind regards to you and happy new year.
TAH
 
Old 12-31-2002, 07:48 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yes you need to add that to your boot loader. only required for teh bruner itself, not any otehr drives.
 
Old 12-31-2002, 08:27 PM   #5
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Acid_Kewpie,

I do appreciate your comments. I have added "hdc=ide-scsi" to that line in my grub file and cdrecord is now cool. I realize now that the approach I was taking was affecting my CDROM on reboot. Seeing as how I do not care to play music on my CDR, the question of how to differentiate between the CDROM and CDR in the grub file is moot. I cannot tell you how much I appreciate your comments.

Have you any other expertise regarding cdrecord? If so, I am getting the following when trying to burn a song:

...
cdrecord: Bad audio track size 6002539 for track 01.
cdrecord: Audio tracks must be at least 705600 bytes and a multiple of 2352.
cdrecord: See -pad option.

(the pad option info doesn't mean much to me so far)

I confess, I have not done much reading on cdrecord since I loaded RH8. I did a lot of burning with RH7.2 and will figure it out as time permits. Just thought I'd ask, as I felt maybe I found a cdrecord guru in you ; )

Cheers, my friend. (and thank you again!)

Happy new year!

Thomas
 
Old 12-31-2002, 08:37 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well the pad option will just fill out the data track so that it is "705600 bytes and a multiple of 2352".

personally i'm amazed you managed to read my reply, my typing can get so so lazy at times! and thanks for the affero...
 
Old 01-02-2003, 06:46 AM   #7
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Chris,

I am sitting here at work and was just thinking about the above fix we implemented on New Years eve. I think maybe I had too much wine, because something just occurred to me... If I want to rip a CD using the CDROM doesn't it also have to emulate scsi? (Based on my reading I think it does.) And if the answer is yes, then I am back to one of my earlier questions, which is how to specify both CDRW and CDROM for scsi emulation? Maybe with the following?:

...root=LABEL=/ hdc=ide-scsi hdd=ide-scsi

Kind regards,
Thomas
 
Old 01-02-2003, 07:00 AM   #8
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
To rip a CD? If you mean you need scsi emulation to rip an audio CD to your HD, I don't think so. Depending on the program (I use grip) it gives you a place to show the device to use for ripping. You can specify a scsi or standard drive.

As for copying CD's, yeah, it appears that some programs require both drives to use scsi emulation, although this is not necessary. You can copy a cd via the command line using cdrecord (Acid taught me this, thanks Acid ):
dd if=/dev/cdrom | cdrecord dev=0,0,0 speed=40 -v -eject -

The last - is the thing that I wasn't aware of. This means to get the info from stdin. Now I have no idea what stdin is, other than it's the output of dd.

But yeah, that's how you'd do it (hdd=ide-scsi hdc=ide-scsi).

Cool
 
Old 01-02-2003, 07:07 AM   #9
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
MasterC (and Acid by proxy),

Thanks. I will give this a try after work. (I have no Linux in the office. aarrgh)

Thomas
 
Old 01-02-2003, 07:11 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
many cdrecord interfaces only use scsi cdrom drives as source drives, e.g. eroaster, so if you want to be able to clone cds in those applications then you will want to enable the emulation, however you don't need it for what you want.
 
Old 01-02-2003, 08:14 AM   #11
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
Well, it's not like I have been doing this for years, but what I have used in my short few months has been cdparanoia. I guess I'll see what it likes when I get back to my baby (computer).

I would love to find a database of Linux apps complete with descriptions. Do you know of some definitive source like that? For example, I know what cdparanoia is because a book that I own discusses it specifically, but this is the first time I've heard of eroaster. (Maybe this kind of knowledge can only come with time...)

Cheers, my friend!
 
Old 01-02-2003, 08:16 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well there's nothing really definitive... check sourceforge / tucows / icewalkers etc...
 
Old 01-06-2003, 08:13 PM   #13
jpsrm
LQ Newbie
 
Registered: Jan 2003
Location: Portugal
Distribution: Red Hat Linux 9.0
Posts: 13

Rep: Reputation: 0
Hi there!

I have both my CD-RW and DVD drives emulated by SCSI.
I'm running RedHat 8.0!!!

/etc/modules.conf
------------------------------------------------------------------
options ide-cd ignore=hdc ignore=hdd
alias scd0 sr_mod
alias scsi_hostadapter ide_scsi
probeall scsi_hostadapter ide-scsi ide_scsi
------------------------------------------------------------------

/boot/grub/grub.conf
------------------------------------------------------------------
kernel /boot/vmlinuz-2.4.18-19.8.0 ro root=/dev/hdb2 hdc=ide-scsi hdd=ide-scsi
------------------------------------------------------------------

Everithing is working fine!

PS: should I have like you "alias scd1 sr_mod" too???
 
Old 01-11-2003, 07:50 AM   #14
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
jpsrm,

No. In fact all of the lines I referenced in my original post I have commented out of /etc/module.conf.
 
Old 01-11-2003, 07:54 AM   #15
HwzrHlslndr
Member
 
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176

Original Poster
Rep: Reputation: 30
#The following SIX (6) lines (after this comment) were added by me on or around 12/30.
#They have been replaced by the "hdc=ide-scsi" entry in the
# "kernel /vmlinuz-2.4.18-19.8.0 ro root=LABEL=/ hdc=ide-scsi" line of /etc/#grub.conf
#options ide-cd "ignore=hdc ignore=hdd"
#alias scd0 sr_mod
#alias scd1 sr_mod
#pre-install sg modprobe ide-scsi
#pre-install sr_mod modprobe ide-scsi
#pre-install ide-scsi modprobe ide-cd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrecord doesn't work, scsi emulation on? tsphan Linux - Hardware 4 02-02-2005 10:05 PM
cdrecord problems using both - scsi-emulation HLVS Linux - Software 5 02-02-2005 01:21 AM
scsi-emulation, cdrecord, and xsane problems FiveFlat Linux - Software 2 12-12-2004 07:46 PM
scsi emulation or not ? cozye Slackware 5 12-01-2003 03:23 PM
scsi emulation one Slackware 6 09-06-2003 07:12 PM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration