can't open dev/cdrom for writing

can't open dev/cdrom for writing

Post by Martin Kubal » Sun, 22 Jun 2003 05:09:31



Hi!

I'm trying to burn a CD with cdrecord. But if fails with the message:
        cdrecord: Read-only file system. Cannot open

Using strace I get:
        open("/dev/scsi/host0/bus0/target0/lun0/cd", O_RDWR) = -1 EROFS
                (Read-only file system)

The device is owned by root, has permissions "brw-rw----" and I' running
cdrecord as root.

The System is Linux 2.4.20 running on an Apple iBook. The drive is
identified correctly by the kernel and it is indeed capable of burning CDs.
I verified this in Mac OS.

Can anybody tell me what's going on here. Or even better has a solution for
my problem?

Regards,
Martin

 
 
 

can't open dev/cdrom for writing

Post by Dances With Crow » Sun, 22 Jun 2003 07:38:34


On Fri, 20 Jun 2003 22:09:31 +0200, Martin Kuball staggered into the
Black Sun and said:

Quote:> I'm trying to burn a CD with cdrecord.
> Using strace I get:
> open("/dev/scsi/host0/bus0/target0/lun0/cd", O_RDWR) = -1 EROFS
> (Read-only file system)

> Can anybody tell me what's going on here. Or even better has a
> solution for my problem?

/dev/scsi/host0/bus0/target0/lun0/cd is the wrong device.  You want
/dev/scsi/host0/bus0/target0/lun0/generic .  Has the "sg" module been
loaded?  It needs to be.  I'm guessing you're using a command like so:

cdrecord dev=/dev/scd0 [other options]

...when you want:

cdrecord dev=0,0,0 [other options]

The best thing to do is to do "cdrecord -scanbus", then make note of the
host, id, and LUN listed for your CD-RW, then use those numbers as the
argument to the dev= option of cdrecord.  HTH,

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL

 
 
 

can't open dev/cdrom for writing

Post by Martin Kubal » Sun, 22 Jun 2003 23:52:48


Thanks for your answer. I did specify the device name because dev=0,0,0 did
not work either. And id did not work because I don't have the scsi generic
module for my kernel. OK, will fix that and try it again.

Martin


> On Fri, 20 Jun 2003 22:09:31 +0200, Martin Kuball staggered into the
> Black Sun and said:
>> I'm trying to burn a CD with cdrecord.
>> Using strace I get:
>> open("/dev/scsi/host0/bus0/target0/lun0/cd", O_RDWR) = -1 EROFS
>> (Read-only file system)

>> Can anybody tell me what's going on here. Or even better has a
>> solution for my problem?

> /dev/scsi/host0/bus0/target0/lun0/cd is the wrong device.  You want
> /dev/scsi/host0/bus0/target0/lun0/generic .  Has the "sg" module been
> loaded?  It needs to be.  I'm guessing you're using a command like so:

> cdrecord dev=/dev/scd0 [other options]

> ...when you want:

> cdrecord dev=0,0,0 [other options]

> The best thing to do is to do "cdrecord -scanbus", then make note of the
> host, id, and LUN listed for your CD-RW, then use those numbers as the
> argument to the dev= option of cdrecord.  HTH,

 
 
 

1. can't open: /dev/tty for writing

In a cron backup I am making a backup like this

umask 000
cd /usr/lib/basic
find . -print | cpio -ocvB >/dev/rct0

It works for a while then I get the following messages from cron in the
mail

cpio: can't open /dev/tty for writing.  

Does anybody know how this can be solved?

Thanks,
Christoopher Fowler

--
------------------------------------------------------------------------

Computer Software, INC. * 303 Research Drive * Norcross, GA 30092
Phone: (770) 448-1484 * FAX: (770) 448-3949
http://www.topform.com * http://www.topform.com/~cfowler
------------------------------------------------------------------------

2. BSD net/1 ifnet documentation.

3. What is the difference between /dev/sg0, /dev/scd0 /dev/hdd and /dev/cdrom ?

4. Red Hat setup disks

5. 4.8 startx can't open /dev/io (or /dev/mem)

6. Panic! How can I get these tricky(?) things workng?

7. Dev's Dev's Dev's

8. POP Mail in Open Server

9. cannot mount cdrom: kernel doesn't recognize /dev/cdrom block device

10. /dev/cdrom linked to /dev/cdrom

11. sox: Can't open output file '/dev/dsp': No such device

12. tape: can't open '/dev/rStp0': No such device or address

13. How to make a remote CD-Rom locally available as a 'real' /dev/cdrom