Flash Drive not mounted on macOS Mojave

I was able to fix this by changing the Micro SD adapter into another one and then unlocking the security switch in the sd adapter. That error occurs whenthere is a physical write protect switch on the drive, and it's locked in that position.