How can I force format read only usb drive in OSx El Capitan?

I have a crashed laptop and used the following method to make a bootable usb drive (32 GB).


hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso

diskutil unmountDisk /dev/diskN

sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m


It did work and made a read only usb that acted as if it were a CD. I would like to now undo that (in osx) but disk utility doesn't seem to be able to. When I click "Erase" it simply fails with


"Erase process has failed"


And details reveal

Name invalid.

Operation failed...


Is there a way I can force format this USB drive (to either FAT 32 or OSX Extended) in OSx El Capitan?

MacBook Pro with Retina display, OS X El Capitan (10.11.2)

Posted on Dec 30, 2015 9:05 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I force format read only usb drive in OSx El Capitan?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.