Sometimes, real-time protection sees TransMac's attempt to write a macOS file system as "suspicious activity" and locks the drive to prevent what it perceives as a boot sector attack.
TransMac Error: "Drive Has Been Locked by Another Program" – Causes and Fixes transmac drive has been locked by another program hot
If the drive is "locked" because it has an existing partition or file system Windows doesn't like, you can force it to reset using the command line. Using the diskpart clean method is the most
The "Drive has been locked" error is almost always a result of or an Antivirus process refusing to let go of the USB. Using the diskpart clean method is the most reliable way to strip those locks and give TransMac the "clean slate" it needs. Close all File Explorer windows.
The error occurs because Windows is protective of its file system. When you plug in a USB, several background processes immediately "grab" the drive to index files, check for errors, or simply display it in File Explorer. Because TransMac needs exclusive, low-level access to rewrite the partition table, any other process holding onto that drive will cause a conflict.
Once finished, go back to TransMac and try "Format Disk for Mac" or "Restore with Disk Image."
Windows Explorer is often the culprit. If you have a window open showing the contents of the USB drive, TransMac will be blocked. Close all File Explorer windows.
