MacOS High Sierra - How to format readonly pendirve? I have a HP 32GB v210w pendrive and I somehow made it to read only halfway transferring the file. I tried every diskutil method and few terminal methods but it's all in vain. The pendrive works fine but it's read only. Kindly help me out on how to format it. 

This is one of such errors that I get.
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