Corrupt sd card

Discussion in 'Laptop Hardware' started by madwoolything, Oct 10, 2008.

  1. madwoolything

    madwoolything

    Joined:
    Aug 6, 2008
    Messages:
    67
    Likes Received:
    0
    I hope you can help.

    I appear to have a corrupt 4GB sd card that will only auto mount as read only (some of the file names are very strange and the physical lock on the card is in the off position).

    Even as root, I'm unable to change any of the file attributes on the card. In the past I've just reformatted the card using gparted but even this has failed (error messages but I don't know where gparted logs these).

    How do I recover the card? Is there a way of forcing the card to mount (not as read only) so I can reformat it?
     
    madwoolything, Oct 10, 2008
    #1
  2. madwoolything

    JimK

    Joined:
    Aug 14, 2008
    Messages:
    218
    Likes Received:
    0
    On corrupted hard drives, I've had better luck recovering them with fdisk or cfdisk than gparted or other gui tools, so you might want to give one of those a try with your SD card. Another option is to try a mac or windows machine to format it and if that works then you can format it again under Linux.

    I got a brand new 2GB SD, which I formatted with swap, /tmp and /var/log partitions and now Gparted doesn't even see them even though Linux is still using them. I'm thinking that SD cards just don't like to have more than a single partition on them.
     
    JimK, Oct 10, 2008
    #2
  3. madwoolything

    madwoolything

    Joined:
    Aug 6, 2008
    Messages:
    67
    Likes Received:
    0
    Thanks .... I've tried to use gparted, fdisk and cfdisk ...... I always get the same error message -

    Failed to mount "/org/freedesktop/Hal/devices/volume_part2_size_3999784960"
    Given device "/org/freedesktop/Hal/devices/volume_part2_size_3999784960" is not a volume or drive

    Any ideas what is wrong?
     
    madwoolything, Oct 10, 2008
    #3
  4. madwoolything

    donec

    Joined:
    Sep 11, 2008
    Messages:
    952
    Likes Received:
    0
    I think that is because you have the swap partition on the SD card. I found (on other computers) that sometimes an external swap partition is not seen by Gparted unless you use swapon which may need to be done with the terminal to make it work. Further in my experience once you have swapon turned on and the SD card or USB stick seen if you leave it like that then it will continue to be seen until you use swapoff.
     
    donec, Oct 10, 2008
    #4
  5. madwoolything

    JimK

    Joined:
    Aug 14, 2008
    Messages:
    218
    Likes Received:
    0
    Do you have access to a Mac or windows PC? (That might work). Or a digital camera that can format SD cards? (less likely to work).
     
    JimK, Oct 10, 2008
    #5
  6. madwoolything

    madwoolything

    Joined:
    Aug 6, 2008
    Messages:
    67
    Likes Received:
    0
    Windows didn't want to know BUT my canon camera reformatted the drive just fine.
    THANKYOU ....... you're a genius!
     
    madwoolything, Oct 10, 2008
    #6
  7. madwoolything

    JimK

    Joined:
    Aug 14, 2008
    Messages:
    218
    Likes Received:
    0
    Not a genius -- I just break so much stuff that I have to learn to fix it.

    Another thing I forgot to mention is that some SD manufacturers' web sites may have utilities you can download that can reformat a card. As a last resort, check your warranty -- you may be able to send your bad card back to have it fixed or replaced.
     
    JimK, Oct 10, 2008
    #7
  8. madwoolything

    carswell

    Joined:
    Dec 4, 2008
    Messages:
    1
    Likes Received:
    0
    Thanks for this, my Fuji camera performed the same trick
     
    carswell, Feb 8, 2009
    #8
  9. madwoolything

    solpuerto

    Joined:
    Oct 27, 2008
    Messages:
    268
    Likes Received:
    0
    Location:
    UK
    solpuerto, Feb 8, 2009
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.