I've recently bought a cheap mini-PC with an ARM SOC and a 8GB builtin flash memory.
I've flashed the Ubuntu Trusty image on the internal NAND but after a while i've started noticing random file corruptions, so i suspect the memory has some defective blocks.
So now i would like to:
- do a full scan for bad blocks on the NAND and mark them so they won't be used anymore (the filesystem is ext4)
- get a list of files currently stored in defective blocks so i can reinstall the deb packages affected
The scan could be performed offline, because i can boot another Linux instance from the SD, but it must be non-destructive (it will restore the block contents after the test so i don't have to reinstall the whole thing again)