[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cdrecord and devfs



OK, I tried strace. Here is the relevant line:

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

So cdrecrod is going to the right device. But the kernel says that it is not 
writable. How can that be?

Martin


Am Dienstag, 20. Mai 2003 23:48 schrieb Martin Kuball:
> I let the kernel mount the dev file system via boot parameter devfs=mount.
> The permission of the cd device is "brw-rw----".
>
> I will try strace asap.
>
> Martin
>
> Am Dienstag, 20. Mai 2003 22:03 schrieb Mich Lanners:
> > On  19 May, this message from Martin Kuball echoed through cyberspace:
> > > I have an iBook 2.2 with debian 3.0. My kernel is 2.4.20-ben10 and I'm
> > > using devfs.
> > >
> > > When I try to run cdrecord (version 1.10) as root I get the following
> > > message:
> > >
> > > # cdrecord -v speed=3 dev=/dev/scsi/host0/bus0/target0/lun0/cd:@
> > > blank=fast Cdrecord 1.10 (powerpc-unknown-linux-gnu) Copyright (C)
> > > 1995-2001 Jörg Schilling
> > > TOC Type: 1 = CD-ROM
> > > scsidev: '/dev/scsi/host0/bus0/target0/lun0/cd:@'
> > > devname: '/dev/scsi/host0/bus0/target0/lun0/cd'
> > > scsibus: -2 target: -2 lun: -2
> > > cdrecord: Read-only file system. Cannot open
> >
> >             ^^^^^^^^^^^^^^^^^^^^^
> > Hmmm, read-only? Can you check permissions on the deice nodes and, more
> > importantly, how devfs is mounted? If that gives no clue, run cdrecord
> > under strace and see what it is doing to produce this error.
> >
> > > '/dev/scsi/host0/bus0/target0/lun0/cd'.
> > > Cannot open SCSI driver.cdrecord: For possible targets try 'cdrecord
> > > -scanbus'. Make sure you are root.
> > >
> > > calling cdrecord -scanbus gives:
> > >
> > > # cdrecord -scanbus
> > > Cdrecord 1.10 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2001 Jörg
> > > Schilling
> > > cdrecord: No such file or directory. Cannot open SCSI driver.
> >



Reply to: