Not all disk errors can be solved by formatting. Generally speaking, formatting a disk can repair a damaged file system or save you from the “you need to format the disk before you can use it” error, but physical bad sectors on a disk cannot be repaired by formatting.