xcdroast??

Keith Morse kgmorse
Mon May 17 11:34:23 PDT 2004


On Tue, 2 Jul 2002, Net Llama! wrote:

> On Mon, 1 Jul 2002, Keith Morse wrote:
>
> > What I'd like to know is why cdrecord gets hung when doing a -scanbus on
> > /dev/sg0?
> 
> Isn't sg0 like a scanner or something similarly unrelated to CD burners?


And things like tape library changers use /dev/sg* also.  The sg module 
gets loaded as a requirement for the ide cdrom burner.  On this RH 7.2 
system, cdrom burning failed about 2 months ago for reasons unknown.

cat /proc/scsi/scsi reveals,

Host: scsi0 Channel: 00 Id: 02 Lun: 00
  Vendor: HP       Model: C1537A           Rev: L706
  Type:   Sequential-Access                ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 03 Lun: 00
  Vendor: SONY     Model: TSL-A300C        Rev: L107
  Type:   Sequential-Access                ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 03 Lun: 01
  Vendor: SONY     Model: TSL-A300C        Rev: L107
  Type:   Medium Changer                   ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 04 Lun: 00
  Vendor: HP       Model: C1557A           Rev: U709
  Type:   Sequential-Access                ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 05 Lun: 00
  Vendor: SEAGATE  Model: AIT-LDR          Rev: L1j8
  Type:   Sequential-Access                ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: LG       Model: CD-RW CED-8080B  Rev: 1.06
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 01 Lun: 00
  Vendor: LG       Model: CD-ROM CRD-8521B Rev: 2.00
  Type:   CD-ROM                           ANSI SCSI revision: 02


And if I try,

[root at ocelot root]# cdrecord -dd -scanbus dev=3,0,0
dev: 3,0,0 speed: 8 fs: 2097152
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
TOC Type: 1 = CD-ROM
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
scg__open() 3,0,0




it will stay at that point.  The process isn't hung as I can Ctrl-C to 
interrupt it.




More information about the Linux-users mailing list