Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58493

Summary: cdrecord doesn't seem to be reading /etc/default/cdrecord
Product: Gentoo Linux Reporter: Matt M <madhat>
Component: Current packagesAssignee: Lars Weiler (RETIRED) <pylon>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt M 2004-07-26 20:59:38 UTC
When I run 'cdrecord -scanbus dev=ATA', I get a proper listing of the available drives, but there seems to be no way to add this information to /etc/default/cdrecord! I've tried setting the CDR_DEVICE variable to the following: ATA, ATA:1,1,0 (the correct bus/target/lun of the cdrw), /dev/hdd, ATAPI, ATAPI:1,1,0, but when I run 'cdrecord -scanbus' (i.e., without the dev= option), it always fails to find the drive.

Reproducible: Always
Steps to Reproduce:
1. run 'cdrecord -scanbus dev=ATA:1,1,0' (this is the correct address in my case)
2. set either CDR_DEVICE in the environment or in /etc/default/cdrecord to 'CDR_DEVICE=ATA:1,1,0'
3. run 'cdrecord -scanbus' 
Actual Results:  
Failed to find the drive. 

Expected Results:  
Properly identify the drive where I told it to look so that I don't have to
repeatedly enter it on the command line. 

The CDRW is on /dev/hdd; kernel 2.6.7-gentoo patches (emerge gentoo-dev-sources.)
Comment 1 Matt M 2004-08-02 21:20:17 UTC
The problem has vanished. This is what happened:

1. I rebooted. 
2. Rescanned with 'cdrecord -scanbus dev=ATAPI'
  2a. dev=ATA found nothing
3. Edited /etc/default/cdrecord to set 'CDR_DEVICE=IDE-CD'
  3a. And added the string 'IDE-CD=         ATAPI:0,1,0     -1      -1      "" ' at the end

I have no clue why this didn't work before; I think it may be necessary to add a full entry for the device, instead of just saying 'CDR_DEVICE=ATAPI:0,1,0'.