Comment 39 for bug 548546

Revision history for this message
Martin Pitt (pitti) wrote : Re: manual mount of loop device makes gvfs Drive disappear

If I mount/unmount the loop device in nautilus (i. e. through gvfs), it seems to work well:

Volume changed: 'Ubuntu 11.04 amd64'
  Volume(0): Ubuntu 11.04 amd64
    Type: GProxyVolume (GProxyVolumeMonitorGdu)
    ids:
     unix-device: '/dev/loop0'
     label: 'Ubuntu 11.04 amd64'
    themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
    can_mount=1
    can_eject=0
    should_automount=0

Mount added: 'Ubuntu 11.04 amd64'
  Mount(0): Ubuntu 11.04 amd64 -> file:///media/Ubuntu%2011.04%20amd64
    Type: GProxyMount (GProxyVolumeMonitorGdu)
    default_location=file:///media/Ubuntu%2011.04%20amd64
    themed icons: [drive-removable-media-file] [drive-removable-media] [drive-removable] [drive]
    x_content_types: x-content/win32-software
    can_unmount=1
    can_eject=0
    is_shadowed=0

and the drive stays around. But if I do the same using mount/unmount on the command line, the drive and volume both go away, and gvfs does not know about the loop mount at all if I mount to /mnt. When mounting to /media/, it does work, though. This is desired behaviour, as otherwise the UI would be cluttered with loop mounts which are "system internal" (such as /mnt or temporary mounts from usb-creator).