LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   help needed to get my digital camera pictures (https://www.linuxquestions.org/questions/linux-hardware-18/help-needed-to-get-my-digital-camera-pictures-160730/)

phunkymunky 03-21-2004 06:01 PM

help needed to get my digital camera pictures
 
I've been trying to get pictures off my digital camera this weekend and so far have had no luck so thought i would ask here.
I have done a search on the forums for items related to this and have tried a lot of the suggestions put forward but still have had no success.

My camera is an Olympus C-150 (present so no chance to choose a linux compatible one).
OS is Slackware 9.1.

I have usb-storage, scsi stuff etc in my kernel.

I installed the sg3_utils and used sg_scan and sg_map as has been suggested in other threads.

connecting the camera i get:

dmesg -

hub.c: new USB device 00:08.0-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: OLYMPUS Model: C150,D390 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2

sg_scan -

/dev/sg0: scsi0 channel=0 id=0 lun=0 [em] type=0

and sg_map -

# Note: the devfs pseudo file system is present
/dev/sg0

I have tried mounting /dev/sg0 but get the not valid block device message.

I cant get gphoto2 to install for some reason (still looking into this)

As you can see the camera is being detected (correctly?) as a mass storage device but i cant seem to access /dev/sg0


Any ideas anyone has would be useful.

cheers phunkymunky

neo77777 03-21-2004 08:48 PM

try /dev/sda*
substitute * for 0...4

phunkymunky 03-22-2004 01:28 PM

if i use sda0 i get the message

special device /dev/sda0 does not exist.

do i need to create it?

maroonbaboon 03-23-2004 04:26 AM

This camera is reported to work 'out of the box' at:

http://www.qbik.ch/usb/devices/showdev.php?id=2000

so I suspect something wrong with your kernel/usb setup. If I plug in a CF card reader, dmesg tells me it is SCSI device /dev/sdb (kernel 2.6.3). I can't remember if older kernels give this information. Try mounting /dev/sda1 or /dev/sdb1. You don't need to create any devices. Here is everything in my kernel config file matching USB or SCSI (minus a few irrelevant bits). Also some of this is for a SATA disk.

CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_REPORT_LUNS=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_ATA_PIIX=y
CONFIG_SCSI_IZIP_EPP16=y
CONFIG_SCSI_QLA2XXX=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_EZUSB=y

JaseP 03-23-2004 08:26 AM

Check to see if the camera is capable of switching between PTP and USB Mass Storage modes. If you can't use gphoto2, then make sure the camera is set to USB Mass Storage. Make sure the camera is powered to access it, of course.

phunkymunky 03-23-2004 02:44 PM

i have no idea about PTP or mass storage..the documentation is crap doesnt tell me anything useful like that (how can i find out?). I am assuming that the fact that the dmesg text from my first post ends with "USB Mass Storage device found at 2" that it is a mass storage device. Could be wrong tho ;)

maroonbaboon - had a look at that site (your link didnt work) and cant see any mention of my camera. Ive been there before as well.

Your help is most appreciated.

phunkymunky

Andrew Benton 03-23-2004 06:13 PM

Your dmesg seems to suggest the kernel sees the camera as /dev/scsi0
If that node doesn't exist you may need to use mknod to make it. As root try
mknod /dev/scsi0 c 81 0
then make a suitable folder like /mnt/camera and
mount /dev/scsi0 /mnt/camera
If you can mount it you may be able to copy the data out of it without any extra programs. I couldn't get Gphoto to work but
mv /mnt/mp3/dcim/100nikon/*.jpg /home/andy/tmp
gets the photos out of my Nikon Coolpix 2500 (I know it say's mp3 - it's easist for me to mount it in the same place as the mp3 player, the kernel sees them all as /dev/sda1)


All times are GMT -5. The time now is 04:46 AM.