Use a bootable USB stick with an OS specialized for device checking. Your HTPC can probably boot from stick.
GParted LIve can check and repair partitions. Especially it can leave bad blocks out when reformatting a partition.
Be sure to make an LE backup before you try to repair anything.