Now, when I try to mount a disk image on that samba share with mount [PATH] /mnt/image -o loop, it complains with mount: /mnt/image: failed to setup loop device for [...]. However, if I copy the image file to the local filesystem, it mounts fine. Any idea why?
gio mount sftp://vglaptop.local/
gio open /run/user/${UID}/gvfs/sftp:host=vglaptop.local${HOME}/Public/Fedora-Everything-netinst-x86_64-32/Fedora-Everything-netinst-x86_64-32-1.6.iso
Actually, it’s much easier to perform with a file manager like Nautilus.
Just make sure the MIME-types are configured properly.
Yes, it is easy with a file manager including Caja, which does this automatically in the background. But I am trying to mount a disk image that is stored on a network share to a local mount point to examine, via CLI.
I thought gio mount might be relevant, but it did not work. If the location is already mounted in a file manager: gio mount /run/user/1000/gvfs/smb-share:server=[IP]\,share=[share]/[PATH]/[image.img] /mnt/image
gio: file:///mnt/image: volume doesn’t implement mount
gio: smb://[IP]/[share]/[PATH]/[image.img]: Location is already mounted
And if I first unmount the share from the file manager:
gio: file://[IP]/[share]/[PATH]/[image.img]: volume doesn’t implement mount
gio: file:///mnt/image: volume doesn’t implement mount