Digital camera

From Linuxintro
Revision as of 12:27, 10 May 2012 by imported>ThorstenStaerk (Reverted edits by 109.230.216.225 (talk) to last revision by 74.121.148.3)

Tutorial Factbox

Time to replay 20 min
Example Distro SUSE Linux 11.1
<html>Type</html> Howto

This article is about how you can use digital cameras that have a USB connection with Linux. There are two types of digital cameras: mass storage cameras and PTP cameras. With mass storage devices you connect the camera via USB and can read the photographs as if the camera was a USB hard disk. With PTP cameras, you need software to read the pictures. On most cameras, you can switch if you want to use them as PTP or mass storage cameras. In both cases, you can pull out the storage chip and use it in e.g. and SD-card-reader which will behave like a USB disk. This article uses SUSE Linux 11.1 as example, but it should work same or similar on every Linux distribution.

Find out what you have

In your digital camera's menu, try to find the menu item that makes the distinction between your camera acting as mass storage USB device and PTP device. Set it to the mass storage option. If you do not find the item and are still unsure which type of camera you have, you will have to try both options, PTP and mass storage.

TYVM you've solved all my proeblms

PTP cameras

If you have a PTP USB digital camera, you can get all its pictures transferred with gphoto2. To install and run it, open a console and type

mkdir photos
cd photos
sudo yast -i gphoto2
gphoto2 --get-all-files

TroubleShooting

Symptom: When trying to mount your camera, you get

mount: unknown filesystem type 'vfat'

Reason: Your kernel does not have vfat support compiled in nor does it have vfat compiled as a module. The following shows how it should look like:

# cat /proc/filesystems | grep vfat
        vfat
# lsmod | grep vfat
vfat                   11752  1
fat                    53592  1 vfat
# zcat /proc/config.gz | grep -i fat
# DOS/FAT/NT Filesystems
CONFIG_FAT_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"

Solution: Install a kernel with vfat support, best use the one from your distribution. SUSE Linux 11.1 is known to work.

rescue pics from SD card

photorec is contained in the package "testdisk"