[vfio-users] optical eject issue

Roger Lawhorn rll at twc.com
Sun May 24 02:30:23 UTC 2020


found the command. it is 'lsscsi -g'

$ lsscsi -g
[0:0:0:0]    disk    ATA      ST2000LM003 HN-M 0006  /dev/sda /dev/sg0
[4:0:0:0]    disk    ATA      ST4000LM024-2AN1 0001  /dev/sdb /dev/sg1
[5:0:0:0]    disk    ATA      INTEL SSDSC2KW01 042C  /dev/sdc /dev/sg2
[6:0:0:0]    cd/dvd  MATSHITA BD-MLT UJ260AF   1.00  /dev/sr0 /dev/sg3
[7:0:0:0]    disk    ATA      ST4000LM024-2AN1 0001  /dev/sdd /dev/sg4

On 5/23/20 9:05 PM, Samuel Holland wrote:
> On 5/23/20 5:43 PM, Roger Lawhorn wrote:
>> Well,
>>
>> Got an error:
>> qemu4.0-system-x86_64: -device scsi-generic,drive=cd0: SG_GET_SCSI_ID ioctl failed
> I haven't seen that error before.
>
> Make sure you're specifying the /dev/sgX node that matches your optical drive.
> Try `dmesg | grep sr.*sg` to find it.
>
>> The drive itself is sata so I don't think it will accept scsi commands.
> PATA/SATA optical drives are actually all SCSI on the inside. ATAPI is SCSI
> tunneled over ATA. So I think it should work :)
>
> Cheers,
> Samuel




More information about the vfio-users mailing list