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 766136 - ubuntu 16.04 some dvd do not mount automatically (but do in 14.04)
ubuntu 16.04 some dvd do not mount automatically (but do in 14.04)
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: udisks2 volume monitor
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 767909 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-05-08 12:42 UTC by Coeur Noir
Modified: 2016-06-22 09:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
udiskctlmonitor.log (703 bytes, text/plain)
2016-05-09 12:23 UTC, Coeur Noir
Details
gvfsmountli.log (3.90 KB, text/x-log)
2016-05-09 12:24 UTC, Coeur Noir
Details

Description Coeur Noir 2016-05-08 12:42:35 UTC
Originally reported at:
  https://bugs.launchpad.net/bugs/1577768

Hi,

here is a dvd. And ubuntu 16.04.

When I insert that dvd, it does not show anywhere, neither in launcher nor in nautilus.

But I'm able to read that dvd using vlc through menu media / open a disc.

I can manually mount that dvd with

sudo mount -t iso9660 -o ro /dev/sr0 ~/Bureau/dvd/

Once mounted there's a dvd icon in launcher and it appears also in nautilus left panel.

That same dvd automatically mounts when running ubuntu 14.04 on the same computer.

I have also tested other dvd's on ubuntu 16.04 and *most* of them show / mount as expected.

But *all* of them automatically show / mount in ubuntu 14.04.
Comment 1 Ondrej Holy 2016-05-09 07:01:20 UTC
Thanks for your bug report.

Some more info is needed. Please follow the steps:
1/ run the following command before you insert the disk:
udisksctl monitor > ~/udisksctlmonitor.log
2/ insert the disk and wait several seconds
3/ press Ctrl+C and provide udisksctlmonitor.log from your home directory please
4/ run the following command with the inserted disk:
gvfs-mount -li > ~/gvfsmountli.log
5/ please provide gvfsmountli.log from your home directory
Comment 2 Coeur Noir 2016-05-09 12:23:02 UTC
Created attachment 327510 [details]
udiskctlmonitor.log

udiskctlmonitor.log

Monitoring the udisks daemon. Press Ctrl+C to exit.
14:15:48.106: The udisks-daemon is running (name-owner :1.79).
14:16:08.014: /org/freedesktop/UDisks2/drives/ATAPI___iHAS124___Y_ATAPI_iHAS124_Y: org.freedesktop.UDisks2.Drive: Properties Changed
  TimeMediaDetected:            1462796168013108
  OpticalNumDataTracks:         1
  OpticalNumTracks:             1
  OpticalNumSessions:           1
  Optical:                      true
  Media:                        optical_dvd
  MediaAvailable:               true
  Size:                         6731878400
14:16:08.014: /org/freedesktop/UDisks2/block_devices/sr0: org.freedesktop.UDisks2.Block: Properties Changed
  Size:                 6731878400
Comment 3 Coeur Noir 2016-05-09 12:24:32 UTC
Created attachment 327511 [details]
gvfsmountli.log

gvfsmountli.log

Drive(0): Hitachi HDS721010CLA332
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sda'
  themed icons:  [drive-harddisk]  [drive]
  symbolic themed icons:  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/00fixed/sd____a
  Volume(0): LOGS
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     class: 'device'
     unix-device: '/dev/sda2'
     uuid: 'c5688e8b-2efb-4565-9216-a2040130d951'
     label: 'LOGS'
    themed icons:  [drive-harddisk]  [drive]
    symbolic themed icons:  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1462795739509707
  Volume(1): BACKUP
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     class: 'device'
     unix-device: '/dev/sda1'
     uuid: '006891cb-73bf-49c9-ba36-6d13060aec73'
     label: 'BACKUP'
    themed icons:  [drive-harddisk]  [drive]
    symbolic themed icons:  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1462795739509825
