SD card appears to have stopped accepting writes
One of my nanopi neos stopped booting recently, I just took a little long getting a serial console attached. It is not booting because fsck of ROOT throws this at boot time: fsck.ext4: Unknown code ____ 251 while recovering journal of ROOT fsck.ext4: unable to set superblock flags on ROOT Some googling and I see people suggesting this is essentially the card saying "no more writes". Interestingly - mount -o ro /dev/mmcblk0p2 /mnt - works fine mount -o remount,rw /dev/mmcblk0p2 /mnt - works fine cd /mnt/tmp delete some files cd /mnt umount mount -o ro /dev/mmcblk0p2 /mnt Indeed <some files> remain in /tmp. I was able to make a tar copy that I can copy to another card, but does anyone know if this is correct, that an SD card might simply stop accepting writes, with no indications other than the above ? -- Per Jessen, Zürich (-3.6°C)
On Montag, 11. Januar 2021, 21:17:04 CET Per Jessen wrote:
One of my nanopi neos stopped booting recently, I just took a little long getting a serial console attached.
It is not booting because fsck of ROOT throws this at boot time:
fsck.ext4: Unknown code ____ 251 while recovering journal of ROOT fsck.ext4: unable to set superblock flags on ROOT
Some googling and I see people suggesting this is essentially the card saying "no more writes".
Interestingly -
mount -o ro /dev/mmcblk0p2 /mnt - works fine mount -o remount,rw /dev/mmcblk0p2 /mnt - works fine cd /mnt/tmp delete some files cd /mnt umount mount -o ro /dev/mmcblk0p2 /mnt
Indeed <some files> remain in /tmp.
I was able to make a tar copy that I can copy to another card, but does anyone know if this is correct, that an SD card might simply stop accepting writes, with no indications other than the above ?
yes, that is a pretty normal behaviour when the logic detects damage and no free backup cells anymore. -- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany (HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
Adrian Schröter wrote:
On Montag, 11. Januar 2021, 21:17:04 CET Per Jessen wrote: [snip]
I was able to make a tar copy that I can copy to another card, but does anyone know if this is correct, that an SD card might simply stop accepting writes, with no indications other than the above ?
yes, that is a pretty normal behaviour when the logic detects damage and no free backup cells anymore.
Okay, thanks for confirming that - I had not seen it before. -- Per Jessen, Zürich (0.8°C)
participants (2)
-
Adrian Schröter
-
Per Jessen