Windows often locks drives because it recognizes a corrupted partition. Clearing the partition table usually kills the lock. Press Win + R , type , and hit Enter. Type diskpart and hit Enter.

How to Fix "Transmac Drive Has Been Locked By Another Program"

Move the USB to a rear port (if on a desktop) to ensure a more stable connection. 🛠️ Method 1: Use Diskpart to "Clean" the Drive

Right-click "This PC" > > Services & Applications > Services . Find Windows Search , right-click it, and hit Stop . 🖥️ Method 3: Use the "Format Disk for Mac" Command

Right-click the TransMac icon and select Run as Administrator . Without elevated permissions, TransMac often fails to override system locks.

Windows might be trying to index the drive.

Once formatted, try the option again. 🚫 Why is this happening?

If you are trying to flash a DMG file to a USB drive and see the error you aren't alone. This usually happens because Windows is aggressively "protecting" the drive or another background process is scanning it the moment you plug it in.