PDA

View Full Version : Manually mounting a Digital Camera



gregorian21
December 29th, 2004, 08:43 AM
Just bought a digital camera (Sony DSC-V3), took some pictures and tried to offload the images to my computer via the USB port.
On Windows you normally get an indication telling you that the camera has been detected and mounted and the images can be transferred. Being a Linux and Ubuntu newbie I wasn't sure what to expect when I connected the camera to the USB port.
So connected the camera and switched on the USB transfer mode, but nothing happened. Tried to access the photos using gThumb as was suggested in a few posts, but my camera wasn't detected. I suspect the camera uses PTP over USB, so I manually set the value to Sony DSC-V1, but the camera was still not being detected.
So I tried to mount the drive manually as explained in the excellent Ubuntu Starter Guide (http://ubuntuguide.org/index.html#mountunmountfat), as follows:




Created a new mount point: $ sudo mkdir /mnt/camera
Mounted the camera: $ sudo mount /dev/sda1 /mnt/camera -t vfat -o umask=000
and I had instant access to my photos in the /mnt/camera directory.

I am not certain, but I think it's important to unmount the device before disconnecting it from the computer by issuing the $ sudo umount /mnt/camera command.

The above may seem simple to Linux gurus, but I spent the best part of an hour trying to figure that out. I'm hoping my post will help others in the same situation.:)

alpha
December 29th, 2004, 03:05 PM
Just bought a digital camera (Sony DSC-V3), took some pictures and tried to offload the images to my computer via the USB port.
On Windows you normally get an indication telling you that the camera has been detected and mounted and the images can be transferred. Being a Linux and Ubuntu newbie I wasn't sure what to expect when I connected the camera to the USB port.
So connected the camera and switched on the USB transfer mode, but nothing happened. Tried to access the photos using gThumb as was suggested in a few posts, but my camera wasn't detected. I suspect the camera uses PTP over USB, so I manually set the value to Sony DSC-V1, but the camera was still not being detected.
So I tried to mount the drive manually as explained in the excellent Ubuntu Starter Guide (http://ubuntuguide.org/index.html#mountunmountfat), as follows:




Created a new mount point: $ sudo mkdir /mnt/camera
Mounted the camera: $ sudo mount /dev/sda1 /mnt/camera -t vfat -o umask=000
and I had instant access to my photos in the /mnt/camera directory.

I am not certain, but I think it's important to unmount the device before disconnecting it from the computer by issuing the $ sudo umount /mnt/camera command.

The above may seem simple to Linux gurus, but I spent the best part of an hour trying to figure that out. I'm hoping my post will help others in the same situation.:)

Thanks for that. :D
It'll come in handy when I receive my install disk sometime next year.

kleeman
December 29th, 2004, 03:39 PM
You many also want to check out gtkam and digikam (gtk and kde apps) which use the libphoto2 libraries to read digital camera info. Worked well with my canon powershot a75 (after upgrading libphoto2)

adroit
January 1st, 2005, 06:46 AM
this configuration works to webcams????

how I can make work my webcam???

gregorian21
January 1st, 2005, 09:09 AM
this configuration works to webcams????

how I can make work my webcam??? The above procedure should work for digital cameras or external HDDs connected via USB. As for webcams, I haven't tried one with Ubuntu (or any flavour of Linux for that matter), so I wouldn't have a clue... sorry.

A quick search on gnomefiles.org (http://gnomefiles.org/) brought up apps like camorama (http://camorama.fixedgear.org).
Give it a try if you haven't already.

mirtux
March 6th, 2005, 08:23 PM
You many also want to check out gtkam and digikam (gtk and kde apps) which use the libphoto2 libraries to read digital camera info. Worked well with my canon powershot a75 (after upgrading libphoto2)
Hi,
one question regarding digikam: i have problems accessing photos from a Powershot A400 camera when running digikam as a non root user. Everything goes smoothly when running as root. I've tried to change the write permissions of /usr/bin/digikam but nothing has changed.
Any ideas,
thanks,
MC

stateq2
March 6th, 2005, 08:42 PM
to add...you may also want to edit your fstab to make things a bit easier


/dev/sda1 /media/usb auto rw,user,noauto 0 0


that way, users can mount by:


mount /dev/sda1

and have read/write access to it.

Quest-Master
March 6th, 2005, 09:32 PM
Actually, it is not needed to mount the digital camera when plugged in, as it will be automatically mounted.

However, if you do not unmount it, you will experience corruption on whatever kind of removable media it is. A reformat will be needed, and all data will be lost. Trust me, I learned the hard way, believing that Project Utopia automatically did the unmounting as well. :(

mirtux
March 7th, 2005, 08:41 AM
Hi,
i don't need to mount the camera as this is automatically done by digikam... as a root user..... I cannot access it as a normal user.

MC

Beire
March 7th, 2005, 08:43 PM
Hi,
i don't need to mount the camera as this is automatically done by digikam... as a root user..... I cannot access it as a normal user.

MC
$ sudo mount /dev/sda1 /mnt/camera -t vfat -o umask=000
mount: special device /dev/sda1 does not exist

:/

thekore
March 7th, 2005, 10:10 PM
$ sudo mount /dev/sda1 /mnt/camera -t vfat -o umask=000
mount: special device /dev/sda1 does not exist

:/
im afraid i get the same error...

gregorian21
April 9th, 2005, 06:34 AM
I got the same message on Warty.
By the way, I upgraded to Hoary and the problem disappeared. In fact Hoary now recognises my camera and even offers to import the images... couldn't ask for more :)

kuleali
April 12th, 2005, 04:07 PM
thank's for this fine HOWTO.

KrazyPenguin
May 5th, 2005, 01:28 AM
I'm using a FinePix A120, good dig camera for the price.

It works fine with Hoary and SimplyMepis 3.3.

Just plug it into the USB port, open the camera door, and it gets automounted.

Then I can see the pictures immediately on the computer, save them and whatever.

When the camera door is closed , the camera gets unmounted immediately and disappears from the desktop.

:cool:

gunnyman
May 5th, 2005, 02:02 AM
I'm having similar issues with an Olympus C700UZ
It mounts as a usb thumb drive on my desktop.
Digikam can't/won't communicate with it.

tregeagle
March 13th, 2006, 10:12 AM
Thanks for that, I was pulling my hair out!! Works well.
although I've very little clue what: "-t vfat -o umask=000" means

Now I will go fix up my fstab as suggested by stateq2.

....learning s l ow l y by my many mistakes :)

thechosenOne
February 10th, 2007, 05:51 PM
This would work when the device is sda1. In my case, the camera was on sdb1 - so one needs to try this out as well !! :)

LyonTamer
June 15th, 2009, 04:59 AM
lenathelaptop@lenathelaptop:~$ sudo mkdir /mnt/camera
[sudo] password for lenathelaptop:
lenathelaptop@lenathelaptop:~$ sudo mkdir /mnt/camera
mkdir: cannot create directory `/mnt/camera': File exists
lenathelaptop@lenathelaptop:~$ sudo mount /dev/sda1 /mnt/camera -t vfat -o umask=000
mount: /dev/sda1 already mounted or /mnt/camera busy
mount: according to mtab, /dev/sda1 is mounted on /
lenathelaptop@lenathelaptop:~$

Indeed, it shows in Places as USB Drive. So why can I not open it and look at the files? :/

When I try to unmount:

lenathelaptop@lenathelaptop:~$ sudo umount /mnt/camera
umount: /mnt/camera: not mounted

Oy!