If you decide to format your hard drive, you might wonder if he will remember the bad sectors after the configuration.
Assuming that the configuration of the disk is NTFS, that is, the most common in our time, then the answer is yes, the disk remembers the bad sectors.
A domain is considered broken when it is not accessible. Information about damaged sectors is stored in a specific archive ( $BadClus ) which is however deleted after the format.
From there it depends on the hard drive model, but the most modern ones automatically detect and mark bad sectors, resulting in operating system να μην γνωρίζει καν ότι υπάρχουν problems on the disc. In this case, the operating system cannot affect the internal datameasurement of the disc.
In fact, a format might "clear" whether a problematic sector is corrupted or not, and give you back sectors that seemed corrupted but were not, but you will not be able to recover the really corrupted sectors by formatting the disk.
Remember, however, that damaged hard disk partitions are usually a good warning for replacing them so you do not lose your data, since the format will not stop your drive's slider.