Damaged hard drive due to magnet damage (Macbook Pro)
The HDD work using a magnetic head to read and write,.

The disk it self is coated with magnetic material. So your Magnet has changed the information stored (damage), but possibly not permanent.

So your best choice it to completely reformat the disk, then install a OS.