DebugPoint published a tutorial about repairing bad disk sections in Ubuntu Linux and Fedora.
Scan and Repair Disk Bad Sectors in Ubuntu Linux, Fedora
There are terminal utilities available in Linux which can help you to manage hard disk bad sectors. You can scan and mark them as unusable as well using these utilities. Bad sectors or bad blocks are damaged portion of your mechanical hard disk drive which can not be used at all for data storing purposes.
Scan and Repair Disk Bad Sectors in Ubuntu Linux, Fedora