After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767909 - Fail to automount DVDROM while treatng CD/DVD drive as Blu-ray
Fail to automount DVDROM while treatng CD/DVD drive as Blu-ray
Status: RESOLVED DUPLICATE of bug 766136
Product: gvfs
Classification: Core
Component: udisks2 volume monitor
1.28.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2016-06-21 12:22 UTC by Steven
Modified: 2016-06-22 09:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Error and System Info (5.69 KB, text/x-log)
2016-06-21 12:22 UTC, Steven
Details

Description Steven 2016-06-21 12:22:38 UTC
Created attachment 330129 [details]
Error and System Info

Insert a regular DVD movie disk into CD/DVD drive and UDisks2 volume monitor attempts to access CD/DVD drive as Blu-ray.

# journalctl -qex
Jun 20 22:31:17 satellite gvfs-udisks2-volume-monitor[537]: disc.c:350: error opening file BDMV/index.bdmv
Jun 20 22:31:17 satellite gvfs-udisks2-volume-monitor[537]: disc.c:350: error opening file BDMV/BACKUP/index.bdmv

# dmesg | grep -ie cdrom -e dvd -e sr0
[    2.800515] ata5.00: ATAPI: TSSTcorp CDDVDW TS-L632H, TO01, max UDMA/33
[    3.384634] scsi 4:0:0:0: CD-ROM            TSSTcorp CDDVDW TS-L632H  TO01 PQ: 0 ANSI: 5
[    3.435940] sr 4:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[    3.435946] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.436121] sr 4:0:0:0: Attached scsi CD-ROM sr0
[  823.120761] sr 4:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  823.120782] sr 4:0:0:0: [sr0] tag#0 Sense Key : 0x5 [current] 
[  823.120792] sr 4:0:0:0: [sr0] tag#0 ASC=0x6f ASCQ=0x3 
[  823.120803] sr 4:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 20 44 00 00 00 40 00
[  823.120813] blk_update_request: I/O error, dev sr0, sector 8458240
[  823.170636] sr 4:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08
[  823.170646] sr 4:0:0:0: [sr0] tag#0 Sense Key : 0x5 [current] 
[  823.170654] sr 4:0:0:0: [sr0] tag#0 ASC=0x6f ASCQ=0x3 
[  823.170664] sr 4:0:0:0: [sr0] tag#0 CDB: opcode=0x28 28 00 00 20 44 00 00 00 02 00
[  823.170669] blk_update_request: I/O error, dev sr0, sector 8458240
[  823.170679] Buffer I/O error on dev sr0, logical block 1057280, async page read
[  904.602981] VFS: busy inodes on changed media or resized disk sr0

# lsscsi -vd 4
[4:0:0:0]    cd/dvd  TSSTcorp CDDVDW TS-L632H  TO01  /dev/sr0 [11:0]
  dir: /sys/bus/scsi/devices/4:0:0:0  [/sys/devices/pci0000:00/0000:00:14.1/ata5/host4/target4:0:0/4:0:0:0]

# lspci | grep -i ata
00:12.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 Non-Raid-5 SATA

# cat /proc/scsi/scsi 
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: FUJITSU MHY2120B Rev: 020B
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: TSSTcorp Model: CDDVDW TS-L632H  Rev: TO01
  Type:   CD-ROM                           ANSI  SCSI revision: 05

# lsblk -PO /dev/sr0
NAME="sr0" KNAME="sr0" MAJ:MIN="11:0" FSTYPE="" MOUNTPOINT="" LABEL="" UUID="" PARTTYPE="" PARTLABEL="" PARTUUID="" PARTFLAGS="" RA="128" RO="0" RM="1" HOTPLUG="1" MODEL="CDDVDW TS-L632H " SERIAL="" SIZE="4G" STATE="running" OWNER="root" GROUP="optical" MODE="brw-rw----" ALIGNMENT="0" MIN-IO="2048" OPT-IO="0" PHY-SEC="2048" LOG-SEC="2048" ROTA="1" SCHED="deadline" RQ-SIZE="128" TYPE="rom" DISC-ALN="0" DISC-GRAN="0B" DISC-MAX="0B" DISC-ZERO="0" WSAME="0B" WWN="" RAND="1" PKNAME="" HCTL="4:0:0:0" TRAN="ata" SUBSYSTEMS="block:scsi:pci" REV="TO01" VENDOR="TSSTcorp"

