LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting digital camera, mounting in general? (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-digital-camera-mounting-in-general-476947/)

lugoteehalt 08-24-2006 09:47 AM

mounting digital camera, mounting in general?
 
When mounting a digital camera you need to know the device name, /dev/sda1 or whatever. This doesn't work for me.

Without paranormal powers how are you supposed to know the device name? Surely there must be some way of finding it out. Equally how are you to know the name of the sound device, or any other device?

Ditto the file-system type.

In fact 'gphoto2 --list-files' and 'gphoto2 --get-file 1-20' works. But I'd like to mount it. Can't help the way I feel. Thanks any help.

abisko00 08-24-2006 10:34 AM

The output of 'dmesg', short after attaching the device should indicate the device name.

J.W. 08-24-2006 07:57 PM

Similarly, after you connect the device, try running
Code:

fdisk -l
Note that's a lowercase "L"

lugoteehalt 08-25-2006 07:39 AM

Alright, that's beautiful. Thanks boys and girls; I just didn't know that.

lugoteehalt 08-26-2006 09:35 AM

Code:

Assume this is the relevant stuff from dmesg. Still not obvious what the driver is. Is it just something about usb - which I don't know anything about?? The camera plugs in via the usb connector.

sb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 16:52:03 May 16 2005
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:07.2
PCI: Sharing IRQ 11 with 00:03.0
PCI: Sharing IRQ 11 with 00:03.1
PCI: Sharing IRQ 11 with 00:10.0
usb-uhci.c: USB UHCI at I/O 0xdce0, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: new USB device 00:07.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x54c/0x4e) is not claimed by any active driver.
sb.c: USB disconnect on device 00:07.2-1 address 2
hub.c: new USB device 00:07.2-1, assigned address 3
usb.c: USB device 3 (vend/prod 0x54c/0x4e) is not claimed by any active driver.

fdisk -l gives nothing either as user or root. Looked in the corresponding /proc thing and nothing apparently usefull.

The camera's plugged in via USB. Does that mean some sort of obvious device?

Thanks any help.

ciotog 08-27-2006 02:09 AM

Most cameras have 2 modes - Disk or USB mode, and Camera or PTP mode. The first is the USB Mass Storage Device mode, which is generally what you need to mount a USB device (unless there's a specific driver for your particular device, like the Manager driver for iRiver devices).

In Camera or PTP mode the camera is expecting a specific, narrow range of communication events, and has limited ability to respond to those events. For example, the filename must be a certain string of characters, it must be in certain folders, etc. otherwise any illegal files will not be reported. This mode is designed to be simple and foolproof since it's only supposed to handle image and video files. gphoto is coded to work with this mode natively.

Anyway, the point is that you should check to see if your camera is in the wrong mode to be used as a mass storage device.

lugoteehalt 08-29-2006 12:52 PM

Thanks. That's probably it - the camera's in PTP, picture transfer protocol, mode; which is presumably why 'gphoto2 --get-all-files', for example, works.

I'll try USB, Mass Storage Device mode. And see if the previous advice then signals which device to mount.


All times are GMT -5. The time now is 03:31 AM.