Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

shell side I'm currently using mount -o loop file.iso /path/to/mount/dir but I would like some automount/unmount system like FUSE_MOUNT is doing, could that be possible?

1 Answer

0 votes
by
selected by
 
Best answer

There is fuseiso which can be used like this:

filetype *.iso
       \ {Mount with fuseiso}
       \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
by

I'm coming from that route and I was looking for something different (simpler) because it gives me this error with the last iso file

init: wrong standard identifier in volume descriptor 0, skipping..init: wrong standard identifier in volume descriptor 1, skipping..init: wrong standard identifier in volume descriptor 2, skipping..init: wrong │
 │  standard identifier in volume descriptor 3, skipping..init: wrong standard identifier in volume descriptor 4, skipping..init: wrong standard identifier in volume descriptor 5, skipping..init: wrong standard i │
 │ dentifier in volume descriptor 6, skipping..init: wrong standard identifier in volume descriptor 7, skipping..init: wrong standard identifier in volume descriptor 8, skipping..init: wrong standard identifier i │
 │ n volume descriptor 9, skipping..init: wrong standard identifier in volume descriptor 10, skipping..init: wrong standard identifier in volume descriptor 11, skipping..init: wrong standard identifier in volume  │
 │ descriptor 12, skipping..init: wrong standard identifier in volume descriptor 13, skipping..init: wrong standard identifier in volume descriptor 14, skipping..init: wrong standard identifier in volume descript │
 │ or 15, skipping..init: wrong standard identifier in volume descriptor 16, skipping..init: wrong standard identifier in volume descriptor 17, exiting..
by

I guess fuseiso doesn't support every image out there. I also thought the problem is related to mounting as root vs. non-root. If not, you can use the same command as in a shell:

filetype *.iso FUSE_MOUNT|mount -o loop %SOURCE_FILE %DESTINATION_DIR

fusermount should be able to unmount it as well (works here as root at least) and Vifm doesn't really care whether FUSE is involved or not as long as source gets "mounted"/"unmounted" (can be symlinking or copying/removing).

by

thank you for light it up! I was trying

filetype *.iso FUSE_MOUNT|mount -o loop %SOURCE_FILE %DESTINATION_DIR

as a user and that failed, but mounting as root (like I was doing in shell) solved it, and fusermount unmount it correctly too

...