Have created backup of your MDF files?
Check the actual error by running the command
The reason for missing mdf files can be...
“The file *.mdf is missing and needs to restore”
I would like to know what SQL Server you are working on and when you get this message.
Separate names with a comma.