how to recover damaged memory card with the help of Ubuntu?

10,369

If there is a Microsoft file system, FAT32 or NTFS, try to repair the file system in Windows with

chkdsk /f X:

where X: is the 'drive' letter, for example D: or use a graphical tool in Windows. (You already know that you should not format it.)

If there is a linux file system, try to repair the file system in linux. Ubuntu uses the ext4 file system, which can be repaired with

sudo e2fsck -f /dev/sdxn

where x is the drive letter and n is the partition number, so for example /dev/sdb1


If no luck try Testdisk.

If still no luck try PhotoRec, which can recover files without a file system. The drive must be seen as a mass storage device, and Disks sees it as /dev/sdb, which indicates, that this is the case.

You find more details at these links,

www.cgsecurity.org

Repair the partition table and file system of a pendrive

Share:
10,369

Related videos on Youtube

Madhav Nikam
Author by

Madhav Nikam

I like to improve new thoughts, Technics, and philosophy. Love to computer, mathematics and nature. Agriculture is my soul, math is my mind, computer is my heart and knowledge is my breath. I think breathing of knowledge is very importance to make us alive.

Updated on September 18, 2022

Comments

  • Madhav Nikam
    Madhav Nikam almost 2 years

    I have 16 gb micro memory card but it suddenly damage and unable to read and open. it only display in Disks utility. also when I insert that memory card into mobile it display message Damage memory card format it. but if I format memory card I loss all my data. How can solve that issue. Here is screenshot of Disks Utility.

    enter image description here

    • You'reAGitForNotUsingGit
      You'reAGitForNotUsingGit over 7 years
      What filesystem was it?
    • Madhav Nikam
      Madhav Nikam over 7 years
      fat file system
    • Andrea Lazzarotto
      Andrea Lazzarotto over 7 years
      It seems your drive is toast. Can you make an image of it using the Disks application?
  • Fabby
    Fabby over 7 years
    Welcome to Ask Ubuntu! ;-) I recommend editing this answer to expand it with specific details about how to do this. (See also How do I write a good answer? for general advice about what sorts of answers are considered most valuable on Ask Ubuntu.)