Firewire CD-RW...

Bill Fink yellowdog-general@lists.terrasoftsolutions.com
Mon Jun 2 19:29:01 2003


On Mon Jun 2 2003, Ted McDonald wrote:

> I have tried to do eveything that has been suggested in this thread.
> 
> Here's where I am now.  I AM VERY CLOSE!!!
> 
> My Firewire Drive and Firewire CDRW are definitely being recognized.  But=
>  how=20
> to mount'em is beyond me.
> 
> Three things below: dmesg, cdrecord -scanbus, cat /proc/scsi/scsi  (see=20
> outputs below).
> 
> Help me make the next step if you can.  I am especially interested in mou=
> nt=20
> the CDRW, but I cannot figure out which dev to use.
> 
> I tried mounting the CDRW:
> [ted@localhost Desktop]# mount /dev/sr0 /mnt/cdrom2
> mount: special device /dev/sr0 does not exist

That may be because the device file /dev/sr0 actually does not exist.
It doesn't on my YDL 3.0 system.

gwiz% ls -l /dev/sr0
ls: /dev/sr0: No such file or directory

> I tried mounting the firewire drive:
> [ted@localhost Desktop]# mount /dev/sda /mnt/firewire
> mount: you must specify the filesystem type
> but this doesn't bother me because it is a HFS+ drive which I don't think=
>  can=20
> mount.

You normally can't mount a whole disk (unless you specially formatted
it that way).  Try a "pdisk -l /dev/sda" to get a list of the available
partitions on sda, and then try mounting an appropriate partition with
"mount /dev/sdaX /mnt/firewire" where X is the relevant partition number.

> [ted@localhost Desktop]# dmesg
> ieee1394: sbp2: Logged into SBP-2 device
> ieee1394: sbp2: Node[00:1023]: Max speed [S200] - Max payload [1024]
> ieee1394: sbp2: warning: Bridge chipset supports 128KB max transfer size
> ieee1394: sbp2: Logged into SBP-2 device
> ieee1394: sbp2: Node[03:1023]: Max speed [S400] - Max payload [2048]
> scsi2 : IEEE-1394 SBP-2 protocol driver (host: ohci1394)
> SBP-2 module load options:
> - Max speed supported: S400
> - Max sectors per I/O supported: 255
> - Max outstanding commands supported: 8
> - Max outstanding commands per lun supported: 1
> - Serialized I/O (debug): no
>   Vendor: MITSUMI   Model: CR-4804TE         Rev: 2.8C
>   Type:   CD-ROM                             ANSI SCSI revision: 02

It appears that it sees your CD-RW as a CD-ROM.  This may not be good,
although I have no idea how a CD-RW would normally show up.

>   Vendor: FireWire  Model:  1394 Disk Drive  Rev:
>   Type:   Direct-Access                      ANSI SCSI revision: 02

That looks good.

> Attached scsi CD-ROM sr0 at scsi2, channel 0, id 0, lun 0

I would think that should be an sg0 instead of an sr0 for a CD-RW.
Do you have SCSI generic support built into your kernel (CONFIG_CHR_DEV_SG=y),
or built as a module (CONFIG_CHR_DEV_SG=m) and then loading the sg
module (should show up in the lsmod output in this case).

> Attached scsi disk sda at scsi2, channel 0, id 1, lun 0

The FireWire disk is being seen as sda.

> sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray

OK here it knows it's a CD-RW.  Maybe you just need to link
sr0 to sg0???

> SCSI device sda: 60036480 512-byte hdwr sectors (30739 MB)
>  /dev/scsi/host2/bus0/target1/lun0: [mac] p1 p2 p3 p4

It sees a 30 GB FireWire disk on sda.

> [ted@localhost Desktop]# cdrecord -scanbus
> Cdrecord 1.10 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2001 J=F6rg=20
> Schilling
> Linux sg driver version: 3.1.24
> Using libscg version 'schily-0.5'
> scsibus0:
>         0,0,0     0) *
>         0,1,0     1) *
>         0,2,0     2) 'HP      ' 'C2520A          ' '3503' Processor
>         0,3,0     3) *
>         0,4,0     4) *
>         0,5,0     5) *
>         0,6,0     6) *
>         0,7,0     7) *
> scsibus2:
>         2,0,0   200) 'MITSUMI ' 'CR-4804TE       ' '2.8C' Removable CD-RO=
> M
>         2,1,0   201) 'FireWire' ' 1394 Disk Drive' '    ' Disk
>         2,2,0   202) *
>         2,3,0   203) *
>         2,4,0   204) *
>         2,5,0   205) *
>         2,6,0   206) *
>         2,7,0   207) *

Did you try burning a CD using the funky cdrecord syntax involving
the various SCSI parameters?

> [ted@localhost Desktop]# cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 02 Lun: 00
>   Vendor: HP       Model: C2520A           Rev: 3503
>   Type:   Processor                        ANSI SCSI revision: 02
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
>   Vendor: MITSUMI  Model: CR-4804TE        Rev: 2.8C
>   Type:   CD-ROM                           ANSI SCSI revision: 02
> Host: scsi2 Channel: 00 Id: 01 Lun: 00
>   Vendor: FireWire Model:  1394 Disk Drive Rev:
>   Type:   Direct-Access                    ANSI SCSI revision: 02

That basically looks good, except possibly the CD-ROM designation
for your CD-RW.

						-Bill