darren kirby wrote:
Hello all,

Trying for the first time to download images from a new Nikon D40 camera. libgphoto2 lists the camera as supported in PTP mode. I have tried using PTP mode with digikam (hooking up the camera directly), and also simply trying to mount the memory card using a card reader. Both methods fail.

The card is recognized:

usb 1-5: new high speed USB device using ehci_hcd and address 2
usb 1-5: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 6:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0001 PQ: 0 ANSI: 0
sd 6:0:0:0: [sdc] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete
sd 6:0:0:0: [sdc] 3970048 512-byte hardware sectors (2033 MB)
sd 6:0:0:0: [sdc] Write Protect is off
sd 6:0:0:0: [sdc] Mode Sense: 02 00 00 00
sd 6:0:0:0: [sdc] Assuming drive cache: write through
sd 6:0:0:0: [sdc] 3970048 512-byte hardware sectors (2033 MB)
sd 6:0:0:0: [sdc] Write Protect is off
sd 6:0:0:0: [sdc] Mode Sense: 02 00 00 00
sd 6:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1

usb 1-4: new high speed USB device using ehci_hcd and address 8
usb 1-4: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access     NIKON    D40              1.10 PQ: 0 ANSI: 2
sd 7:0:0:0: [sdc] 3970048 512-byte hardware sectors (2033 MB)
sd 7:0:0:0: [sdc] Write Protect is off
sd 7:0:0:0: [sdc] Mode Sense: 0f 00 00 00
sd 7:0:0:0: [sdc] Assuming drive cache: write through
sd 7:0:0:0: [sdc] 3970048 512-byte hardware sectors (2033 MB)
sd 7:0:0:0: [sdc] Write Protect is off
sd 7:0:0:0: [sdc] Mode Sense: 0f 00 00 00
sd 7:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 7:0:0:0: [sdc] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
Attempts in PTP mode fail with digikam reporting "Failed to connect to the camera. Please make sure it is connected properly and turned on". The camera itself reports that it is connected to the computer properly. When directly mounting I get:


# mount -t vfat /dev/sdc1 /mnt/camera
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Works on my D40. I haven't tried with digikam though, as I prefer to use direct file access. I assume that if mounting the card works, PTP should as well.
I have these lines in my dmesg whenever I try to mount it, or use PTP mode:

Unable to load NLS charset cp437
FAT: codepage cp437 not found

In my kernel config I have this:

(437) Default codepage for FAT So, is there something else I need to get this codepage? The camera appears to be detected just fine, and the issue seems to be directly related to mounting the vfat filesystem and this missing codepage...

Just to note: It is a stable amd64 Gentoo system, and I do have vfat module loaded when I attempt to mount.
I am on the same arch and have the module fat and vfat loaded. Kernel version 2.6.23-gentoo-r6.
Any other ideas?
Use an SD card reader, pull your data off, then format the card again?

If you'd like, I can post my kernel config and you can look for differences between them.
Thanks for consideration,
-d
-Hal
--
gentoo-user@lists.gentoo.org mailing list

Reply via email to