13

I have a canon PowerShot A3100 IS camera, and, as written in the title, I want to know where does the automount mount it when I connect it.

Does anyone know?

GChuf
  • 495
  • 4
  • 21
Sam
  • 1,377
  • 4
  • 15
  • 21
  • You can use the card reader and find the files at its mountpoint(If automounted, somewhere in `/media`) – nanofarad Jul 16 '12 at 14:49

8 Answers8

15

With Ubuntu 12.10 I didn't have any luck with ~/.gvfs... However, I'm able to access my camera on the command line using

/run/user/<username>/gvfs/gphoto2:host=%5Busb%3A002%2C008%5D/
j0k
  • 138
  • 11
lucio.codeghini
  • 151
  • 1
  • 2
  • 2
    On Ubuntu 19.04, instead of my username it was my [User Identifier](https://en.wikipedia.org/wiki/User_identifier) (UID) (which for me was `1000`). And I have to open the camera from `nautilus` (Ubuntu's file manager) before I see it in `/run/user/1000/gvfs` – Boris Verkhovskiy Jul 20 '19 at 03:03
3

Assuming your camera connects over PTP, GPhoto will be responsible for the data transfers. I guess the ~/.gvfs directory will contain a virtual folder pointing to your camera.

  • But you can't access that folder from terminal. Accessing it from file manager is the same as you see in my image above. – Mitch Jul 16 '12 at 15:09
  • In Ubuntu, PTP cameras are handled by gvfs, which calls libgphoto in the background. So, you can find a virtual folder representing your MTP camera in ~/.gvfs, it really is that simple. –  Jul 16 '12 at 15:18
  • I know what you're saying. Try accessing the folder from terminal an see :) – Mitch Jul 16 '12 at 15:20
3

Mount it using gphotofs

Install gphotofs package:

sudo apt-get install gphotofs

Then create a directory wherever you prefer (i'm using /home/<user>/camera)

mkdir /home/<user>/camera

And use the following to mount it

sudo gphotofs /home/<user>/camera

notes

  • replace <user> with your username
Jossef Harush Kadouri
  • 4,514
  • 2
  • 20
  • 22
  • This worked like a charm - but *without* "sudo" in the gphotofs command; at first I did this with sudo and couldn't access the camera, even with sudo chown : /home//camera – Lucas Zamboulis Feb 13 '21 at 17:36
2

You can open the gphoto2:// address directly in your file manager. Nautilus handles it and gives you a device. Other browsers such as thunar you may have to enter the address manually.

~/.gvfs is the default mountpoint produced by the gvfs-fuse-daemon (package gvfs-fuse). This is a but temperamental so even if you have the package installed it may fail at startup. Check the permissions on .gvfs.

Depending on your environment (varies between versions), you may have an XDG_RUNTIME_DIR set and then .gvfs will be mounted there instead of your home dir. Typically this will be something like /run/user/...

1

On Ubuntu 19.04, Nautilus (Ubuntu's file manager) mounts cameras at

/run/home/$UID/gvfs/gphoto2:host=Name_of_Company_Model_Name_SomeNumbers

Where $UID is your User Identifier (it's probably 1000).

The last folder in the file path is probably different for your camera. You can find the string by doing

gio mount --list --detail

And looking for a line like

activation_root=gphoto2://Name_of_Company_Model_Name_SomeNumbers

For me, the camera would not get mounted unless I opened Nautilus and clicked on the camera. To mount it manually from the command line I did

gio mount gphoto2://Name_of_Company_Model_Name_SomeNumbers

And to unmount it I did

gio mount -u gphoto2://Name_of_Company_Model_Name_SomeNumbers
Boris Verkhovskiy
  • 3,134
  • 3
  • 30
  • 39
1

If I understand your question correctly, it gets mounted at gphoto2://[usb:001.006]/

enter image description here

Not all cameras are mountable. The gphoto2 command should allow you to download pictures from supported cameras.

If your camera is like that, you can avoid this problem by using a USB card reader. The USB card reader makes any card mountable, just like a hard drive.

Mitch
  • 106,657
  • 24
  • 210
  • 268
1

While this is true [about gphoto2 mounting cameras], there is a setting on some cameras that allow you to connect them actually as a USB mass storage device (see screenshot), then you do not have to rely on gphoto2 and can treat your camera (or the card within it) as a normal usb flash disk. The setting to change how your camera connects to the PC is not present in all camera menus, but is usually in DSLRs. It often makes transferring your pictures and videos easier to have this setting on USB mass storage- at least it works for meNikon D70 mass storage

  • I don't find that option in the camera. However I'll search for that. thanks – Sam Jul 15 '12 at 12:28
  • 1
    If there isn't an option in your camera menu, you can take out the memory card and put it in a usb card reader and connect it to the computer. Then you should be able to read and write from the card with no problems. –  Jul 15 '12 at 13:30
  • Yep, I thought about that. But like I said to Mr Mitch, what if I wanted to access to my camera from the command line ? – Sam Jul 16 '12 at 14:26
0

If it's mounted somewhere, you can go to the terminal and execute mount without parameters to see a list of mounted devices and their locations.

Regards