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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-31-2002, 05:22 PM
|
#1
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Rep:
|
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
|
|
|
|
12-31-2002, 06:22 PM
|
#2
|
|
Member
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267
Rep:
|
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
|
|
|
|
12-31-2002, 06:35 PM
|
#3
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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
|
|
|
|
12-31-2002, 06:48 PM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
yes you need to add that to your boot loader. only required for teh bruner itself, not any otehr drives.
|
|
|
|
12-31-2002, 07:27 PM
|
#5
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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
|
|
|
|
12-31-2002, 07:37 PM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
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...
|
|
|
|
01-02-2003, 05:46 AM
|
#7
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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
|
|
|
|
01-02-2003, 06:00 AM
|
#8
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
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
|
|
|
|
01-02-2003, 06:07 AM
|
#9
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
MasterC (and Acid by proxy),
Thanks. I will give this a try after work. (I have no Linux in the office. aarrgh)
Thomas
|
|
|
|
01-02-2003, 06:11 AM
|
#10
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
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.
|
|
|
|
01-02-2003, 07:14 AM
|
#11
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
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!
|
|
|
|
01-02-2003, 07:16 AM
|
#12
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
well there's nothing really definitive... check sourceforge / tucows / icewalkers etc...
|
|
|
|
01-06-2003, 07:13 PM
|
#13
|
|
LQ Newbie
Registered: Jan 2003
Location: Portugal
Distribution: Red Hat Linux 9.0
Posts: 13
Rep:
|
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???
|
|
|
|
01-11-2003, 06:50 AM
|
#14
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
jpsrm,
No. In fact all of the lines I referenced in my original post I have commented out of /etc/module.conf.
|
|
|
|
01-11-2003, 06:54 AM
|
#15
|
|
Member
Registered: Dec 2002
Location: New Hampshire
Distribution: Red Hat 8
Posts: 176
Original Poster
Rep:
|
#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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:03 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|