You are not logged in.

#1 2006-09-30 06:02:29

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

cdrecord problems with scsi burner

I have an HP 9200 SCSI cdrw burner, and I'm having the following problem.  As a normal user I can burn cd's using the following syntax:

$ /usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=8 -dao -eject -data /home/mariov/cdimage.iso 

but I'm not able to burn it using the device bus numbering style which is used by k3b giving the following:

$ /usr/bin/cdrecord -v gracetime=2 dev=3,4,0 speed=8 -dao -eject -data /home/mariov/cdimage.iso 
Cdrecord-Clone 2.01.01a06 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jg Schilling
NOTE: this is OSS DVD extensions for cdrtools and thus may have bugs
   related to DVD issues that are not present in the original cdrtools. For
   more information see http://crashrecovery.org/oss-dvd.html. The original
   cdrtools author should not be bothered with problems in this version.
/usr/bin/cdrecord: Warning: Running on Linux-2.6.18-ARCH
/usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer.
/usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
scsidev: '3,4,0'
scsibus: 3 target: 4 lun: 0
/usr/bin/cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
/usr/bin/cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
/usr/bin/cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

When runing as the normal user cdrecord -scanbus I got the following:

$ cdrecord -scanbus
Cdrecord-Clone 2.01.01a06 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jg Schilling
NOTE: this is OSS DVD extensions for cdrtools and thus may have bugs
   related to DVD issues that are not present in the original cdrtools. For
   more information see http://crashrecovery.org/oss-dvd.html. The original
   cdrtools author should not be bothered with problems in this version.
cdrecord: Warning: Running on Linux-2.6.18-ARCH
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.34
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'ATA     ' 'WDC WD360GD-00FN' '35.0' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus3:
        3,0,0   300) *
        3,1,0   301) *
        3,2,0   302) *
        3,3,0   303) *
        3,4,0   304) 'HP      ' 'CD-Writer+ 9200 ' '1.0e' Removable CD-ROM
        3,5,0   305) *
        3,6,0   306) *
        3,7,0   307) *

cdrecord and cdrdao are both 0660 and owned by root:root, while the cdrw unit is 0666 and owned by root:optical.  And the user belongs to the optical group.

Any help would be appreciated.

Offline

#2 2006-09-30 06:10:14

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: cdrecord problems with scsi burner

later found that the system detects the cdburner as two devices: sr0 and sg1

sym1: <1010> rev 0x1 at pci 0000:00:0b.1 irq 18
sym1: Symbios NVRAM, ID 7, Fast-80, SE, parity checking
sym1: open drain IRQ line driver, using on-chip SRAM
sym1: using LOAD/STORE-based firmware.
sym1: handling phase mismatch from SCRIPTS.
sym1: SCSI BUS has been reset.
sym1: SCSI BUS mode change from SE to SE.
sym1: SCSI BUS has been reset.
scsi3 : sym-2.2.3
  Vendor: HP        Model: CD-Writer+ 9200   Rev: 1.0e
  Type:   CD-ROM                             ANSI SCSI revision: 04
 target3:0:4: Beginning Domain Validation
 target3:0:4: asynchronous
 target3:0:4: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
 target3:0:4: Domain Validation skipping write tests
 target3:0:4: Ending Domain Validation
...
Probing IDE interface ide0...
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 3:0:4:0: Attached scsi CD-ROM sr0
hda: ST340016A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdd: TOSHIBA DVD-ROM SD-M1202, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
...
sd 0:0:0:0: Attached scsi generic sg0 type 0
sr 3:0:4:0: Attached scsi generic sg1 type 5

when doing a udevtest to /sys/block/sr0 I got a lot of udev messages, but when doing it to the /sys/block/sg1 I got an error that the device cannot be opened.

Later I check k3bsetup and in fact it found two instances of my scsi cd burner.  Now, there is a way to hack that (udev, scripts, whatever) to not create that second instance of the burner?

Offline

Board footer

Powered by FluxBB