[Stgt-devel] How to setup a DVD RW

ronnie sahlberg ronniesahlberg
Mon Jun 30 01:32:53 CEST 2008


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> 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
>
>



More information about the stgt mailing list