This question has to be more specific, like:
You must have known that Windows `chkdsk` command repairs logical bad sectors, this page we'll another method to repair logical bad sectors, the function Check Volume in Partition Expert
Steps of repairing logical bad sectors:
Then click OK to run and Partition Expert will start to check this partition and fix found logical or soft bad sectors, results will be displayed instantly in the checking window.
Well, you can't
I think you mean how to take full advantage of a hard drive with physical bad sectors, right
Bad sectors are gathering together in most of the cases, which means, they stay at a certain area on a specific blocks of a disk, like the screen shot we took below (the red docs represents bad sectors) , they would stop to spread if you can isolate them and tell the operating system not to read and write in this block or area. It's hard to locate them with the default error check tool, but it's possible to Partition Expert and Disk Scanner, we'll dig into the details in the next tutorial.
Also read: How bad sectors are created | Can bad sectors spread | How to isolate bad sectors a hard drive