Damaged SD card (badly unmounted?) How to fix?

It looks like the card has been damaged due to premature removal. The messages indicate either a controller failure in the card or bad blocks. The latter may be recoverable. Try this to recover:

  • Insert card
  • Unmount it with umount /dev/mmc0 (or with whatever the drive is mounted as)
  • fsck -v /dev/mmc0
  • mount it

If this doesn't help, you have to reformat with mkfs. If the card is still unusable, the controller has probably been damaged in hardware beyond recovery.