My Raspberry Pi was running fine for two months. Then some files in
/usr/bin got corrupted and there were many errors on reboot.
I tried to write a fresh image but dd would block and do nothing.
sudo dd if=~/2013-02-09-wheezy-raspbian.img of=/dev/mmcblk0 bs=4M
I noticed that my SD card was not listed as compatible, so I started with a new supported SD card a week ago and now the same thing has happened.
The cards seem to be stuck in a read-only state, and
fdisk have no impact.
I did pull the power cord a few times to reboot after
ssh stopped working - I run it without a monitor and keyboard.
Is it possible to permanently damage an SD card by pulling the power cord?
I have read about corrupted SD cards and would like to get to the bottom of that problem, but my current concern is that I need to buy a new SD card each time I try. For other people they seem to be able to start again by writing a new image.
Is there anything else I can try to get the SD cards working again?
If I try to format the card with my camera it says 'format error'.
When I insert the SD card dmesg shows
... [52254.614980] end_request: I/O error, dev mmcblk0, sector 1696056 [52254.614983] end_request: I/O error, dev mmcblk0, sector 1696064 [52254.614987] end_request: I/O error, dev mmcblk0, sector 1696072 [52254.615058] Aborting journal on device mmcblk0p2-8. ... [52666.031183] journal commit I/O error [52666.031186] journal commit I/O error .... [52666.031220] journal commit I/O error [52666.031227] journal commit I/O error [52666.083902] EXT4-fs error (device mmcblk0p2): ext4_put_super:819: Couldn't clean up the journal [52666.083910] EXT4-fs (mmcblk0p2): Remounting filesystem read-only
Update: I have managed to write a fresh image to the second SD card, but the first card (Kingston 8 GB class 4, not on the supported list) is still broken. As it's only one card which seems broken I am not so concerned that it will keep happening. I guess this was a one-off.
My Raspberry Pi now rarely boots. I checked the voltage on the Raspberry Pi, and it is quite low, so I suspect that it is the cause of my troubles. I have ordered a new power supply. However, I don't know why the Raspberry Pi worked for so long before.