Although raw drive recovery is possible, yet you still have to prevent this situation from happening again. Below are some tips for you.
Don't download any shady or malicious software from the Internet. Otherwise, they may cause serious damage to your drives.
To further avoid malware's harm to your drive and turn it a blank slate, you are suggested to run antivirus scan frequently.
When you are about to perform a formatting, think twice as misoperation may cause all data loss.
Your raw drive could result from different reasons. To protect the data in it, you could create backups of them.