Thursday, June 24, 2010

Ubuntu: Fixing "Damaged Android SD Card"

Android suddenly started telling me that my SD card was "Damaged".  To fix that in Ubuntu, just mount the card and run the following:
sudo fsck -a /dev/sdb1

The /dev/sdb1 part may be different.  To find out, just type dmesg and see the sdb:sdb1 in the output:
[12330.974901] sd 11:0:0:0: [sdb] Assuming drive cache: write through [12330.974911] sdb: sdb1 [12330.995285] sd 11:0:0:0: [sdb] Assuming drive cache: write through [12330.995289] sd 11:0:0:0: [sdb] Attached SCSI removable disk

4 comments:

  1. Thanks David Ron. I thought it was funny that I could see everything just fine in Ubuntu, and figured there must be some command to fix it.
    ReplyDelete
  2. Apparently Android is really picky about any files with illegal file names. I had this problem after copying some mp3's over to my SD card and couldn't get rid of the problem until I deleted the files and cleared the trash bin.
    ReplyDelete
  3. Will the files in SD card be erased?
    ReplyDelete
  4. The files on the card are left mostly intact, although since the card is damaged in some way, files in the damaged area will be irrecoverable. The irrecoverable files will only be partially recovered and may become useless. In my experience, there will be some lost data, but most of the data will be fine.

    Always backup your crucial data.
    ReplyDelete

AddThis

Bookmark and Share