System:
- Embedded board with Atmel SAM9x25
- Debian Wheezy Kernel 3.11.6
- 32GB Samsung SDHC card with ext4 root- partition (journal activated)
After system running two weeks or so superblock from rootfs (ext4) at block 0 got overwritten with "trash data". Here is a hex comparison between the an original superblock and the faulty:
hex comparision between faulty and good superblock starting at byte 1024
- How is it possible, that even the magic number (and everything else) got overwritten?
- Why could it ever be overwritten?
dd if=/dev/random of=/dev/sda1 bs=1024 count=1
will overwrite the superblock on/dev/sda1
with random data. As to the second -- I have no idea. Obviously, such things don't happen under "normal" system activity. Isn't it possible that yourSDHC
card simply gone kaputt?badblocks
in destructive mode).