[Stgt-devel] How to setup a DVD RW

Albert Pauw albert.pauw
Mon Jun 30 09:11:40 CEST 2008


Hi Ronnie,

I must be doing something wrong here, here is the output of dvdrecord:

[root at orange ~]# dvdrecord -dao -ignsize -overburn dev=/dev/sr1 ./fdfullcd.iso
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : TERMIOP CMDQUE
Vendor_info    : 'IET     '
Identification : 'VIRTUAL-CDROM'
Revision       : '0001'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
dvdrecord: Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder
found on this target.
Using generic SCSI-3/mmc   CD-ROM driver (mmc_cd).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Errno: 5 (Input/output error), test unit ready scsi sendcmd: no error
CDB:  00 20 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 200s
dvdrecord: No disk / Wrong disk!

As you can see, it doesn't see the disk.

Albert

-- 

Ronnie Sahlberg wrote:

Can you try using dvdwriter like this :

dvdrecord -dao -ignsize -overburn dev=/dev/sgX ./IMAGE.iso

and just verify that that works.

If that works it is most likely that there is something missing in the
emulation of DVD+R that
K2B needs to be happy.



On Mon, Jun 30, 2008 at 3:25 AM, Albert Pauw <albert.pauw at gmail.com>
<albert.pauw at gmail.com> wrote:

> Using open-iscsi to log into tgtd, which has the following setup for a
> DVD-R:
>
> tgtadm --lld iscsi --mode target --op new --tid 1 -T
> iqn.2007-03:virtual-dvd:`hostname`
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name
> scsi_id --value "CONTROLLER"
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name
> scsi_sn --value "001"
>
> # Create a DVD drive and give it a nice name
> # The dvd starts out without a backing store file, i.e. no disk loaded
> tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1
> --backing-store /root/empty.iso --device-type cd
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 --params
> removable=1
>
> Where /root/empty.iso is an empty 4GB file. I can succesfully log into the
> this target, dmesg shows:
>
> scsi 13:0:0:0: RAID              IET      Controller       0001 PQ: 0 ANSI:
> 5
> scsi 13:0:0:0: Attached scsi generic sg2 type 12
> scsi 13:0:0:1: CD-ROM            IET      VIRTUAL-CDROM    0001 PQ: 0 ANSI:
> 5
> sr1: scsi-1 drive
> sr 13:0:0:1: Attached scsi CD-ROM sr1
>
> However, K3B (CD burner program) sees the virtual CDROM (as it is called by
> default), but doesn't see
> that a medium is loaded (while I had given it a backing store).
>
> What I am doing wrong here?
>
> Thanks,
>
> Albert
>
> P.S. I am using Fedora 9.
>
>
>
> _______________________________________________
> Stgt-devel mailing list
> Stgt-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/stgt-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/stgt-devel/attachments/20080630/a6f62c52/attachment-0001.html 



More information about the stgt mailing list