Results 1 to 9 of 9

Thread: How read/recover SD card?

  1. #1

    Default How read/recover SD card?

    I have an SD card and when I plug it in to my desktop (which is openSUSE 11.3), it shows up in Dolphin and shows all folders and files. however when i try to view or copy a file(either by double clicking or using "cp" command) it throws an error:

    Code:
    cp: reading `/media/disk/DCIM/100OLYMP/P1010202.JPG': Input/output error
    Any idea how I can recover these files? Any tools I can use in OpenSUSE?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,846
    Blog Entries
    15

    Default Re: How read/recover SD card?

    Hi
    Use dd_rescue to byte copy the files to another device. Note dd will overwrite the TARGET device. Then run an fsck on the TARGET device (eg the copy version)

    Code:
    dd_rescue /dev/sdX /dev/sdY
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: How read/recover SD card?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Use dd_rescue to byte copy the files to another device. Note dd will overwrite the TARGET device. Then run an fsck on the TARGET device (eg the copy version)

    Code:
    dd_rescue /dev/sdX /dev/sdY
    Thanks. Can I have dd_rescue write it into a folder or does it have to be an entire device?

  4. #4

    Default Re: How read/recover SD card?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Use dd_rescue to byte copy the files to another device. Note dd will overwrite the TARGET device. Then run an fsck on the TARGET device (eg the copy version)

    Code:
    dd_rescue /dev/sdX /dev/sdY
    I get this error:
    Code:
    fsck from util-linux-ng 2.17.2
    e2fsck 1.41.11 (14-Mar-2010)
    fsck.ext2: Superblock invalid, trying backup blocks...
    fsck.ext2: Bad magic number in super-block while trying to open /dev/sdg
    
    The superblock could not be read or does not describe a correct ext2
    filesystem.  If the device is valid and it really contains an ext2
    filesystem (and not swap or ufs or something else), then the superblock
    is corrupt, and you might try running e2fsck with an alternate superblock:
        e2fsck -b 8193 <device>
    Any idea what this means and what I should do? I believe it is actually FAT, not ext2. How do I do it for that?

  5. #5

    Default Re: How read/recover SD card?

    When I do: "sudo /sbin/fsck.vfat /dev/sdg" I get:
    Code:
    dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
    Logical sector size is zero.
    What does this mean?

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,846
    Blog Entries
    15

    Default Re: How read/recover SD card?

    Quote Originally Posted by 6tr6tr
    When I do: "sudo /sbin/fsck.vfat /dev/sdg" I get:

    Code:
    --------------------

    dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
    Logical sector size is zero.

    --------------------


    What does this mean?

    Hi
    So do you get output from fdisk -l for the device?

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default
    up 3 days 2:18, 2 users, load average: 0.30, 0.23, 0.14
    GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26


  7. #7

    Default Re: How read/recover SD card?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    So do you get output from fdisk -l for the device?

    --
    Cheers Malcolm (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default
    up 3 days 2:18, 2 users, load average: 0.30, 0.23, 0.14
    GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26
    I get: "Cannot open /dev/sde"

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,846
    Blog Entries
    15

    Default Re: How read/recover SD card?

    Quote Originally Posted by 6tr6tr
    malcolmlewis;2307070 Wrote:
    > Hi
    > So do you get output from fdisk -l for the device?
    >

    I get: *"Cannot open /dev/sde"*
    Hi
    So it was sdg before? What size is the device and what are you using to
    read? I'm guessing it use to work?

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop
    up 0:15, 3 users, load average: 0.18, 0.18, 0.14
    GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26


  9. #9

    Default Re: How read/recover SD card?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    So it was sdg before? What size is the device and what are you using to
    read? I'm guessing it use to work?

    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop
    up 0:15, 3 users, load average: 0.18, 0.18, 0.14
    GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26
    the sd card is 2gb and is from an olympus camera. It did used to work but I'd always read it via hooking the camera to the computer. The camera died.

    when you say "what do you use to read" do you mean how do I plug it into the computer? My desktop has a "SmartMedia/xD" slot where it fits.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •