LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-08-2007, 06:01 PM   #1
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Rep: Reputation: 15
cannot erase a cd (or get the burner working) - ubuntu


Hello,

I am trying to get my cdburner working. Its a Freecom model and connected as the secondary IDE slave after my DVD ROM.

Currently the various GNOME burning utilities reveal it as:-

_NEC NR-7700A

at

/dev/hdd (the DVD rom is on hdc).

Im running Ubuntu 7.04 - 2.6.20-16-generic


DMESG shows:-

Code:
dmesg | grep hdd
[   53.159629]     ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc: DMA, hdd: DMA
[   61.086769] hdd: _NEC NR-7700A, ATAPI CD/DVD-ROM drive
[   61.282684] hdd: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Both the GUI tools and CDRECORD all give errors along the lines of the following when I try to blank a cd or do anything like :-


Code:
cdrecord -v -force blank=fast dev=/dev/hdd

Code:
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... giving up.
scsidev: 'ATA:/dev/hdd'
devname: 'ATA:/dev/hdd'
scsibus: -2 target: -2 lun: -2
wodim: No such file or directory. 
Cannot open SCSI driver!
For possible targets try 'wodim --devices' or 'wodim -scanbus'.
For possible transport specifiers try 'wodim dev=help'.
For IDE/ATAPI devices configuration, see the file README.ATAPI.setup from
the wodim documentation.
wodim --devices gave me the following:-

Code:
Beginning native device scan. This may take a while if devices are busy...
Error trying to open /dev/hdc exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdc exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdc exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdc exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdc exclusively (Device or resource busy)... giving up.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... retrying in 1 second.
Error trying to open /dev/hdd exclusively (Device or resource busy)... giving up.
wodim: Overview of accessible drives (0 found) :

I googled a bit and tried using cdrecord - for example a guide at this address suggested the following approach:-

http://www.michaelminn.com/?linux/command_line.html

cdrecord -v -force blank=fast dev=0,0,0

I tried this and also tried giving it /dev/hdd as an address but the errors still remain the same.

Can anyone advise me about this ...



Many Thanks.



Max.

Last edited by maxvonseibold; 07-08-2007 at 06:02 PM.
 
Old 07-09-2007, 11:00 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
cdrecord has the switch (can't remember what it is, but --help should tell it, or the manpage) that makes it search & display the available drives that it can use for burning. Run that first, see if it shows your hdd (or equivalent). If it does display for example hdd then make sure the disc is not mounted and that you have privileges to use the device.

I assume you already tried that as root, though.
 
Old 07-09-2007, 11:19 AM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Are you sure it's still an hd? Most distros on 2.6.20+ kernels refer to optical drives as scd nowadays.
 
Old 07-09-2007, 02:14 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
I think the switch b0uncer is referring to is -scanbus. I think you device switch needs the ATAPI option, lik this:

dev=ATAPI:0,0,0

If yours is hdc it might be 0,1,0 indicating the secondary master, but scanbus will tell you what it is.

You can also try to force a generic driver. Mine works best with

driver=generic-mmc

Quote:
dmesg | grep hdd
[ 53.159629] ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc: DMA, hdd: DMA
[ 61.086769] hdd: _NEC NR-7700A, ATAPI CD/DVD-ROM drive
[ 61.282684] hdd: ATAPI 32X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Were the drives really both assigned to hdd?
 
Old 07-09-2007, 02:18 PM   #5
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Original Poster
Rep: Reputation: 15
Hmmmm, well the utilities like gnomebaker and commandline apps like 'mount' all say that it's on /dev/hdd ... ? Could it be somewhere else despite this?

Something else I considered was that maybe I should make the cd burner the Secondary Master rather than the slave ... This may make it /dev/hdc which might sort the problem out. It's a bit of a crappy approach to the problem but worth a try I suppose...

Whatever the case I will and check out what is on sdc just to be sure (this will have to be tomorrow now im afraid as im working nights this week )

Bouncer, I will try the cdrecord switch option too and see if I have any luck...

Will try and post back in a day or two ...
 
Old 06-28-2008, 01:19 AM   #6
jm_fortuin
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Smile CD burner problem hacked with umount

Quote:
Originally Posted by maxvonseibold View Post
utilities like gnomebaker ...
I suspect you are dealing with a similar scenario that generated the same message for me:

"Error trying to open /dev/hdc exclusively (Device or resource busy)... retrying in 1 second."

while I was attempting to use Gnomebaker.

My solution/hack follows:

start Gnomebaker
Open terminal as root

umount /dev/hdc

go back to Gnomebaker, select tools > then copy DVD

Copy / burn functions worked fine afterwards until I loaded a different CD / DVD to copy, then I repeated the above umount command with success.

I'd appreciate it if someone was to enlighten me on the exact details of why this works for me, and how to get beyond this hack to smooth functionality.

Thanks.
 
  


Reply

Tags
cd, cdrecord, erase, gnomebaker, ubuntu, wodim


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
Cannot erase Ubuntu from Mac for sister... RHLinuxGUY Ubuntu 5 04-09-2006 11:42 PM
how can I get my burner working? Vincent Slackware 24 12-06-2003 10:58 AM
Burner not working!! gdluiv Linux - Newbie 9 11-10-2003 02:02 PM
burner not working the anti-riced Linux - Hardware 8 05-21-2003 02:30 PM
CD Burner not working dtsfanatic Linux - Hardware 7 08-21-2002 12:59 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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