Drive(1): Samsung SSD 840 EVO 120GB
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdb'
  themed icons:  [drive-harddisk-solidstate]  [drive-harddisk]  [drive]
  symbolic themed icons:  [drive-harddisk-solidstate-symbolic]  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk-solidstate]  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/00fixed/sd____b
  Volume(0): SYSTEME
    Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
    ids:
     class: 'device'
     unix-device: '/dev/sdb1'
     uuid: 'a7428baa-93fd-48e8-922d-637da9044d2f'
     label: 'SYSTEME'
    themed icons:  [drive-harddisk-solidstate]  [drive-harddisk]  [drive]
    symbolic themed icons:  [drive-harddisk-solidstate-symbolic]  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk-solidstate]  [drive-harddisk]  [drive]
    can_mount=1
    can_eject=0
    should_automount=0
    sort_key=gvfs.time_detected_usec.1462795739509535
Drive(2): WDC WD10EZEX-00BN5A0
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdc'
  themed icons:  [drive-harddisk]  [drive]
  symbolic themed icons:  [drive-harddisk-symbolic]  [drive-symbolic]  [drive-harddisk]  [drive]
  is_media_removable=0
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=0
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/00fixed/sd____c
Drive(3): ATAPI   iHAS124   Y
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sr0'
  themed icons:  [drive-optical]  [drive]
  symbolic themed icons:  [drive-optical-symbolic]  [drive-symbolic]  [drive-optical]  [drive]
  is_media_removable=1
  has_media=1
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/11removable/sr0
Drive(4): Generic- Multi-Card
  Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
  ids:
   unix-device: '/dev/sdd'
  themed icons:  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  symbolic themed icons:  [drive-removable-media-usb-symbolic]  [drive-removable-media-symbolic]  [drive-removable-symbolic]  [drive-symbolic]  [drive-removable-media-usb]  [drive-removable-media]  [drive-removable]  [drive]
  is_media_removable=1
  has_media=0
  is_media_check_automatic=1
  can_poll_for_media=0
  can_eject=1
  can_start=0
  can_stop=0
  start_stop_type=shutdown
  sort_key=00coldplug/12removable/sd____d
Comment 4 Ondrej Holy 2016-05-09 13:04:21 UTC
Thanks for the logs.

It seems there are some problems with lower layers. GVfs and udisks seems to be in unison. GVfs see your drive (Drive(3): ATAPI   iHAS124   Y) and knows about the disk (has_media=1). However it seems the disk is not recognized properly. 

You have:
14:16:08.014: /org/freedesktop/UDisks2/block_devices/sr0: org.freedesktop.UDisks2.Block: Properties Changed
  Size:                 6731878400

But I see on Fedora:
14:40:28.759: /org/freedesktop/UDisks2/block_devices/sr0: org.freedesktop.UDisks2.Block: Properties Changed
  IdUUID:               2013-06-27-16-20-21-00
  IdLabel:              Multi-Boot
  IdType:               udf
  IdUsage:              filesystem
  Id:                   by-uuid-2013-06-27-16-20-21-00
  Size:                 7889485824
  Symlinks:             /dev/cdrom
                        /dev/disk/by-id/usb-Optiarc_DVD_RW_AD-7590S_000000000000000000000000-0:0
                        /dev/disk/by-label/Multi-Boot
                        /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0
                        /dev/disk/by-uuid/2013-06-27-16-20-21-00

So there are probably some problems with kernel/udev as mentioned on the original report...
Comment 5 Coeur Noir 2016-05-09 13:59:14 UTC
Thanks for your answer.

Am I supposed to try another kernel ?
Comment 6 Ondrej Holy 2016-05-09 14:41:10 UTC
It seems it is problem with Fedora also. It is libblkid bug probably. Automounting works with libblkid-2.28 as per:
https://bugzilla.redhat.com/show_bug.cgi?id=1234317

It seems Ubuntu 16.04 uses 2.27.1 version, which doesn't contain the fix yet. Maybe you can try copy libblkid.so from Ubuntu 14.04 as a workaround...
Comment 7 Coeur Noir 2016-05-09 15:55:18 UTC
There are 2 files :

libblkid.so.1
libblkid.so.1.1.0

so I've copied both from 14.04 to 16.04 and yes, it works !

Of course I've made a backup of original files on 16.04 as I assume this will cause problems with forthcoming updates (?)

Thanks a lot Ondrej !
Comment 8 Ondrej Holy 2016-06-22 09:01:27 UTC
*** Bug 767909 has been marked as a duplicate of this bug. ***