 Very often physical damages can interfere with parts of many different files.Bad sectors may be detected by the operating system or the disk controller.Most file systems contain provisions for sectors to be marked as bad, so that the operating system avoids them in the future.