Operating System - Linux
1823760 Members
4561 Online
109664 Solutions
New Discussion

Reading pictures from HP R707 digital camers

 
Steve_160
Frequent Advisor

Reading pictures from HP R707 digital camers

(Sorry if this is hard to read.  When I hit submit the message is reformatted
so all the lines are run together.)-----

I'm trying to read pictures from my daughter's digital (HP R707) camera with Fedora Core
3.  The camera uses SD memory cards.  

With the camera in "USB=disk drive" mode it is recognized and assigned /dev/sda.  However, if I try to mount it I eventually get an I/O
error.  I tried it with a memory card reader with the same results.  Can
anyone
#@%!! Windows!
30 REPLIES 30
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

How did you try to mount it?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

I'm trying to mount it as /dev/sda and /dev/sda1. /var/log/messages reports it being assigned "sda" with default "type." I also tried type "usbfs," but that apparently mounts anything, and results in a bogus directory tree.
#@%!! Windows!
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

After you connect you cam, try the command "lsusb" and post here the output if u can.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

>lsusb
Bus 004 Device 003: ID 03f0:4002 Hewlett-Packard PhotoSmart 720 Camera / PhotoSmart 935 (storage)
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

(Thank goodness it's no longer reformatting what I enter!)
#@%!! Windows!
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

Good, now please do this:

dmesg | grep -i "SCSI device"
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

SCSI device sda: 990977 512-byte hdwr sectors (507 MB)
SCSI device sda: 990977 512-byte hdwr sectors (507 MB)
SCSI device sda: 990977 512-byte hdwr sectors (507 MB)
#@%!! Windows!
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

Hmm, according to this, you should mount it like this:

mount /dev/sda /mydir


But as I can nderstand it's not working. Did you try sda1, sda2, sda3?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

What happens is that "mount" errors out after a few minutes.

>mount /dev/sda sda
mount: /dev/sda is not a valid block device

There is only /dev/sda, no sda1 etc. In addition, afterwards the camera generally is locked up after this, requiring me to pull the battery to get it back.
#@%!! Windows!
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

Did you try this:
mount -t vfat /dev/sda /mydir

?
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

If I do a "mount -t vfat /dev/sda sda" mount hangs forever. I tried it on another computer and it does the same there.

BTW, If I try to mount the card reader with "-t vfat" or default, I get "Bogus number of reserved sectors."
#@%!! Windows!
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

Btw, does it work on windows? Does it work anyware? Maybe the problem is in the camera ...
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

It works in Windows as a disk drive, though I often have to restart Windows before it will recognize it. But then, that's Windows.

I didn't want to mess with Internet Explorer to use the other features.
#@%!! Windows!
NiCK_76
Respected Contributor

Re: Reading pictures from HP R707 digital camers

Hi Steve,

Did you saw sda when you perform command "fdisk -l"? Can you post "fdisk -l" to here?

NiCK
just for fun
Stuart Fuller_2
Valued Contributor

Re: Reading pictures from HP R707 digital camers

I have a similar camera (R607).

Before I got the SD card, I was able to connect the camera to my Mandrake Linux system and mount the camera's filesystem to download pictures.

After installing the SD card, and taking some more pictures, I can no longer mount the camera's filesystem. It returns an I/O error as the original poster indicates. Further, the camera now reports that the file system on the SD card is corrupted, and offers to reformat it. Cycling the power on the camera clears it up, however.

The camera works just fine with Winders.
Alex Lavrov.
Honored Contributor

Re: Reading pictures from HP R707 digital camers

I think the problem is in camera. If it doesn't work good enough on Windows too, it's not OS issue.

Just to be sure, I would try to mount this camera on some other computer (windows or linux) and to mount another USB device on linux, just to see that it can handle USB.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

Sorry it's taking me awhile to check fdisk. My daughter wanted her camera back for awhile. I should be able to play with it more tonight. ;-)
#@%!! Windows!
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

Okay, here's what "fdisk -l" says:
-------------------------------------
>fdisk -l

Disk /dev/hda: 10.2 GB, 10248370176 bytes
255 heads, 63 sectors/track, 1245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1245 9896040 8e Linux LVM
----------------------------------------
Although it says it was assigned "SDA," I note that SDA doesn't show up here.

The USB ports on this machine are okay. They work with a CDR, one of those pocket memory sticks (which also mounts as SDA), and my PDA.

I tried the camera on another Linux machine with the same results. I haven't tried the camera on another Windows machine because I don't have another one--unless one turns up in the junk pile.
#@%!! Windows!
NiCK_76
Respected Contributor

Re: Reading pictures from HP R707 digital camers

Hi steve,

Try to remove usb modules and reprobe it.

NiCK
just for fun
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

The only thing I came up with using "lsmod | grep -i usb" was:

usb_storage 61321 0
scsi_mod 118417 4 usb_storage,ide_scsi,libata,sd_mod

I tried removing usb_storage and probing it again, but it didn't help. I have the feeling I should be looking for some other module, though.
#@%!! Windows!
NiCK_76
Respected Contributor

Re: Reading pictures from HP R707 digital camers

Hi steve,


try to rmmod all usb modules and just insmod usb-uhci.

NiCK
just for fun
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

I'm not sure what to make of this:

>insmod usb-uhci
insmod: can't read 'usb-uhci': No such file or directory

Everywhere I look,I'm finding things that are different in the 2.6.9-1.667 kernel, so this is probably another one. :-/
#@%!! Windows!
NiCK_76
Respected Contributor

Re: Reading pictures from HP R707 digital camers

Hi Steve,

After remove all usb modules,perform command "
insmod /lib/modules/2.6.9-1.667/kernel/drivers/usb/host/uhci-hcd.ko" to have a try.

NiCK
just for fun
Steve_160
Frequent Advisor

Re: Reading pictures from HP R707 digital camers

Here's what I got:

>remove all usb modules
bash: remove: command not found

>insmod /lib/modules/2.6.9-1.667/kernel/drivers/usb/host/uhci-hcd.ko
insmod: error inserting '/lib/modules/2.6.9-1.667/kernel/drivers/usb/host/uhci-hcd.ko': -1 File exists

It doesn't seem to have helped, in particular FC3 doesn't seem to support "remove."
#@%!! Windows!
NiCK_76
Respected Contributor

Re: Reading pictures from HP R707 digital camers

Hi steve,

perform following command
rmmod ehci_hcd
rmmod ohci_hcd
insmod /lib/modules/2.6.9-1.667/kernel/drivers/usb/host/ohci-hcd.ko
mount /dev/sda /mnt
ls /mnt

If it is still not work, the following URL hope to help you.
http://www.home.no/oleaa/UDSPDWGNULinux.en.html
http://www.teaser.fr/~hfiguiere/linux/digicam.html

NiCK
just for fun