# hdparm --verbose -i /dev/sr0
outgoing cdb:  85 08 0e 00 00 00 01 00 00 00 00 00 00 40 ec 00
SG_IO: ATA_16 status=0x0, host_status=0x0, driver_status=0xe
SG_IO: sb[]: removed for readability
incoming_data: removed for readability
SG_IO: bad driver status: 0xe
Trying legacy HDIO_DRIVE_CMD
outgoing cdb:  85 08 0e 00 00 00 01 00 00 00 00 00 00 40 a1 00
SG_IO: ATA_16 status=0x0, host_status=0x0, driver_status=0x0
SG_IO: sb[]: removed for readability
incoming_data: removed for readability
SG_IO: desc[]:  00 00
      ATA_16 stat=00 err=00 nsect=00 lbal=00 lbam=00 lbah=00 dev=00

/dev/sr0:

 Model=TSSTcorp CDDVDW TS-L632H, FwRev=TO01, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:383,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=no
 Drive conforms to: ATA/ATAPI-7 T13 1532D revision 1:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode

# udevadm info -q all /dev/sr0
P: /devices/pci0000:00/0000:00:14.1/ata5/host4/target4:0:0/4:0:0:0/block/sr0
N: sr0
L: -100
S: cdrom
S: disk/by-id/ata-TSSTcorp_CDDVDW_TS-L632H
S: disk/by-path/pci-0000:00:14.1-ata-1
E: DEVLINKS=/dev/disk/by-id/ata-TSSTcorp_CDDVDW_TS-L632H /dev/disk/by-path/pci-0000:00:14.1-ata-1 /dev/cdrom
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:14.1/ata5/host4/target4:0:0/4:0:0:0/block/sr0
E: DEVTYPE=disk
E: ID_ATA=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_BUS=ata
E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_FOR_SEAT=block-pci-0000_00_14_1-ata-1
E: ID_MODEL=TSSTcorp_CDDVDW_TS-L632H
E: ID_MODEL_ENC=TSSTcorp\x20CDDVDW\x20TS-L632H\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_PATH=pci-0000:00:14.1-ata-1
E: ID_PATH_TAG=pci-0000_00_14_1-ata-1
E: ID_REVISION=TO01
E: ID_SERIAL=TSSTcorp_CDDVDW_TS-L632H
E: ID_TYPE=cd
E: MAJOR=11
E: MINOR=0
E: SUBSYSTEM=block
E: SYSTEMD_READY=0
E: TAGS=:uaccess:seat:systemd:
E: USEC_INITIALIZED=10915539

# uname -a
Linux satellite 4.4.13-1-lts #1 SMP Wed Jun 8 16:44:31 CEST 2016 x86_64 GNU/Linux

# lsmod | grep -ie ata -e scsi -e cdrom -e sr
sr_mod                 24576  0
cdrom                  49152  1 sr_mod
ata_generic            16384  0
pata_acpi              16384  0
pata_atiixp            16384  0
libata                196608  5 ahci,pata_acpi,libahci,ata_generic,pata_atiixp
scsi_mod              151552  3 libata,sd_mod,sr_mod

# cat /proc/cpuinfo | grep -e model\ name -e cpu\ MHz -e cpu\ cores
model name	: AMD Turion(tm) 64 X2 Mobile Technology TL-60
cpu MHz		: 800.000
cpu cores	: 2
Comment 1 Ondrej Holy 2016-06-22 09:01:27 UTC
Thanks for your bug report. 

The bluray errors are not related, they come from libbluray and unfortunately we haven't got much control over them. I will propose patch to avoid those errors later...

I suppose this is libblkid bug. It has been fixed in Fedora recently. See Bug 766136 for possible workaround if it is not fixed in your distribution.

*** This bug has been marked as a duplicate of bug 766136 ***
Comment 2 Ondrej Holy 2016-06-22 09:04:18 UTC
(In reply to Ondrej Holy from comment #1)
> Thanks for your bug report. 
> 
> The bluray errors are not related, they come from libbluray and
> unfortunately we haven't got much control over them. I will propose patch to
> avoid those errors later...

I've pushed commit c1ffe8d to avoid such errors.