LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mounting memory card -low level formatted by the camera- (https://www.linuxquestions.org/questions/linux-general-1/mounting-memory-card-low-level-formatted-by-the-camera-671751/)

rob07mxa 09-23-2008 04:43 AM

mounting memory card -low level formatted by the camera-
 
hi,

I installed a new photo card into a Canon digital camera. The memory card was low level formatted using the camera itself.

When I connected the digital camera through a usb cable to the OS (Fedora 8), the OS was not able to mount the card into the filesystem. I tried manually mounting it, but I was not successful.
#mount: special device /dev/sdc1 does not exist
# mount: /dev/sdc1 is not a block device

Also, the data recovery programme photorec was not able to detect the memory card.

However, Fedora offers the option of importing photos from the card each time I connect the camera to it, but I could not mount the card into the filesystem.

Is it possible that the mount failed because the memory card is not formatted into filesystem like vfat or other equivalents?

Is there a way of mounting such a card without formatting?

Is it possible to mount a NON block device?

Is it possible to recover deleted photos from unformatted memory card using photorec or similar programmes?

Thanks in anticipation

jschiwal 09-23-2008 07:10 AM

Try running "gphoto2 --list-cameras" and see if your camera is listed.

Then try
Code:

# modprobe usb-uhci
# mount -t usbdevfs none /proc/bus/usb

Now connect and switch on the camera in play-back mode (mode-wheel to >), and still as root check if you can see its contents:

# gphoto2 -L

It is also possible to allow gphoto2 to be run as a normal user. First locate the correct device in /proc/bus/usb/001/ (at least that's where it is on my machine - you may need to hunt around). The device representing the camera is one of the files in this directory, eg. file 004. To allow user foo to access the camera do something like,

# chown foo 004

Now try running gphoto2 as the ordinary user.

Note: If the camera is correctly auto-detected, but listing the contents fails, then it probably means that the permissions are wrong on the USB device (you do not have write-permission). Double-check the above steps.

http://www.edginet.org/techie/linux/canon.html

Also check if your camera uses the ptp protocol instead. If that is the case, check if your system has a /usr/share/hal/fdi/information/10freedesktop/10-camera-ptp.fdi file.

Code:

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <match key="info.subsystem" string="usb">
      <match key="usb.interface.class" int="0x06">
        <match key="usb.interface.subclass" int="0x01">
          <match key="usb.interface.protocol" int="0x01">
            <merge key="info.category" type="string">camera</merge>
            <append key="info.capabilities" type="strlist">camera</append>
            <merge key="camera.access_method" type="string">ptp</merge>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

Also monitor the kernel messages when you plug in the camera. (sudo tail -f /var/log/messages)
If it does expose the memory card as a VFAT disk, see what device is used from the kernel messages.

rob07mxa 09-29-2008 10:43 AM

jschiwal

thanks very much for the useful information and link.


All times are GMT -5. The time now is 02:53 AM.