I am currently wondering how to detect malware on an HDD, so trying to break apart the questions into smaller chunks.
For this question I am wondering how to completely clear an external hard drive (HDD) so it is guaranteed not to have any viruses, malware, or other software/programs running on it. I don't quite understand how you can detect this, like seeing if the bits are in some way, or what.
I am not sure if there is firmware on the HDD, in which case there are other ways a virus might stay on there. Would be interested to clarify if there is firmware on the HDD, which would mean there really is no way to write software code to clean the HDD completely, but not really part of the question.
Other than the firmware aspect, which is more of a tangent, the main question is about the kind of software that can be written to clear the external hard drive completely. I read about Disk formatting which I know very little about, still have to better understand that. But instead of answering "just install antivirus/cleaning software X and press "clean" and you're good", I would like to know the (theoretical) features these softwares have, so that I could better understand what it would take to implement the software from scratch.
An answer might just contain a list like:
- You need to do disk reformatting, which does X to clear Y types of stuff.
- You need to run
ps axand these other standard commands.
- You need to restart your computer.
It doesn't need to be too comprehensive or detailed, I am just looking for an introduction to what needs to be done/implemented to properly clear a disk.