8

When I mount a .iso image with Archive Mounter using Nautilus, I get a new entry under Network. I can use this in Nautilus but cannot find a way to cd to it from a terminal.

I tried installing nautilus-open-terminal but it won't work for directories mounted in this way!

Note, there are already solutions on AskUbuntu using the terminal to create a loopback device. I don't want to do this and am only interested in a way I can mount with Archive Mounter and then access with a terminal.

  • So I guess you don't want to extract the iso? This would allow access through a terminal with the cd command. – mchid Aug 31 '14 at 12:05
  • .iso is useful if I need to burn quickly. So extracting would result in two 'copies' of everything - one compressed as iso and one extracted. – TenLeftFingers Aug 31 '14 at 15:24

1 Answers1

9

Archive Mounter uses gvfs to mount the ISO images.

On 14.04+, you'll find it mounted under

/run/user/$(id -u)/gvfs/

Where id -u return return your username's UID. If you are the only user on the system, this is probably 1000.

There's an environment variable called XDG_RUNTIME_DIR that should hold the path /run/user/<UID>, so you can just do:

ls $XDG_RUNTIME_DIR/gvfs

And you'll find your ISO mounted there to a directory starting with archive:host=file...

Pablo Bianchi
  • 15,657
Alaa Ali
  • 31,535
  • Thank you Alaa Ali! That's exactly what I need. The last command's output was very verbose and didn't take me anywhere but the first part contains my solution. – TenLeftFingers Aug 31 '14 at 15:22
  • mounted volumes dont seem to mount here on Debian Jessie Cinnamon's default (Gnome) Files file browser. Additionally "Terminal Here" context item drops right into the home directory. Edit, it lists this under "Network" in the sidebar, and yeah, any idea where one can find where archive:// "network locations" are mounted? – ThorSummoner Feb 07 '17 at 19:01
  • This may be related: http://superuser.com/a/720528/309066 – ThorSummoner Feb 07 '17 at 19:13
  • I can confirm that for Fedora (v25 at least) the answer is bang on. – Mircea Ion Mar 19 '17 at 01:59
  • On 16.04, the gvfs dir is empty. A 16.04 friendly update to the answer would be great :) – TenLeftFingers Jul 18 '17 at 18:50
  • still working for ubuntu 18 – jeremy_rutman Dec 10 '19 at 10:52