MacOS High Sierra - How to format readonly pendirve?
sudo diskutil unmountdisk force disk2

sudo dd if=/dev/zero of=/dev/disk2 bs=1024 count=1024

link:-


  https://superuser.com/questions/1019759/how-can-i-force-format-read-only-usb-drive-in-osx-el-capitan